2025-06-09 15:03:41,751 - INFO - Domain Default found not creating
2025-06-09 15:03:41,908 - INFO - Project ctest-TestRoutersBasic-40460762 not found, creating it
2025-06-09 15:03:42,401 - INFO - Created Project:ctest-TestRoutersBasic-40460762, ID : d4f05e54-f450-4837-86b2-9533958e5b1b
2025-06-09 15:03:44,481 - INFO - ================================================================================
2025-06-09 15:03:44,481 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-09 15:03:44,482 - 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-09 15:03:44,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-06-09 15:03:44,740 - INFO - Initial checks done. Running the testcase now
2025-06-09 15:03:44,740 - INFO -
2025-06-09 15:03:45,405 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40460762
2025-06-09 15:03:45,499 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40460762
2025-06-09 15:03:45,815 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40460762', 'default']}
2025-06-09 15:03:46,108 - DEBUG - Response for create_network : {'network': {'id': 'b4abe6d7-5d63-42c6-b6c5-0c75ccecec69', 'name': 'ctest-vn-70169834', 'tenant_id': 'd4f05e54f450483786b29533958e5b1b', 'project_id': 'd4f05e54f450483786b29533958e5b1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40460762', 'ctest-vn-70169834'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:03:46,314 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e8efd6a-7181-43bc-8cf4-e55646ffc093', 'name': '', 'tenant_id': 'd4f05e54f450483786b29533958e5b1b', 'network_id': 'b4abe6d7-5d63-42c6-b6c5-0c75ccecec69', 'ip_version': 4, 'cidr': '163.3.134.64/26', 'allocation_pools': [{'start': '163.3.134.66', 'end': '163.3.134.126'}], 'gateway_ip': '163.3.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.3.134.66', 'tags': [], 'project_id': 'd4f05e54f450483786b29533958e5b1b'}}
2025-06-09 15:03:46,451 - INFO - Created VN ctest-vn-70169834
2025-06-09 15:03:46,503 - DEBUG - VN ctest-vn-70169834 UUID is b4abe6d7-5d63-42c6-b6c5-0c75ccecec69
2025-06-09 15:03:46,853 - DEBUG - Response for create_network : {'network': {'id': 'e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec', 'name': 'ctest-ext_vn-11614947', 'tenant_id': 'd4f05e54f450483786b29533958e5b1b', 'project_id': 'd4f05e54f450483786b29533958e5b1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40460762', 'ctest-ext_vn-11614947'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 15:03:47,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d0038ef-2ff3-4ab6-99d5-7b7fef33e3ef', 'name': '', 'tenant_id': 'd4f05e54f450483786b29533958e5b1b', 'network_id': 'e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec', 'ip_version': 4, 'cidr': '124.168.6.128/26', 'allocation_pools': [{'start': '124.168.6.130', 'end': '124.168.6.190'}], 'gateway_ip': '124.168.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.168.6.130', 'tags': [], 'project_id': 'd4f05e54f450483786b29533958e5b1b'}}
2025-06-09 15:03:47,025 - INFO - Created VN ctest-ext_vn-11614947
2025-06-09 15:03:47,079 - DEBUG - VN ctest-ext_vn-11614947 UUID is e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec
2025-06-09 15:03:47,287 - DEBUG - Services list from nova: [, , ]
2025-06-09 15:03:48,327 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3425-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3425-1)
2025-06-09 15:03:49,490 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3425-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3425-1)
2025-06-09 15:03:49,553 - INFO - Setting gateway for router ba3d2912-ac2f-4d9c-bf30-2d5e26c4cb38 to network e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec
2025-06-09 15:03:49,618 - INFO - Adding interface with subnet_id 2e8efd6a-7181-43bc-8cf4-e55646ffc093, port_id None to router ba3d2912-ac2f-4d9c-bf30-2d5e26c4cb38
2025-06-09 15:03:49,971 - INFO - Waiting for VM ctest-TestRoutersBasic-40460762-42896720 to be up..
2025-06-09 15:03:50,114 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-09 15:03:55,195 - DEBUG - VM is in ACTIVE state now
2025-06-09 15:03:55,195 - INFO - VM name : ctest-TestRoutersBasic-40460762-42896720
2025-06-09 15:03:55,271 - DEBUG - VM ctest-TestRoutersBasic-40460762-42896720 ID is 205dfd30-870b-4830-8da8-f780cb00edc1
2025-06-09 15:03:55,295 - DEBUG - VM ctest-TestRoutersBasic-40460762-42896720 launched on Node cn-jenkins-deploy-platform-ansible-os-3425-1.
2025-06-09 15:03:55,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/205dfd30-870b-4830-8da8-f780cb00edc1
2025-06-09 15:03:55,691 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/205dfd30-870b-4830-8da8-f780cb00edc1
2025-06-09 15:03:55,723 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a43f889d-276f-4d4d-a5ff-111ad26a2792
2025-06-09 15:03:58,984 - 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 1022ms')
2025-06-09 15:03:58,984 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40460762-42896720 failed!
2025-06-09 15:03:59,039 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40460762:ctest-vn-70169834 is 163.3.134.65 and allocation pool is NOT set
2025-06-09 15:04:01,097 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.510 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.510/2.606/4.702/2.096 ms')
2025-06-09 15:04:01,097 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40460762-42896720 passed
2025-06-09 15:04:01,247 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-09 15:04:01,247 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40460762-42896720, IP 163.3.134.67, Port 22
2025-06-09 15:04:01,414 - DEBUG - VM ctest-TestRoutersBasic-40460762-42896720 is ready for SSH connections
2025-06-09 15:04:01,414 - INFO - Waiting for VM ctest-TestRoutersBasic-40460762-68712063 to be up..
2025-06-09 15:04:01,501 - DEBUG - VM is in ACTIVE state now
2025-06-09 15:04:01,501 - INFO - VM name : ctest-TestRoutersBasic-40460762-68712063
2025-06-09 15:04:01,577 - DEBUG - VM ctest-TestRoutersBasic-40460762-68712063 ID is 0b385f65-4833-495f-9b4d-0bfd630fe075
2025-06-09 15:04:01,577 - DEBUG - VM ctest-TestRoutersBasic-40460762-68712063 launched on Node cn-jenkins-deploy-platform-ansible-os-3425-1.
2025-06-09 15:04:01,666 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0b385f65-4833-495f-9b4d-0bfd630fe075
2025-06-09 15:04:01,693 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/c92da736-4c10-4d17-bb1b-faba25abf171
2025-06-09 15:04:02,941 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.812 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.812/3.012/5.213/2.200 ms')
2025-06-09 15:04:02,941 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40460762-68712063 passed
2025-06-09 15:04:03,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-09 15:04:03,091 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40460762-68712063, IP 124.168.6.131, Port 22
2025-06-09 15:04:03,247 - DEBUG - VM ctest-TestRoutersBasic-40460762-68712063 is ready for SSH connections
2025-06-09 15:04:03,247 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-09 15:04:03,247 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:03,247 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:07,966 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:07,966 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:08,967 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:08,967 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:12,175 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:12,175 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:13,176 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:13,176 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:16,381 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:16,381 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:17,382 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:17,382 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:20,587 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:20,587 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:21,587 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:21,588 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:24,801 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:24,801 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:25,802 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:25,802 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:29,012 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:29,012 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:30,013 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:30,014 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:33,223 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:33,224 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:34,225 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:34,225 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:37,435 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:37,435 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:38,436 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:38,436 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:41,644 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:41,644 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:42,645 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:42,646 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:45,849 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:45,850 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:46,850 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.6.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-06-09 15:04:46,851 - DEBUG - ping -s 56 -c 3 -W 1 124.168.6.131
2025-06-09 15:04:50,059 - DEBUG - PING 124.168.6.131 (124.168.6.131): 56 data bytes
--- 124.168.6.131 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-09 15:04:50,059 - WARNING - Ping to IP 124.168.6.131 from VM ctest-TestRoutersBasic-40460762-42896720 failed
2025-06-09 15:04:50,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-09 15:04:50,060 - INFO - Deleting interface with subnet_id 2e8efd6a-7181-43bc-8cf4-e55646ffc093, port_id None from router ba3d2912-ac2f-4d9c-bf30-2d5e26c4cb38
2025-06-09 15:04:50,262 - INFO - Deleting VM ctest-TestRoutersBasic-40460762-68712063
2025-06-09 15:04:50,337 - INFO - Deleting VM ctest-TestRoutersBasic-40460762-42896720
2025-06-09 15:04:50,428 - INFO - Deleting VN ctest-ext_vn-11614947
2025-06-09 15:04:50,501 - DEBUG - VN e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec still in use: Unable to complete operation on network e37a0e88-db85-43b8-a7a6-ffd7ab6cd9ec. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-b133fa8b-be9c-4f7e-8001-eeb1d20f7e3e']
2025-06-09 15:04:50,501 - WARNING - Deleting VN ctest-ext_vn-11614947 failed..Will retry
2025-06-09 15:04:52,612 - DEBUG - Response for deleting network ()
2025-06-09 15:04:52,612 - INFO - Deleting VN ctest-vn-70169834
2025-06-09 15:04:52,716 - DEBUG - Response for deleting network ()
2025-06-09 15:04:52,963 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Mon Jun 9 15:04:50 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-40460762-42896720>>
vm2_fixture =
vm2_fixture.vm_ip = '124.168.6.131'
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-09 15:04:52,968 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 15:04:52,968 - INFO -
2025-06-09 15:04:52,969 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:08]
2025-06-09 15:04:52,969 - INFO - --------------------------------------------------------------------------------
2025-06-09 15:04:53,651 - INFO - Deleted project: ctest-TestRoutersBasic-40460762, ID : d4f05e54-f450-4837-86b2-9533958e5b1b