From 589f3152691a9249d4122cc4b92ef929b0e5dc8a Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Thu, 24 Mar 2016 05:56:40 +0000 Subject: [PATCH] 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 --- tempest/scenario/test_network_basic_ops.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tempest/scenario/test_network_basic_ops.py b/tempest/scenario/test_network_basic_ops.py index 48ddac6842..b3dbdf4e1c 100644 --- a/tempest/scenario/test_network_basic_ops.py +++ b/tempest/scenario/test_network_basic_ops.py @@ -305,16 +305,19 @@ class TestNetworkBasicOps(manager.NetworkScenarioTest): - 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,