2025-01-05 09:55:54,189 - INFO - Domain Default found not creating
2025-01-05 09:55:54,354 - INFO - Project ctest-TestRoutersBasic-68582181 not found, creating it
2025-01-05 09:55:54,830 - INFO - Created Project:ctest-TestRoutersBasic-68582181, ID : 0bcbb3ef-020c-4f48-b97a-3dca08eea0ca
2025-01-05 09:55:56,399 - INFO - ================================================================================
2025-01-05 09:55:56,399 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-01-05 09:55:56,399 - 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-01-05 09:55:56,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with
2025-01-05 09:55:56,660 - INFO - Initial checks done. Running the testcase now
2025-01-05 09:55:56,660 - INFO -
2025-01-05 09:55:57,361 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68582181
2025-01-05 09:55:57,465 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68582181
2025-01-05 09:55:57,793 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68582181', 'default']}
2025-01-05 09:55:58,102 - DEBUG - Response for create_network : {'network': {'id': 'bc2498a4-a72a-4dd2-9d95-2600361d5f83', 'name': 'ctest-vn-56893074', 'tenant_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'project_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68582181', 'ctest-vn-56893074'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:55:58,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b861c0c-2c86-4394-b93a-19bfeb7d5f5b', 'name': '', 'tenant_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'network_id': 'bc2498a4-a72a-4dd2-9d95-2600361d5f83', 'ip_version': 4, 'cidr': '136.143.250.128/26', 'allocation_pools': [{'start': '136.143.250.130', 'end': '136.143.250.190'}], 'gateway_ip': '136.143.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.143.250.130', 'tags': [], 'project_id': '0bcbb3ef020c4f48b97a3dca08eea0ca'}}
2025-01-05 09:55:58,349 - INFO - Created VN ctest-vn-56893074
2025-01-05 09:55:58,405 - DEBUG - VN ctest-vn-56893074 UUID is bc2498a4-a72a-4dd2-9d95-2600361d5f83
2025-01-05 09:55:58,750 - DEBUG - Response for create_network : {'network': {'id': 'b49ea3f6-79cc-4175-a278-4dfd18e54c99', 'name': 'ctest-ext_vn-65596962', 'tenant_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'project_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68582181', 'ctest-ext_vn-65596962'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:55:58,942 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f753b6ae-5c66-4b00-8eba-d17d8dc530e9', 'name': '', 'tenant_id': '0bcbb3ef020c4f48b97a3dca08eea0ca', 'network_id': 'b49ea3f6-79cc-4175-a278-4dfd18e54c99', 'ip_version': 4, 'cidr': '12.110.27.64/26', 'allocation_pools': [{'start': '12.110.27.66', 'end': '12.110.27.126'}], 'gateway_ip': '12.110.27.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.110.27.66', 'tags': [], 'project_id': '0bcbb3ef020c4f48b97a3dca08eea0ca'}}
2025-01-05 09:55:58,965 - INFO - Created VN ctest-ext_vn-65596962
2025-01-05 09:55:59,017 - DEBUG - VN ctest-ext_vn-65596962 UUID is b49ea3f6-79cc-4175-a278-4dfd18e54c99
2025-01-05 09:55:59,196 - DEBUG - Services list from nova: [, , ]
2025-01-05 09:56:00,270 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2533-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2533-1)
2025-01-05 09:56:01,541 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2533-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2533-1)
2025-01-05 09:56:01,666 - INFO - Setting gateway for router f82c2040-0a80-46f6-b488-19ac3e281739 to network b49ea3f6-79cc-4175-a278-4dfd18e54c99
2025-01-05 09:56:01,763 - INFO - Adding interface with subnet_id 2b861c0c-2c86-4394-b93a-19bfeb7d5f5b, port_id None to router f82c2040-0a80-46f6-b488-19ac3e281739
2025-01-05 09:56:02,195 - INFO - Waiting for VM ctest-TestRoutersBasic-68582181-65204910 to be up..
2025-01-05 09:56:02,418 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-01-05 09:56:07,508 - DEBUG - VM is in ACTIVE state now
2025-01-05 09:56:07,508 - INFO - VM name : ctest-TestRoutersBasic-68582181-65204910
2025-01-05 09:56:07,610 - DEBUG - VM ctest-TestRoutersBasic-68582181-65204910 ID is fde463b0-06e4-45b1-84b8-2167a760bc5c
2025-01-05 09:56:07,630 - DEBUG - VM ctest-TestRoutersBasic-68582181-65204910 launched on Node cn-jenkins-deploy-platform-ansible-os-2533-1
2025-01-05 09:56:07,709 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/fde463b0-06e4-45b1-84b8-2167a760bc5c
2025-01-05 09:56:08,008 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/fde463b0-06e4-45b1-84b8-2167a760bc5c
2025-01-05 09:56:08,045 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/80f91f9c-e231-40ae-9e42-3ede5a94a1af
2025-01-05 09:56:11,305 - 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 1004ms')
2025-01-05 09:56:11,305 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68582181-65204910 failed!
2025-01-05 09:56:11,385 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68582181:ctest-vn-56893074 is 136.143.250.129 and allocation pool is NOT set
2025-01-05 09:56:13,445 - 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.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.289 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.289/1.716/3.143/1.427 ms')
2025-01-05 09:56:13,445 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68582181-65204910 passed
2025-01-05 09:56:13,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-01-05 09:56:13,602 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68582181-65204910, IP 136.143.250.131, Port 22
2025-01-05 09:56:13,757 - DEBUG - VM ctest-TestRoutersBasic-68582181-65204910 is ready for SSH connections
2025-01-05 09:56:13,758 - INFO - Waiting for VM ctest-TestRoutersBasic-68582181-45628807 to be up..
2025-01-05 09:56:13,842 - DEBUG - VM is in ACTIVE state now
2025-01-05 09:56:13,842 - INFO - VM name : ctest-TestRoutersBasic-68582181-45628807
2025-01-05 09:56:13,923 - DEBUG - VM ctest-TestRoutersBasic-68582181-45628807 ID is 108984ec-329b-4a8f-a99e-f9888e176c1d
2025-01-05 09:56:13,923 - DEBUG - VM ctest-TestRoutersBasic-68582181-45628807 launched on Node cn-jenkins-deploy-platform-ansible-os-2533-1
2025-01-05 09:56:14,005 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/108984ec-329b-4a8f-a99e-f9888e176c1d
2025-01-05 09:56:14,017 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/71087bf1-3f9d-4d44-8edf-e3b71a64bf89
2025-01-05 09:56:15,277 - 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=2.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.421 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.421/1.599/2.778/1.178 ms')
2025-01-05 09:56:15,277 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68582181-45628807 passed
2025-01-05 09:56:15,429 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-01-05 09:56:15,429 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68582181-45628807, IP 12.110.27.67, Port 22
2025-01-05 09:56:15,585 - DEBUG - VM ctest-TestRoutersBasic-68582181-45628807 is ready for SSH connections
2025-01-05 09:56:15,585 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-01-05 09:56:15,585 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:15,585 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:20,288 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:20,288 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:21,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:21,289 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:24,533 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:24,533 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:25,534 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:25,534 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:28,793 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:28,793 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:29,794 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:29,794 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:33,000 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:33,000 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:34,002 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:34,002 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:37,210 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:37,210 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:38,211 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:38,211 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:41,416 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:41,416 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:42,417 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:42,417 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:45,625 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:45,625 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:46,626 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:46,626 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:49,827 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:49,827 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:50,827 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:50,828 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:54,048 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:54,048 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:55,049 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:55,049 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:56:58,256 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:56:58,256 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:56:59,257 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.110.27.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123
2025-01-05 09:56:59,257 - DEBUG - ping -s 56 -c 3 -W 1 12.110.27.67
2025-01-05 09:57:02,471 - DEBUG - PING 12.110.27.67 (12.110.27.67): 56 data bytes
--- 12.110.27.67 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-01-05 09:57:02,471 - WARNING - Ping to IP 12.110.27.67 from VM ctest-TestRoutersBasic-68582181-65204910 failed
2025-01-05 09:57:02,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-01-05 09:57:02,479 - INFO - Deleting interface with subnet_id 2b861c0c-2c86-4394-b93a-19bfeb7d5f5b, port_id None from router f82c2040-0a80-46f6-b488-19ac3e281739
2025-01-05 09:57:02,701 - INFO - Deleting VM ctest-TestRoutersBasic-68582181-45628807
2025-01-05 09:57:02,778 - INFO - Deleting VM ctest-TestRoutersBasic-68582181-65204910
2025-01-05 09:57:02,874 - INFO - Deleting VN ctest-ext_vn-65596962
2025-01-05 09:57:02,954 - DEBUG - VN b49ea3f6-79cc-4175-a278-4dfd18e54c99 still in use: Unable to complete operation on network b49ea3f6-79cc-4175-a278-4dfd18e54c99. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-df232121-b539-4b81-b700-d245918a40da']
2025-01-05 09:57:02,954 - WARNING - Deleting VN ctest-ext_vn-65596962 failed..Will retry
2025-01-05 09:57:05,068 - DEBUG - Response for deleting network ()
2025-01-05 09:57:05,069 - INFO - Deleting VN ctest-vn-56893074
2025-01-05 09:57:05,193 - DEBUG - Response for deleting network ()
2025-01-05 09:57:05,445 - ERROR - AssertionError
Python 3.6.8: /usr/bin/python3
Sun Jan 5 09:57:02 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={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 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
vm2_fixture =
vm2_fixture.vm_ip = '12.110.27.67'
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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_routers_basic.py", line 52, in test_basic_snat_behavior_without_external_connectivity
vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed'
AssertionError: Ping from vm_left to vm_right through snat failed
2025-01-05 09:57:05,455 - DEBUG - No XMPP flaps were noticed during the test
2025-01-05 09:57:05,455 - INFO -
2025-01-05 09:57:05,455 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-01-05 09:57:05,455 - INFO - --------------------------------------------------------------------------------
2025-01-05 09:57:06,145 - INFO - Deleted project: ctest-TestRoutersBasic-68582181, ID : 0bcbb3ef-020c-4f48-b97a-3dca08eea0ca