2024-09-09 23:02:17,222 - INFO - Domain Default found not creating
2024-09-09 23:02:17,379 - INFO - Project ctest-TestRoutersBasic-61640354 not found, creating it
2024-09-09 23:02:17,844 - INFO - Created Project:ctest-TestRoutersBasic-61640354, ID : 8029567c-ff11-456b-95ce-05307114f194
2024-09-09 23:02:19,395 - INFO - ================================================================================
2024-09-09 23:02:19,396 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2024-09-09 23:02:19,396 - 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
2024-09-09 23:02:19,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.19': '0'}} with
2024-09-09 23:02:19,655 - INFO - Initial checks done. Running the testcase now
2024-09-09 23:02:19,655 - INFO -
2024-09-09 23:02:20,364 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61640354
2024-09-09 23:02:20,461 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61640354
2024-09-09 23:02:20,780 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61640354', 'default']}
2024-09-09 23:02:21,076 - DEBUG - Response for create_network : {'network': {'id': 'f350e52c-13e8-4cf2-a558-9ea45541be9f', 'name': 'ctest-vn-73810073', 'tenant_id': '8029567cff11456b95ce05307114f194', 'project_id': '8029567cff11456b95ce05307114f194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61640354', 'ctest-vn-73810073'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:02:21,268 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cef313b0-13e1-440a-9c11-1ee7ea9f9807', 'name': '', 'tenant_id': '8029567cff11456b95ce05307114f194', 'network_id': 'f350e52c-13e8-4cf2-a558-9ea45541be9f', 'ip_version': 4, 'cidr': '98.142.230.192/26', 'allocation_pools': [{'start': '98.142.230.194', 'end': '98.142.230.254'}], 'gateway_ip': '98.142.230.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.142.230.194', 'tags': [], 'project_id': '8029567cff11456b95ce05307114f194'}}
2024-09-09 23:02:21,286 - INFO - Created VN ctest-vn-73810073
2024-09-09 23:02:21,337 - DEBUG - VN ctest-vn-73810073 UUID is f350e52c-13e8-4cf2-a558-9ea45541be9f
2024-09-09 23:02:21,699 - DEBUG - Response for create_network : {'network': {'id': 'b06a9007-9705-4abb-a586-0aded7400209', 'name': 'ctest-ext_vn-35290909', 'tenant_id': '8029567cff11456b95ce05307114f194', 'project_id': '8029567cff11456b95ce05307114f194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61640354', 'ctest-ext_vn-35290909'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 23:02:21,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dbead44-5813-4c2d-ae61-49677a6475d1', 'name': '', 'tenant_id': '8029567cff11456b95ce05307114f194', 'network_id': 'b06a9007-9705-4abb-a586-0aded7400209', 'ip_version': 4, 'cidr': '16.165.99.0/26', 'allocation_pools': [{'start': '16.165.99.2', 'end': '16.165.99.62'}], 'gateway_ip': '16.165.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.165.99.2', 'tags': [], 'project_id': '8029567cff11456b95ce05307114f194'}}
2024-09-09 23:02:21,897 - INFO - Created VN ctest-ext_vn-35290909
2024-09-09 23:02:21,948 - DEBUG - VN ctest-ext_vn-35290909 UUID is b06a9007-9705-4abb-a586-0aded7400209
2024-09-09 23:02:22,117 - DEBUG - Services list from nova: [, , ]
2024-09-09 23:02:23,157 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1879-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1879-1)
2024-09-09 23:02:24,345 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1879-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1879-1)
2024-09-09 23:02:24,434 - INFO - Setting gateway for router 80f2b544-6fa0-4510-9d85-6ce721d97c38 to network b06a9007-9705-4abb-a586-0aded7400209
2024-09-09 23:02:24,506 - INFO - Adding interface with subnet_id cef313b0-13e1-440a-9c11-1ee7ea9f9807, port_id None to router 80f2b544-6fa0-4510-9d85-6ce721d97c38
2024-09-09 23:02:24,904 - INFO - Waiting for VM ctest-TestRoutersBasic-61640354-39483288 to be up..
2024-09-09 23:02:25,065 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2024-09-09 23:02:30,155 - DEBUG - VM is in ACTIVE state now
2024-09-09 23:02:30,155 - INFO - VM name : ctest-TestRoutersBasic-61640354-39483288
2024-09-09 23:02:30,239 - DEBUG - VM ctest-TestRoutersBasic-61640354-39483288 ID is 8f5e71e3-5ad6-4114-bb52-f53c9262b59d
2024-09-09 23:02:30,264 - DEBUG - VM ctest-TestRoutersBasic-61640354-39483288 launched on Node cn-jenkins-deploy-platform-ansible-os-1879-1
2024-09-09 23:02:30,348 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/8f5e71e3-5ad6-4114-bb52-f53c9262b59d
2024-09-09 23:02:30,641 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/8f5e71e3-5ad6-4114-bb52-f53c9262b59d
2024-09-09 23:02:30,673 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/f0db1ff4-bb20-4d61-a98a-189a3bd67358
2024-09-09 23:02:33,945 - 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')
2024-09-09 23:02:33,946 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61640354-39483288 failed!
2024-09-09 23:02:34,000 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61640354:ctest-vn-73810073 is 98.142.230.193 and allocation pool is NOT set
2024-09-09 23:02:36,064 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.404 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.404/1.814/3.225/1.410 ms')
2024-09-09 23:02:36,064 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61640354-39483288 passed
2024-09-09 23:02:36,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 23:02:36,213 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61640354-39483288, IP 98.142.230.195, Port 22
2024-09-09 23:02:36,364 - DEBUG - VM ctest-TestRoutersBasic-61640354-39483288 is ready for SSH connections
2024-09-09 23:02:36,364 - INFO - Waiting for VM ctest-TestRoutersBasic-61640354-45614637 to be up..
2024-09-09 23:02:36,439 - DEBUG - VM is in ACTIVE state now
2024-09-09 23:02:36,439 - INFO - VM name : ctest-TestRoutersBasic-61640354-45614637
2024-09-09 23:02:36,512 - DEBUG - VM ctest-TestRoutersBasic-61640354-45614637 ID is 9c79945c-3f5b-4a8f-93f9-1f99f0667e9e
2024-09-09 23:02:36,512 - DEBUG - VM ctest-TestRoutersBasic-61640354-45614637 launched on Node cn-jenkins-deploy-platform-ansible-os-1879-1
2024-09-09 23:02:36,587 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/9c79945c-3f5b-4a8f-93f9-1f99f0667e9e
2024-09-09 23:02:36,596 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/3c33b851-19a3-42c7-bd54-197a76707e29
2024-09-09 23:02:37,836 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/1.577/2.732/1.155 ms')
2024-09-09 23:02:37,836 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61640354-45614637 passed
2024-09-09 23:02:37,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 23:02:37,997 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61640354-45614637, IP 16.165.99.3, Port 22
2024-09-09 23:02:38,156 - DEBUG - VM ctest-TestRoutersBasic-61640354-45614637 is ready for SSH connections
2024-09-09 23:02:38,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 23:02:38,157 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:02:38,157 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:02:43,192 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:02:43,192 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:02:44,193 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:02:44,193 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:02:47,388 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:02:47,388 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:02:48,389 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:02:48,389 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:02:51,583 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:02:51,583 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:02:52,584 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:02:52,584 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:02:55,782 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:02:55,782 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:02:56,783 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:02:56,783 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:02:59,979 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:02:59,979 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:00,980 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:00,980 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:04,173 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:04,173 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:05,175 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:05,175 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:08,364 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:08,364 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:09,365 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:09,365 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:12,565 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:12,566 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:13,566 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:13,566 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:16,766 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:16,766 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:17,766 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:17,766 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:20,959 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:20,959 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:21,960 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.165.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123
2024-09-09 23:03:21,961 - DEBUG - ping -s 56 -c 3 -W 1 16.165.99.3
2024-09-09 23:03:25,165 - DEBUG - PING 16.165.99.3 (16.165.99.3): 56 data bytes
--- 16.165.99.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 23:03:25,165 - WARNING - Ping to IP 16.165.99.3 from VM ctest-TestRoutersBasic-61640354-39483288 failed
2024-09-09 23:03:25,171 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 23:03:25,171 - INFO - Deleting interface with subnet_id cef313b0-13e1-440a-9c11-1ee7ea9f9807, port_id None from router 80f2b544-6fa0-4510-9d85-6ce721d97c38
2024-09-09 23:03:25,370 - INFO - Deleting VM ctest-TestRoutersBasic-61640354-45614637
2024-09-09 23:03:25,448 - INFO - Deleting VM ctest-TestRoutersBasic-61640354-39483288
2024-09-09 23:03:25,518 - INFO - Deleting VN ctest-ext_vn-35290909
2024-09-09 23:03:25,604 - DEBUG - VN b06a9007-9705-4abb-a586-0aded7400209 still in use: Unable to complete operation on network b06a9007-9705-4abb-a586-0aded7400209. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-6755e9a8-46d9-4bac-bdb5-dde5b41fe3f6']
2024-09-09 23:03:25,604 - WARNING - Deleting VN ctest-ext_vn-35290909 failed..Will retry
2024-09-09 23:03:27,707 - DEBUG - Response for deleting network ()
2024-09-09 23:03:27,707 - INFO - Deleting VN ctest-vn-73810073
2024-09-09 23:03:27,808 - DEBUG - Response for deleting network ()
2024-09-09 23:03:28,060 - ERROR - AssertionError
Python 3.6.8: /usr/bin/python3
Mon Sep 9 23:03:25 2024
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 = '16.165.99.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 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
2024-09-09 23:03:28,066 - DEBUG - No XMPP flaps were noticed during the test
2024-09-09 23:03:28,066 - INFO -
2024-09-09 23:03:28,066 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2024-09-09 23:03:28,067 - INFO - --------------------------------------------------------------------------------
2024-09-09 23:03:28,742 - INFO - Deleted project: ctest-TestRoutersBasic-61640354, ID : 8029567c-ff11-456b-95ce-05307114f194