2024-11-10 20:49:35,537 - INFO - Domain Default found not creating 2024-11-10 20:49:35,720 - INFO - Project ctest-TestRoutersBasic-63663397 not found, creating it 2024-11-10 20:49:36,209 - INFO - Created Project:ctest-TestRoutersBasic-63663397, ID : bca0869c-5c99-482e-9b3c-7737a67d5887 2024-11-10 20:49:37,743 - INFO - ================================================================================ 2024-11-10 20:49:37,743 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 20:49:37,743 - 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-11-10 20:49:38,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.10': '0'}} with 2024-11-10 20:49:38,000 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:49:38,000 - INFO - 2024-11-10 20:49:38,875 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63663397 2024-11-10 20:49:39,064 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63663397 2024-11-10 20:49:39,540 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63663397', 'default']} 2024-11-10 20:49:39,909 - DEBUG - Response for create_network : {'network': {'id': '7dba8136-e668-4b0d-b785-975b28280af9', 'name': 'ctest-vn-20741093', 'tenant_id': 'bca0869c5c99482e9b3c7737a67d5887', 'project_id': 'bca0869c5c99482e9b3c7737a67d5887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63663397', 'ctest-vn-20741093'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:49:40,129 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f55b3055-07fe-42d5-ac63-e99902a0056a', 'name': '', 'tenant_id': 'bca0869c5c99482e9b3c7737a67d5887', 'network_id': '7dba8136-e668-4b0d-b785-975b28280af9', 'ip_version': 4, 'cidr': '77.54.85.192/26', 'allocation_pools': [{'start': '77.54.85.194', 'end': '77.54.85.254'}], 'gateway_ip': '77.54.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.54.85.194', 'tags': [], 'project_id': 'bca0869c5c99482e9b3c7737a67d5887'}} 2024-11-10 20:49:40,149 - INFO - Created VN ctest-vn-20741093 2024-11-10 20:49:40,208 - DEBUG - VN ctest-vn-20741093 UUID is 7dba8136-e668-4b0d-b785-975b28280af9 2024-11-10 20:49:40,595 - DEBUG - Response for create_network : {'network': {'id': 'c25ccba3-62b6-44ed-b6a6-128eafc05ad4', 'name': 'ctest-ext_vn-64441892', 'tenant_id': 'bca0869c5c99482e9b3c7737a67d5887', 'project_id': 'bca0869c5c99482e9b3c7737a67d5887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63663397', 'ctest-ext_vn-64441892'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:49:40,798 - DEBUG - Response for create_subnet : {'subnet': {'id': '85c440b3-481e-4b2c-9d67-56d1e16f5f10', 'name': '', 'tenant_id': 'bca0869c5c99482e9b3c7737a67d5887', 'network_id': 'c25ccba3-62b6-44ed-b6a6-128eafc05ad4', 'ip_version': 4, 'cidr': '31.30.98.64/26', 'allocation_pools': [{'start': '31.30.98.66', 'end': '31.30.98.126'}], 'gateway_ip': '31.30.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.30.98.66', 'tags': [], 'project_id': 'bca0869c5c99482e9b3c7737a67d5887'}} 2024-11-10 20:49:40,824 - INFO - Created VN ctest-ext_vn-64441892 2024-11-10 20:49:40,884 - DEBUG - VN ctest-ext_vn-64441892 UUID is c25ccba3-62b6-44ed-b6a6-128eafc05ad4 2024-11-10 20:49:41,067 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:49:42,605 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2263-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2263-1) 2024-11-10 20:49:43,995 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2263-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2263-1) 2024-11-10 20:49:44,111 - INFO - Setting gateway for router f1fdec32-f874-4d99-9dee-f07e6bbf0c27 to network c25ccba3-62b6-44ed-b6a6-128eafc05ad4 2024-11-10 20:49:44,203 - INFO - Adding interface with subnet_id f55b3055-07fe-42d5-ac63-e99902a0056a, port_id None to router f1fdec32-f874-4d99-9dee-f07e6bbf0c27 2024-11-10 20:49:44,675 - INFO - Waiting for VM ctest-TestRoutersBasic-63663397-21500703 to be up.. 2024-11-10 20:49:44,826 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:49:49,930 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:49:49,930 - INFO - VM name : ctest-TestRoutersBasic-63663397-21500703 2024-11-10 20:49:50,051 - DEBUG - VM ctest-TestRoutersBasic-63663397-21500703 ID is 7919735d-5a2e-46f8-a00c-3f850118bfb7 2024-11-10 20:49:50,075 - DEBUG - VM ctest-TestRoutersBasic-63663397-21500703 launched on Node cn-jenkins-deploy-platform-ansible-os-2263-1 2024-11-10 20:49:50,177 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/7919735d-5a2e-46f8-a00c-3f850118bfb7 2024-11-10 20:49:50,491 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/7919735d-5a2e-46f8-a00c-3f850118bfb7 2024-11-10 20:49:50,532 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/a5f74420-75f0-4295-b6db-0c9c7038a06b 2024-11-10 20:49:53,835 - 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 1035ms') 2024-11-10 20:49:53,835 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63663397-21500703 failed! 2024-11-10 20:49:53,920 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63663397:ctest-vn-20741093 is 77.54.85.193 and allocation pool is NOT set 2024-11-10 20:49:55,980 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.444 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.444/1.651/2.858/1.207 ms') 2024-11-10 20:49:55,980 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63663397-21500703 passed 2024-11-10 20:49:56,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:49:56,148 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63663397-21500703, IP 77.54.85.195, Port 22 2024-11-10 20:49:56,304 - DEBUG - VM ctest-TestRoutersBasic-63663397-21500703 is ready for SSH connections 2024-11-10 20:49:56,304 - INFO - Waiting for VM ctest-TestRoutersBasic-63663397-53585460 to be up.. 2024-11-10 20:49:56,400 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:49:56,400 - INFO - VM name : ctest-TestRoutersBasic-63663397-53585460 2024-11-10 20:49:56,496 - DEBUG - VM ctest-TestRoutersBasic-63663397-53585460 ID is 9a89abce-5a73-42ec-b310-c76dac1636e5 2024-11-10 20:49:56,496 - DEBUG - VM ctest-TestRoutersBasic-63663397-53585460 launched on Node cn-jenkins-deploy-platform-ansible-os-2263-1 2024-11-10 20:49:56,578 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/9a89abce-5a73-42ec-b310-c76dac1636e5 2024-11-10 20:49:56,589 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9bfa8408-9f05-46d7-a2d5-55794865336b 2024-11-10 20:49:57,924 - 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=5.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.622 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.622/2.840/5.058/2.218 ms') 2024-11-10 20:49:57,924 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-63663397-53585460 passed 2024-11-10 20:49:58,092 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:49:58,092 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63663397-53585460, IP 31.30.98.67, Port 22 2024-11-10 20:49:58,259 - DEBUG - VM ctest-TestRoutersBasic-63663397-53585460 is ready for SSH connections 2024-11-10 20:49:58,259 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:49:58,259 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.30.98.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 20:49:58,259 - DEBUG - ping -s 56 -c 3 -W 1 31.30.98.67 2024-11-10 20:50:01,963 - DEBUG - PING 31.30.98.67 (31.30.98.67): 56 data bytes 64 bytes from 31.30.98.67: seq=0 ttl=62 time=8.072 ms 64 bytes from 31.30.98.67: seq=1 ttl=62 time=1.140 ms 64 bytes from 31.30.98.67: seq=2 ttl=62 time=1.282 ms --- 31.30.98.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.140/3.498/8.072 ms 2024-11-10 20:50:01,963 - INFO - Ping to IP 31.30.98.67 from VM ctest-TestRoutersBasic-63663397-21500703 passed 2024-11-10 20:50:01,963 - INFO - Deleting interface with subnet_id f55b3055-07fe-42d5-ac63-e99902a0056a, port_id None from router f1fdec32-f874-4d99-9dee-f07e6bbf0c27 2024-11-10 20:50:02,241 - INFO - Deleting VM ctest-TestRoutersBasic-63663397-53585460 2024-11-10 20:50:02,318 - INFO - Deleting VM ctest-TestRoutersBasic-63663397-21500703 2024-11-10 20:50:02,430 - INFO - Deleting VN ctest-ext_vn-64441892 2024-11-10 20:50:02,547 - DEBUG - VN c25ccba3-62b6-44ed-b6a6-128eafc05ad4 still in use: Unable to complete operation on network c25ccba3-62b6-44ed-b6a6-128eafc05ad4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-44101328-6d7d-4c54-b884-b30a0d45b1c4'] 2024-11-10 20:50:02,547 - WARNING - Deleting VN ctest-ext_vn-64441892 failed..Will retry 2024-11-10 20:50:04,675 - DEBUG - Response for deleting network () 2024-11-10 20:50:04,675 - INFO - Deleting VN ctest-vn-20741093 2024-11-10 20:50:04,798 - DEBUG - Response for deleting network () 2024-11-10 20:50:05,058 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 20:50:05,059 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28]
2024-11-10 20:50:05,059 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:50:05,837 - INFO - Deleted project: ctest-TestRoutersBasic-63663397, ID : bca0869c-5c99-482e-9b3c-7737a67d5887