2024-09-10 08:21:20,682 - INFO - Domain Default found not creating 2024-09-10 08:21:20,872 - INFO - Project ctest-TestRoutersBasic-90393418 not found, creating it 2024-09-10 08:21:21,371 - INFO - Created Project:ctest-TestRoutersBasic-90393418, ID : f31dfd34-2000-4dd2-aa4b-32671f45c959 2024-09-10 08:21:23,302 - INFO - ================================================================================ 2024-09-10 08:21:23,302 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-10 08:21:23,302 - 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-10 08:21:23,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2024-09-10 08:21:23,559 - INFO - Initial checks done. Running the testcase now 2024-09-10 08:21:23,559 - INFO - 2024-09-10 08:21:24,248 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90393418 2024-09-10 08:21:24,349 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90393418 2024-09-10 08:21:24,672 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90393418', 'default']} 2024-09-10 08:21:25,005 - DEBUG - Response for create_network : {'network': {'id': '5eae6d7c-2250-4104-aa75-c57182b53a95', 'name': 'ctest-vn-98058626', 'tenant_id': 'f31dfd3420004dd2aa4b32671f45c959', 'project_id': 'f31dfd3420004dd2aa4b32671f45c959', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90393418', 'ctest-vn-98058626'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 08:21:25,188 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f90f8878-bb16-4541-9911-5535c7e29b2b', 'name': '', 'tenant_id': 'f31dfd3420004dd2aa4b32671f45c959', 'network_id': '5eae6d7c-2250-4104-aa75-c57182b53a95', 'ip_version': 4, 'cidr': '113.13.108.0/26', 'allocation_pools': [{'start': '113.13.108.2', 'end': '113.13.108.62'}], 'gateway_ip': '113.13.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.13.108.2', 'tags': [], 'project_id': 'f31dfd3420004dd2aa4b32671f45c959'}} 2024-09-10 08:21:25,207 - INFO - Created VN ctest-vn-98058626 2024-09-10 08:21:25,260 - DEBUG - VN ctest-vn-98058626 UUID is 5eae6d7c-2250-4104-aa75-c57182b53a95 2024-09-10 08:21:25,593 - DEBUG - Response for create_network : {'network': {'id': 'cb9189c3-a91a-4549-bd25-2d7f82ace59d', 'name': 'ctest-ext_vn-54642001', 'tenant_id': 'f31dfd3420004dd2aa4b32671f45c959', 'project_id': 'f31dfd3420004dd2aa4b32671f45c959', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90393418', 'ctest-ext_vn-54642001'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 08:21:25,756 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1bc89e8-297b-4c90-9a74-10b349c623f4', 'name': '', 'tenant_id': 'f31dfd3420004dd2aa4b32671f45c959', 'network_id': 'cb9189c3-a91a-4549-bd25-2d7f82ace59d', 'ip_version': 4, 'cidr': '209.180.97.192/26', 'allocation_pools': [{'start': '209.180.97.194', 'end': '209.180.97.254'}], 'gateway_ip': '209.180.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.180.97.194', 'tags': [], 'project_id': 'f31dfd3420004dd2aa4b32671f45c959'}} 2024-09-10 08:21:25,782 - INFO - Created VN ctest-ext_vn-54642001 2024-09-10 08:21:25,844 - DEBUG - VN ctest-ext_vn-54642001 UUID is cb9189c3-a91a-4549-bd25-2d7f82ace59d 2024-09-10 08:21:26,046 - DEBUG - Services list from nova: [, , ] 2024-09-10 08:21:27,091 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1881-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1881-1) 2024-09-10 08:21:28,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1881-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1881-1) 2024-09-10 08:21:28,342 - INFO - Setting gateway for router d0897412-c2d5-4b07-942e-b45c343ad51c to network cb9189c3-a91a-4549-bd25-2d7f82ace59d 2024-09-10 08:21:28,432 - INFO - Adding interface with subnet_id f90f8878-bb16-4541-9911-5535c7e29b2b, port_id None to router d0897412-c2d5-4b07-942e-b45c343ad51c 2024-09-10 08:21:28,851 - INFO - Waiting for VM ctest-TestRoutersBasic-90393418-10584251 to be up.. 2024-09-10 08:21:29,033 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-10 08:21:34,120 - DEBUG - VM is in ACTIVE state now 2024-09-10 08:21:34,120 - INFO - VM name : ctest-TestRoutersBasic-90393418-10584251 2024-09-10 08:21:34,207 - DEBUG - VM ctest-TestRoutersBasic-90393418-10584251 ID is c3c81505-3d6b-478e-8094-c648fa0a8631 2024-09-10 08:21:34,236 - DEBUG - VM ctest-TestRoutersBasic-90393418-10584251 launched on Node cn-jenkins-deploy-platform-ansible-os-1881-1 2024-09-10 08:21:34,322 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c3c81505-3d6b-478e-8094-c648fa0a8631 2024-09-10 08:21:34,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c3c81505-3d6b-478e-8094-c648fa0a8631 2024-09-10 08:21:34,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/4009f82a-6fcf-43c4-bea8-0c88556c2658 2024-09-10 08:21:37,906 - 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 1015ms') 2024-09-10 08:21:37,907 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90393418-10584251 failed! 2024-09-10 08:21:37,961 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90393418:ctest-vn-98058626 is 113.13.108.1 and allocation pool is NOT set 2024-09-10 08:21:40,021 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.432 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.432/1.513/2.594/1.081 ms') 2024-09-10 08:21:40,021 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90393418-10584251 passed 2024-09-10 08:21:40,172 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 08:21:40,173 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90393418-10584251, IP 113.13.108.3, Port 22 2024-09-10 08:21:40,328 - DEBUG - VM ctest-TestRoutersBasic-90393418-10584251 is ready for SSH connections 2024-09-10 08:21:40,328 - INFO - Waiting for VM ctest-TestRoutersBasic-90393418-01594871 to be up.. 2024-09-10 08:21:40,407 - DEBUG - VM is in ACTIVE state now 2024-09-10 08:21:40,408 - INFO - VM name : ctest-TestRoutersBasic-90393418-01594871 2024-09-10 08:21:40,493 - DEBUG - VM ctest-TestRoutersBasic-90393418-01594871 ID is 3263e819-4152-4b5f-95cc-65d8605d5b90 2024-09-10 08:21:40,493 - DEBUG - VM ctest-TestRoutersBasic-90393418-01594871 launched on Node cn-jenkins-deploy-platform-ansible-os-1881-1 2024-09-10 08:21:40,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/3263e819-4152-4b5f-95cc-65d8605d5b90 2024-09-10 08:21:40,584 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/6f2af25e-893a-408d-b678-13cafc816390 2024-09-10 08:21:41,823 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.433 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.433/1.622/2.811/1.189 ms') 2024-09-10 08:21:41,823 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90393418-01594871 passed 2024-09-10 08:21:41,980 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 08:21:41,981 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90393418-01594871, IP 209.180.97.195, Port 22 2024-09-10 08:21:42,144 - DEBUG - VM ctest-TestRoutersBasic-90393418-01594871 is ready for SSH connections 2024-09-10 08:21:42,144 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 08:21:42,144 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:21:42,144 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:21:46,859 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:21:46,859 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:21:47,860 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:21:47,860 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:21:51,067 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:21:51,067 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:21:52,068 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:21:52,068 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:21:55,285 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:21:55,285 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:21:56,286 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:21:56,286 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:21:59,503 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:21:59,504 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:00,504 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:00,505 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:03,732 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:03,732 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:04,732 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:04,733 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:07,943 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:07,943 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:08,944 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:08,944 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:12,150 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:12,150 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:13,151 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:13,151 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:16,367 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:16,367 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:17,369 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:17,369 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:20,573 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:20,574 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:21,575 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:21,575 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:24,791 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:24,792 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:25,793 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.180.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-10 08:22:25,793 - DEBUG - ping -s 56 -c 3 -W 1 209.180.97.195 2024-09-10 08:22:29,007 - DEBUG - PING 209.180.97.195 (209.180.97.195): 56 data bytes --- 209.180.97.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-10 08:22:29,007 - WARNING - Ping to IP 209.180.97.195 from VM ctest-TestRoutersBasic-90393418-10584251 failed 2024-09-10 08:22:29,013 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 08:22:29,014 - INFO - Deleting interface with subnet_id f90f8878-bb16-4541-9911-5535c7e29b2b, port_id None from router d0897412-c2d5-4b07-942e-b45c343ad51c 2024-09-10 08:22:29,224 - INFO - Deleting VM ctest-TestRoutersBasic-90393418-01594871 2024-09-10 08:22:29,298 - INFO - Deleting VM ctest-TestRoutersBasic-90393418-10584251 2024-09-10 08:22:29,382 - INFO - Deleting VN ctest-ext_vn-54642001 2024-09-10 08:22:29,465 - DEBUG - VN cb9189c3-a91a-4549-bd25-2d7f82ace59d still in use: Unable to complete operation on network cb9189c3-a91a-4549-bd25-2d7f82ace59d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2638bd42-a731-484a-b6ca-a7749ba45ac2'] 2024-09-10 08:22:29,465 - WARNING - Deleting VN ctest-ext_vn-54642001 failed..Will retry 2024-09-10 08:22:31,585 - DEBUG - Response for deleting network () 2024-09-10 08:22:31,585 - INFO - Deleting VN ctest-vn-98058626 2024-09-10 08:22:31,734 - DEBUG - Response for deleting network () 2024-09-10 08:22:31,987 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Tue Sep 10 08:22:29 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 = '209.180.97.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-10 08:22:31,994 - DEBUG - No XMPP flaps were noticed during the test 2024-09-10 08:22:31,994 - INFO - 2024-09-10 08:22:31,994 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:08] 2024-09-10 08:22:31,994 - INFO - -------------------------------------------------------------------------------- 2024-09-10 08:22:32,703 - INFO - Deleted project: ctest-TestRoutersBasic-90393418, ID : f31dfd34-2000-4dd2-aa4b-32671f45c959