Add network internal connectivity check to VMs
In test_network_basic_ops.py, _check_network_internal_connectivity
only checks the connectivity to the network port on the network.
While test_connectivity_between_vms_on_different_networks test
case in this test module explicitly wants to check the
connectivity between vms on different network. Add network
internal connectivty check to other VMs on the network.
Change-Id: Iff8e0f2d5db1bf9bc5bf064a0d066835e8a4cdbc
Fixes-Bug: #1561335
diff --git a/tempest/scenario/test_network_basic_ops.py b/tempest/scenario/test_network_basic_ops.py
index 48ddac6..b3dbdf4 100644
--- a/tempest/scenario/test_network_basic_ops.py
+++ b/tempest/scenario/test_network_basic_ops.py
@@ -305,16 +305,19 @@
- ping internal gateway and DHCP port, implying in-tenant connectivity
pinging both, because L3 and DHCP agents might be on different nodes
+ - ping internal compute port, implying connectivity to other VMs on
+ this network
"""
floating_ip, server = self.floating_ip_tuple
# get internal ports' ips:
- # get all network ports in the new network
+ # get all network and compute ports in the new network
internal_ips = (
p['fixed_ips'][0]['ip_address'] for p in
self.os_admin.ports_client.list_ports(
tenant_id=server['tenant_id'],
network_id=network['id'])['ports']
- if p['device_owner'].startswith('network')
+ if p['device_owner'].startswith('network') or
+ p['device_owner'].startswith('compute')
)
self._check_server_connectivity(floating_ip,