2024-10-24 14:32:36,232 - INFO - Domain Default found not creating 2024-10-24 14:32:36,415 - INFO - Project ctest-TestRoutersBasic-04069711 not found, creating it 2024-10-24 14:32:36,910 - INFO - Created Project:ctest-TestRoutersBasic-04069711, ID : 69e81dbd-4db3-46f7-abf1-57176f51de05 2024-10-24 14:32:38,492 - INFO - ================================================================================ 2024-10-24 14:32:38,492 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 14:32:38,492 - 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-24 14:32:38,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.17': '0'}} with 2024-10-24 14:32:38,748 - INFO - Initial checks done. Running the testcase now 2024-10-24 14:32:38,748 - INFO - 2024-10-24 14:32:39,770 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04069711 2024-10-24 14:32:39,874 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04069711 2024-10-24 14:32:40,226 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04069711', 'default']} 2024-10-24 14:32:40,697 - DEBUG - Response for create_network : {'network': {'id': 'faff6a0b-bded-49fa-88b1-213187a07ece', 'name': 'ctest-vn-29573314', 'tenant_id': '69e81dbd4db346f7abf157176f51de05', 'project_id': '69e81dbd4db346f7abf157176f51de05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04069711', 'ctest-vn-29573314'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:32:40,879 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da357887-0d6a-485b-ba99-4d8bf6befcd2', 'name': '', 'tenant_id': '69e81dbd4db346f7abf157176f51de05', 'network_id': 'faff6a0b-bded-49fa-88b1-213187a07ece', 'ip_version': 4, 'cidr': '192.30.161.128/26', 'allocation_pools': [{'start': '192.30.161.130', 'end': '192.30.161.190'}], 'gateway_ip': '192.30.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.30.161.130', 'tags': [], 'project_id': '69e81dbd4db346f7abf157176f51de05'}} 2024-10-24 14:32:40,900 - INFO - Created VN ctest-vn-29573314 2024-10-24 14:32:40,958 - DEBUG - VN ctest-vn-29573314 UUID is faff6a0b-bded-49fa-88b1-213187a07ece 2024-10-24 14:32:41,330 - DEBUG - Response for create_network : {'network': {'id': 'cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91', 'name': 'ctest-ext_vn-01744977', 'tenant_id': '69e81dbd4db346f7abf157176f51de05', 'project_id': '69e81dbd4db346f7abf157176f51de05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04069711', 'ctest-ext_vn-01744977'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:32:41,516 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca5e5115-bc29-4a4f-b28a-851e38c257bd', 'name': '', 'tenant_id': '69e81dbd4db346f7abf157176f51de05', 'network_id': 'cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91', 'ip_version': 4, 'cidr': '16.213.221.128/26', 'allocation_pools': [{'start': '16.213.221.130', 'end': '16.213.221.190'}], 'gateway_ip': '16.213.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.213.221.130', 'tags': [], 'project_id': '69e81dbd4db346f7abf157176f51de05'}} 2024-10-24 14:32:41,540 - INFO - Created VN ctest-ext_vn-01744977 2024-10-24 14:32:41,602 - DEBUG - VN ctest-ext_vn-01744977 UUID is cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91 2024-10-24 14:32:41,790 - DEBUG - Services list from nova: [, , ] 2024-10-24 14:32:42,887 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2141-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2141-1) 2024-10-24 14:32:44,128 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2141-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2141-1) 2024-10-24 14:32:44,215 - INFO - Setting gateway for router aa0323f2-571a-42a6-b04b-6c895d06f922 to network cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91 2024-10-24 14:32:44,278 - INFO - Adding interface with subnet_id da357887-0d6a-485b-ba99-4d8bf6befcd2, port_id None to router aa0323f2-571a-42a6-b04b-6c895d06f922 2024-10-24 14:32:44,718 - INFO - Waiting for VM ctest-TestRoutersBasic-04069711-30408256 to be up.. 2024-10-24 14:32:44,936 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 14:32:50,027 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:32:50,027 - INFO - VM name : ctest-TestRoutersBasic-04069711-30408256 2024-10-24 14:32:50,123 - DEBUG - VM ctest-TestRoutersBasic-04069711-30408256 ID is 9ad2c0d9-1d8f-4a8e-9018-14b56ae5ad11 2024-10-24 14:32:50,145 - DEBUG - VM ctest-TestRoutersBasic-04069711-30408256 launched on Node cn-jenkins-deploy-platform-ansible-os-2141-1 2024-10-24 14:32:50,228 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/9ad2c0d9-1d8f-4a8e-9018-14b56ae5ad11 2024-10-24 14:32:50,547 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/9ad2c0d9-1d8f-4a8e-9018-14b56ae5ad11 2024-10-24 14:32:50,596 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/d730845c-616f-4748-b32e-8c9fdbce43ca 2024-10-24 14:32:53,867 - 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 1010ms') 2024-10-24 14:32:53,867 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04069711-30408256 failed! 2024-10-24 14:32:53,930 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04069711:ctest-vn-29573314 is 192.30.161.129 and allocation pool is NOT set 2024-10-24 14:32:55,994 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.12 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 = 3.835/3.976/4.118/0.141 ms') 2024-10-24 14:32:55,994 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04069711-30408256 passed 2024-10-24 14:32:56,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:32:56,158 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04069711-30408256, IP 192.30.161.131, Port 22 2024-10-24 14:32:56,324 - DEBUG - VM ctest-TestRoutersBasic-04069711-30408256 is ready for SSH connections 2024-10-24 14:32:56,324 - INFO - Waiting for VM ctest-TestRoutersBasic-04069711-54962369 to be up.. 2024-10-24 14:32:56,422 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:32:56,423 - INFO - VM name : ctest-TestRoutersBasic-04069711-54962369 2024-10-24 14:32:56,521 - DEBUG - VM ctest-TestRoutersBasic-04069711-54962369 ID is c3d0b897-7e54-41cf-9477-3fa3a89b4dc5 2024-10-24 14:32:56,521 - DEBUG - VM ctest-TestRoutersBasic-04069711-54962369 launched on Node cn-jenkins-deploy-platform-ansible-os-2141-1 2024-10-24 14:32:56,610 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/c3d0b897-7e54-41cf-9477-3fa3a89b4dc5 2024-10-24 14:32:56,621 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/e0a8b127-76f2-4f26-831a-81071048a29a 2024-10-24 14:32:57,877 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/1.629/2.752/1.122 ms') 2024-10-24 14:32:57,877 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04069711-54962369 passed 2024-10-24 14:32:58,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:32:58,042 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04069711-54962369, IP 16.213.221.131, Port 22 2024-10-24 14:32:58,202 - DEBUG - VM ctest-TestRoutersBasic-04069711-54962369 is ready for SSH connections 2024-10-24 14:32:58,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:32:58,202 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.213.221.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-10-24 14:32:58,202 - DEBUG - ping -s 56 -c 3 -W 1 16.213.221.131 2024-10-24 14:33:01,894 - DEBUG - PING 16.213.221.131 (16.213.221.131): 56 data bytes 64 bytes from 16.213.221.131: seq=0 ttl=62 time=4.797 ms 64 bytes from 16.213.221.131: seq=1 ttl=62 time=0.879 ms 64 bytes from 16.213.221.131: seq=2 ttl=62 time=1.197 ms --- 16.213.221.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.879/2.291/4.797 ms 2024-10-24 14:33:01,894 - INFO - Ping to IP 16.213.221.131 from VM ctest-TestRoutersBasic-04069711-30408256 passed 2024-10-24 14:33:01,894 - INFO - Deleting interface with subnet_id da357887-0d6a-485b-ba99-4d8bf6befcd2, port_id None from router aa0323f2-571a-42a6-b04b-6c895d06f922 2024-10-24 14:33:02,184 - INFO - Deleting VM ctest-TestRoutersBasic-04069711-54962369 2024-10-24 14:33:02,281 - INFO - Deleting VM ctest-TestRoutersBasic-04069711-30408256 2024-10-24 14:33:02,372 - INFO - Deleting VN ctest-ext_vn-01744977 2024-10-24 14:33:02,473 - DEBUG - VN cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91 still in use: Unable to complete operation on network cc0eefb5-2b6f-4b29-b5a4-ccb20837ed91. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-315d5e5f-79da-4729-8439-c4027a4bff0d'] 2024-10-24 14:33:02,473 - WARNING - Deleting VN ctest-ext_vn-01744977 failed..Will retry 2024-10-24 14:33:04,644 - DEBUG - Response for deleting network () 2024-10-24 14:33:04,644 - INFO - Deleting VN ctest-vn-29573314 2024-10-24 14:33:04,794 - DEBUG - Response for deleting network () 2024-10-24 14:33:05,056 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 14:33:05,056 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-10-24 14:33:05,057 - INFO - -------------------------------------------------------------------------------- 2024-10-24 14:33:05,788 - INFO - Deleted project: ctest-TestRoutersBasic-04069711, ID : 69e81dbd-4db3-46f7-abf1-57176f51de05