2025-06-19 13:48:53,924 - INFO - Domain Default found not creating
2025-06-19 13:48:54,086 - INFO - Project ctest-TestRoutersBasic-36479859 not found, creating it
2025-06-19 13:48:54,541 - INFO - Created Project:ctest-TestRoutersBasic-36479859, ID : 4d76cb6a-4846-43de-90ef-61880b98861f
2025-06-19 13:48:56,402 - INFO - ================================================================================
2025-06-19 13:48:56,403 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-19 13:48:56,403 - 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-06-19 13:48:56,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with
2025-06-19 13:48:56,656 - INFO - Initial checks done. Running the testcase now
2025-06-19 13:48:56,656 - INFO -
2025-06-19 13:48:57,364 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-36479859
2025-06-19 13:48:57,458 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-36479859
2025-06-19 13:48:57,786 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36479859', 'default']}
2025-06-19 13:48:58,104 - DEBUG - Response for create_network : {'network': {'id': 'a4ca0db6-8533-4d30-9a53-64f650037b16', 'name': 'ctest-vn-34746672', 'tenant_id': '4d76cb6a484643de90ef61880b98861f', 'project_id': '4d76cb6a484643de90ef61880b98861f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36479859', 'ctest-vn-34746672'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:48:58,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '26658ca5-20c7-42ac-a377-31a45aaeedb7', 'name': '', 'tenant_id': '4d76cb6a484643de90ef61880b98861f', 'network_id': 'a4ca0db6-8533-4d30-9a53-64f650037b16', 'ip_version': 4, 'cidr': '209.86.10.0/26', 'allocation_pools': [{'start': '209.86.10.2', 'end': '209.86.10.62'}], 'gateway_ip': '209.86.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.86.10.2', 'tags': [], 'project_id': '4d76cb6a484643de90ef61880b98861f'}}
2025-06-19 13:48:58,305 - INFO - Created VN ctest-vn-34746672
2025-06-19 13:48:58,358 - DEBUG - VN ctest-vn-34746672 UUID is a4ca0db6-8533-4d30-9a53-64f650037b16
2025-06-19 13:48:58,714 - DEBUG - Response for create_network : {'network': {'id': 'ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4', 'name': 'ctest-ext_vn-57119749', 'tenant_id': '4d76cb6a484643de90ef61880b98861f', 'project_id': '4d76cb6a484643de90ef61880b98861f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36479859', 'ctest-ext_vn-57119749'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:48:58,867 - DEBUG - Response for create_subnet : {'subnet': {'id': '87f99366-e0e1-4e7d-b474-6d6521747ae4', 'name': '', 'tenant_id': '4d76cb6a484643de90ef61880b98861f', 'network_id': 'ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4', 'ip_version': 4, 'cidr': '31.156.78.0/26', 'allocation_pools': [{'start': '31.156.78.2', 'end': '31.156.78.62'}], 'gateway_ip': '31.156.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.156.78.2', 'tags': [], 'project_id': '4d76cb6a484643de90ef61880b98861f'}}
2025-06-19 13:48:58,885 - INFO - Created VN ctest-ext_vn-57119749
2025-06-19 13:48:58,938 - DEBUG - VN ctest-ext_vn-57119749 UUID is ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4
2025-06-19 13:48:59,106 - DEBUG - Services list from nova: [, , ]
2025-06-19 13:49:00,125 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3495-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3495-1)
2025-06-19 13:49:01,378 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3495-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3495-1)
2025-06-19 13:49:01,447 - INFO - Setting gateway for router 4622b250-e7bf-404a-a241-da0abb3d2a30 to network ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4
2025-06-19 13:49:01,498 - INFO - Adding interface with subnet_id 26658ca5-20c7-42ac-a377-31a45aaeedb7, port_id None to router 4622b250-e7bf-404a-a241-da0abb3d2a30
2025-06-19 13:49:01,913 - INFO - Waiting for VM ctest-TestRoutersBasic-36479859-75091878 to be up..
2025-06-19 13:49:02,053 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-19 13:49:07,155 - DEBUG - VM is in ACTIVE state now
2025-06-19 13:49:07,155 - INFO - VM name : ctest-TestRoutersBasic-36479859-75091878
2025-06-19 13:49:07,255 - DEBUG - VM ctest-TestRoutersBasic-36479859-75091878 ID is 6aa80a7f-095d-4ad7-accf-1e110b8fd0ee
2025-06-19 13:49:07,282 - DEBUG - VM ctest-TestRoutersBasic-36479859-75091878 launched on Node cn-jenkins-deploy-platform-ansible-os-3495-1.
2025-06-19 13:49:07,367 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/6aa80a7f-095d-4ad7-accf-1e110b8fd0ee
2025-06-19 13:49:07,666 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/6aa80a7f-095d-4ad7-accf-1e110b8fd0ee
2025-06-19 13:49:07,696 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/619a010a-7a04-4389-a5fa-240a0e75038f
2025-06-19 13:49:10,951 - 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 1020ms')
2025-06-19 13:49:10,952 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36479859-75091878 failed!
2025-06-19 13:49:11,010 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-36479859:ctest-vn-34746672 is 209.86.10.1 and allocation pool is NOT set
2025-06-19 13:49:13,077 - 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=5.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.685 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.685/3.033/5.381/2.348 ms')
2025-06-19 13:49:13,077 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36479859-75091878 passed
2025-06-19 13:49:13,242 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-19 13:49:13,242 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36479859-75091878, IP 209.86.10.3, Port 22
2025-06-19 13:49:13,412 - DEBUG - VM ctest-TestRoutersBasic-36479859-75091878 is ready for SSH connections
2025-06-19 13:49:13,412 - INFO - Waiting for VM ctest-TestRoutersBasic-36479859-16789342 to be up..
2025-06-19 13:49:13,502 - DEBUG - VM is in ACTIVE state now
2025-06-19 13:49:13,503 - INFO - VM name : ctest-TestRoutersBasic-36479859-16789342
2025-06-19 13:49:13,605 - DEBUG - VM ctest-TestRoutersBasic-36479859-16789342 ID is fabaffec-2f5b-4d5e-a3db-62fb177407b4
2025-06-19 13:49:13,605 - DEBUG - VM ctest-TestRoutersBasic-36479859-16789342 launched on Node cn-jenkins-deploy-platform-ansible-os-3495-1.
2025-06-19 13:49:13,700 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/fabaffec-2f5b-4d5e-a3db-62fb177407b4
2025-06-19 13:49:13,710 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/f7eb0d23-7620-47f8-8e25-9f1568c0fa8c
2025-06-19 13:49:14,976 - 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=2.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.646 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.646/1.773/2.900/1.127 ms')
2025-06-19 13:49:14,977 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-36479859-16789342 passed
2025-06-19 13:49:15,134 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-19 13:49:15,134 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36479859-16789342, IP 31.156.78.3, Port 22
2025-06-19 13:49:15,294 - DEBUG - VM ctest-TestRoutersBasic-36479859-16789342 is ready for SSH connections
2025-06-19 13:49:15,294 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-19 13:49:15,294 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:15,294 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:20,027 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:20,028 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:21,029 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:21,029 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:24,245 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:24,245 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:25,247 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:25,247 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:28,451 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:28,451 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:29,452 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:29,452 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:32,713 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:32,714 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:33,714 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:33,714 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:36,915 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:36,915 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:37,916 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:37,917 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:41,132 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:41,133 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:42,133 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:42,133 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:45,345 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:45,345 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:46,346 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:46,346 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:49,608 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:49,608 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:50,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:50,609 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:53,815 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:53,815 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:54,816 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:54,816 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:49:58,027 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:49:58,027 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:49:59,028 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.156.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123
2025-06-19 13:49:59,028 - DEBUG - ping -s 56 -c 3 -W 1 31.156.78.3
2025-06-19 13:50:02,249 - DEBUG - PING 31.156.78.3 (31.156.78.3): 56 data bytes
--- 31.156.78.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-19 13:50:02,250 - WARNING - Ping to IP 31.156.78.3 from VM ctest-TestRoutersBasic-36479859-75091878 failed
2025-06-19 13:50:02,251 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-19 13:50:02,251 - INFO - Deleting interface with subnet_id 26658ca5-20c7-42ac-a377-31a45aaeedb7, port_id None from router 4622b250-e7bf-404a-a241-da0abb3d2a30
2025-06-19 13:50:02,443 - INFO - Deleting VM ctest-TestRoutersBasic-36479859-16789342
2025-06-19 13:50:02,521 - INFO - Deleting VM ctest-TestRoutersBasic-36479859-75091878
2025-06-19 13:50:02,616 - INFO - Deleting VN ctest-ext_vn-57119749
2025-06-19 13:50:02,712 - DEBUG - VN ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4 still in use: Unable to complete operation on network ba7ecf8f-5b01-4c06-afa7-f0f41254ccc4. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-33eb19dc-8c0e-4ea8-8fe3-fdcd1d48a489']
2025-06-19 13:50:02,712 - WARNING - Deleting VN ctest-ext_vn-57119749 failed..Will retry
2025-06-19 13:50:04,807 - DEBUG - Response for deleting network ()
2025-06-19 13:50:04,807 - INFO - Deleting VN ctest-vn-34746672
2025-06-19 13:50:04,935 - DEBUG - Response for deleting network ()
2025-06-19 13:50:05,186 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Thu Jun 19 13:50:02 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
vm1_fixture =
vm1_fixture.ping_with_certainty = .deco_retry....xture: ctest-TestRoutersBasic-36479859-75091878>>
vm2_fixture =
vm2_fixture.vm_ip = '31.156.78.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 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_routers_basic.py", line 51, in test_basic_snat_behavior_without_external_connectivity
assert vm1_fixture.ping_with_certainty(
AssertionError: Ping from vm_left to vm_right through snat failed
2025-06-19 13:50:05,192 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 13:50:05,192 - INFO -
2025-06-19 13:50:05,192 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-06-19 13:50:05,192 - INFO - --------------------------------------------------------------------------------
2025-06-19 13:50:05,863 - INFO - Deleted project: ctest-TestRoutersBasic-36479859, ID : 4d76cb6a-4846-43de-90ef-61880b98861f