2025-04-07 09:40:44,935 - INFO - Domain Default found not creating
2025-04-07 09:40:45,125 - INFO - Project ctest-TestRoutersBasic-61526967 not found, creating it
2025-04-07 09:40:45,651 - INFO - Created Project:ctest-TestRoutersBasic-61526967, ID : 335fcb6d-d61a-42fa-bb46-36f6b4a7ed80
2025-04-07 09:40:47,250 - INFO - ================================================================================
2025-04-07 09:40:47,250 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-04-07 09:40:47,250 - 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-04-07 09:40:47,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with
2025-04-07 09:40:47,507 - INFO - Initial checks done. Running the testcase now
2025-04-07 09:40:47,507 - INFO -
2025-04-07 09:40:48,267 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61526967
2025-04-07 09:40:48,364 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61526967
2025-04-07 09:40:48,716 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61526967', 'default']}
2025-04-07 09:40:49,047 - DEBUG - Response for create_network : {'network': {'id': '9a1e14b8-5a37-42fc-abb3-956b67ec4196', 'name': 'ctest-vn-72808866', 'tenant_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'project_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61526967', 'ctest-vn-72808866'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:40:49,256 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c287e3fa-4fc2-42e3-8d51-ef5d350ee55d', 'name': '', 'tenant_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'network_id': '9a1e14b8-5a37-42fc-abb3-956b67ec4196', 'ip_version': 4, 'cidr': '88.11.55.64/26', 'allocation_pools': [{'start': '88.11.55.66', 'end': '88.11.55.126'}], 'gateway_ip': '88.11.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.11.55.66', 'tags': [], 'project_id': '335fcb6dd61a42fabb4636f6b4a7ed80'}}
2025-04-07 09:40:49,283 - INFO - Created VN ctest-vn-72808866
2025-04-07 09:40:49,344 - DEBUG - VN ctest-vn-72808866 UUID is 9a1e14b8-5a37-42fc-abb3-956b67ec4196
2025-04-07 09:40:49,741 - DEBUG - Response for create_network : {'network': {'id': '41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace', 'name': 'ctest-ext_vn-81325058', 'tenant_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'project_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61526967', 'ctest-ext_vn-81325058'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:40:49,985 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f29c0692-6829-40a0-8bd7-75dfa9c0ae7c', 'name': '', 'tenant_id': '335fcb6dd61a42fabb4636f6b4a7ed80', 'network_id': '41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace', 'ip_version': 4, 'cidr': '14.117.163.0/26', 'allocation_pools': [{'start': '14.117.163.2', 'end': '14.117.163.62'}], 'gateway_ip': '14.117.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.117.163.2', 'tags': [], 'project_id': '335fcb6dd61a42fabb4636f6b4a7ed80'}}
2025-04-07 09:40:50,015 - INFO - Created VN ctest-ext_vn-81325058
2025-04-07 09:40:50,072 - DEBUG - VN ctest-ext_vn-81325058 UUID is 41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace
2025-04-07 09:40:50,274 - DEBUG - Services list from nova: [, , ]
2025-04-07 09:40:51,430 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3044-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3044-1)
2025-04-07 09:40:52,766 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3044-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3044-1)
2025-04-07 09:40:52,865 - INFO - Setting gateway for router 24847665-e222-42e2-acfa-c915ebacdd99 to network 41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace
2025-04-07 09:40:52,953 - INFO - Adding interface with subnet_id c287e3fa-4fc2-42e3-8d51-ef5d350ee55d, port_id None to router 24847665-e222-42e2-acfa-c915ebacdd99
2025-04-07 09:40:53,529 - INFO - Waiting for VM ctest-TestRoutersBasic-61526967-06450496 to be up..
2025-04-07 09:40:53,723 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-07 09:40:58,825 - DEBUG - VM is in ACTIVE state now
2025-04-07 09:40:58,826 - INFO - VM name : ctest-TestRoutersBasic-61526967-06450496
2025-04-07 09:40:58,929 - DEBUG - VM ctest-TestRoutersBasic-61526967-06450496 ID is e4754562-34ce-4d61-8c28-50700da0f82e
2025-04-07 09:40:58,957 - DEBUG - VM ctest-TestRoutersBasic-61526967-06450496 launched on Node cn-jenkins-deploy-platform-ansible-os-3044-1.
2025-04-07 09:40:59,082 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e4754562-34ce-4d61-8c28-50700da0f82e
2025-04-07 09:40:59,448 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e4754562-34ce-4d61-8c28-50700da0f82e
2025-04-07 09:40:59,484 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/86a0317c-6b41-4109-a850-db12dad8f39a
2025-04-07 09:41:02,763 - 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 1030ms')
2025-04-07 09:41:02,763 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61526967-06450496 failed!
2025-04-07 09:41:02,820 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61526967:ctest-vn-72808866 is 88.11.55.65 and allocation pool is NOT set
2025-04-07 09:41:04,882 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.56 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 = 2.555/3.481/4.408/0.926 ms')
2025-04-07 09:41:04,882 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61526967-06450496 passed
2025-04-07 09:41:05,000 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-07 09:41:05,000 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61526967-06450496, IP 88.11.55.67, Port 22
2025-04-07 09:41:05,164 - DEBUG - VM ctest-TestRoutersBasic-61526967-06450496 is ready for SSH connections
2025-04-07 09:41:05,164 - INFO - Waiting for VM ctest-TestRoutersBasic-61526967-97161366 to be up..
2025-04-07 09:41:05,276 - DEBUG - VM is in ACTIVE state now
2025-04-07 09:41:05,276 - INFO - VM name : ctest-TestRoutersBasic-61526967-97161366
2025-04-07 09:41:05,378 - DEBUG - VM ctest-TestRoutersBasic-61526967-97161366 ID is 3f8e8669-27b4-4efd-95a8-518d59abd3bc
2025-04-07 09:41:05,378 - DEBUG - VM ctest-TestRoutersBasic-61526967-97161366 launched on Node cn-jenkins-deploy-platform-ansible-os-3044-1.
2025-04-07 09:41:05,472 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/3f8e8669-27b4-4efd-95a8-518d59abd3bc
2025-04-07 09:41:05,481 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/b4cb9772-079c-4982-9a86-623238b79778
2025-04-07 09:41:06,738 - 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.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.601 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.601/1.962/3.324/1.361 ms')
2025-04-07 09:41:06,739 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61526967-97161366 passed
2025-04-07 09:41:06,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-07 09:41:06,896 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61526967-97161366, IP 14.117.163.3, Port 22
2025-04-07 09:41:07,056 - DEBUG - VM ctest-TestRoutersBasic-61526967-97161366 is ready for SSH connections
2025-04-07 09:41:07,056 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-07 09:41:07,056 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:07,056 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:11,867 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:11,867 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:12,869 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:12,869 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:16,092 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:16,092 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:17,094 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:17,094 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:20,331 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:20,332 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:21,333 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:21,333 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:24,594 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:24,594 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:25,595 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:25,595 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:28,813 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:28,813 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:29,814 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:29,814 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:33,036 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:33,036 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:34,037 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:34,037 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:37,257 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:37,257 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:38,258 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:38,258 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:41,477 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:41,477 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:42,478 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:42,478 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:45,701 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:45,701 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:46,702 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:46,702 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:49,937 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:49,937 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:50,938 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.117.163.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-04-07 09:41:50,938 - DEBUG - ping -s 56 -c 3 -W 1 14.117.163.3
2025-04-07 09:41:54,165 - DEBUG - PING 14.117.163.3 (14.117.163.3): 56 data bytes
--- 14.117.163.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-07 09:41:54,165 - WARNING - Ping to IP 14.117.163.3 from VM ctest-TestRoutersBasic-61526967-06450496 failed
2025-04-07 09:41:54,166 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-07 09:41:54,167 - INFO - Deleting interface with subnet_id c287e3fa-4fc2-42e3-8d51-ef5d350ee55d, port_id None from router 24847665-e222-42e2-acfa-c915ebacdd99
2025-04-07 09:41:54,431 - INFO - Deleting VM ctest-TestRoutersBasic-61526967-97161366
2025-04-07 09:41:54,510 - INFO - Deleting VM ctest-TestRoutersBasic-61526967-06450496
2025-04-07 09:41:54,611 - INFO - Deleting VN ctest-ext_vn-81325058
2025-04-07 09:41:54,703 - DEBUG - VN 41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace still in use: Unable to complete operation on network 41ccb9c8-59d1-4708-bef7-bb2e7f4b4ace. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-b0d77f22-6eb8-43fd-905b-ed5608c9385b']
2025-04-07 09:41:54,703 - WARNING - Deleting VN ctest-ext_vn-81325058 failed..Will retry
2025-04-07 09:41:56,844 - DEBUG - Response for deleting network ()
2025-04-07 09:41:56,844 - INFO - Deleting VN ctest-vn-72808866
2025-04-07 09:41:56,966 - DEBUG - Response for deleting network ()
2025-04-07 09:41:57,216 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Mon Apr 7 09:41:54 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-61526967-06450496>>
vm2_fixture =
vm2_fixture.vm_ip = '14.117.163.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-04-07 09:41:57,222 - DEBUG - No XMPP flaps were noticed during the test
2025-04-07 09:41:57,222 - INFO -
2025-04-07 09:41:57,222 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:10]
2025-04-07 09:41:57,222 - INFO - --------------------------------------------------------------------------------
2025-04-07 09:41:57,942 - INFO - Deleted project: ctest-TestRoutersBasic-61526967, ID : 335fcb6d-d61a-42fa-bb46-36f6b4a7ed80