2025-09-21 08:57:41,457 - INFO - Domain Default found not creating
2025-09-21 08:57:41,592 - INFO - Project ctest-TestRoutersBasic-49070651 not found, creating it
2025-09-21 08:57:42,038 - INFO - Created Project:ctest-TestRoutersBasic-49070651, ID : 311e5b4a-da94-423a-81df-1557e0ae3834
2025-09-21 08:57:43,402 - INFO - ================================================================================
2025-09-21 08:57:43,403 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-09-21 08:57:43,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-09-21 08:57:43,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-21 08:57:43,658 - INFO - Initial checks done. Running the testcase now
2025-09-21 08:57:43,658 - INFO -
2025-09-21 08:57:44,336 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-49070651
2025-09-21 08:57:44,429 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-49070651
2025-09-21 08:57:44,741 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49070651', 'default']}
2025-09-21 08:57:45,018 - DEBUG - Response for create_network : {'network': {'id': '428aabb1-8e29-4f89-a6e9-a049d160db55', 'name': 'ctest-vn-91673364', 'tenant_id': '311e5b4ada94423a81df1557e0ae3834', 'project_id': '311e5b4ada94423a81df1557e0ae3834', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49070651', 'ctest-vn-91673364'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:57:45,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '91009fa2-1e77-4c76-baf9-d1b1209e1c00', 'name': '', 'tenant_id': '311e5b4ada94423a81df1557e0ae3834', 'network_id': '428aabb1-8e29-4f89-a6e9-a049d160db55', 'ip_version': 4, 'cidr': '27.195.254.64/26', 'allocation_pools': [{'start': '27.195.254.66', 'end': '27.195.254.126'}], 'gateway_ip': '27.195.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.195.254.66', 'tags': [], 'project_id': '311e5b4ada94423a81df1557e0ae3834'}}
2025-09-21 08:57:45,231 - INFO - Created VN ctest-vn-91673364
2025-09-21 08:57:45,281 - DEBUG - VN ctest-vn-91673364 UUID is 428aabb1-8e29-4f89-a6e9-a049d160db55
2025-09-21 08:57:45,596 - DEBUG - Response for create_network : {'network': {'id': 'd2db97a5-4351-4b44-9ff9-b4b3d49149f9', 'name': 'ctest-ext_vn-67724453', 'tenant_id': '311e5b4ada94423a81df1557e0ae3834', 'project_id': '311e5b4ada94423a81df1557e0ae3834', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49070651', 'ctest-ext_vn-67724453'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:57:45,798 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8e136a5-07b9-4f53-904d-1220abf9c2fd', 'name': '', 'tenant_id': '311e5b4ada94423a81df1557e0ae3834', 'network_id': 'd2db97a5-4351-4b44-9ff9-b4b3d49149f9', 'ip_version': 4, 'cidr': '14.198.47.192/26', 'allocation_pools': [{'start': '14.198.47.194', 'end': '14.198.47.254'}], 'gateway_ip': '14.198.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.198.47.194', 'tags': [], 'project_id': '311e5b4ada94423a81df1557e0ae3834'}}
2025-09-21 08:57:45,818 - INFO - Created VN ctest-ext_vn-67724453
2025-09-21 08:57:45,877 - DEBUG - VN ctest-ext_vn-67724453 UUID is d2db97a5-4351-4b44-9ff9-b4b3d49149f9
2025-09-21 08:57:46,074 - DEBUG - Services list from nova: [, , ]
2025-09-21 08:57:47,077 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4156-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4156-1)
2025-09-21 08:57:48,213 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4156-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4156-1)
2025-09-21 08:57:48,314 - INFO - Setting gateway for router b2336a58-c442-4680-8f3d-45fb8fc243f3 to network d2db97a5-4351-4b44-9ff9-b4b3d49149f9
2025-09-21 08:57:48,386 - INFO - Adding interface with subnet_id 91009fa2-1e77-4c76-baf9-d1b1209e1c00, port_id None to router b2336a58-c442-4680-8f3d-45fb8fc243f3
2025-09-21 08:57:48,766 - INFO - Waiting for VM ctest-TestRoutersBasic-49070651-52971648 to be up..
2025-09-21 08:57:48,920 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-09-21 08:57:53,991 - DEBUG - VM is in ACTIVE state now
2025-09-21 08:57:53,991 - INFO - VM name : ctest-TestRoutersBasic-49070651-52971648
2025-09-21 08:57:54,056 - DEBUG - VM ctest-TestRoutersBasic-49070651-52971648 ID is 2acd0eaf-ab3c-4b75-8a09-765b616ae186
2025-09-21 08:57:54,075 - DEBUG - VM ctest-TestRoutersBasic-49070651-52971648 launched on Node cn-jenkins-deploy-platform-ansible-os-4156-1
2025-09-21 08:57:54,147 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2acd0eaf-ab3c-4b75-8a09-765b616ae186
2025-09-21 08:57:54,445 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2acd0eaf-ab3c-4b75-8a09-765b616ae186
2025-09-21 08:57:54,475 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/19d77c50-0fea-4c62-88df-169b943911f4
2025-09-21 08:57:57,734 - 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 1027ms')
2025-09-21 08:57:57,734 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49070651-52971648 failed!
2025-09-21 08:57:57,785 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-49070651:ctest-vn-91673364 is 27.195.254.65 and allocation pool is NOT set
2025-09-21 08:57:59,841 - 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.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.412 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.412/1.763/3.115/1.351 ms')
2025-09-21 08:57:59,841 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49070651-52971648 passed
2025-09-21 08:57:59,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-09-21 08:57:59,989 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49070651-52971648, IP 27.195.254.67, Port 22
2025-09-21 08:58:00,145 - DEBUG - VM ctest-TestRoutersBasic-49070651-52971648 is ready for SSH connections
2025-09-21 08:58:00,145 - INFO - Waiting for VM ctest-TestRoutersBasic-49070651-72774708 to be up..
2025-09-21 08:58:00,218 - DEBUG - VM is in ACTIVE state now
2025-09-21 08:58:00,218 - INFO - VM name : ctest-TestRoutersBasic-49070651-72774708
2025-09-21 08:58:00,287 - DEBUG - VM ctest-TestRoutersBasic-49070651-72774708 ID is abdac1f5-db91-43ab-9f3e-37263b12b79c
2025-09-21 08:58:00,287 - DEBUG - VM ctest-TestRoutersBasic-49070651-72774708 launched on Node cn-jenkins-deploy-platform-ansible-os-4156-1
2025-09-21 08:58:00,359 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/abdac1f5-db91-43ab-9f3e-37263b12b79c
2025-09-21 08:58:00,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e9643a33-07df-4288-8c06-bf2cf1dc181d
2025-09-21 08:58:01,604 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.349 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.349/1.529/2.709/1.180 ms')
2025-09-21 08:58:01,604 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-49070651-72774708 passed
2025-09-21 08:58:01,753 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-09-21 08:58:01,753 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49070651-72774708, IP 14.198.47.195, Port 22
2025-09-21 08:58:01,908 - DEBUG - VM ctest-TestRoutersBasic-49070651-72774708 is ready for SSH connections
2025-09-21 08:58:01,908 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-09-21 08:58:01,909 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:01,909 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:06,903 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:06,903 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:07,903 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:07,904 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:11,105 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:11,106 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:12,106 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:12,107 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:15,320 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:15,320 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:16,321 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:16,321 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:19,515 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:19,515 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:20,515 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:20,515 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:23,718 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:23,718 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:24,719 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:24,719 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:27,926 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:27,926 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:28,927 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:28,928 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:32,132 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:32,132 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:33,133 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:33,133 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:36,330 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:36,330 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:37,331 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:37,331 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:40,537 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:40,537 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:41,538 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:41,539 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:44,764 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:44,764 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:45,765 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.198.47.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-09-21 08:58:45,765 - DEBUG - ping -s 56 -c 3 -W 1 14.198.47.195
2025-09-21 08:58:48,971 - DEBUG - PING 14.198.47.195 (14.198.47.195): 56 data bytes
--- 14.198.47.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-09-21 08:58:48,971 - WARNING - Ping to IP 14.198.47.195 from VM ctest-TestRoutersBasic-49070651-52971648 failed
2025-09-21 08:58:48,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-09-21 08:58:48,975 - INFO - Deleting interface with subnet_id 91009fa2-1e77-4c76-baf9-d1b1209e1c00, port_id None from router b2336a58-c442-4680-8f3d-45fb8fc243f3
2025-09-21 08:58:49,148 - INFO - Deleting VM ctest-TestRoutersBasic-49070651-72774708
2025-09-21 08:58:49,211 - INFO - Deleting VM ctest-TestRoutersBasic-49070651-52971648
2025-09-21 08:58:49,290 - INFO - Deleting VN ctest-ext_vn-67724453
2025-09-21 08:58:49,346 - DEBUG - VN d2db97a5-4351-4b44-9ff9-b4b3d49149f9 still in use: Unable to complete operation on network d2db97a5-4351-4b44-9ff9-b4b3d49149f9. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-31b10e14-8fc6-4e97-aab3-d78c85c8db4d']
2025-09-21 08:58:49,346 - WARNING - Deleting VN ctest-ext_vn-67724453 failed..Will retry
2025-09-21 08:58:51,437 - DEBUG - Response for deleting network ()
2025-09-21 08:58:51,437 - INFO - Deleting VN ctest-vn-91673364
2025-09-21 08:58:51,536 - DEBUG - Response for deleting network ()
2025-09-21 08:58:51,785 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Sun Sep 21 08:58:48 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-49070651-52971648>>
vm2_fixture =
vm2_fixture.vm_ip = '14.198.47.195'
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-09-21 08:58:51,790 - DEBUG - No XMPP flaps were noticed during the test
2025-09-21 08:58:51,790 - INFO -
2025-09-21 08:58:51,790 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:08]
2025-09-21 08:58:51,790 - INFO - --------------------------------------------------------------------------------
2025-09-21 08:58:52,475 - INFO - Deleted project: ctest-TestRoutersBasic-49070651, ID : 311e5b4a-da94-423a-81df-1557e0ae3834