2025-04-18 14:20:56,759 - INFO - Domain Default found not creating
2025-04-18 14:20:56,936 - INFO - Project ctest-TestRoutersBasic-08920170 not found, creating it
2025-04-18 14:20:57,449 - INFO - Created Project:ctest-TestRoutersBasic-08920170, ID : 65c965a1-3cf8-44f3-9456-6da7569255ba
2025-04-18 14:20:58,984 - INFO - ================================================================================
2025-04-18 14:20:58,984 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-04-18 14:20:58,984 - 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-18 14:20:59,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-04-18 14:20:59,238 - INFO - Initial checks done. Running the testcase now
2025-04-18 14:20:59,238 - INFO -
2025-04-18 14:20:59,961 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-08920170
2025-04-18 14:21:00,061 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-08920170
2025-04-18 14:21:00,392 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08920170', 'default']}
2025-04-18 14:21:00,710 - DEBUG - Response for create_network : {'network': {'id': 'c0133e73-7de4-44d3-bd08-efc8f8a62499', 'name': 'ctest-vn-04495313', 'tenant_id': '65c965a13cf844f394566da7569255ba', 'project_id': '65c965a13cf844f394566da7569255ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08920170', 'ctest-vn-04495313'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:21:01,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '56a296d2-21ec-43e8-91d4-9dde0ff1ec28', 'name': '', 'tenant_id': '65c965a13cf844f394566da7569255ba', 'network_id': 'c0133e73-7de4-44d3-bd08-efc8f8a62499', 'ip_version': 4, 'cidr': '23.7.245.128/26', 'allocation_pools': [{'start': '23.7.245.130', 'end': '23.7.245.190'}], 'gateway_ip': '23.7.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.7.245.130', 'tags': [], 'project_id': '65c965a13cf844f394566da7569255ba'}}
2025-04-18 14:21:01,080 - INFO - Created VN ctest-vn-04495313
2025-04-18 14:21:01,132 - DEBUG - VN ctest-vn-04495313 UUID is c0133e73-7de4-44d3-bd08-efc8f8a62499
2025-04-18 14:21:01,459 - DEBUG - Response for create_network : {'network': {'id': '10b118ea-414d-4505-821a-8cf62bd5f5f7', 'name': 'ctest-ext_vn-84647909', 'tenant_id': '65c965a13cf844f394566da7569255ba', 'project_id': '65c965a13cf844f394566da7569255ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08920170', 'ctest-ext_vn-84647909'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:21:01,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e6126e9-4698-4739-82dd-5890cfb2046f', 'name': '', 'tenant_id': '65c965a13cf844f394566da7569255ba', 'network_id': '10b118ea-414d-4505-821a-8cf62bd5f5f7', 'ip_version': 4, 'cidr': '113.60.144.192/26', 'allocation_pools': [{'start': '113.60.144.194', 'end': '113.60.144.254'}], 'gateway_ip': '113.60.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.60.144.194', 'tags': [], 'project_id': '65c965a13cf844f394566da7569255ba'}}
2025-04-18 14:21:01,692 - INFO - Created VN ctest-ext_vn-84647909
2025-04-18 14:21:01,749 - DEBUG - VN ctest-ext_vn-84647909 UUID is 10b118ea-414d-4505-821a-8cf62bd5f5f7
2025-04-18 14:21:01,930 - DEBUG - Services list from nova: [, , ]
2025-04-18 14:21:03,075 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3140-1)
2025-04-18 14:21:04,410 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3140-1)
2025-04-18 14:21:04,496 - INFO - Setting gateway for router 462d5e24-b46d-405f-abf3-22c32f63a6de to network 10b118ea-414d-4505-821a-8cf62bd5f5f7
2025-04-18 14:21:04,593 - INFO - Adding interface with subnet_id 56a296d2-21ec-43e8-91d4-9dde0ff1ec28, port_id None to router 462d5e24-b46d-405f-abf3-22c32f63a6de
2025-04-18 14:21:05,000 - INFO - Waiting for VM ctest-TestRoutersBasic-08920170-40301455 to be up..
2025-04-18 14:21:05,195 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-18 14:21:10,286 - DEBUG - VM is in ACTIVE state now
2025-04-18 14:21:10,286 - INFO - VM name : ctest-TestRoutersBasic-08920170-40301455
2025-04-18 14:21:10,380 - DEBUG - VM ctest-TestRoutersBasic-08920170-40301455 ID is e191fe91-66ea-45fa-a2c4-40839242560d
2025-04-18 14:21:10,405 - DEBUG - VM ctest-TestRoutersBasic-08920170-40301455 launched on Node cn-jenkins-deploy-platform-ansible-os-3140-1.
2025-04-18 14:21:10,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e191fe91-66ea-45fa-a2c4-40839242560d
2025-04-18 14:21:10,808 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e191fe91-66ea-45fa-a2c4-40839242560d
2025-04-18 14:21:10,843 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e9623d7f-bd0c-4599-88d6-47004bbe3296
2025-04-18 14:21:14,109 - 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-18 14:21:14,110 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08920170-40301455 failed!
2025-04-18 14:21:14,165 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-08920170:ctest-vn-04495313 is 23.7.245.129 and allocation pool is NOT set
2025-04-18 14:21:16,227 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.539 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.539/1.957/3.376/1.418 ms')
2025-04-18 14:21:16,227 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08920170-40301455 passed
2025-04-18 14:21:16,353 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-18 14:21:16,353 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08920170-40301455, IP 23.7.245.131, Port 22
2025-04-18 14:21:16,512 - DEBUG - VM ctest-TestRoutersBasic-08920170-40301455 is ready for SSH connections
2025-04-18 14:21:16,513 - INFO - Waiting for VM ctest-TestRoutersBasic-08920170-38044010 to be up..
2025-04-18 14:21:16,606 - DEBUG - VM is in ACTIVE state now
2025-04-18 14:21:16,607 - INFO - VM name : ctest-TestRoutersBasic-08920170-38044010
2025-04-18 14:21:16,715 - DEBUG - VM ctest-TestRoutersBasic-08920170-38044010 ID is 78ad7cf3-71cb-4c26-8adc-fae694ff4382
2025-04-18 14:21:16,716 - DEBUG - VM ctest-TestRoutersBasic-08920170-38044010 launched on Node cn-jenkins-deploy-platform-ansible-os-3140-1.
2025-04-18 14:21:16,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/78ad7cf3-71cb-4c26-8adc-fae694ff4382
2025-04-18 14:21:16,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/1dd67f81-2d01-4c54-b6f5-33b4bdea45ff
2025-04-18 14:21:18,067 - 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=5.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.56 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 = 1.557/3.330/5.104/1.773 ms')
2025-04-18 14:21:18,067 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-08920170-38044010 passed
2025-04-18 14:21:18,224 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-18 14:21:18,225 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08920170-38044010, IP 113.60.144.195, Port 22
2025-04-18 14:21:18,384 - DEBUG - VM ctest-TestRoutersBasic-08920170-38044010 is ready for SSH connections
2025-04-18 14:21:18,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-18 14:21:18,384 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:18,384 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:23,218 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:23,219 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:24,220 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:24,220 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:27,431 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:27,431 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:28,432 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:28,432 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:31,649 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:31,650 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:32,651 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:32,651 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:35,883 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:35,883 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:36,884 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:36,884 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:40,102 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:40,103 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:41,104 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:41,104 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:44,324 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:44,324 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:45,325 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:45,325 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:48,542 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:48,542 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:49,543 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:49,544 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:52,770 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:52,770 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:53,772 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:53,772 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:21:57,066 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:21:57,066 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:21:58,067 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:21:58,067 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:22:01,300 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:22:01,300 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:22:02,300 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.60.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123
2025-04-18 14:22:02,300 - DEBUG - ping -s 56 -c 3 -W 1 113.60.144.195
2025-04-18 14:22:05,525 - DEBUG - PING 113.60.144.195 (113.60.144.195): 56 data bytes
--- 113.60.144.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-18 14:22:05,525 - WARNING - Ping to IP 113.60.144.195 from VM ctest-TestRoutersBasic-08920170-40301455 failed
2025-04-18 14:22:05,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-18 14:22:05,527 - INFO - Deleting interface with subnet_id 56a296d2-21ec-43e8-91d4-9dde0ff1ec28, port_id None from router 462d5e24-b46d-405f-abf3-22c32f63a6de
2025-04-18 14:22:05,798 - INFO - Deleting VM ctest-TestRoutersBasic-08920170-38044010
2025-04-18 14:22:05,879 - INFO - Deleting VM ctest-TestRoutersBasic-08920170-40301455
2025-04-18 14:22:05,965 - INFO - Deleting VN ctest-ext_vn-84647909
2025-04-18 14:22:06,068 - DEBUG - VN 10b118ea-414d-4505-821a-8cf62bd5f5f7 still in use: Unable to complete operation on network 10b118ea-414d-4505-821a-8cf62bd5f5f7. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-cf4ad5fe-0bb3-4415-bcad-5d11c93898c2']
2025-04-18 14:22:06,069 - WARNING - Deleting VN ctest-ext_vn-84647909 failed..Will retry
2025-04-18 14:22:08,220 - DEBUG - Response for deleting network ()
2025-04-18 14:22:08,220 - INFO - Deleting VN ctest-vn-04495313
2025-04-18 14:22:08,356 - DEBUG - Response for deleting network ()
2025-04-18 14:22:08,609 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Fri Apr 18 14:22:05 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-08920170-40301455>>
vm2_fixture =
vm2_fixture.vm_ip = '113.60.144.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-04-18 14:22:08,622 - DEBUG - No XMPP flaps were noticed during the test
2025-04-18 14:22:08,622 - INFO -
2025-04-18 14:22:08,622 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:10]
2025-04-18 14:22:08,623 - INFO - --------------------------------------------------------------------------------
2025-04-18 14:22:09,352 - INFO - Deleted project: ctest-TestRoutersBasic-08920170, ID : 65c965a1-3cf8-44f3-9456-6da7569255ba