2025-04-23 17:07:50,185 - INFO - Domain Default found not creating
2025-04-23 17:07:50,319 - INFO - Project ctest-TestRoutersBasic-38217724 not found, creating it
2025-04-23 17:07:50,755 - INFO - Created Project:ctest-TestRoutersBasic-38217724, ID : ef6ca56c-ca56-4c0e-bffc-a51ff15afc6c
2025-04-23 17:07:52,050 - INFO - ================================================================================
2025-04-23 17:07:52,051 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-04-23 17:07:52,051 - 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-23 17:07:52,313 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-04-23 17:07:52,313 - INFO - Initial checks done. Running the testcase now
2025-04-23 17:07:52,313 - INFO -
2025-04-23 17:07:52,983 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38217724
2025-04-23 17:07:53,077 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38217724
2025-04-23 17:07:53,392 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38217724', 'default']}
2025-04-23 17:07:53,682 - DEBUG - Response for create_network : {'network': {'id': '4f09a053-1b80-40b3-8d1d-c81021018699', 'name': 'ctest-vn-51558677', 'tenant_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'project_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38217724', 'ctest-vn-51558677'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:07:53,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db5191da-d334-4ef2-a7a6-2902b7e2d604', 'name': '', 'tenant_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'network_id': '4f09a053-1b80-40b3-8d1d-c81021018699', 'ip_version': 4, 'cidr': '212.177.59.64/26', 'allocation_pools': [{'start': '212.177.59.66', 'end': '212.177.59.126'}], 'gateway_ip': '212.177.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.177.59.66', 'tags': [], 'project_id': 'ef6ca56cca564c0ebffca51ff15afc6c'}}
2025-04-23 17:07:53,915 - INFO - Created VN ctest-vn-51558677
2025-04-23 17:07:53,965 - DEBUG - VN ctest-vn-51558677 UUID is 4f09a053-1b80-40b3-8d1d-c81021018699
2025-04-23 17:07:54,285 - DEBUG - Response for create_network : {'network': {'id': 'f7a17c76-694c-4d75-ab8c-b4a6b50904ff', 'name': 'ctest-ext_vn-61861173', 'tenant_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'project_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38217724', 'ctest-ext_vn-61861173'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 17:07:54,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '52fafb77-8386-4a58-a0d7-3e9e8cfda97a', 'name': '', 'tenant_id': 'ef6ca56cca564c0ebffca51ff15afc6c', 'network_id': 'f7a17c76-694c-4d75-ab8c-b4a6b50904ff', 'ip_version': 4, 'cidr': '92.103.128.192/26', 'allocation_pools': [{'start': '92.103.128.194', 'end': '92.103.128.254'}], 'gateway_ip': '92.103.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.103.128.194', 'tags': [], 'project_id': 'ef6ca56cca564c0ebffca51ff15afc6c'}}
2025-04-23 17:07:54,446 - INFO - Created VN ctest-ext_vn-61861173
2025-04-23 17:07:54,497 - DEBUG - VN ctest-ext_vn-61861173 UUID is f7a17c76-694c-4d75-ab8c-b4a6b50904ff
2025-04-23 17:07:54,692 - DEBUG - Services list from nova: [, , ]
2025-04-23 17:07:55,657 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3194-1)
2025-04-23 17:07:56,796 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3194-1)
2025-04-23 17:07:56,870 - INFO - Setting gateway for router 1c614d91-368f-4149-b8be-cd325259ec8f to network f7a17c76-694c-4d75-ab8c-b4a6b50904ff
2025-04-23 17:07:56,943 - INFO - Adding interface with subnet_id db5191da-d334-4ef2-a7a6-2902b7e2d604, port_id None to router 1c614d91-368f-4149-b8be-cd325259ec8f
2025-04-23 17:07:57,245 - INFO - Waiting for VM ctest-TestRoutersBasic-38217724-85238917 to be up..
2025-04-23 17:07:57,374 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-23 17:08:02,447 - DEBUG - VM is in ACTIVE state now
2025-04-23 17:08:02,447 - INFO - VM name : ctest-TestRoutersBasic-38217724-85238917
2025-04-23 17:08:02,663 - DEBUG - VM ctest-TestRoutersBasic-38217724-85238917 ID is d099f79b-3394-4482-8acf-1b7d7799aa47
2025-04-23 17:08:02,688 - DEBUG - VM ctest-TestRoutersBasic-38217724-85238917 launched on Node cn-jenkins-deploy-platform-ansible-os-3194-1.
2025-04-23 17:08:02,764 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d099f79b-3394-4482-8acf-1b7d7799aa47
2025-04-23 17:08:03,057 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d099f79b-3394-4482-8acf-1b7d7799aa47
2025-04-23 17:08:03,086 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ea164d8d-3157-4002-bbfa-dab60b476c49
2025-04-23 17:08:06,329 - 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 1018ms')
2025-04-23 17:08:06,329 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38217724-85238917 failed!
2025-04-23 17:08:06,381 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38217724:ctest-vn-51558677 is 212.177.59.65 and allocation pool is NOT set
2025-04-23 17:08:08,444 - 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=2.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.378 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.378/1.508/2.639/1.130 ms')
2025-04-23 17:08:08,444 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38217724-85238917 passed
2025-04-23 17:08:08,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-23 17:08:08,597 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38217724-85238917, IP 212.177.59.67, Port 22
2025-04-23 17:08:08,753 - DEBUG - VM ctest-TestRoutersBasic-38217724-85238917 is ready for SSH connections
2025-04-23 17:08:08,753 - INFO - Waiting for VM ctest-TestRoutersBasic-38217724-79506666 to be up..
2025-04-23 17:08:08,825 - DEBUG - VM is in ACTIVE state now
2025-04-23 17:08:08,825 - INFO - VM name : ctest-TestRoutersBasic-38217724-79506666
2025-04-23 17:08:08,902 - DEBUG - VM ctest-TestRoutersBasic-38217724-79506666 ID is 2f4395c3-20a5-4b59-94eb-caffa760c1b4
2025-04-23 17:08:08,903 - DEBUG - VM ctest-TestRoutersBasic-38217724-79506666 launched on Node cn-jenkins-deploy-platform-ansible-os-3194-1.
2025-04-23 17:08:08,976 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2f4395c3-20a5-4b59-94eb-caffa760c1b4
2025-04-23 17:08:08,983 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/c0c09935-32ad-439b-8a05-2d02e9fcd054
2025-04-23 17:08:10,217 - 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.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 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.460/3.315/5.171/1.855 ms')
2025-04-23 17:08:10,217 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38217724-79506666 passed
2025-04-23 17:08:10,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-23 17:08:10,369 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38217724-79506666, IP 92.103.128.195, Port 22
2025-04-23 17:08:10,525 - DEBUG - VM ctest-TestRoutersBasic-38217724-79506666 is ready for SSH connections
2025-04-23 17:08:10,525 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-23 17:08:10,525 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:10,525 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:15,300 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:15,301 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:16,301 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:16,301 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:19,509 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:19,509 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:20,510 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:20,510 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:23,726 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:23,727 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:24,727 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:24,727 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:27,920 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:27,920 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:28,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:28,921 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:32,121 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:32,121 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:33,122 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:33,122 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:36,325 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:36,325 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:37,326 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:37,327 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:40,523 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:40,523 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:41,524 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:41,524 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:44,755 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:44,755 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:45,756 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:45,756 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:48,957 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:48,957 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:49,958 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:49,958 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:53,163 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:53,163 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:54,164 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.103.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-23 17:08:54,164 - DEBUG - ping -s 56 -c 3 -W 1 92.103.128.195
2025-04-23 17:08:57,370 - DEBUG - PING 92.103.128.195 (92.103.128.195): 56 data bytes
--- 92.103.128.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-23 17:08:57,370 - WARNING - Ping to IP 92.103.128.195 from VM ctest-TestRoutersBasic-38217724-85238917 failed
2025-04-23 17:08:57,371 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-23 17:08:57,372 - INFO - Deleting interface with subnet_id db5191da-d334-4ef2-a7a6-2902b7e2d604, port_id None from router 1c614d91-368f-4149-b8be-cd325259ec8f
2025-04-23 17:08:57,538 - INFO - Deleting VM ctest-TestRoutersBasic-38217724-79506666
2025-04-23 17:08:57,599 - INFO - Deleting VM ctest-TestRoutersBasic-38217724-85238917
2025-04-23 17:08:57,672 - INFO - Deleting VN ctest-ext_vn-61861173
2025-04-23 17:08:57,736 - DEBUG - VN f7a17c76-694c-4d75-ab8c-b4a6b50904ff still in use: Unable to complete operation on network f7a17c76-694c-4d75-ab8c-b4a6b50904ff. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-c6eb4a1d-27bd-4d52-a295-6a9ef41277c3']
2025-04-23 17:08:57,736 - WARNING - Deleting VN ctest-ext_vn-61861173 failed..Will retry
2025-04-23 17:08:59,828 - DEBUG - Response for deleting network ()
2025-04-23 17:08:59,828 - INFO - Deleting VN ctest-vn-51558677
2025-04-23 17:08:59,924 - DEBUG - Response for deleting network ()
2025-04-23 17:09:00,172 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Wed Apr 23 17:08:57 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-38217724-85238917>>
vm2_fixture =
vm2_fixture.vm_ip = '92.103.128.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-23 17:09:00,177 - DEBUG - No XMPP flaps were noticed during the test
2025-04-23 17:09:00,177 - INFO -
2025-04-23 17:09:00,177 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:08]
2025-04-23 17:09:00,177 - INFO - --------------------------------------------------------------------------------
2025-04-23 17:09:00,849 - INFO - Deleted project: ctest-TestRoutersBasic-38217724, ID : ef6ca56c-ca56-4c0e-bffc-a51ff15afc6c