2024-10-28 16:23:54,057 - INFO - Domain Default found not creating 2024-10-28 16:23:54,288 - INFO - Project ctest-TestRoutersBasic-31075994 not found, creating it 2024-10-28 16:23:54,838 - INFO - Created Project:ctest-TestRoutersBasic-31075994, ID : d4f081c7-a1a2-4098-8e09-e64ff75ade7e 2024-10-28 16:23:57,188 - INFO - ================================================================================ 2024-10-28 16:23:57,189 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 16:23:57,189 - 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-28 16:23:57,460 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.22': '0'}} with 2024-10-28 16:23:57,460 - INFO - Initial checks done. Running the testcase now 2024-10-28 16:23:57,460 - INFO - 2024-10-28 16:23:58,246 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31075994 2024-10-28 16:23:58,353 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31075994 2024-10-28 16:23:58,701 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31075994', 'default']} 2024-10-28 16:23:59,048 - DEBUG - Response for create_network : {'network': {'id': '43e27a6b-d29b-4f2b-b988-2c1c4df9be78', 'name': 'ctest-vn-27825648', 'tenant_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'project_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31075994', 'ctest-vn-27825648'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:23:59,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '413138fc-1082-431c-bb61-7de516603c94', 'name': '', 'tenant_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'network_id': '43e27a6b-d29b-4f2b-b988-2c1c4df9be78', 'ip_version': 4, 'cidr': '148.255.61.0/26', 'allocation_pools': [{'start': '148.255.61.2', 'end': '148.255.61.62'}], 'gateway_ip': '148.255.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.255.61.2', 'tags': [], 'project_id': 'd4f081c7a1a240988e09e64ff75ade7e'}} 2024-10-28 16:23:59,280 - INFO - Created VN ctest-vn-27825648 2024-10-28 16:23:59,341 - DEBUG - VN ctest-vn-27825648 UUID is 43e27a6b-d29b-4f2b-b988-2c1c4df9be78 2024-10-28 16:23:59,735 - DEBUG - Response for create_network : {'network': {'id': 'ac9da106-99a1-40a8-8f76-0fbae0fa6a28', 'name': 'ctest-ext_vn-53819542', 'tenant_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'project_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31075994', 'ctest-ext_vn-53819542'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:23:59,900 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd08b1e1-449c-47a8-9642-3d65e6ffed6a', 'name': '', 'tenant_id': 'd4f081c7a1a240988e09e64ff75ade7e', 'network_id': 'ac9da106-99a1-40a8-8f76-0fbae0fa6a28', 'ip_version': 4, 'cidr': '66.84.32.0/26', 'allocation_pools': [{'start': '66.84.32.2', 'end': '66.84.32.62'}], 'gateway_ip': '66.84.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.84.32.2', 'tags': [], 'project_id': 'd4f081c7a1a240988e09e64ff75ade7e'}} 2024-10-28 16:23:59,922 - INFO - Created VN ctest-ext_vn-53819542 2024-10-28 16:23:59,981 - DEBUG - VN ctest-ext_vn-53819542 UUID is ac9da106-99a1-40a8-8f76-0fbae0fa6a28 2024-10-28 16:24:00,176 - DEBUG - Services list from nova: [, , ] 2024-10-28 16:24:01,334 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2167-1) 2024-10-28 16:24:02,633 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2167-1) 2024-10-28 16:24:02,743 - INFO - Setting gateway for router 83f93061-12bf-4b24-809e-b523d0adfdf4 to network ac9da106-99a1-40a8-8f76-0fbae0fa6a28 2024-10-28 16:24:02,825 - INFO - Adding interface with subnet_id 413138fc-1082-431c-bb61-7de516603c94, port_id None to router 83f93061-12bf-4b24-809e-b523d0adfdf4 2024-10-28 16:24:03,270 - INFO - Waiting for VM ctest-TestRoutersBasic-31075994-67252881 to be up.. 2024-10-28 16:24:03,438 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 16:24:08,541 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:24:08,542 - INFO - VM name : ctest-TestRoutersBasic-31075994-67252881 2024-10-28 16:24:08,634 - DEBUG - VM ctest-TestRoutersBasic-31075994-67252881 ID is a13671af-cce7-488e-9dc7-e86c16c0e241 2024-10-28 16:24:08,657 - DEBUG - VM ctest-TestRoutersBasic-31075994-67252881 launched on Node cn-jenkins-deploy-platform-ansible-os-2167-1 2024-10-28 16:24:08,749 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a13671af-cce7-488e-9dc7-e86c16c0e241 2024-10-28 16:24:09,041 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a13671af-cce7-488e-9dc7-e86c16c0e241 2024-10-28 16:24:09,081 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/c2918e2b-f422-40b8-acc2-1e75680ab6fc 2024-10-28 16:24:12,371 - 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 1034ms') 2024-10-28 16:24:12,371 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31075994-67252881 failed! 2024-10-28 16:24:12,433 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31075994:ctest-vn-27825648 is 148.255.61.1 and allocation pool is NOT set 2024-10-28 16:24:14,504 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.588 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.588/2.137/3.687/1.549 ms') 2024-10-28 16:24:14,504 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31075994-67252881 passed 2024-10-28 16:24:14,669 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:14,669 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31075994-67252881, IP 148.255.61.3, Port 22 2024-10-28 16:24:14,832 - DEBUG - VM ctest-TestRoutersBasic-31075994-67252881 is ready for SSH connections 2024-10-28 16:24:14,832 - INFO - Waiting for VM ctest-TestRoutersBasic-31075994-02960235 to be up.. 2024-10-28 16:24:14,962 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:24:14,963 - INFO - VM name : ctest-TestRoutersBasic-31075994-02960235 2024-10-28 16:24:15,065 - DEBUG - VM ctest-TestRoutersBasic-31075994-02960235 ID is 2805b198-ea37-4571-a0e9-bc0e8095e2f7 2024-10-28 16:24:15,065 - DEBUG - VM ctest-TestRoutersBasic-31075994-02960235 launched on Node cn-jenkins-deploy-platform-ansible-os-2167-1 2024-10-28 16:24:15,165 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/2805b198-ea37-4571-a0e9-bc0e8095e2f7 2024-10-28 16:24:15,178 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/295681a3-3345-44be-8589-4d5d8a3dab13 2024-10-28 16:24:16,453 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.470 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.470/2.098/3.727/1.628 ms') 2024-10-28 16:24:16,454 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31075994-02960235 passed 2024-10-28 16:24:16,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:16,613 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31075994-02960235, IP 66.84.32.3, Port 22 2024-10-28 16:24:16,768 - DEBUG - VM ctest-TestRoutersBasic-31075994-02960235 is ready for SSH connections 2024-10-28 16:24:16,768 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:16,768 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.84.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-10-28 16:24:16,768 - DEBUG - ping -s 56 -c 3 -W 1 66.84.32.3 2024-10-28 16:24:20,486 - DEBUG - PING 66.84.32.3 (66.84.32.3): 56 data bytes 64 bytes from 66.84.32.3: seq=0 ttl=62 time=6.590 ms 64 bytes from 66.84.32.3: seq=1 ttl=62 time=1.368 ms 64 bytes from 66.84.32.3: seq=2 ttl=62 time=1.773 ms --- 66.84.32.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.368/3.243/6.590 ms 2024-10-28 16:24:20,487 - INFO - Ping to IP 66.84.32.3 from VM ctest-TestRoutersBasic-31075994-67252881 passed 2024-10-28 16:24:20,487 - INFO - Deleting interface with subnet_id 413138fc-1082-431c-bb61-7de516603c94, port_id None from router 83f93061-12bf-4b24-809e-b523d0adfdf4 2024-10-28 16:24:20,751 - INFO - Deleting VM ctest-TestRoutersBasic-31075994-02960235 2024-10-28 16:24:20,837 - INFO - Deleting VM ctest-TestRoutersBasic-31075994-67252881 2024-10-28 16:24:20,938 - INFO - Deleting VN ctest-ext_vn-53819542 2024-10-28 16:24:21,053 - DEBUG - VN ac9da106-99a1-40a8-8f76-0fbae0fa6a28 still in use: Unable to complete operation on network ac9da106-99a1-40a8-8f76-0fbae0fa6a28. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-292f3e34-b7d5-4998-885c-08ff656e486f'] 2024-10-28 16:24:21,053 - WARNING - Deleting VN ctest-ext_vn-53819542 failed..Will retry 2024-10-28 16:24:23,224 - DEBUG - Response for deleting network () 2024-10-28 16:24:23,224 - INFO - Deleting VN ctest-vn-27825648 2024-10-28 16:24:23,368 - DEBUG - Response for deleting network () 2024-10-28 16:24:23,624 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 16:24:23,624 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-28 16:24:23,624 - INFO - -------------------------------------------------------------------------------- 2024-10-28 16:24:24,354 - INFO - Deleted project: ctest-TestRoutersBasic-31075994, ID : d4f081c7-a1a2-4098-8e09-e64ff75ade7e