2025-06-03 12:45:22,046 - INFO - Domain Default found not creating
2025-06-03 12:45:22,207 - INFO - Project ctest-TestRoutersBasic-25003878 not found, creating it
2025-06-03 12:45:22,664 - INFO - Created Project:ctest-TestRoutersBasic-25003878, ID : 758e0d6f-6c44-4047-810e-4c44ad508ee5
2025-06-03 12:45:24,223 - INFO - ================================================================================
2025-06-03 12:45:24,223 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-03 12:45:24,223 - 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-03 12:45:24,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-06-03 12:45:24,482 - INFO - Initial checks done. Running the testcase now
2025-06-03 12:45:24,482 - INFO -
2025-06-03 12:45:25,262 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25003878
2025-06-03 12:45:25,363 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25003878
2025-06-03 12:45:25,695 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25003878', 'default']}
2025-06-03 12:45:25,988 - DEBUG - Response for create_network : {'network': {'id': '6b1481aa-58ca-4453-b51b-e65b2db7f0f5', 'name': 'ctest-vn-85866947', 'tenant_id': '758e0d6f6c444047810e4c44ad508ee5', 'project_id': '758e0d6f6c444047810e4c44ad508ee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25003878', 'ctest-vn-85866947'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:45:26,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '1298dc39-400e-45f1-ac78-b0f9fde08401', 'name': '', 'tenant_id': '758e0d6f6c444047810e4c44ad508ee5', 'network_id': '6b1481aa-58ca-4453-b51b-e65b2db7f0f5', 'ip_version': 4, 'cidr': '218.49.220.128/26', 'allocation_pools': [{'start': '218.49.220.130', 'end': '218.49.220.190'}], 'gateway_ip': '218.49.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.49.220.130', 'tags': [], 'project_id': '758e0d6f6c444047810e4c44ad508ee5'}}
2025-06-03 12:45:26,217 - INFO - Created VN ctest-vn-85866947
2025-06-03 12:45:26,271 - DEBUG - VN ctest-vn-85866947 UUID is 6b1481aa-58ca-4453-b51b-e65b2db7f0f5
2025-06-03 12:45:26,619 - DEBUG - Response for create_network : {'network': {'id': '07d6ae6a-963d-4996-bd32-a44c80054d65', 'name': 'ctest-ext_vn-90852920', 'tenant_id': '758e0d6f6c444047810e4c44ad508ee5', 'project_id': '758e0d6f6c444047810e4c44ad508ee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25003878', 'ctest-ext_vn-90852920'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 12:45:26,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '9301293d-52ed-4995-a2d6-efbca11115d6', 'name': '', 'tenant_id': '758e0d6f6c444047810e4c44ad508ee5', 'network_id': '07d6ae6a-963d-4996-bd32-a44c80054d65', 'ip_version': 4, 'cidr': '135.146.244.0/26', 'allocation_pools': [{'start': '135.146.244.2', 'end': '135.146.244.62'}], 'gateway_ip': '135.146.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.146.244.2', 'tags': [], 'project_id': '758e0d6f6c444047810e4c44ad508ee5'}}
2025-06-03 12:45:26,870 - INFO - Created VN ctest-ext_vn-90852920
2025-06-03 12:45:26,923 - DEBUG - VN ctest-ext_vn-90852920 UUID is 07d6ae6a-963d-4996-bd32-a44c80054d65
2025-06-03 12:45:27,100 - DEBUG - Services list from nova: [, , ]
2025-06-03 12:45:28,198 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3394-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3394-1)
2025-06-03 12:45:29,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3394-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3394-1)
2025-06-03 12:45:29,585 - INFO - Setting gateway for router 84f72cfa-fe6e-4eb0-8c26-d185e9af7646 to network 07d6ae6a-963d-4996-bd32-a44c80054d65
2025-06-03 12:45:29,670 - INFO - Adding interface with subnet_id 1298dc39-400e-45f1-ac78-b0f9fde08401, port_id None to router 84f72cfa-fe6e-4eb0-8c26-d185e9af7646
2025-06-03 12:45:30,138 - INFO - Waiting for VM ctest-TestRoutersBasic-25003878-47153881 to be up..
2025-06-03 12:45:30,365 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-03 12:45:35,451 - DEBUG - VM is in ACTIVE state now
2025-06-03 12:45:35,451 - INFO - VM name : ctest-TestRoutersBasic-25003878-47153881
2025-06-03 12:45:35,549 - DEBUG - VM ctest-TestRoutersBasic-25003878-47153881 ID is f0406b5e-4d8c-4ca1-9989-94792c5d8c65
2025-06-03 12:45:35,573 - DEBUG - VM ctest-TestRoutersBasic-25003878-47153881 launched on Node cn-jenkins-deploy-platform-ansible-os-3394-1.
2025-06-03 12:45:35,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f0406b5e-4d8c-4ca1-9989-94792c5d8c65
2025-06-03 12:45:35,988 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f0406b5e-4d8c-4ca1-9989-94792c5d8c65
2025-06-03 12:45:36,020 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/4c165373-4616-4a39-ae12-f02d2300af8e
2025-06-03 12:45:39,285 - 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 1025ms')
2025-06-03 12:45:39,285 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25003878-47153881 failed!
2025-06-03 12:45:39,343 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25003878:ctest-vn-85866947 is 218.49.220.129 and allocation pool is NOT set
2025-06-03 12:45:41,401 - 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.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.676 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.676/2.445/4.214/1.769 ms')
2025-06-03 12:45:41,401 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25003878-47153881 passed
2025-06-03 12:45:41,551 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-03 12:45:41,551 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25003878-47153881, IP 218.49.220.131, Port 22
2025-06-03 12:45:41,720 - DEBUG - VM ctest-TestRoutersBasic-25003878-47153881 is ready for SSH connections
2025-06-03 12:45:41,721 - INFO - Waiting for VM ctest-TestRoutersBasic-25003878-30239846 to be up..
2025-06-03 12:45:41,800 - DEBUG - VM is in ACTIVE state now
2025-06-03 12:45:41,800 - INFO - VM name : ctest-TestRoutersBasic-25003878-30239846
2025-06-03 12:45:41,882 - DEBUG - VM ctest-TestRoutersBasic-25003878-30239846 ID is de6d3816-44a7-40a9-984b-ac84a4b018ae
2025-06-03 12:45:41,882 - DEBUG - VM ctest-TestRoutersBasic-25003878-30239846 launched on Node cn-jenkins-deploy-platform-ansible-os-3394-1.
2025-06-03 12:45:41,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/de6d3816-44a7-40a9-984b-ac84a4b018ae
2025-06-03 12:45:41,980 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7d41be59-c26c-416f-9f8c-77a6fc7fda07
2025-06-03 12:45:43,229 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.550 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.550/2.350/4.150/1.800 ms')
2025-06-03 12:45:43,229 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25003878-30239846 passed
2025-06-03 12:45:43,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-03 12:45:43,391 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25003878-30239846, IP 135.146.244.3, Port 22
2025-06-03 12:45:43,561 - DEBUG - VM ctest-TestRoutersBasic-25003878-30239846 is ready for SSH connections
2025-06-03 12:45:43,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-03 12:45:43,561 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:45:43,561 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:45:48,321 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:45:48,321 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:45:49,321 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:45:49,322 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:45:52,558 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:45:52,558 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:45:53,558 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:45:53,559 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:45:56,785 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:45:56,785 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:45:57,786 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:45:57,786 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:01,043 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:01,043 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:02,044 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:02,045 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:05,268 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:05,269 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:06,269 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:06,270 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:09,528 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:09,528 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:10,529 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:10,529 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:13,748 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:13,748 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:14,749 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:14,749 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:17,992 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:17,992 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:18,994 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:18,994 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:22,221 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:22,222 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:23,222 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:23,222 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:26,441 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:26,442 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:27,443 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.146.244.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123
2025-06-03 12:46:27,443 - DEBUG - ping -s 56 -c 3 -W 1 135.146.244.3
2025-06-03 12:46:30,669 - DEBUG - PING 135.146.244.3 (135.146.244.3): 56 data bytes
--- 135.146.244.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-03 12:46:30,669 - WARNING - Ping to IP 135.146.244.3 from VM ctest-TestRoutersBasic-25003878-47153881 failed
2025-06-03 12:46:30,670 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-03 12:46:30,671 - INFO - Deleting interface with subnet_id 1298dc39-400e-45f1-ac78-b0f9fde08401, port_id None from router 84f72cfa-fe6e-4eb0-8c26-d185e9af7646
2025-06-03 12:46:30,956 - INFO - Deleting VM ctest-TestRoutersBasic-25003878-30239846
2025-06-03 12:46:31,073 - INFO - Deleting VM ctest-TestRoutersBasic-25003878-47153881
2025-06-03 12:46:31,164 - INFO - Deleting VN ctest-ext_vn-90852920
2025-06-03 12:46:31,226 - DEBUG - VN 07d6ae6a-963d-4996-bd32-a44c80054d65 still in use: Unable to complete operation on network 07d6ae6a-963d-4996-bd32-a44c80054d65. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-e1e8adce-2e9c-4836-a353-32d67ccde844']
2025-06-03 12:46:31,226 - WARNING - Deleting VN ctest-ext_vn-90852920 failed..Will retry
2025-06-03 12:46:33,344 - DEBUG - Response for deleting network ()
2025-06-03 12:46:33,344 - INFO - Deleting VN ctest-vn-85866947
2025-06-03 12:46:33,461 - DEBUG - Response for deleting network ()
2025-06-03 12:46:33,710 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Tue Jun 3 12:46:30 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-25003878-47153881>>
vm2_fixture =
vm2_fixture.vm_ip = '135.146.244.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-03 12:46:33,716 - DEBUG - No XMPP flaps were noticed during the test
2025-06-03 12:46:33,716 - INFO -
2025-06-03 12:46:33,716 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-06-03 12:46:33,717 - INFO - --------------------------------------------------------------------------------
2025-06-03 12:46:34,459 - INFO - Deleted project: ctest-TestRoutersBasic-25003878, ID : 758e0d6f-6c44-4047-810e-4c44ad508ee5