2025-04-15 12:26:36,713 - INFO - Domain Default found not creating
2025-04-15 12:26:36,878 - INFO - Project ctest-TestRoutersBasic-41199497 not found, creating it
2025-04-15 12:26:37,364 - INFO - Created Project:ctest-TestRoutersBasic-41199497, ID : 7df57b18-22df-460d-9e7a-263d1eb5f26e
2025-04-15 12:26:39,010 - INFO - ================================================================================
2025-04-15 12:26:39,011 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-04-15 12:26:39,011 - 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-15 12:26:39,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-04-15 12:26:39,283 - INFO - Initial checks done. Running the testcase now
2025-04-15 12:26:39,284 - INFO -
2025-04-15 12:26:40,145 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41199497
2025-04-15 12:26:40,242 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41199497
2025-04-15 12:26:40,569 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41199497', 'default']}
2025-04-15 12:26:40,884 - DEBUG - Response for create_network : {'network': {'id': 'cc13f348-6172-4081-938b-efa0084a07dd', 'name': 'ctest-vn-84821393', 'tenant_id': '7df57b1822df460d9e7a263d1eb5f26e', 'project_id': '7df57b1822df460d9e7a263d1eb5f26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41199497', 'ctest-vn-84821393'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:26:41,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '63c974df-d8a6-40a8-9967-0650cc0afb01', 'name': '', 'tenant_id': '7df57b1822df460d9e7a263d1eb5f26e', 'network_id': 'cc13f348-6172-4081-938b-efa0084a07dd', 'ip_version': 4, 'cidr': '6.76.10.64/26', 'allocation_pools': [{'start': '6.76.10.66', 'end': '6.76.10.126'}], 'gateway_ip': '6.76.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.76.10.66', 'tags': [], 'project_id': '7df57b1822df460d9e7a263d1eb5f26e'}}
2025-04-15 12:26:41,127 - INFO - Created VN ctest-vn-84821393
2025-04-15 12:26:41,182 - DEBUG - VN ctest-vn-84821393 UUID is cc13f348-6172-4081-938b-efa0084a07dd
2025-04-15 12:26:41,630 - DEBUG - Response for create_network : {'network': {'id': 'f55ff12a-3e64-409b-aa47-bbf7c9079bc6', 'name': 'ctest-ext_vn-31578250', 'tenant_id': '7df57b1822df460d9e7a263d1eb5f26e', 'project_id': '7df57b1822df460d9e7a263d1eb5f26e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41199497', 'ctest-ext_vn-31578250'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:26:41,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf9f5af0-2414-43d9-858b-4fdd17cd336d', 'name': '', 'tenant_id': '7df57b1822df460d9e7a263d1eb5f26e', 'network_id': 'f55ff12a-3e64-409b-aa47-bbf7c9079bc6', 'ip_version': 4, 'cidr': '60.59.203.0/26', 'allocation_pools': [{'start': '60.59.203.2', 'end': '60.59.203.62'}], 'gateway_ip': '60.59.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.59.203.2', 'tags': [], 'project_id': '7df57b1822df460d9e7a263d1eb5f26e'}}
2025-04-15 12:26:41,837 - INFO - Created VN ctest-ext_vn-31578250
2025-04-15 12:26:41,890 - DEBUG - VN ctest-ext_vn-31578250 UUID is f55ff12a-3e64-409b-aa47-bbf7c9079bc6
2025-04-15 12:26:42,073 - DEBUG - Services list from nova: [, , ]
2025-04-15 12:26:43,249 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3117-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3117-1)
2025-04-15 12:26:44,639 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3117-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3117-1)
2025-04-15 12:26:44,712 - INFO - Setting gateway for router 8980f699-80ae-4862-bf84-6dac41afb9d5 to network f55ff12a-3e64-409b-aa47-bbf7c9079bc6
2025-04-15 12:26:44,786 - INFO - Adding interface with subnet_id 63c974df-d8a6-40a8-9967-0650cc0afb01, port_id None to router 8980f699-80ae-4862-bf84-6dac41afb9d5
2025-04-15 12:26:45,177 - INFO - Waiting for VM ctest-TestRoutersBasic-41199497-10818058 to be up..
2025-04-15 12:26:45,376 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-15 12:26:50,497 - DEBUG - VM is in ACTIVE state now
2025-04-15 12:26:50,497 - INFO - VM name : ctest-TestRoutersBasic-41199497-10818058
2025-04-15 12:26:50,581 - DEBUG - VM ctest-TestRoutersBasic-41199497-10818058 ID is 4341f136-0271-4fbe-a4fd-f3fd605b7686
2025-04-15 12:26:50,605 - DEBUG - VM ctest-TestRoutersBasic-41199497-10818058 launched on Node cn-jenkins-deploy-platform-ansible-os-3117-1.
2025-04-15 12:26:50,695 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/4341f136-0271-4fbe-a4fd-f3fd605b7686
2025-04-15 12:26:51,036 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/4341f136-0271-4fbe-a4fd-f3fd605b7686
2025-04-15 12:26:51,078 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/579fcc2b-d43f-48e2-9528-beca6e32c04c
2025-04-15 12:26:54,325 - 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 1002ms')
2025-04-15 12:26:54,325 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41199497-10818058 failed!
2025-04-15 12:26:54,386 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41199497:ctest-vn-84821393 is 6.76.10.65 and allocation pool is NOT set
2025-04-15 12:26:56,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=4.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.27 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 = 1.269/3.075/4.881/1.806 ms')
2025-04-15 12:26:56,447 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41199497-10818058 passed
2025-04-15 12:26:56,602 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 12:26:56,602 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41199497-10818058, IP 6.76.10.67, Port 22
2025-04-15 12:26:56,756 - DEBUG - VM ctest-TestRoutersBasic-41199497-10818058 is ready for SSH connections
2025-04-15 12:26:56,757 - INFO - Waiting for VM ctest-TestRoutersBasic-41199497-96990426 to be up..
2025-04-15 12:26:56,857 - DEBUG - VM is in ACTIVE state now
2025-04-15 12:26:56,857 - INFO - VM name : ctest-TestRoutersBasic-41199497-96990426
2025-04-15 12:26:56,944 - DEBUG - VM ctest-TestRoutersBasic-41199497-96990426 ID is af8917e5-b336-474a-a2d5-52ea9b675630
2025-04-15 12:26:56,944 - DEBUG - VM ctest-TestRoutersBasic-41199497-96990426 launched on Node cn-jenkins-deploy-platform-ansible-os-3117-1.
2025-04-15 12:26:57,044 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/af8917e5-b336-474a-a2d5-52ea9b675630
2025-04-15 12:26:57,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b9a25479-fb78-488f-9aad-b20f963644a9
2025-04-15 12:26:58,318 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.86 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 = 2.855/3.099/3.343/0.244 ms')
2025-04-15 12:26:58,318 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41199497-96990426 passed
2025-04-15 12:26:58,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 12:26:58,474 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41199497-96990426, IP 60.59.203.3, Port 22
2025-04-15 12:26:58,644 - DEBUG - VM ctest-TestRoutersBasic-41199497-96990426 is ready for SSH connections
2025-04-15 12:26:58,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 12:26:58,644 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:26:58,645 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:03,555 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:03,555 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:04,556 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:04,557 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:07,783 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:07,783 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:08,783 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:08,783 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:12,001 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:12,001 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:13,003 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:13,003 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:16,265 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:16,265 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:17,266 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:17,266 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:20,537 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:20,537 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:21,538 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:21,538 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:24,758 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:24,758 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:25,759 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:25,760 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:29,009 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:29,009 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:30,010 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:30,010 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:33,267 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:33,268 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:34,268 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:34,268 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:37,493 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:37,493 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:38,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:38,494 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:41,725 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:41,725 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:42,726 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.59.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123
2025-04-15 12:27:42,726 - DEBUG - ping -s 56 -c 3 -W 1 60.59.203.3
2025-04-15 12:27:45,986 - DEBUG - PING 60.59.203.3 (60.59.203.3): 56 data bytes
--- 60.59.203.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 12:27:45,986 - WARNING - Ping to IP 60.59.203.3 from VM ctest-TestRoutersBasic-41199497-10818058 failed
2025-04-15 12:27:45,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 12:27:45,998 - INFO - Deleting interface with subnet_id 63c974df-d8a6-40a8-9967-0650cc0afb01, port_id None from router 8980f699-80ae-4862-bf84-6dac41afb9d5
2025-04-15 12:27:46,222 - INFO - Deleting VM ctest-TestRoutersBasic-41199497-96990426
2025-04-15 12:27:46,292 - INFO - Deleting VM ctest-TestRoutersBasic-41199497-10818058
2025-04-15 12:27:46,394 - INFO - Deleting VN ctest-ext_vn-31578250
2025-04-15 12:27:46,490 - DEBUG - VN f55ff12a-3e64-409b-aa47-bbf7c9079bc6 still in use: Unable to complete operation on network f55ff12a-3e64-409b-aa47-bbf7c9079bc6. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-57251583-cab2-4d5d-af3d-4d7484936d68']
2025-04-15 12:27:46,490 - WARNING - Deleting VN ctest-ext_vn-31578250 failed..Will retry
2025-04-15 12:27:48,610 - DEBUG - Response for deleting network ()
2025-04-15 12:27:48,610 - INFO - Deleting VN ctest-vn-84821393
2025-04-15 12:27:48,729 - DEBUG - Response for deleting network ()
2025-04-15 12:27:48,982 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Tue Apr 15 12:27:45 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-41199497-10818058>>
vm2_fixture =
vm2_fixture.vm_ip = '60.59.203.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-15 12:27:48,987 - DEBUG - No XMPP flaps were noticed during the test
2025-04-15 12:27:48,987 - INFO -
2025-04-15 12:27:48,987 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-04-15 12:27:48,988 - INFO - --------------------------------------------------------------------------------
2025-04-15 12:27:49,684 - INFO - Deleted project: ctest-TestRoutersBasic-41199497, ID : 7df57b18-22df-460d-9e7a-263d1eb5f26e