2024-09-09 18:56:52,786 - INFO - Domain Default found not creating 2024-09-09 18:56:52,947 - INFO - Project ctest-TestRoutersBasic-05567072 not found, creating it 2024-09-09 18:56:53,401 - INFO - Created Project:ctest-TestRoutersBasic-05567072, ID : f8b614ae-a023-4480-8031-699164bd5a0f 2024-09-09 18:56:54,960 - INFO - ================================================================================ 2024-09-09 18:56:54,960 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-09 18:56:54,960 - 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 18:56:55,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with 2024-09-09 18:56:55,219 - INFO - Initial checks done. Running the testcase now 2024-09-09 18:56:55,219 - INFO - 2024-09-09 18:56:55,941 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-05567072 2024-09-09 18:56:56,037 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-05567072 2024-09-09 18:56:56,361 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05567072', 'default']} 2024-09-09 18:56:56,668 - DEBUG - Response for create_network : {'network': {'id': 'f563cdf9-7374-4f58-9ebe-98f683046846', 'name': 'ctest-vn-07277686', 'tenant_id': 'f8b614aea02344808031699164bd5a0f', 'project_id': 'f8b614aea02344808031699164bd5a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05567072', 'ctest-vn-07277686'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 18:56:56,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '23915913-d597-4395-9f3a-d4c490498bd2', 'name': '', 'tenant_id': 'f8b614aea02344808031699164bd5a0f', 'network_id': 'f563cdf9-7374-4f58-9ebe-98f683046846', 'ip_version': 4, 'cidr': '211.181.93.0/26', 'allocation_pools': [{'start': '211.181.93.2', 'end': '211.181.93.62'}], 'gateway_ip': '211.181.93.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.181.93.2', 'tags': [], 'project_id': 'f8b614aea02344808031699164bd5a0f'}} 2024-09-09 18:56:56,859 - INFO - Created VN ctest-vn-07277686 2024-09-09 18:56:56,910 - DEBUG - VN ctest-vn-07277686 UUID is f563cdf9-7374-4f58-9ebe-98f683046846 2024-09-09 18:56:57,261 - DEBUG - Response for create_network : {'network': {'id': '13163ff1-83a4-4426-b9ed-f52bd89b5316', 'name': 'ctest-ext_vn-59197308', 'tenant_id': 'f8b614aea02344808031699164bd5a0f', 'project_id': 'f8b614aea02344808031699164bd5a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05567072', 'ctest-ext_vn-59197308'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 18:56:57,452 - DEBUG - Response for create_subnet : {'subnet': {'id': '11a21cbf-b4cb-4040-9882-dbe6f1e25d15', 'name': '', 'tenant_id': 'f8b614aea02344808031699164bd5a0f', 'network_id': '13163ff1-83a4-4426-b9ed-f52bd89b5316', 'ip_version': 4, 'cidr': '102.36.180.64/26', 'allocation_pools': [{'start': '102.36.180.66', 'end': '102.36.180.126'}], 'gateway_ip': '102.36.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.36.180.66', 'tags': [], 'project_id': 'f8b614aea02344808031699164bd5a0f'}} 2024-09-09 18:56:57,472 - INFO - Created VN ctest-ext_vn-59197308 2024-09-09 18:56:57,525 - DEBUG - VN ctest-ext_vn-59197308 UUID is 13163ff1-83a4-4426-b9ed-f52bd89b5316 2024-09-09 18:56:57,701 - DEBUG - Services list from nova: [, , ] 2024-09-09 18:56:58,762 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1877-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1877-1) 2024-09-09 18:57:00,001 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1877-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1877-1) 2024-09-09 18:57:00,077 - INFO - Setting gateway for router b35cdef7-1a8b-4666-b1bf-bd437d793898 to network 13163ff1-83a4-4426-b9ed-f52bd89b5316 2024-09-09 18:57:00,135 - INFO - Adding interface with subnet_id 23915913-d597-4395-9f3a-d4c490498bd2, port_id None to router b35cdef7-1a8b-4666-b1bf-bd437d793898 2024-09-09 18:57:00,571 - INFO - Waiting for VM ctest-TestRoutersBasic-05567072-15791514 to be up.. 2024-09-09 18:57:00,753 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-09 18:57:05,831 - DEBUG - VM is in ACTIVE state now 2024-09-09 18:57:05,831 - INFO - VM name : ctest-TestRoutersBasic-05567072-15791514 2024-09-09 18:57:05,904 - DEBUG - VM ctest-TestRoutersBasic-05567072-15791514 ID is 3dca613c-5c0f-4df3-ae6b-e74fe3595f2e 2024-09-09 18:57:05,922 - DEBUG - VM ctest-TestRoutersBasic-05567072-15791514 launched on Node cn-jenkins-deploy-platform-ansible-os-1877-1 2024-09-09 18:57:06,007 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/3dca613c-5c0f-4df3-ae6b-e74fe3595f2e 2024-09-09 18:57:06,304 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/3dca613c-5c0f-4df3-ae6b-e74fe3595f2e 2024-09-09 18:57:06,338 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c1436983-c50d-4028-a118-1aa32c771d2a 2024-09-09 18:57:09,580 - 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 1007ms') 2024-09-09 18:57:09,580 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-05567072-15791514 failed! 2024-09-09 18:57:09,633 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-05567072:ctest-vn-07277686 is 211.181.93.1 and allocation pool is NOT set 2024-09-09 18:57:11,699 - 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.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.466 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.466/1.575/2.684/1.109 ms') 2024-09-09 18:57:11,699 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-05567072-15791514 passed 2024-09-09 18:57:11,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 18:57:11,850 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05567072-15791514, IP 211.181.93.3, Port 22 2024-09-09 18:57:12,015 - DEBUG - VM ctest-TestRoutersBasic-05567072-15791514 is ready for SSH connections 2024-09-09 18:57:12,015 - INFO - Waiting for VM ctest-TestRoutersBasic-05567072-52314104 to be up.. 2024-09-09 18:57:12,102 - DEBUG - VM is in ACTIVE state now 2024-09-09 18:57:12,103 - INFO - VM name : ctest-TestRoutersBasic-05567072-52314104 2024-09-09 18:57:12,187 - DEBUG - VM ctest-TestRoutersBasic-05567072-52314104 ID is 1d58966e-1fcf-4af8-808e-d10109f1d0cb 2024-09-09 18:57:12,187 - DEBUG - VM ctest-TestRoutersBasic-05567072-52314104 launched on Node cn-jenkins-deploy-platform-ansible-os-1877-1 2024-09-09 18:57:12,269 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/1d58966e-1fcf-4af8-808e-d10109f1d0cb 2024-09-09 18:57:12,277 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/8ab67d0a-987c-49d6-b91e-fc7c64341535 2024-09-09 18:57:13,515 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.572/2.756/1.183 ms') 2024-09-09 18:57:13,515 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-05567072-52314104 passed 2024-09-09 18:57:13,665 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 18:57:13,666 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05567072-52314104, IP 102.36.180.67, Port 22 2024-09-09 18:57:13,825 - DEBUG - VM ctest-TestRoutersBasic-05567072-52314104 is ready for SSH connections 2024-09-09 18:57:13,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 18:57:13,825 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:13,825 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:18,501 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:18,501 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:19,502 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:19,503 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:22,713 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:22,713 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:23,714 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:23,714 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:26,943 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:26,943 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:27,944 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:27,945 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:31,146 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:31,146 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:32,147 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:32,147 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:35,338 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:35,338 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:36,339 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:36,340 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:39,538 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:39,538 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:40,539 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:40,539 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:43,735 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:43,735 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:44,736 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:44,737 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:47,944 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:47,945 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:48,946 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:48,946 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:52,163 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:52,163 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:53,163 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:53,164 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:57:56,368 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:57:56,368 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:57:57,369 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.36.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-09 18:57:57,369 - DEBUG - ping -s 56 -c 3 -W 1 102.36.180.67 2024-09-09 18:58:00,573 - DEBUG - PING 102.36.180.67 (102.36.180.67): 56 data bytes --- 102.36.180.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 18:58:00,573 - WARNING - Ping to IP 102.36.180.67 from VM ctest-TestRoutersBasic-05567072-15791514 failed 2024-09-09 18:58:00,579 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 18:58:00,580 - INFO - Deleting interface with subnet_id 23915913-d597-4395-9f3a-d4c490498bd2, port_id None from router b35cdef7-1a8b-4666-b1bf-bd437d793898 2024-09-09 18:58:00,790 - INFO - Deleting VM ctest-TestRoutersBasic-05567072-52314104 2024-09-09 18:58:00,853 - INFO - Deleting VM ctest-TestRoutersBasic-05567072-15791514 2024-09-09 18:58:00,931 - INFO - Deleting VN ctest-ext_vn-59197308 2024-09-09 18:58:00,992 - DEBUG - VN 13163ff1-83a4-4426-b9ed-f52bd89b5316 still in use: Unable to complete operation on network 13163ff1-83a4-4426-b9ed-f52bd89b5316. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-80daf2a7-5ab4-4057-975f-7b790a825ad8'] 2024-09-09 18:58:00,992 - WARNING - Deleting VN ctest-ext_vn-59197308 failed..Will retry 2024-09-09 18:58:03,112 - DEBUG - Response for deleting network () 2024-09-09 18:58:03,112 - INFO - Deleting VN ctest-vn-07277686 2024-09-09 18:58:03,227 - DEBUG - Response for deleting network () 2024-09-09 18:58:03,485 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Mon Sep 9 18:58:00 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 = '102.36.180.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 2024-09-09 18:58:03,491 - DEBUG - No XMPP flaps were noticed during the test 2024-09-09 18:58:03,491 - INFO -
2024-09-09 18:58:03,491 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2024-09-09 18:58:03,491 - INFO - -------------------------------------------------------------------------------- 2024-09-09 18:58:04,187 - INFO - Deleted project: ctest-TestRoutersBasic-05567072, ID : f8b614ae-a023-4480-8031-699164bd5a0f