2024-10-25 15:19:52,148 - INFO - Domain Default found not creating 2024-10-25 15:19:52,356 - INFO - Project ctest-TestRoutersBasic-65416611 not found, creating it 2024-10-25 15:19:52,940 - INFO - Created Project:ctest-TestRoutersBasic-65416611, ID : 0cfc4a7b-2ea7-49f4-99b0-b27bd7e02eb3 2024-10-25 15:19:54,757 - INFO - ================================================================================ 2024-10-25 15:19:54,758 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-25 15:19:54,758 - 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-10-25 15:19:55,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with 2024-10-25 15:19:55,019 - INFO - Initial checks done. Running the testcase now 2024-10-25 15:19:55,020 - INFO - 2024-10-25 15:19:55,852 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-65416611 2024-10-25 15:19:55,952 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-65416611 2024-10-25 15:19:56,332 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65416611', 'default']} 2024-10-25 15:19:56,701 - DEBUG - Response for create_network : {'network': {'id': 'b6e60e25-4b35-4de7-a441-9e10bfc86b34', 'name': 'ctest-vn-10116671', 'tenant_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'project_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65416611', 'ctest-vn-10116671'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:19:56,971 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cf61391-b387-46c1-8ae4-727be81af299', 'name': '', 'tenant_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'network_id': 'b6e60e25-4b35-4de7-a441-9e10bfc86b34', 'ip_version': 4, 'cidr': '134.114.138.0/26', 'allocation_pools': [{'start': '134.114.138.2', 'end': '134.114.138.62'}], 'gateway_ip': '134.114.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.114.138.2', 'tags': [], 'project_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3'}} 2024-10-25 15:19:56,997 - INFO - Created VN ctest-vn-10116671 2024-10-25 15:19:57,060 - DEBUG - VN ctest-vn-10116671 UUID is b6e60e25-4b35-4de7-a441-9e10bfc86b34 2024-10-25 15:19:57,508 - DEBUG - Response for create_network : {'network': {'id': '62133a9e-e484-42ee-b56c-1bb044317456', 'name': 'ctest-ext_vn-19084449', 'tenant_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'project_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65416611', 'ctest-ext_vn-19084449'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:19:57,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ad49366-d143-4561-b940-7b3b202c474f', 'name': '', 'tenant_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3', 'network_id': '62133a9e-e484-42ee-b56c-1bb044317456', 'ip_version': 4, 'cidr': '168.12.8.64/26', 'allocation_pools': [{'start': '168.12.8.66', 'end': '168.12.8.126'}], 'gateway_ip': '168.12.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.12.8.66', 'tags': [], 'project_id': '0cfc4a7b2ea749f499b0b27bd7e02eb3'}} 2024-10-25 15:19:57,744 - INFO - Created VN ctest-ext_vn-19084449 2024-10-25 15:19:57,804 - DEBUG - VN ctest-ext_vn-19084449 UUID is 62133a9e-e484-42ee-b56c-1bb044317456 2024-10-25 15:19:58,004 - DEBUG - Services list from nova: [, , ] 2024-10-25 15:19:59,243 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2145-1) 2024-10-25 15:20:00,622 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2145-1) 2024-10-25 15:20:00,720 - INFO - Setting gateway for router 339176c9-4585-4682-83fe-5d8af19e8bb6 to network 62133a9e-e484-42ee-b56c-1bb044317456 2024-10-25 15:20:00,809 - INFO - Adding interface with subnet_id 9cf61391-b387-46c1-8ae4-727be81af299, port_id None to router 339176c9-4585-4682-83fe-5d8af19e8bb6 2024-10-25 15:20:01,739 - INFO - Waiting for VM ctest-TestRoutersBasic-65416611-26811741 to be up.. 2024-10-25 15:20:02,009 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 15:20:07,113 - DEBUG - VM is in ACTIVE state now 2024-10-25 15:20:07,113 - INFO - VM name : ctest-TestRoutersBasic-65416611-26811741 2024-10-25 15:20:07,205 - DEBUG - VM ctest-TestRoutersBasic-65416611-26811741 ID is 3f8479ed-1bdc-47bc-a926-dc0f59f697a4 2024-10-25 15:20:07,227 - DEBUG - VM ctest-TestRoutersBasic-65416611-26811741 launched on Node cn-jenkins-deploy-platform-ansible-os-2145-1 2024-10-25 15:20:07,320 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3f8479ed-1bdc-47bc-a926-dc0f59f697a4 2024-10-25 15:20:07,659 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3f8479ed-1bdc-47bc-a926-dc0f59f697a4 2024-10-25 15:20:07,699 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/20e895a0-2421-4287-a51b-6986fd04e26e 2024-10-25 15:20:10,983 - 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 1025ms') 2024-10-25 15:20:10,983 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65416611-26811741 failed! 2024-10-25 15:20:11,048 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-65416611:ctest-vn-10116671 is 134.114.138.1 and allocation pool is NOT set 2024-10-25 15:20:13,116 - 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=4.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.933 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.933/2.689/4.446/1.756 ms') 2024-10-25 15:20:13,116 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65416611-26811741 passed 2024-10-25 15:20:13,276 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:20:13,276 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65416611-26811741, IP 134.114.138.3, Port 22 2024-10-25 15:20:13,432 - DEBUG - VM ctest-TestRoutersBasic-65416611-26811741 is ready for SSH connections 2024-10-25 15:20:13,432 - INFO - Waiting for VM ctest-TestRoutersBasic-65416611-58290533 to be up.. 2024-10-25 15:20:13,524 - DEBUG - VM is in ACTIVE state now 2024-10-25 15:20:13,524 - INFO - VM name : ctest-TestRoutersBasic-65416611-58290533 2024-10-25 15:20:13,635 - DEBUG - VM ctest-TestRoutersBasic-65416611-58290533 ID is 2af618d5-4e00-4a8e-8f2b-1a3184129473 2024-10-25 15:20:13,635 - DEBUG - VM ctest-TestRoutersBasic-65416611-58290533 launched on Node cn-jenkins-deploy-platform-ansible-os-2145-1 2024-10-25 15:20:13,747 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/2af618d5-4e00-4a8e-8f2b-1a3184129473 2024-10-25 15:20:13,760 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/ffbe0d3a-06ea-428b-a3e1-547059c6a8c4 2024-10-25 15:20:15,026 - 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=4.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.330 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.330/2.401/4.473/2.071 ms') 2024-10-25 15:20:15,026 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-65416611-58290533 passed 2024-10-25 15:20:15,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:20:15,192 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65416611-58290533, IP 168.12.8.67, Port 22 2024-10-25 15:20:15,353 - DEBUG - VM ctest-TestRoutersBasic-65416611-58290533 is ready for SSH connections 2024-10-25 15:20:15,353 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:20:15,353 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:15,353 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:20,127 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:20,127 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:21,128 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:21,129 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:24,364 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:24,365 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:25,366 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:25,366 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:28,604 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:28,604 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:29,605 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:29,605 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:32,842 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:32,843 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:33,844 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:33,844 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:37,083 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:37,084 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:38,084 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:38,085 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:41,331 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:41,332 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:42,333 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:42,333 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:45,580 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:45,580 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:46,581 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:46,581 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:49,830 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:49,830 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:50,831 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:50,831 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:54,089 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:54,090 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:55,090 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:55,090 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:20:58,330 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:20:58,330 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:20:59,331 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.12.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:20:59,331 - DEBUG - ping -s 56 -c 3 -W 1 168.12.8.67 2024-10-25 15:21:02,581 - DEBUG - PING 168.12.8.67 (168.12.8.67): 56 data bytes --- 168.12.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:21:02,581 - WARNING - Ping to IP 168.12.8.67 from VM ctest-TestRoutersBasic-65416611-26811741 failed 2024-10-25 15:21:02,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:02,589 - INFO - Deleting interface with subnet_id 9cf61391-b387-46c1-8ae4-727be81af299, port_id None from router 339176c9-4585-4682-83fe-5d8af19e8bb6 2024-10-25 15:21:02,873 - INFO - Deleting VM ctest-TestRoutersBasic-65416611-58290533 2024-10-25 15:21:02,974 - INFO - Deleting VM ctest-TestRoutersBasic-65416611-26811741 2024-10-25 15:21:03,084 - INFO - Deleting VN ctest-ext_vn-19084449 2024-10-25 15:21:03,165 - DEBUG - VN 62133a9e-e484-42ee-b56c-1bb044317456 still in use: Unable to complete operation on network 62133a9e-e484-42ee-b56c-1bb044317456. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-40e0a52c-7a88-42b6-9555-880ff1b3c7d8'] 2024-10-25 15:21:03,165 - WARNING - Deleting VN ctest-ext_vn-19084449 failed..Will retry 2024-10-25 15:21:05,325 - DEBUG - Response for deleting network () 2024-10-25 15:21:05,325 - INFO - Deleting VN ctest-vn-10116671 2024-10-25 15:21:05,473 - DEBUG - Response for deleting network () 2024-10-25 15:21:05,723 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Fri Oct 25 15:21:02 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 = '168.12.8.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-10-25 15:21:05,730 - DEBUG - No XMPP flaps were noticed during the test 2024-10-25 15:21:05,730 - INFO - 2024-10-25 15:21:05,731 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:11] 2024-10-25 15:21:05,731 - INFO - -------------------------------------------------------------------------------- 2024-10-25 15:21:06,548 - INFO - Deleted project: ctest-TestRoutersBasic-65416611, ID : 0cfc4a7b-2ea7-49f4-99b0-b27bd7e02eb3