2024-11-04 02:19:41,941 - INFO - Domain Default found not creating 2024-11-04 02:19:42,105 - INFO - Project ctest-TestRoutersBasic-41027779 not found, creating it 2024-11-04 02:19:42,586 - INFO - Created Project:ctest-TestRoutersBasic-41027779, ID : 80505be8-23d7-429c-aad7-c85ef1f7ae55 2024-11-04 02:19:44,111 - INFO - ================================================================================ 2024-11-04 02:19:44,111 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-04 02:19:44,111 - 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-04 02:19:44,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2024-11-04 02:19:44,363 - INFO - Initial checks done. Running the testcase now 2024-11-04 02:19:44,363 - INFO - 2024-11-04 02:19:45,093 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41027779 2024-11-04 02:19:45,194 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41027779 2024-11-04 02:19:45,525 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41027779', 'default']} 2024-11-04 02:19:45,858 - DEBUG - Response for create_network : {'network': {'id': 'f7660505-94dd-46f1-a7bd-23fd7430c7a9', 'name': 'ctest-vn-70876390', 'tenant_id': '80505be823d7429caad7c85ef1f7ae55', 'project_id': '80505be823d7429caad7c85ef1f7ae55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41027779', 'ctest-vn-70876390'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:19:46,053 - DEBUG - Response for create_subnet : {'subnet': {'id': '48d83107-7e0b-4796-a9ca-919202d3ef0b', 'name': '', 'tenant_id': '80505be823d7429caad7c85ef1f7ae55', 'network_id': 'f7660505-94dd-46f1-a7bd-23fd7430c7a9', 'ip_version': 4, 'cidr': '37.90.6.64/26', 'allocation_pools': [{'start': '37.90.6.66', 'end': '37.90.6.126'}], 'gateway_ip': '37.90.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.90.6.66', 'tags': [], 'project_id': '80505be823d7429caad7c85ef1f7ae55'}} 2024-11-04 02:19:46,071 - INFO - Created VN ctest-vn-70876390 2024-11-04 02:19:46,130 - DEBUG - VN ctest-vn-70876390 UUID is f7660505-94dd-46f1-a7bd-23fd7430c7a9 2024-11-04 02:19:46,466 - DEBUG - Response for create_network : {'network': {'id': 'f5c10d5c-72cf-4e5a-8fd8-307c2fd84593', 'name': 'ctest-ext_vn-88109593', 'tenant_id': '80505be823d7429caad7c85ef1f7ae55', 'project_id': '80505be823d7429caad7c85ef1f7ae55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41027779', 'ctest-ext_vn-88109593'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:19:46,664 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c59d3de-4a3d-497d-bcba-d6a23e604f1e', 'name': '', 'tenant_id': '80505be823d7429caad7c85ef1f7ae55', 'network_id': 'f5c10d5c-72cf-4e5a-8fd8-307c2fd84593', 'ip_version': 4, 'cidr': '106.28.132.0/26', 'allocation_pools': [{'start': '106.28.132.2', 'end': '106.28.132.62'}], 'gateway_ip': '106.28.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.28.132.2', 'tags': [], 'project_id': '80505be823d7429caad7c85ef1f7ae55'}} 2024-11-04 02:19:46,689 - INFO - Created VN ctest-ext_vn-88109593 2024-11-04 02:19:46,746 - DEBUG - VN ctest-ext_vn-88109593 UUID is f5c10d5c-72cf-4e5a-8fd8-307c2fd84593 2024-11-04 02:19:46,927 - DEBUG - Services list from nova: [, , ] 2024-11-04 02:19:47,963 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2194-1) 2024-11-04 02:19:49,169 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2194-1) 2024-11-04 02:19:49,243 - INFO - Setting gateway for router 682c217f-bb78-49e6-b0ee-f7fabdfaa78b to network f5c10d5c-72cf-4e5a-8fd8-307c2fd84593 2024-11-04 02:19:49,320 - INFO - Adding interface with subnet_id 48d83107-7e0b-4796-a9ca-919202d3ef0b, port_id None to router 682c217f-bb78-49e6-b0ee-f7fabdfaa78b 2024-11-04 02:19:49,815 - INFO - Waiting for VM ctest-TestRoutersBasic-41027779-17948361 to be up.. 2024-11-04 02:19:49,990 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-04 02:19:55,070 - DEBUG - VM is in ACTIVE state now 2024-11-04 02:19:55,070 - INFO - VM name : ctest-TestRoutersBasic-41027779-17948361 2024-11-04 02:19:55,144 - DEBUG - VM ctest-TestRoutersBasic-41027779-17948361 ID is 2726e033-b4bb-4985-9149-304a41e4f5ea 2024-11-04 02:19:55,162 - DEBUG - VM ctest-TestRoutersBasic-41027779-17948361 launched on Node cn-jenkins-deploy-platform-ansible-os-2194-1. 2024-11-04 02:19:55,241 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/2726e033-b4bb-4985-9149-304a41e4f5ea 2024-11-04 02:19:55,541 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/2726e033-b4bb-4985-9149-304a41e4f5ea 2024-11-04 02:19:55,576 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/ef4ac59c-242f-44c0-8609-48e05fdc6a80 2024-11-04 02:19:58,847 - 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 1027ms') 2024-11-04 02:19:58,847 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41027779-17948361 failed! 2024-11-04 02:19:58,905 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41027779:ctest-vn-70876390 is 37.90.6.65 and allocation pool is NOT set 2024-11-04 02:20:00,971 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.513 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.513/1.460/2.407/0.947 ms') 2024-11-04 02:20:00,971 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41027779-17948361 passed 2024-11-04 02:20:01,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:01,126 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41027779-17948361, IP 37.90.6.67, Port 22 2024-11-04 02:20:01,281 - DEBUG - VM ctest-TestRoutersBasic-41027779-17948361 is ready for SSH connections 2024-11-04 02:20:01,282 - INFO - Waiting for VM ctest-TestRoutersBasic-41027779-85731652 to be up.. 2024-11-04 02:20:01,362 - DEBUG - VM is in ACTIVE state now 2024-11-04 02:20:01,362 - INFO - VM name : ctest-TestRoutersBasic-41027779-85731652 2024-11-04 02:20:01,453 - DEBUG - VM ctest-TestRoutersBasic-41027779-85731652 ID is 5aee42c2-78dc-4443-9f02-a710df56d4d4 2024-11-04 02:20:01,453 - DEBUG - VM ctest-TestRoutersBasic-41027779-85731652 launched on Node cn-jenkins-deploy-platform-ansible-os-2194-1. 2024-11-04 02:20:01,530 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5aee42c2-78dc-4443-9f02-a710df56d4d4 2024-11-04 02:20:01,540 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/146f926e-612b-4e0d-bc4d-029abd3c2145 2024-11-04 02:20:02,789 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 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.410/1.737/3.065/1.327 ms') 2024-11-04 02:20:02,789 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41027779-85731652 passed 2024-11-04 02:20:02,942 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:02,942 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41027779-85731652, IP 106.28.132.3, Port 22 2024-11-04 02:20:03,109 - DEBUG - VM ctest-TestRoutersBasic-41027779-85731652 is ready for SSH connections 2024-11-04 02:20:03,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:03,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.28.132.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-04 02:20:03,109 - DEBUG - ping -s 56 -c 3 -W 1 106.28.132.3 2024-11-04 02:20:07,167 - DEBUG - PING 106.28.132.3 (106.28.132.3): 56 data bytes 64 bytes from 106.28.132.3: seq=0 ttl=62 time=6.772 ms 64 bytes from 106.28.132.3: seq=1 ttl=62 time=1.045 ms 64 bytes from 106.28.132.3: seq=2 ttl=62 time=1.036 ms --- 106.28.132.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.036/2.951/6.772 ms 2024-11-04 02:20:07,167 - INFO - Ping to IP 106.28.132.3 from VM ctest-TestRoutersBasic-41027779-17948361 passed 2024-11-04 02:20:07,167 - INFO - Deleting interface with subnet_id 48d83107-7e0b-4796-a9ca-919202d3ef0b, port_id None from router 682c217f-bb78-49e6-b0ee-f7fabdfaa78b 2024-11-04 02:20:07,429 - INFO - Deleting VM ctest-TestRoutersBasic-41027779-85731652 2024-11-04 02:20:07,505 - INFO - Deleting VM ctest-TestRoutersBasic-41027779-17948361 2024-11-04 02:20:07,591 - INFO - Deleting VN ctest-ext_vn-88109593 2024-11-04 02:20:07,676 - DEBUG - VN f5c10d5c-72cf-4e5a-8fd8-307c2fd84593 still in use: Unable to complete operation on network f5c10d5c-72cf-4e5a-8fd8-307c2fd84593. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bb03267b-c24a-450a-88ee-6ab702b56c93'] 2024-11-04 02:20:07,676 - WARNING - Deleting VN ctest-ext_vn-88109593 failed..Will retry 2024-11-04 02:20:09,779 - DEBUG - Response for deleting network () 2024-11-04 02:20:09,779 - INFO - Deleting VN ctest-vn-70876390 2024-11-04 02:20:09,890 - DEBUG - Response for deleting network () 2024-11-04 02:20:10,143 - DEBUG - No XMPP flaps were noticed during the test
2024-11-04 02:20:10,143 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-04 02:20:10,143 - INFO - -------------------------------------------------------------------------------- 2024-11-04 02:20:10,851 - INFO - Deleted project: ctest-TestRoutersBasic-41027779, ID : 80505be8-23d7-429c-aad7-c85ef1f7ae55