2024-09-09 21:05:44,302 - INFO - Domain Default found not creating 2024-09-09 21:05:44,481 - INFO - Project ctest-TestRoutersBasic-28841961 not found, creating it 2024-09-09 21:05:44,998 - INFO - Created Project:ctest-TestRoutersBasic-28841961, ID : b12c0ead-2b3f-46f9-a63a-3714248d7c9a 2024-09-09 21:05:46,589 - INFO - ================================================================================ 2024-09-09 21:05:46,589 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-09 21:05:46,589 - 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 21:05:46,849 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.27': '0'}} with 2024-09-09 21:05:46,850 - INFO - Initial checks done. Running the testcase now 2024-09-09 21:05:46,850 - INFO - 2024-09-09 21:05:47,561 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28841961 2024-09-09 21:05:47,656 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28841961 2024-09-09 21:05:47,984 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28841961', 'default']} 2024-09-09 21:05:48,607 - DEBUG - Response for create_network : {'network': {'id': '3e8a5451-0e13-4210-91fa-f7657ced4aa2', 'name': 'ctest-vn-34281037', 'tenant_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'project_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28841961', 'ctest-vn-34281037'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 21:05:48,825 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d007e30-23b9-491c-b6ec-21e1780f191f', 'name': '', 'tenant_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'network_id': '3e8a5451-0e13-4210-91fa-f7657ced4aa2', 'ip_version': 4, 'cidr': '192.241.165.128/26', 'allocation_pools': [{'start': '192.241.165.130', 'end': '192.241.165.190'}], 'gateway_ip': '192.241.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.241.165.130', 'tags': [], 'project_id': 'b12c0ead2b3f46f9a63a3714248d7c9a'}} 2024-09-09 21:05:48,847 - INFO - Created VN ctest-vn-34281037 2024-09-09 21:05:48,900 - DEBUG - VN ctest-vn-34281037 UUID is 3e8a5451-0e13-4210-91fa-f7657ced4aa2 2024-09-09 21:05:49,218 - DEBUG - Response for create_network : {'network': {'id': '6ee6b917-4c31-4351-950f-bed9479630df', 'name': 'ctest-ext_vn-34189766', 'tenant_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'project_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28841961', 'ctest-ext_vn-34189766'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 21:05:49,430 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddd6c999-7b1d-4f73-9823-a26fb4cde625', 'name': '', 'tenant_id': 'b12c0ead2b3f46f9a63a3714248d7c9a', 'network_id': '6ee6b917-4c31-4351-950f-bed9479630df', 'ip_version': 4, 'cidr': '144.182.188.0/26', 'allocation_pools': [{'start': '144.182.188.2', 'end': '144.182.188.62'}], 'gateway_ip': '144.182.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.182.188.2', 'tags': [], 'project_id': 'b12c0ead2b3f46f9a63a3714248d7c9a'}} 2024-09-09 21:05:49,451 - INFO - Created VN ctest-ext_vn-34189766 2024-09-09 21:05:49,504 - DEBUG - VN ctest-ext_vn-34189766 UUID is 6ee6b917-4c31-4351-950f-bed9479630df 2024-09-09 21:05:49,669 - DEBUG - Services list from nova: [, , ] 2024-09-09 21:05:50,715 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1878-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1878-1) 2024-09-09 21:05:51,859 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1878-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1878-1) 2024-09-09 21:05:51,929 - INFO - Setting gateway for router 1855798e-b7bc-4b6e-8039-cb9194d4dcdf to network 6ee6b917-4c31-4351-950f-bed9479630df 2024-09-09 21:05:52,010 - INFO - Adding interface with subnet_id 4d007e30-23b9-491c-b6ec-21e1780f191f, port_id None to router 1855798e-b7bc-4b6e-8039-cb9194d4dcdf 2024-09-09 21:05:52,371 - INFO - Waiting for VM ctest-TestRoutersBasic-28841961-28694992 to be up.. 2024-09-09 21:05:52,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-09 21:05:57,589 - DEBUG - VM is in ACTIVE state now 2024-09-09 21:05:57,589 - INFO - VM name : ctest-TestRoutersBasic-28841961-28694992 2024-09-09 21:05:57,672 - DEBUG - VM ctest-TestRoutersBasic-28841961-28694992 ID is 2f9a7399-47f9-4f4b-84e4-9de6ee8a1912 2024-09-09 21:05:57,689 - DEBUG - VM ctest-TestRoutersBasic-28841961-28694992 launched on Node cn-jenkins-deploy-platform-ansible-os-1878-1 2024-09-09 21:05:57,765 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/2f9a7399-47f9-4f4b-84e4-9de6ee8a1912 2024-09-09 21:05:58,063 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/2f9a7399-47f9-4f4b-84e4-9de6ee8a1912 2024-09-09 21:05:58,099 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/c578aa35-ac89-499b-945c-95fb1bd9e096 2024-09-09 21:06:01,369 - 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 1023ms') 2024-09-09 21:06:01,369 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28841961-28694992 failed! 2024-09-09 21:06:01,424 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28841961:ctest-vn-34281037 is 192.241.165.129 and allocation pool is NOT set 2024-09-09 21:06:03,488 - 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.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.471 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.471/1.846/3.221/1.375 ms') 2024-09-09 21:06:03,488 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28841961-28694992 passed 2024-09-09 21:06:03,640 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 21:06:03,640 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28841961-28694992, IP 192.241.165.131, Port 22 2024-09-09 21:06:03,799 - DEBUG - VM ctest-TestRoutersBasic-28841961-28694992 is ready for SSH connections 2024-09-09 21:06:03,799 - INFO - Waiting for VM ctest-TestRoutersBasic-28841961-26772488 to be up.. 2024-09-09 21:06:03,939 - DEBUG - VM is in ACTIVE state now 2024-09-09 21:06:03,939 - INFO - VM name : ctest-TestRoutersBasic-28841961-26772488 2024-09-09 21:06:04,033 - DEBUG - VM ctest-TestRoutersBasic-28841961-26772488 ID is 78bcb04e-36fb-465c-9702-90c52ffaa742 2024-09-09 21:06:04,033 - DEBUG - VM ctest-TestRoutersBasic-28841961-26772488 launched on Node cn-jenkins-deploy-platform-ansible-os-1878-1 2024-09-09 21:06:04,121 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/78bcb04e-36fb-465c-9702-90c52ffaa742 2024-09-09 21:06:04,129 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/7f5cdf3a-1ac4-4f39-a652-69cdf3bc4150 2024-09-09 21:06:05,376 - 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.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.538 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.538/2.044/3.551/1.506 ms') 2024-09-09 21:06:05,376 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28841961-26772488 passed 2024-09-09 21:06:05,532 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 21:06:05,532 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28841961-26772488, IP 144.182.188.3, Port 22 2024-09-09 21:06:05,704 - DEBUG - VM ctest-TestRoutersBasic-28841961-26772488 is ready for SSH connections 2024-09-09 21:06:05,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 21:06:05,705 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:05,705 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:10,411 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:10,411 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:11,412 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:11,412 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:14,607 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:14,607 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:15,608 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:15,608 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:18,811 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:18,811 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:19,812 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:19,813 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:23,014 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:23,014 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:24,015 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:24,015 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:27,239 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:27,239 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:28,241 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:28,241 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:31,443 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:31,443 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:32,444 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:32,445 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:35,646 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:35,646 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:36,647 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:36,647 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:39,857 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:39,857 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:40,857 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:40,858 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:44,056 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:44,056 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:45,056 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:45,057 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:48,256 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:48,256 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:49,257 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.182.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-09 21:06:49,257 - DEBUG - ping -s 56 -c 3 -W 1 144.182.188.3 2024-09-09 21:06:52,457 - DEBUG - PING 144.182.188.3 (144.182.188.3): 56 data bytes --- 144.182.188.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 21:06:52,458 - WARNING - Ping to IP 144.182.188.3 from VM ctest-TestRoutersBasic-28841961-28694992 failed 2024-09-09 21:06:52,464 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 21:06:52,464 - INFO - Deleting interface with subnet_id 4d007e30-23b9-491c-b6ec-21e1780f191f, port_id None from router 1855798e-b7bc-4b6e-8039-cb9194d4dcdf 2024-09-09 21:06:52,674 - INFO - Deleting VM ctest-TestRoutersBasic-28841961-26772488 2024-09-09 21:06:52,741 - INFO - Deleting VM ctest-TestRoutersBasic-28841961-28694992 2024-09-09 21:06:52,818 - INFO - Deleting VN ctest-ext_vn-34189766 2024-09-09 21:06:52,890 - DEBUG - VN 6ee6b917-4c31-4351-950f-bed9479630df still in use: Unable to complete operation on network 6ee6b917-4c31-4351-950f-bed9479630df. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9a715dd8-505e-46f2-9cb4-ea96eb75ca23'] 2024-09-09 21:06:52,890 - WARNING - Deleting VN ctest-ext_vn-34189766 failed..Will retry 2024-09-09 21:06:55,021 - DEBUG - Response for deleting network () 2024-09-09 21:06:55,021 - INFO - Deleting VN ctest-vn-34281037 2024-09-09 21:06:55,143 - DEBUG - Response for deleting network () 2024-09-09 21:06:55,391 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Mon Sep 9 21:06:52 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 = '144.182.188.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 21:06:55,398 - DEBUG - No XMPP flaps were noticed during the test 2024-09-09 21:06:55,398 - INFO -
2024-09-09 21:06:55,398 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2024-09-09 21:06:55,398 - INFO - -------------------------------------------------------------------------------- 2024-09-09 21:06:56,092 - INFO - Deleted project: ctest-TestRoutersBasic-28841961, ID : b12c0ead-2b3f-46f9-a63a-3714248d7c9a