2025-06-18 17:49:25,724 - INFO - Domain Default found not creating
2025-06-18 17:49:25,905 - INFO - Project ctest-TestRoutersBasic-76045483 not found, creating it
2025-06-18 17:49:26,338 - INFO - Created Project:ctest-TestRoutersBasic-76045483, ID : 6e77e4d3-8712-498a-8100-c59ceb8ede69
2025-06-18 17:49:27,735 - INFO - ================================================================================
2025-06-18 17:49:27,735 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-18 17:49:27,735 - 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-18 17:49:27,997 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-06-18 17:49:27,997 - INFO - Initial checks done. Running the testcase now
2025-06-18 17:49:27,997 - INFO -
2025-06-18 17:49:28,692 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-76045483
2025-06-18 17:49:28,788 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-76045483
2025-06-18 17:49:29,108 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76045483', 'default']}
2025-06-18 17:49:29,401 - DEBUG - Response for create_network : {'network': {'id': '48a83335-4862-4537-8902-43a85d9e84c7', 'name': 'ctest-vn-13713443', 'tenant_id': '6e77e4d38712498a8100c59ceb8ede69', 'project_id': '6e77e4d38712498a8100c59ceb8ede69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76045483', 'ctest-vn-13713443'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:49:29,613 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c77a47a-9ca6-4c8b-a822-998604b382ea', 'name': '', 'tenant_id': '6e77e4d38712498a8100c59ceb8ede69', 'network_id': '48a83335-4862-4537-8902-43a85d9e84c7', 'ip_version': 4, 'cidr': '86.62.154.0/26', 'allocation_pools': [{'start': '86.62.154.2', 'end': '86.62.154.62'}], 'gateway_ip': '86.62.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.62.154.2', 'tags': [], 'project_id': '6e77e4d38712498a8100c59ceb8ede69'}}
2025-06-18 17:49:29,633 - INFO - Created VN ctest-vn-13713443
2025-06-18 17:49:29,684 - DEBUG - VN ctest-vn-13713443 UUID is 48a83335-4862-4537-8902-43a85d9e84c7
2025-06-18 17:49:30,011 - DEBUG - Response for create_network : {'network': {'id': 'c09fdc9e-f131-4292-9e4f-f1203305a2c8', 'name': 'ctest-ext_vn-17089285', 'tenant_id': '6e77e4d38712498a8100c59ceb8ede69', 'project_id': '6e77e4d38712498a8100c59ceb8ede69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76045483', 'ctest-ext_vn-17089285'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:49:30,202 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5282cc3-e457-46d4-8cbb-7404ea109777', 'name': '', 'tenant_id': '6e77e4d38712498a8100c59ceb8ede69', 'network_id': 'c09fdc9e-f131-4292-9e4f-f1203305a2c8', 'ip_version': 4, 'cidr': '115.212.42.64/26', 'allocation_pools': [{'start': '115.212.42.66', 'end': '115.212.42.126'}], 'gateway_ip': '115.212.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.212.42.66', 'tags': [], 'project_id': '6e77e4d38712498a8100c59ceb8ede69'}}
2025-06-18 17:49:30,220 - INFO - Created VN ctest-ext_vn-17089285
2025-06-18 17:49:30,272 - DEBUG - VN ctest-ext_vn-17089285 UUID is c09fdc9e-f131-4292-9e4f-f1203305a2c8
2025-06-18 17:49:30,474 - DEBUG - Services list from nova: [, , ]
2025-06-18 17:49:31,483 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3479-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3479-1)
2025-06-18 17:49:32,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3479-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3479-1)
2025-06-18 17:49:32,731 - INFO - Setting gateway for router fae996ef-f0d5-4075-9f3b-6fc9d30e9b48 to network c09fdc9e-f131-4292-9e4f-f1203305a2c8
2025-06-18 17:49:32,838 - INFO - Adding interface with subnet_id 9c77a47a-9ca6-4c8b-a822-998604b382ea, port_id None to router fae996ef-f0d5-4075-9f3b-6fc9d30e9b48
2025-06-18 17:49:33,256 - INFO - Waiting for VM ctest-TestRoutersBasic-76045483-82195369 to be up..
2025-06-18 17:49:33,461 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-18 17:49:38,558 - DEBUG - VM is in ACTIVE state now
2025-06-18 17:49:38,558 - INFO - VM name : ctest-TestRoutersBasic-76045483-82195369
2025-06-18 17:49:38,642 - DEBUG - VM ctest-TestRoutersBasic-76045483-82195369 ID is 74896833-3c29-4108-9a63-690bf6eb47c6
2025-06-18 17:49:38,668 - DEBUG - VM ctest-TestRoutersBasic-76045483-82195369 launched on Node cn-jenkins-deploy-platform-ansible-os-3479-1.
2025-06-18 17:49:38,875 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/74896833-3c29-4108-9a63-690bf6eb47c6
2025-06-18 17:49:39,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/74896833-3c29-4108-9a63-690bf6eb47c6
2025-06-18 17:49:39,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b4b347b4-b4fa-4b48-b789-8b140b26b444
2025-06-18 17:49:42,485 - 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 1011ms')
2025-06-18 17:49:42,485 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76045483-82195369 failed!
2025-06-18 17:49:42,540 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-76045483:ctest-vn-13713443 is 86.62.154.1 and allocation pool is NOT set
2025-06-18 17:49:44,607 - 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=3.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.386 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.386/2.016/3.647/1.630 ms')
2025-06-18 17:49:44,607 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76045483-82195369 passed
2025-06-18 17:49:44,760 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-18 17:49:44,760 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76045483-82195369, IP 86.62.154.3, Port 22
2025-06-18 17:49:44,911 - DEBUG - VM ctest-TestRoutersBasic-76045483-82195369 is ready for SSH connections
2025-06-18 17:49:44,912 - INFO - Waiting for VM ctest-TestRoutersBasic-76045483-72066473 to be up..
2025-06-18 17:49:44,984 - DEBUG - VM is in ACTIVE state now
2025-06-18 17:49:44,984 - INFO - VM name : ctest-TestRoutersBasic-76045483-72066473
2025-06-18 17:49:45,062 - DEBUG - VM ctest-TestRoutersBasic-76045483-72066473 ID is 6d217f28-20c3-49d7-823d-8e69f9581eed
2025-06-18 17:49:45,063 - DEBUG - VM ctest-TestRoutersBasic-76045483-72066473 launched on Node cn-jenkins-deploy-platform-ansible-os-3479-1.
2025-06-18 17:49:45,141 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/6d217f28-20c3-49d7-823d-8e69f9581eed
2025-06-18 17:49:45,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/de235030-cad3-4ae8-9050-6b6c05928be5
2025-06-18 17:49:46,385 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.357 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 = 0.357/1.512/2.668/1.155 ms')
2025-06-18 17:49:46,385 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-76045483-72066473 passed
2025-06-18 17:49:46,536 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-18 17:49:46,536 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76045483-72066473, IP 115.212.42.67, Port 22
2025-06-18 17:49:46,691 - DEBUG - VM ctest-TestRoutersBasic-76045483-72066473 is ready for SSH connections
2025-06-18 17:49:46,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-18 17:49:46,691 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:49:46,692 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:49:51,411 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:49:51,411 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:49:52,412 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:49:52,412 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:49:55,608 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:49:55,608 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:49:56,610 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:49:56,610 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:49:59,813 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:49:59,813 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:00,814 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:00,814 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:04,028 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:04,028 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:05,029 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:05,029 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:08,241 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:08,241 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:09,242 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:09,242 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:12,459 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:12,459 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:13,459 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:13,460 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:16,686 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:16,686 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:17,687 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:17,687 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:20,894 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:20,894 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:21,894 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:21,895 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:25,104 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:25,104 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:26,104 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:26,104 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:29,321 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:29,321 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:30,322 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.212.42.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-18 17:50:30,322 - DEBUG - ping -s 56 -c 3 -W 1 115.212.42.67
2025-06-18 17:50:33,521 - DEBUG - PING 115.212.42.67 (115.212.42.67): 56 data bytes
--- 115.212.42.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-18 17:50:33,521 - WARNING - Ping to IP 115.212.42.67 from VM ctest-TestRoutersBasic-76045483-82195369 failed
2025-06-18 17:50:33,522 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-18 17:50:33,522 - INFO - Deleting interface with subnet_id 9c77a47a-9ca6-4c8b-a822-998604b382ea, port_id None from router fae996ef-f0d5-4075-9f3b-6fc9d30e9b48
2025-06-18 17:50:33,724 - INFO - Deleting VM ctest-TestRoutersBasic-76045483-72066473
2025-06-18 17:50:33,791 - INFO - Deleting VM ctest-TestRoutersBasic-76045483-82195369
2025-06-18 17:50:33,875 - INFO - Deleting VN ctest-ext_vn-17089285
2025-06-18 17:50:33,952 - DEBUG - VN c09fdc9e-f131-4292-9e4f-f1203305a2c8 still in use: Unable to complete operation on network c09fdc9e-f131-4292-9e4f-f1203305a2c8. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-5f7998f9-a029-4cdf-89ea-dcad61475035']
2025-06-18 17:50:33,952 - WARNING - Deleting VN ctest-ext_vn-17089285 failed..Will retry
2025-06-18 17:50:36,058 - DEBUG - Response for deleting network ()
2025-06-18 17:50:36,058 - INFO - Deleting VN ctest-vn-13713443
2025-06-18 17:50:36,164 - DEBUG - Response for deleting network ()
2025-06-18 17:50:36,415 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Wed Jun 18 17:50:33 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-76045483-82195369>>
vm2_fixture =
vm2_fixture.vm_ip = '115.212.42.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 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-18 17:50:36,420 - DEBUG - No XMPP flaps were noticed during the test
2025-06-18 17:50:36,420 - INFO -
2025-06-18 17:50:36,420 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-06-18 17:50:36,420 - INFO - --------------------------------------------------------------------------------
2025-06-18 17:50:37,092 - INFO - Deleted project: ctest-TestRoutersBasic-76045483, ID : 6e77e4d3-8712-498a-8100-c59ceb8ede69