2025-08-13 14:52:54,999 - INFO - Domain Default found not creating 2025-08-13 14:52:55,127 - INFO - Project ctest-TestRoutersBasic-80040641 not found, creating it 2025-08-13 14:52:55,576 - INFO - Created Project:ctest-TestRoutersBasic-80040641, ID : 54cc0472-507c-4816-a699-4a73a389610a 2025-08-13 14:52:56,947 - INFO - ================================================================================ 2025-08-13 14:52:56,947 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-13 14:52:56,947 - 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 2025-08-13 14:52:57,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-08-13 14:52:57,209 - INFO - Initial checks done. Running the testcase now 2025-08-13 14:52:57,209 - INFO - 2025-08-13 14:52:57,960 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80040641 2025-08-13 14:52:58,058 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80040641 2025-08-13 14:52:58,386 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80040641', 'default']} 2025-08-13 14:52:58,712 - DEBUG - Response for create_network : {'network': {'id': '09d40362-1349-4693-bb0e-adda60d0a632', 'name': 'ctest-vn-52564992', 'tenant_id': '54cc0472507c4816a6994a73a389610a', 'project_id': '54cc0472507c4816a6994a73a389610a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80040641', 'ctest-vn-52564992'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 14:52:58,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '0024abea-28b1-4f5a-8fb0-0bcfe9eadfde', 'name': '', 'tenant_id': '54cc0472507c4816a6994a73a389610a', 'network_id': '09d40362-1349-4693-bb0e-adda60d0a632', 'ip_version': 4, 'cidr': '49.204.104.192/26', 'allocation_pools': [{'start': '49.204.104.194', 'end': '49.204.104.254'}], 'gateway_ip': '49.204.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.204.104.194', 'tags': [], 'project_id': '54cc0472507c4816a6994a73a389610a'}} 2025-08-13 14:52:58,979 - INFO - Created VN ctest-vn-52564992 2025-08-13 14:52:59,038 - DEBUG - VN ctest-vn-52564992 UUID is 09d40362-1349-4693-bb0e-adda60d0a632 2025-08-13 14:52:59,390 - DEBUG - Response for create_network : {'network': {'id': '9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3', 'name': 'ctest-ext_vn-39732453', 'tenant_id': '54cc0472507c4816a6994a73a389610a', 'project_id': '54cc0472507c4816a6994a73a389610a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80040641', 'ctest-ext_vn-39732453'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 14:52:59,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '5391578a-edc2-4d37-9b20-31a1fa530e3e', 'name': '', 'tenant_id': '54cc0472507c4816a6994a73a389610a', 'network_id': '9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3', 'ip_version': 4, 'cidr': '112.173.58.64/26', 'allocation_pools': [{'start': '112.173.58.66', 'end': '112.173.58.126'}], 'gateway_ip': '112.173.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.173.58.66', 'tags': [], 'project_id': '54cc0472507c4816a6994a73a389610a'}} 2025-08-13 14:52:59,616 - INFO - Created VN ctest-ext_vn-39732453 2025-08-13 14:52:59,674 - DEBUG - VN ctest-ext_vn-39732453 UUID is 9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3 2025-08-13 14:52:59,866 - DEBUG - Services list from nova: [, , ] 2025-08-13 14:53:00,967 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3839-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3839-1) 2025-08-13 14:53:02,225 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3839-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3839-1) 2025-08-13 14:53:02,303 - INFO - Setting gateway for router a7b8283e-6ce3-482b-a76d-521d8b5934fd to network 9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3 2025-08-13 14:53:02,350 - INFO - Adding interface with subnet_id 0024abea-28b1-4f5a-8fb0-0bcfe9eadfde, port_id None to router a7b8283e-6ce3-482b-a76d-521d8b5934fd 2025-08-13 14:53:02,707 - INFO - Waiting for VM ctest-TestRoutersBasic-80040641-31332915 to be up.. 2025-08-13 14:53:02,878 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-13 14:53:07,959 - DEBUG - VM is in ACTIVE state now 2025-08-13 14:53:07,959 - INFO - VM name : ctest-TestRoutersBasic-80040641-31332915 2025-08-13 14:53:08,039 - DEBUG - VM ctest-TestRoutersBasic-80040641-31332915 ID is ea340817-4d97-4790-9d78-ae239769f4a2 2025-08-13 14:53:08,062 - DEBUG - VM ctest-TestRoutersBasic-80040641-31332915 launched on Node cn-jenkins-deploy-platform-ansible-os-3839-1 2025-08-13 14:53:08,156 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/ea340817-4d97-4790-9d78-ae239769f4a2 2025-08-13 14:53:08,483 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/ea340817-4d97-4790-9d78-ae239769f4a2 2025-08-13 14:53:08,519 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/6a566354-782a-45a9-968d-311e955bb62a 2025-08-13 14:53:11,783 - 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') 2025-08-13 14:53:11,783 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80040641-31332915 failed! 2025-08-13 14:53:11,838 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80040641:ctest-vn-52564992 is 49.204.104.193 and allocation pool is NOT set 2025-08-13 14:53:13,894 - 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=2.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.471 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 = 0.471/1.710/2.949/1.239 ms') 2025-08-13 14:53:13,894 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80040641-31332915 passed 2025-08-13 14:53:14,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-13 14:53:14,046 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80040641-31332915, IP 49.204.104.195, Port 22 2025-08-13 14:53:14,198 - DEBUG - VM ctest-TestRoutersBasic-80040641-31332915 is ready for SSH connections 2025-08-13 14:53:14,198 - INFO - Waiting for VM ctest-TestRoutersBasic-80040641-35307381 to be up.. 2025-08-13 14:53:14,269 - DEBUG - VM is in ACTIVE state now 2025-08-13 14:53:14,269 - INFO - VM name : ctest-TestRoutersBasic-80040641-35307381 2025-08-13 14:53:14,339 - DEBUG - VM ctest-TestRoutersBasic-80040641-35307381 ID is 5c6d7143-1f4d-41cf-af3e-e13bfead0530 2025-08-13 14:53:14,339 - DEBUG - VM ctest-TestRoutersBasic-80040641-35307381 launched on Node cn-jenkins-deploy-platform-ansible-os-3839-1 2025-08-13 14:53:14,405 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/5c6d7143-1f4d-41cf-af3e-e13bfead0530 2025-08-13 14:53:14,414 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/f1caf2a5-6c51-4262-b5f0-4c4e2e43152a 2025-08-13 14:53:15,669 - 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=4.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.56 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.558/3.343/4.128/0.785 ms') 2025-08-13 14:53:15,669 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80040641-35307381 passed 2025-08-13 14:53:15,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-13 14:53:15,822 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80040641-35307381, IP 112.173.58.67, Port 22 2025-08-13 14:53:15,978 - DEBUG - VM ctest-TestRoutersBasic-80040641-35307381 is ready for SSH connections 2025-08-13 14:53:15,978 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-13 14:53:15,978 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:15,978 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:21,002 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:21,002 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:22,003 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:22,004 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:25,209 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:25,209 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:26,210 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:26,210 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:29,415 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:29,415 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:30,416 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:30,416 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:33,639 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:33,639 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:34,640 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:34,641 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:37,859 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:37,859 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:38,860 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:38,860 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:42,080 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:42,080 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:43,081 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:43,082 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:46,300 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:46,301 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:47,301 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:47,301 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:50,505 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:50,505 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:51,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:51,507 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:54,732 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:54,732 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:55,733 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:55,733 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:53:58,957 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:53:58,957 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:53:59,958 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.173.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-13 14:53:59,958 - DEBUG - ping -s 56 -c 3 -W 1 112.173.58.67 2025-08-13 14:54:03,170 - DEBUG - PING 112.173.58.67 (112.173.58.67): 56 data bytes --- 112.173.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-13 14:54:03,170 - WARNING - Ping to IP 112.173.58.67 from VM ctest-TestRoutersBasic-80040641-31332915 failed 2025-08-13 14:54:03,171 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-13 14:54:03,172 - INFO - Deleting interface with subnet_id 0024abea-28b1-4f5a-8fb0-0bcfe9eadfde, port_id None from router a7b8283e-6ce3-482b-a76d-521d8b5934fd 2025-08-13 14:54:03,347 - INFO - Deleting VM ctest-TestRoutersBasic-80040641-35307381 2025-08-13 14:54:03,414 - INFO - Deleting VM ctest-TestRoutersBasic-80040641-31332915 2025-08-13 14:54:03,488 - INFO - Deleting VN ctest-ext_vn-39732453 2025-08-13 14:54:03,557 - DEBUG - VN 9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3 still in use: Unable to complete operation on network 9eff59f1-86bf-48b6-8fa8-44ebb8b2e2d3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dcc73f4e-7e12-4ddf-b551-8058247e8252'] 2025-08-13 14:54:03,558 - WARNING - Deleting VN ctest-ext_vn-39732453 failed..Will retry 2025-08-13 14:54:05,665 - DEBUG - Response for deleting network () 2025-08-13 14:54:05,666 - INFO - Deleting VN ctest-vn-52564992 2025-08-13 14:54:05,785 - DEBUG - Response for deleting network () 2025-08-13 14:54:06,038 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Wed Aug 13 14:54:03 2025 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={}) 78 log.info('Initial checks done. Running the testcase now') 79 log.info('') 80 result = function(self, *args, **kwargs) 81 if self.inputs.upgrade: 82 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 = '112.173.58.67' 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 80, 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 2025-08-13 14:54:06,046 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 14:54:06,046 - INFO - 2025-08-13 14:54:06,047 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:10] 2025-08-13 14:54:06,047 - INFO - -------------------------------------------------------------------------------- 2025-08-13 14:54:06,799 - INFO - Deleted project: ctest-TestRoutersBasic-80040641, ID : 54cc0472-507c-4816-a699-4a73a389610a