2024-09-09 15:05:42,501 - INFO - Domain Default found not creating
2024-09-09 15:05:42,663 - INFO - Project ctest-TestRoutersBasic-96562220 not found, creating it
2024-09-09 15:05:43,142 - INFO - Created Project:ctest-TestRoutersBasic-96562220, ID : 35feabab-24f9-427f-888d-da4ad89ce30e
2024-09-09 15:05:44,708 - INFO - ================================================================================
2024-09-09 15:05:44,709 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2024-09-09 15:05:44,709 - 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 15:05:44,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.20': '0'}} with
2024-09-09 15:05:44,962 - INFO - Initial checks done. Running the testcase now
2024-09-09 15:05:44,962 - INFO -
2024-09-09 15:05:45,669 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-96562220
2024-09-09 15:05:45,768 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-96562220
2024-09-09 15:05:46,096 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96562220', 'default']}
2024-09-09 15:05:46,395 - DEBUG - Response for create_network : {'network': {'id': '298a8b75-959f-4681-8b6d-459e1a5aa807', 'name': 'ctest-vn-90131847', 'tenant_id': '35feabab24f9427f888dda4ad89ce30e', 'project_id': '35feabab24f9427f888dda4ad89ce30e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96562220', 'ctest-vn-90131847'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 15:05:46,590 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da271d0f-9dcd-4553-934a-139e90b03e28', 'name': '', 'tenant_id': '35feabab24f9427f888dda4ad89ce30e', 'network_id': '298a8b75-959f-4681-8b6d-459e1a5aa807', 'ip_version': 4, 'cidr': '78.107.207.0/26', 'allocation_pools': [{'start': '78.107.207.2', 'end': '78.107.207.62'}], 'gateway_ip': '78.107.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.107.207.2', 'tags': [], 'project_id': '35feabab24f9427f888dda4ad89ce30e'}}
2024-09-09 15:05:46,613 - INFO - Created VN ctest-vn-90131847
2024-09-09 15:05:46,664 - DEBUG - VN ctest-vn-90131847 UUID is 298a8b75-959f-4681-8b6d-459e1a5aa807
2024-09-09 15:05:46,987 - DEBUG - Response for create_network : {'network': {'id': '49039666-de11-4c69-9b62-d09fa76a92b2', 'name': 'ctest-ext_vn-31398100', 'tenant_id': '35feabab24f9427f888dda4ad89ce30e', 'project_id': '35feabab24f9427f888dda4ad89ce30e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96562220', 'ctest-ext_vn-31398100'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 15:05:47,180 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9dcfa60-eac9-4afe-84b1-511075e38064', 'name': '', 'tenant_id': '35feabab24f9427f888dda4ad89ce30e', 'network_id': '49039666-de11-4c69-9b62-d09fa76a92b2', 'ip_version': 4, 'cidr': '104.73.177.192/26', 'allocation_pools': [{'start': '104.73.177.194', 'end': '104.73.177.254'}], 'gateway_ip': '104.73.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.73.177.194', 'tags': [], 'project_id': '35feabab24f9427f888dda4ad89ce30e'}}
2024-09-09 15:05:47,201 - INFO - Created VN ctest-ext_vn-31398100
2024-09-09 15:05:47,252 - DEBUG - VN ctest-ext_vn-31398100 UUID is 49039666-de11-4c69-9b62-d09fa76a92b2
2024-09-09 15:05:47,476 - DEBUG - Services list from nova: [, , ]
2024-09-09 15:05:48,505 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1876-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1876-1)
2024-09-09 15:05:49,668 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1876-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1876-1)
2024-09-09 15:05:49,770 - INFO - Setting gateway for router 04327f59-59ed-4619-b885-224b4677e54a to network 49039666-de11-4c69-9b62-d09fa76a92b2
2024-09-09 15:05:49,840 - INFO - Adding interface with subnet_id da271d0f-9dcd-4553-934a-139e90b03e28, port_id None to router 04327f59-59ed-4619-b885-224b4677e54a
2024-09-09 15:05:50,309 - INFO - Waiting for VM ctest-TestRoutersBasic-96562220-67420329 to be up..
2024-09-09 15:05:50,460 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2024-09-09 15:05:55,543 - DEBUG - VM is in ACTIVE state now
2024-09-09 15:05:55,543 - INFO - VM name : ctest-TestRoutersBasic-96562220-67420329
2024-09-09 15:05:55,621 - DEBUG - VM ctest-TestRoutersBasic-96562220-67420329 ID is 247a2c54-9052-45ff-937c-ad80951dc19c
2024-09-09 15:05:55,639 - DEBUG - VM ctest-TestRoutersBasic-96562220-67420329 launched on Node cn-jenkins-deploy-platform-ansible-os-1876-1
2024-09-09 15:05:55,719 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/247a2c54-9052-45ff-937c-ad80951dc19c
2024-09-09 15:05:56,014 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/247a2c54-9052-45ff-937c-ad80951dc19c
2024-09-09 15:05:56,048 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/78f35626-9607-4254-8608-c2984e61e043
2024-09-09 15:05:59,301 - 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 1019ms')
2024-09-09 15:05:59,301 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96562220-67420329 failed!
2024-09-09 15:05:59,356 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-96562220:ctest-vn-90131847 is 78.107.207.1 and allocation pool is NOT set
2024-09-09 15:06:01,420 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.846 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.846/2.322/3.799/1.476 ms')
2024-09-09 15:06:01,421 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96562220-67420329 passed
2024-09-09 15:06:01,568 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 15:06:01,568 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96562220-67420329, IP 78.107.207.3, Port 22
2024-09-09 15:06:01,723 - DEBUG - VM ctest-TestRoutersBasic-96562220-67420329 is ready for SSH connections
2024-09-09 15:06:01,723 - INFO - Waiting for VM ctest-TestRoutersBasic-96562220-13448207 to be up..
2024-09-09 15:06:01,802 - DEBUG - VM is in ACTIVE state now
2024-09-09 15:06:01,802 - INFO - VM name : ctest-TestRoutersBasic-96562220-13448207
2024-09-09 15:06:01,878 - DEBUG - VM ctest-TestRoutersBasic-96562220-13448207 ID is af6c996e-9401-4e0a-bc47-802dc535ac8a
2024-09-09 15:06:01,878 - DEBUG - VM ctest-TestRoutersBasic-96562220-13448207 launched on Node cn-jenkins-deploy-platform-ansible-os-1876-1
2024-09-09 15:06:01,954 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/af6c996e-9401-4e0a-bc47-802dc535ac8a
2024-09-09 15:06:01,963 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/106b849a-f014-49c9-bae1-3cb90073170d
2024-09-09 15:06:03,201 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.505 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.505/1.995/3.486/1.490 ms')
2024-09-09 15:06:03,201 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-96562220-13448207 passed
2024-09-09 15:06:03,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 15:06:03,360 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96562220-13448207, IP 104.73.177.195, Port 22
2024-09-09 15:06:03,516 - DEBUG - VM ctest-TestRoutersBasic-96562220-13448207 is ready for SSH connections
2024-09-09 15:06:03,516 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 15:06:03,516 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:03,517 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:08,553 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:08,553 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:09,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:09,554 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:12,758 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:12,758 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:13,759 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:13,759 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:16,963 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:16,963 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:17,964 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:17,964 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:21,173 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:21,173 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:22,174 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:22,174 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:25,374 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:25,374 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:26,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:26,375 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:29,580 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:29,580 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:30,581 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:30,581 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:33,780 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:33,780 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:34,781 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:34,781 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:37,976 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:37,977 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:38,977 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:38,978 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:42,194 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:42,194 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:43,195 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:43,196 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:46,419 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:46,419 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:47,420 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.73.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123
2024-09-09 15:06:47,420 - DEBUG - ping -s 56 -c 3 -W 1 104.73.177.195
2024-09-09 15:06:50,629 - DEBUG - PING 104.73.177.195 (104.73.177.195): 56 data bytes
--- 104.73.177.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2024-09-09 15:06:50,629 - WARNING - Ping to IP 104.73.177.195 from VM ctest-TestRoutersBasic-96562220-67420329 failed
2024-09-09 15:06:50,635 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-09-09 15:06:50,636 - INFO - Deleting interface with subnet_id da271d0f-9dcd-4553-934a-139e90b03e28, port_id None from router 04327f59-59ed-4619-b885-224b4677e54a
2024-09-09 15:06:50,811 - INFO - Deleting VM ctest-TestRoutersBasic-96562220-13448207
2024-09-09 15:06:50,876 - INFO - Deleting VM ctest-TestRoutersBasic-96562220-67420329
2024-09-09 15:06:50,953 - INFO - Deleting VN ctest-ext_vn-31398100
2024-09-09 15:06:51,028 - DEBUG - VN 49039666-de11-4c69-9b62-d09fa76a92b2 still in use: Unable to complete operation on network 49039666-de11-4c69-9b62-d09fa76a92b2. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-c8a81d9c-83dc-4d25-b265-dea19a099475']
2024-09-09 15:06:51,028 - WARNING - Deleting VN ctest-ext_vn-31398100 failed..Will retry
2024-09-09 15:06:53,141 - DEBUG - Response for deleting network ()
2024-09-09 15:06:53,141 - INFO - Deleting VN ctest-vn-90131847
2024-09-09 15:06:53,245 - DEBUG - Response for deleting network ()
2024-09-09 15:06:53,500 - ERROR - AssertionError
Python 3.6.8: /usr/bin/python3
Mon Sep 9 15:06:50 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 = '104.73.177.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 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 15:06:53,506 - DEBUG - No XMPP flaps were noticed during the test
2024-09-09 15:06:53,506 - INFO -
2024-09-09 15:06:53,506 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2024-09-09 15:06:53,506 - INFO - --------------------------------------------------------------------------------
2024-09-09 15:06:54,190 - INFO - Deleted project: ctest-TestRoutersBasic-96562220, ID : 35feabab-24f9-427f-888d-da4ad89ce30e