2024-10-24 16:18:29,421 - INFO - Domain Default found not creating 2024-10-24 16:18:29,657 - INFO - Project ctest-TestRoutersBasic-03450852 not found, creating it 2024-10-24 16:18:30,186 - INFO - Created Project:ctest-TestRoutersBasic-03450852, ID : 1ce1d0f5-b70a-42dc-a3aa-08a9e8a02012 2024-10-24 16:18:31,967 - INFO - ================================================================================ 2024-10-24 16:18:31,967 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 16:18:31,967 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2024-10-24 16:18:32,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with 2024-10-24 16:18:32,245 - INFO - Initial checks done. Running the testcase now 2024-10-24 16:18:32,245 - INFO - 2024-10-24 16:18:33,043 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-03450852 2024-10-24 16:18:33,147 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-03450852 2024-10-24 16:18:33,523 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03450852', 'default']} 2024-10-24 16:18:33,897 - DEBUG - Response for create_network : {'network': {'id': 'faf34a36-c8d2-4db9-96db-f59819281537', 'name': 'ctest-vn-75525297', 'tenant_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'project_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03450852', 'ctest-vn-75525297'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:18:34,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '479f4427-f5a6-490a-8997-dab4bce35692', 'name': '', 'tenant_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'network_id': 'faf34a36-c8d2-4db9-96db-f59819281537', 'ip_version': 4, 'cidr': '175.98.182.0/26', 'allocation_pools': [{'start': '175.98.182.2', 'end': '175.98.182.62'}], 'gateway_ip': '175.98.182.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.98.182.2', 'tags': [], 'project_id': '1ce1d0f5b70a42dca3aa08a9e8a02012'}} 2024-10-24 16:18:34,157 - INFO - Created VN ctest-vn-75525297 2024-10-24 16:18:34,215 - DEBUG - VN ctest-vn-75525297 UUID is faf34a36-c8d2-4db9-96db-f59819281537 2024-10-24 16:18:34,632 - DEBUG - Response for create_network : {'network': {'id': '09a7b811-48db-4b57-b03d-9c2e6ce15790', 'name': 'ctest-ext_vn-43757685', 'tenant_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'project_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03450852', 'ctest-ext_vn-43757685'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:18:34,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d1e6e9b-96e1-4fc4-acb2-e79f4520b6b5', 'name': '', 'tenant_id': '1ce1d0f5b70a42dca3aa08a9e8a02012', 'network_id': '09a7b811-48db-4b57-b03d-9c2e6ce15790', 'ip_version': 4, 'cidr': '159.19.89.0/26', 'allocation_pools': [{'start': '159.19.89.2', 'end': '159.19.89.62'}], 'gateway_ip': '159.19.89.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.19.89.2', 'tags': [], 'project_id': '1ce1d0f5b70a42dca3aa08a9e8a02012'}} 2024-10-24 16:18:34,911 - INFO - Created VN ctest-ext_vn-43757685 2024-10-24 16:18:34,975 - DEBUG - VN ctest-ext_vn-43757685 UUID is 09a7b811-48db-4b57-b03d-9c2e6ce15790 2024-10-24 16:18:35,194 - DEBUG - Services list from nova: [, , ] 2024-10-24 16:18:36,375 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2143-1) 2024-10-24 16:18:37,733 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2143-1) 2024-10-24 16:18:37,813 - INFO - Setting gateway for router d1b46ac9-8f83-47a8-8b78-8db566ede19c to network 09a7b811-48db-4b57-b03d-9c2e6ce15790 2024-10-24 16:18:37,896 - INFO - Adding interface with subnet_id 479f4427-f5a6-490a-8997-dab4bce35692, port_id None to router d1b46ac9-8f83-47a8-8b78-8db566ede19c 2024-10-24 16:18:38,299 - INFO - Waiting for VM ctest-TestRoutersBasic-03450852-32487571 to be up.. 2024-10-24 16:18:38,487 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 16:18:43,589 - DEBUG - VM is in ACTIVE state now 2024-10-24 16:18:43,589 - INFO - VM name : ctest-TestRoutersBasic-03450852-32487571 2024-10-24 16:18:43,689 - DEBUG - VM ctest-TestRoutersBasic-03450852-32487571 ID is a372fae8-3a99-4506-8596-80a31311f9c9 2024-10-24 16:18:43,714 - DEBUG - VM ctest-TestRoutersBasic-03450852-32487571 launched on Node cn-jenkins-deploy-platform-ansible-os-2143-1 2024-10-24 16:18:43,830 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a372fae8-3a99-4506-8596-80a31311f9c9 2024-10-24 16:18:44,144 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a372fae8-3a99-4506-8596-80a31311f9c9 2024-10-24 16:18:44,189 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/5462a85e-6d20-4e41-be75-ee185bf32337 2024-10-24 16:18:47,481 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2024-10-24 16:18:47,481 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03450852-32487571 failed! 2024-10-24 16:18:47,547 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-03450852:ctest-vn-75525297 is 175.98.182.1 and allocation pool is NOT set 2024-10-24 16:18:49,615 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.16 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.157/3.324/4.492/1.167 ms') 2024-10-24 16:18:49,615 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03450852-32487571 passed 2024-10-24 16:18:49,787 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:18:49,787 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03450852-32487571, IP 175.98.182.3, Port 22 2024-10-24 16:18:49,943 - DEBUG - VM ctest-TestRoutersBasic-03450852-32487571 is ready for SSH connections 2024-10-24 16:18:49,943 - INFO - Waiting for VM ctest-TestRoutersBasic-03450852-71491858 to be up.. 2024-10-24 16:18:50,046 - DEBUG - VM is in ACTIVE state now 2024-10-24 16:18:50,046 - INFO - VM name : ctest-TestRoutersBasic-03450852-71491858 2024-10-24 16:18:50,168 - DEBUG - VM ctest-TestRoutersBasic-03450852-71491858 ID is e4afe98a-8203-441c-9ba8-7d6860c9e7f4 2024-10-24 16:18:50,168 - DEBUG - VM ctest-TestRoutersBasic-03450852-71491858 launched on Node cn-jenkins-deploy-platform-ansible-os-2143-1 2024-10-24 16:18:50,278 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/e4afe98a-8203-441c-9ba8-7d6860c9e7f4 2024-10-24 16:18:50,296 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/26cf59de-33c8-487c-b3f6-a1a901aa3859 2024-10-24 16:18:51,574 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=5.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.39 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.391/3.481/5.572/2.090 ms') 2024-10-24 16:18:51,574 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-03450852-71491858 passed 2024-10-24 16:18:51,739 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:18:51,739 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03450852-71491858, IP 159.19.89.3, Port 22 2024-10-24 16:18:51,919 - DEBUG - VM ctest-TestRoutersBasic-03450852-71491858 is ready for SSH connections 2024-10-24 16:18:51,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:18:51,919 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:18:51,919 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:18:56,721 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:18:56,721 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:18:57,722 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:18:57,722 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:00,962 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:00,963 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:01,963 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:01,964 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:05,191 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:05,191 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:06,191 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:06,192 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:09,422 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:09,422 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:10,423 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:10,423 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:13,637 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:13,637 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:14,639 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:14,639 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:17,857 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:17,857 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:18,858 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:18,858 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:22,082 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:22,082 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:23,083 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:23,083 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:26,313 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:26,313 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:27,315 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:27,315 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:30,541 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:30,541 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:31,542 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:31,542 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:34,795 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:34,795 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:35,796 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.19.89.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:19:35,796 - DEBUG - ping -s 56 -c 3 -W 1 159.19.89.3 2024-10-24 16:19:39,021 - DEBUG - PING 159.19.89.3 (159.19.89.3): 56 data bytes --- 159.19.89.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:19:39,021 - WARNING - Ping to IP 159.19.89.3 from VM ctest-TestRoutersBasic-03450852-32487571 failed 2024-10-24 16:19:39,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:19:39,030 - INFO - Deleting interface with subnet_id 479f4427-f5a6-490a-8997-dab4bce35692, port_id None from router d1b46ac9-8f83-47a8-8b78-8db566ede19c 2024-10-24 16:19:39,312 - INFO - Deleting VM ctest-TestRoutersBasic-03450852-71491858 2024-10-24 16:19:39,391 - INFO - Deleting VM ctest-TestRoutersBasic-03450852-32487571 2024-10-24 16:19:39,489 - INFO - Deleting VN ctest-ext_vn-43757685 2024-10-24 16:19:39,596 - DEBUG - VN 09a7b811-48db-4b57-b03d-9c2e6ce15790 still in use: Unable to complete operation on network 09a7b811-48db-4b57-b03d-9c2e6ce15790. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-13f17671-897e-4fc1-aa10-734a79d90c1f'] 2024-10-24 16:19:39,596 - WARNING - Deleting VN ctest-ext_vn-43757685 failed..Will retry 2024-10-24 16:19:41,732 - DEBUG - Response for deleting network () 2024-10-24 16:19:41,732 - INFO - Deleting VN ctest-vn-75525297 2024-10-24 16:19:41,878 - DEBUG - Response for deleting network () 2024-10-24 16:19:42,131 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Thu Oct 24 16:19:39 2024 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /contrail-test/tcutils/wrappers.py in wrapper(self=, *args=(), **kwargs={}) 79 log.info('Initial checks done. Running the testcase now') 80 log.info('') 81 result = function(self, *args, **kwargs) 82 if self.inputs.upgrade: 83 pid = os.getpid() result = None function = self = args = () kwargs = {} /contrail-test/scripts/neutron/test_routers_basic.py in test_basic_snat_behavior_without_external_connectivity(self=) 49 vm1_fixture.wait_till_vm_is_up() 50 vm2_fixture.wait_till_vm_is_up() 51 assert vm1_fixture.ping_with_certainty( 52 vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed' 53 return True vm2_fixture = vm2_fixture.vm_ip = '159.19.89.3' AssertionError: Ping from vm_left to vm_right through snat failed __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {} __dir__ = __doc__ = 'Assertion failed.' __eq__ = __format__ = __ge__ = __getattribute__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = args = ('Ping from vm_left to vm_right through snat failed',) with_traceback = The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/contrail-test/tcutils/wrappers.py", line 81, in wrapper result = function(self, *args, **kwargs) File "/contrail-test/scripts/neutron/test_routers_basic.py", line 52, in test_basic_snat_behavior_without_external_connectivity vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed' AssertionError: Ping from vm_left to vm_right through snat failed 2024-10-24 16:19:42,138 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 16:19:42,139 - INFO - 2024-10-24 16:19:42,139 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:11] 2024-10-24 16:19:42,139 - INFO - -------------------------------------------------------------------------------- 2024-10-24 16:19:42,920 - INFO - Deleted project: ctest-TestRoutersBasic-03450852, ID : 1ce1d0f5-b70a-42dc-a3aa-08a9e8a02012