2025-06-04 22:10:43,447 - INFO - Domain Default found not creating
2025-06-04 22:10:43,626 - INFO - Project ctest-TestRoutersBasic-36362718 not found, creating it
2025-06-04 22:10:44,100 - INFO - Created Project:ctest-TestRoutersBasic-36362718, ID : 4e280ae1-de00-455f-94ef-85f25f38f5fd
2025-06-04 22:10:45,605 - INFO - ================================================================================
2025-06-04 22:10:45,605 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-04 22:10:45,606 - 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-04 22:10:45,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with
2025-06-04 22:10:45,870 - INFO - Initial checks done. Running the testcase now
2025-06-04 22:10:45,871 - INFO -
2025-06-04 22:10:46,636 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-36362718
2025-06-04 22:10:46,740 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-36362718
2025-06-04 22:10:47,076 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36362718', 'default']}
2025-06-04 22:10:47,386 - DEBUG - Response for create_network : {'network': {'id': '120a637c-4998-422e-a8e0-ae6f6b30e4e2', 'name': 'ctest-vn-14720040', 'tenant_id': '4e280ae1de00455f94ef85f25f38f5fd', 'project_id': '4e280ae1de00455f94ef85f25f38f5fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36362718', 'ctest-vn-14720040'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:10:47,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ffe6908-f15f-4e15-b439-a4b40c5147fd', 'name': '', 'tenant_id': '4e280ae1de00455f94ef85f25f38f5fd', 'network_id': '120a637c-4998-422e-a8e0-ae6f6b30e4e2', 'ip_version': 4, 'cidr': '100.210.86.192/26', 'allocation_pools': [{'start': '100.210.86.194', 'end': '100.210.86.254'}], 'gateway_ip': '100.210.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.210.86.194', 'tags': [], 'project_id': '4e280ae1de00455f94ef85f25f38f5fd'}}
2025-06-04 22:10:47,577 - INFO - Created VN ctest-vn-14720040
2025-06-04 22:10:47,628 - DEBUG - VN ctest-vn-14720040 UUID is 120a637c-4998-422e-a8e0-ae6f6b30e4e2
2025-06-04 22:10:47,966 - DEBUG - Response for create_network : {'network': {'id': '96be3a0a-d260-496c-9747-a784c131003d', 'name': 'ctest-ext_vn-97921578', 'tenant_id': '4e280ae1de00455f94ef85f25f38f5fd', 'project_id': '4e280ae1de00455f94ef85f25f38f5fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36362718', 'ctest-ext_vn-97921578'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:10:48,177 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b135b907-b5ee-41c8-a4f7-d868553a7193', 'name': '', 'tenant_id': '4e280ae1de00455f94ef85f25f38f5fd', 'network_id': '96be3a0a-d260-496c-9747-a784c131003d', 'ip_version': 4, 'cidr': '99.64.35.64/26', 'allocation_pools': [{'start': '99.64.35.66', 'end': '99.64.35.126'}], 'gateway_ip': '99.64.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.64.35.66', 'tags': [], 'project_id': '4e280ae1de00455f94ef85f25f38f5fd'}}
2025-06-04 22:10:48,200 - INFO - Created VN ctest-ext_vn-97921578
2025-06-04 22:10:48,256 - DEBUG - VN ctest-ext_vn-97921578 UUID is 96be3a0a-d260-496c-9747-a784c131003d
2025-06-04 22:10:48,423 - DEBUG - Services list from nova: [, , ]
2025-06-04 22:10:49,516 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3400-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3400-1)
2025-06-04 22:10:50,711 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3400-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3400-1)
2025-06-04 22:10:50,800 - INFO - Setting gateway for router 3dfa62e9-b1d3-4b99-b04b-756ce3636c93 to network 96be3a0a-d260-496c-9747-a784c131003d
2025-06-04 22:10:50,875 - INFO - Adding interface with subnet_id 2ffe6908-f15f-4e15-b439-a4b40c5147fd, port_id None to router 3dfa62e9-b1d3-4b99-b04b-756ce3636c93
2025-06-04 22:10:51,275 - INFO - Waiting for VM ctest-TestRoutersBasic-36362718-60996978 to be up..
2025-06-04 22:10:51,436 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-04 22:10:56,548 - DEBUG - VM is in ACTIVE state now
2025-06-04 22:10:56,549 - INFO - VM name : ctest-TestRoutersBasic-36362718-60996978
2025-06-04 22:10:56,644 - DEBUG - VM ctest-TestRoutersBasic-36362718-60996978 ID is 1ec29866-7a7e-4cec-905e-d077a49f55d8
2025-06-04 22:10:56,667 - DEBUG - VM ctest-TestRoutersBasic-36362718-60996978 launched on Node cn-jenkins-deploy-platform-ansible-os-3400-1.
2025-06-04 22:10:56,754 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/1ec29866-7a7e-4cec-905e-d077a49f55d8
2025-06-04 22:10:57,054 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/1ec29866-7a7e-4cec-905e-d077a49f55d8
2025-06-04 22:10:57,085 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/8c8091f5-3dc0-44ee-ad9b-a8b116f1332e
2025-06-04 22:11:00,332 - 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 1014ms')
2025-06-04 22:11:00,332 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36362718-60996978 failed!
2025-06-04 22:11:00,389 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-36362718:ctest-vn-14720040 is 100.210.86.193 and allocation pool is NOT set
2025-06-04 22:11:02,447 - 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.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.479 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.479/1.834/3.190/1.355 ms')
2025-06-04 22:11:02,447 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36362718-60996978 passed
2025-06-04 22:11:02,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-04 22:11:02,556 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36362718-60996978, IP 100.210.86.195, Port 22
2025-06-04 22:11:02,726 - DEBUG - VM ctest-TestRoutersBasic-36362718-60996978 is ready for SSH connections
2025-06-04 22:11:02,726 - INFO - Waiting for VM ctest-TestRoutersBasic-36362718-61306221 to be up..
2025-06-04 22:11:02,809 - DEBUG - VM is in ACTIVE state now
2025-06-04 22:11:02,810 - INFO - VM name : ctest-TestRoutersBasic-36362718-61306221
2025-06-04 22:11:02,893 - DEBUG - VM ctest-TestRoutersBasic-36362718-61306221 ID is b64dfbae-2496-4aa4-8d26-a0fc9adfbd76
2025-06-04 22:11:02,894 - DEBUG - VM ctest-TestRoutersBasic-36362718-61306221 launched on Node cn-jenkins-deploy-platform-ansible-os-3400-1.
2025-06-04 22:11:02,983 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/b64dfbae-2496-4aa4-8d26-a0fc9adfbd76
2025-06-04 22:11:02,993 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/15c88a13-0823-4c65-931d-2d3b233432f0
2025-06-04 22:11:04,244 - 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=3.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.517 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.517/2.032/3.547/1.515 ms')
2025-06-04 22:11:04,244 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-36362718-61306221 passed
2025-06-04 22:11:04,392 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-04 22:11:04,392 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36362718-61306221, IP 99.64.35.67, Port 22
2025-06-04 22:11:04,570 - DEBUG - VM ctest-TestRoutersBasic-36362718-61306221 is ready for SSH connections
2025-06-04 22:11:04,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-04 22:11:04,571 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:04,571 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:09,305 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:09,305 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:10,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:10,307 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:13,539 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:13,539 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:14,540 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:14,541 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:17,758 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:17,758 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:18,760 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:18,760 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:21,968 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:21,969 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:22,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:22,970 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:26,185 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:26,185 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:27,187 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:27,187 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:30,412 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:30,412 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:31,413 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:31,413 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:34,630 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:34,630 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:35,631 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:35,631 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:38,848 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:38,848 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:39,849 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:39,849 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:43,056 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:43,057 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:44,057 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:44,058 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:47,284 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:47,285 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:48,285 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.64.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-06-04 22:11:48,285 - DEBUG - ping -s 56 -c 3 -W 1 99.64.35.67
2025-06-04 22:11:51,505 - DEBUG - PING 99.64.35.67 (99.64.35.67): 56 data bytes
--- 99.64.35.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-04 22:11:51,506 - WARNING - Ping to IP 99.64.35.67 from VM ctest-TestRoutersBasic-36362718-60996978 failed
2025-06-04 22:11:51,507 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-04 22:11:51,507 - INFO - Deleting interface with subnet_id 2ffe6908-f15f-4e15-b439-a4b40c5147fd, port_id None from router 3dfa62e9-b1d3-4b99-b04b-756ce3636c93
2025-06-04 22:11:51,716 - INFO - Deleting VM ctest-TestRoutersBasic-36362718-61306221
2025-06-04 22:11:51,788 - INFO - Deleting VM ctest-TestRoutersBasic-36362718-60996978
2025-06-04 22:11:51,873 - INFO - Deleting VN ctest-ext_vn-97921578
2025-06-04 22:11:51,947 - DEBUG - VN 96be3a0a-d260-496c-9747-a784c131003d still in use: Unable to complete operation on network 96be3a0a-d260-496c-9747-a784c131003d. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-acd0ea2f-678f-48f2-8c46-38dd70a89e91']
2025-06-04 22:11:51,947 - WARNING - Deleting VN ctest-ext_vn-97921578 failed..Will retry
2025-06-04 22:11:54,045 - DEBUG - Response for deleting network ()
2025-06-04 22:11:54,045 - INFO - Deleting VN ctest-vn-14720040
2025-06-04 22:11:54,167 - DEBUG - Response for deleting network ()
2025-06-04 22:11:54,428 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Wed Jun 4 22:11:51 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-36362718-60996978>>
vm2_fixture =
vm2_fixture.vm_ip = '99.64.35.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-04 22:11:54,434 - DEBUG - No XMPP flaps were noticed during the test
2025-06-04 22:11:54,434 - INFO -
2025-06-04 22:11:54,435 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-06-04 22:11:54,435 - INFO - --------------------------------------------------------------------------------
2025-06-04 22:11:55,159 - INFO - Deleted project: ctest-TestRoutersBasic-36362718, ID : 4e280ae1-de00-455f-94ef-85f25f38f5fd