2025-06-02 09:56:26,572 - INFO - Domain Default found not creating
2025-06-02 09:56:26,739 - INFO - Project ctest-TestRoutersBasic-40715475 not found, creating it
2025-06-02 09:56:27,236 - INFO - Created Project:ctest-TestRoutersBasic-40715475, ID : 798f2e26-6959-4da1-bf4d-1c27d700ea1d
2025-06-02 09:56:28,847 - INFO - ================================================================================
2025-06-02 09:56:28,847 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-06-02 09:56:28,847 - 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-02 09:56:29,116 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-06-02 09:56:29,116 - INFO - Initial checks done. Running the testcase now
2025-06-02 09:56:29,116 - INFO -
2025-06-02 09:56:29,948 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40715475
2025-06-02 09:56:30,047 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40715475
2025-06-02 09:56:30,383 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40715475', 'default']}
2025-06-02 09:56:30,707 - DEBUG - Response for create_network : {'network': {'id': '790e89ae-7435-4fc5-a857-a62f1e2802ab', 'name': 'ctest-vn-42718314', 'tenant_id': '798f2e2669594da1bf4d1c27d700ea1d', 'project_id': '798f2e2669594da1bf4d1c27d700ea1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40715475', 'ctest-vn-42718314'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:56:30,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '00f1d768-8fdf-48a8-b15e-3a4f89ee62c9', 'name': '', 'tenant_id': '798f2e2669594da1bf4d1c27d700ea1d', 'network_id': '790e89ae-7435-4fc5-a857-a62f1e2802ab', 'ip_version': 4, 'cidr': '64.23.209.192/26', 'allocation_pools': [{'start': '64.23.209.194', 'end': '64.23.209.254'}], 'gateway_ip': '64.23.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.23.209.194', 'tags': [], 'project_id': '798f2e2669594da1bf4d1c27d700ea1d'}}
2025-06-02 09:56:30,910 - INFO - Created VN ctest-vn-42718314
2025-06-02 09:56:30,963 - DEBUG - VN ctest-vn-42718314 UUID is 790e89ae-7435-4fc5-a857-a62f1e2802ab
2025-06-02 09:56:31,449 - DEBUG - Response for create_network : {'network': {'id': '0d7e9626-8f6c-4718-a98e-add72afee645', 'name': 'ctest-ext_vn-35444254', 'tenant_id': '798f2e2669594da1bf4d1c27d700ea1d', 'project_id': '798f2e2669594da1bf4d1c27d700ea1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40715475', 'ctest-ext_vn-35444254'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:56:31,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ee9ae78-5d37-4179-9aef-8e5d01e00e2d', 'name': '', 'tenant_id': '798f2e2669594da1bf4d1c27d700ea1d', 'network_id': '0d7e9626-8f6c-4718-a98e-add72afee645', 'ip_version': 4, 'cidr': '132.187.229.0/26', 'allocation_pools': [{'start': '132.187.229.2', 'end': '132.187.229.62'}], 'gateway_ip': '132.187.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.187.229.2', 'tags': [], 'project_id': '798f2e2669594da1bf4d1c27d700ea1d'}}
2025-06-02 09:56:31,657 - INFO - Created VN ctest-ext_vn-35444254
2025-06-02 09:56:31,718 - DEBUG - VN ctest-ext_vn-35444254 UUID is 0d7e9626-8f6c-4718-a98e-add72afee645
2025-06-02 09:56:31,910 - DEBUG - Services list from nova: [, , ]
2025-06-02 09:56:33,045 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3388-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3388-1)
2025-06-02 09:56:34,409 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3388-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3388-1)
2025-06-02 09:56:34,500 - INFO - Setting gateway for router ea962df3-0d5b-40a2-8ad0-4f2390de0961 to network 0d7e9626-8f6c-4718-a98e-add72afee645
2025-06-02 09:56:34,594 - INFO - Adding interface with subnet_id 00f1d768-8fdf-48a8-b15e-3a4f89ee62c9, port_id None to router ea962df3-0d5b-40a2-8ad0-4f2390de0961
2025-06-02 09:56:35,017 - INFO - Waiting for VM ctest-TestRoutersBasic-40715475-92381313 to be up..
2025-06-02 09:56:35,244 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-06-02 09:56:40,349 - DEBUG - VM is in ACTIVE state now
2025-06-02 09:56:40,349 - INFO - VM name : ctest-TestRoutersBasic-40715475-92381313
2025-06-02 09:56:40,440 - DEBUG - VM ctest-TestRoutersBasic-40715475-92381313 ID is c94a59e7-2a90-4911-a0a2-4b0e968a0135
2025-06-02 09:56:40,461 - DEBUG - VM ctest-TestRoutersBasic-40715475-92381313 launched on Node cn-jenkins-deploy-platform-ansible-os-3388-1.
2025-06-02 09:56:40,578 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/c94a59e7-2a90-4911-a0a2-4b0e968a0135
2025-06-02 09:56:40,939 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/c94a59e7-2a90-4911-a0a2-4b0e968a0135
2025-06-02 09:56:40,976 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/97b381ac-1de0-45e2-a6bc-3a509220f88e
2025-06-02 09:56:44,277 - 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 1029ms')
2025-06-02 09:56:44,277 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40715475-92381313 failed!
2025-06-02 09:56:44,339 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40715475:ctest-vn-42718314 is 64.23.209.193 and allocation pool is NOT set
2025-06-02 09:56:46,400 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.883 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.883/2.166/3.449/1.283 ms')
2025-06-02 09:56:46,400 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40715475-92381313 passed
2025-06-02 09:56:46,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-02 09:56:46,555 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40715475-92381313, IP 64.23.209.195, Port 22
2025-06-02 09:56:46,728 - DEBUG - VM ctest-TestRoutersBasic-40715475-92381313 is ready for SSH connections
2025-06-02 09:56:46,728 - INFO - Waiting for VM ctest-TestRoutersBasic-40715475-02448952 to be up..
2025-06-02 09:56:46,845 - DEBUG - VM is in ACTIVE state now
2025-06-02 09:56:46,845 - INFO - VM name : ctest-TestRoutersBasic-40715475-02448952
2025-06-02 09:56:46,958 - DEBUG - VM ctest-TestRoutersBasic-40715475-02448952 ID is aaf93cbf-22df-4b6f-aa8b-45c23e662fce
2025-06-02 09:56:46,958 - DEBUG - VM ctest-TestRoutersBasic-40715475-02448952 launched on Node cn-jenkins-deploy-platform-ansible-os-3388-1.
2025-06-02 09:56:47,063 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/aaf93cbf-22df-4b6f-aa8b-45c23e662fce
2025-06-02 09:56:47,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/2a4b0905-6761-4207-a538-980bde8c73ea
2025-06-02 09:56:48,323 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.903 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.903/2.221/3.539/1.318 ms')
2025-06-02 09:56:48,323 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40715475-02448952 passed
2025-06-02 09:56:48,479 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-02 09:56:48,479 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40715475-02448952, IP 132.187.229.3, Port 22
2025-06-02 09:56:48,639 - DEBUG - VM ctest-TestRoutersBasic-40715475-02448952 is ready for SSH connections
2025-06-02 09:56:48,639 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-02 09:56:48,639 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:56:48,639 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:56:53,486 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:56:53,487 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:56:54,487 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:56:54,487 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:56:57,713 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:56:57,713 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:56:58,714 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:56:58,714 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:02,009 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:02,009 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:03,010 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:03,010 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:06,266 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:06,266 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:07,267 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:07,268 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:10,509 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:10,509 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:11,510 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:11,510 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:14,739 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:14,739 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:15,739 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:15,740 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:18,975 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:18,975 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:19,976 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:19,976 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:23,232 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:23,232 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:24,232 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:24,232 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:27,471 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:27,471 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:28,472 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:28,472 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:31,704 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:31,705 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:32,705 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.187.229.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-06-02 09:57:32,706 - DEBUG - ping -s 56 -c 3 -W 1 132.187.229.3
2025-06-02 09:57:35,971 - DEBUG - PING 132.187.229.3 (132.187.229.3): 56 data bytes
--- 132.187.229.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-06-02 09:57:35,971 - WARNING - Ping to IP 132.187.229.3 from VM ctest-TestRoutersBasic-40715475-92381313 failed
2025-06-02 09:57:35,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-06-02 09:57:35,973 - INFO - Deleting interface with subnet_id 00f1d768-8fdf-48a8-b15e-3a4f89ee62c9, port_id None from router ea962df3-0d5b-40a2-8ad0-4f2390de0961
2025-06-02 09:57:36,258 - INFO - Deleting VM ctest-TestRoutersBasic-40715475-02448952
2025-06-02 09:57:36,335 - INFO - Deleting VM ctest-TestRoutersBasic-40715475-92381313
2025-06-02 09:57:36,443 - INFO - Deleting VN ctest-ext_vn-35444254
2025-06-02 09:57:36,540 - DEBUG - VN 0d7e9626-8f6c-4718-a98e-add72afee645 still in use: Unable to complete operation on network 0d7e9626-8f6c-4718-a98e-add72afee645. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-2f855c19-fad2-4e06-bf39-8ec9fa00f27e']
2025-06-02 09:57:36,541 - WARNING - Deleting VN ctest-ext_vn-35444254 failed..Will retry
2025-06-02 09:57:38,677 - DEBUG - Response for deleting network ()
2025-06-02 09:57:38,677 - INFO - Deleting VN ctest-vn-42718314
2025-06-02 09:57:38,827 - DEBUG - Response for deleting network ()
2025-06-02 09:57:39,096 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Mon Jun 2 09:57:35 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-40715475-92381313>>
vm2_fixture =
vm2_fixture.vm_ip = '132.187.229.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-02 09:57:39,103 - DEBUG - No XMPP flaps were noticed during the test
2025-06-02 09:57:39,103 - INFO -
2025-06-02 09:57:39,104 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:11]
2025-06-02 09:57:39,104 - INFO - --------------------------------------------------------------------------------
2025-06-02 09:57:39,861 - INFO - Deleted project: ctest-TestRoutersBasic-40715475, ID : 798f2e26-6959-4da1-bf4d-1c27d700ea1d