2024-10-28 14:46:17,226 - INFO - Domain Default found not creating 2024-10-28 14:46:17,414 - INFO - Project ctest-TestRoutersBasic-00950402 not found, creating it 2024-10-28 14:46:17,928 - INFO - Created Project:ctest-TestRoutersBasic-00950402, ID : c94eb5d0-ba19-4a50-b4c7-8cadb48cd43a 2024-10-28 14:46:19,636 - INFO - ================================================================================ 2024-10-28 14:46:19,636 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 14:46:19,636 - 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 14:46:19,910 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.28': '0'}} with 2024-10-28 14:46:19,911 - INFO - Initial checks done. Running the testcase now 2024-10-28 14:46:19,911 - INFO - 2024-10-28 14:46:20,714 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-00950402 2024-10-28 14:46:20,818 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-00950402 2024-10-28 14:46:21,162 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00950402', 'default']} 2024-10-28 14:46:21,513 - DEBUG - Response for create_network : {'network': {'id': 'b69aaca2-f1f3-4401-9a0b-9975141a11cb', 'name': 'ctest-vn-86238457', 'tenant_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'project_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00950402', 'ctest-vn-86238457'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:46:21,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a384614-444d-453e-a8c8-b3fa76aa9e15', 'name': '', 'tenant_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'network_id': 'b69aaca2-f1f3-4401-9a0b-9975141a11cb', 'ip_version': 4, 'cidr': '2.249.230.64/26', 'allocation_pools': [{'start': '2.249.230.66', 'end': '2.249.230.126'}], 'gateway_ip': '2.249.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.249.230.66', 'tags': [], 'project_id': 'c94eb5d0ba194a50b4c78cadb48cd43a'}} 2024-10-28 14:46:21,744 - INFO - Created VN ctest-vn-86238457 2024-10-28 14:46:21,802 - DEBUG - VN ctest-vn-86238457 UUID is b69aaca2-f1f3-4401-9a0b-9975141a11cb 2024-10-28 14:46:22,337 - DEBUG - Response for create_network : {'network': {'id': 'ffe53d84-4245-42d2-a010-e3a22bf7db18', 'name': 'ctest-ext_vn-47118208', 'tenant_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'project_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00950402', 'ctest-ext_vn-47118208'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:46:22,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e43fdc7-8e78-41be-ac91-0c7278764b4a', 'name': '', 'tenant_id': 'c94eb5d0ba194a50b4c78cadb48cd43a', 'network_id': 'ffe53d84-4245-42d2-a010-e3a22bf7db18', 'ip_version': 4, 'cidr': '148.96.247.64/26', 'allocation_pools': [{'start': '148.96.247.66', 'end': '148.96.247.126'}], 'gateway_ip': '148.96.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.96.247.66', 'tags': [], 'project_id': 'c94eb5d0ba194a50b4c78cadb48cd43a'}} 2024-10-28 14:46:22,624 - INFO - Created VN ctest-ext_vn-47118208 2024-10-28 14:46:22,686 - DEBUG - VN ctest-ext_vn-47118208 UUID is ffe53d84-4245-42d2-a010-e3a22bf7db18 2024-10-28 14:46:22,902 - DEBUG - Services list from nova: [, , ] 2024-10-28 14:46:24,095 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2164-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2164-1) 2024-10-28 14:46:25,353 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2164-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2164-1) 2024-10-28 14:46:25,440 - INFO - Setting gateway for router f30c2d6b-c299-43de-bc82-e109ab2b4eb2 to network ffe53d84-4245-42d2-a010-e3a22bf7db18 2024-10-28 14:46:25,524 - INFO - Adding interface with subnet_id 1a384614-444d-453e-a8c8-b3fa76aa9e15, port_id None to router f30c2d6b-c299-43de-bc82-e109ab2b4eb2 2024-10-28 14:46:26,012 - INFO - Waiting for VM ctest-TestRoutersBasic-00950402-63941958 to be up.. 2024-10-28 14:46:26,214 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 14:46:31,305 - DEBUG - VM is in ACTIVE state now 2024-10-28 14:46:31,305 - INFO - VM name : ctest-TestRoutersBasic-00950402-63941958 2024-10-28 14:46:31,398 - DEBUG - VM ctest-TestRoutersBasic-00950402-63941958 ID is a0434ce6-0728-46e6-ae5a-2ce221c19415 2024-10-28 14:46:31,425 - DEBUG - VM ctest-TestRoutersBasic-00950402-63941958 launched on Node cn-jenkins-deploy-platform-ansible-os-2164-1 2024-10-28 14:46:31,511 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/a0434ce6-0728-46e6-ae5a-2ce221c19415 2024-10-28 14:46:31,820 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/a0434ce6-0728-46e6-ae5a-2ce221c19415 2024-10-28 14:46:31,858 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/1f3d4a29-2f4e-43dd-8afe-7151dbf9c84c 2024-10-28 14:46:35,128 - 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 1014ms') 2024-10-28 14:46:35,128 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00950402-63941958 failed! 2024-10-28 14:46:35,194 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-00950402:ctest-vn-86238457 is 2.249.230.65 and allocation pool is NOT set 2024-10-28 14:46:37,257 - 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.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.511 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.511/1.853/3.195/1.342 ms') 2024-10-28 14:46:37,257 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00950402-63941958 passed 2024-10-28 14:46:37,378 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:46:37,378 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00950402-63941958, IP 2.249.230.67, Port 22 2024-10-28 14:46:37,538 - DEBUG - VM ctest-TestRoutersBasic-00950402-63941958 is ready for SSH connections 2024-10-28 14:46:37,538 - INFO - Waiting for VM ctest-TestRoutersBasic-00950402-09670838 to be up.. 2024-10-28 14:46:37,629 - DEBUG - VM is in ACTIVE state now 2024-10-28 14:46:37,629 - INFO - VM name : ctest-TestRoutersBasic-00950402-09670838 2024-10-28 14:46:37,709 - DEBUG - VM ctest-TestRoutersBasic-00950402-09670838 ID is fb83ccd1-35eb-4c36-8a58-a8cde555e741 2024-10-28 14:46:37,709 - DEBUG - VM ctest-TestRoutersBasic-00950402-09670838 launched on Node cn-jenkins-deploy-platform-ansible-os-2164-1 2024-10-28 14:46:37,791 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/fb83ccd1-35eb-4c36-8a58-a8cde555e741 2024-10-28 14:46:37,802 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/6ecfdc91-a799-4076-89c5-f827e952a72a 2024-10-28 14:46:39,055 - 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.516 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.516/1.632/2.748/1.116 ms') 2024-10-28 14:46:39,055 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-00950402-09670838 passed 2024-10-28 14:46:39,218 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:46:39,218 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00950402-09670838, IP 148.96.247.67, Port 22 2024-10-28 14:46:39,374 - DEBUG - VM ctest-TestRoutersBasic-00950402-09670838 is ready for SSH connections 2024-10-28 14:46:39,374 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:46:39,374 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.96.247.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 14:46:39,375 - DEBUG - ping -s 56 -c 3 -W 1 148.96.247.67 2024-10-28 14:46:43,082 - DEBUG - PING 148.96.247.67 (148.96.247.67): 56 data bytes 64 bytes from 148.96.247.67: seq=0 ttl=62 time=5.951 ms 64 bytes from 148.96.247.67: seq=1 ttl=62 time=0.992 ms 64 bytes from 148.96.247.67: seq=2 ttl=62 time=1.090 ms --- 148.96.247.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.992/2.677/5.951 ms 2024-10-28 14:46:43,082 - INFO - Ping to IP 148.96.247.67 from VM ctest-TestRoutersBasic-00950402-63941958 passed 2024-10-28 14:46:43,082 - INFO - Deleting interface with subnet_id 1a384614-444d-453e-a8c8-b3fa76aa9e15, port_id None from router f30c2d6b-c299-43de-bc82-e109ab2b4eb2 2024-10-28 14:46:43,337 - INFO - Deleting VM ctest-TestRoutersBasic-00950402-09670838 2024-10-28 14:46:43,411 - INFO - Deleting VM ctest-TestRoutersBasic-00950402-63941958 2024-10-28 14:46:43,503 - INFO - Deleting VN ctest-ext_vn-47118208 2024-10-28 14:46:43,598 - DEBUG - VN ffe53d84-4245-42d2-a010-e3a22bf7db18 still in use: Unable to complete operation on network ffe53d84-4245-42d2-a010-e3a22bf7db18. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb1e4f33-94bf-49f1-9068-0ce8c83a2403'] 2024-10-28 14:46:43,598 - WARNING - Deleting VN ctest-ext_vn-47118208 failed..Will retry 2024-10-28 14:46:45,715 - DEBUG - Response for deleting network () 2024-10-28 14:46:45,715 - INFO - Deleting VN ctest-vn-86238457 2024-10-28 14:46:45,831 - DEBUG - Response for deleting network () 2024-10-28 14:46:46,095 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 14:46:46,095 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-10-28 14:46:46,096 - INFO - -------------------------------------------------------------------------------- 2024-10-28 14:46:46,954 - INFO - Deleted project: ctest-TestRoutersBasic-00950402, ID : c94eb5d0-ba19-4a50-b4c7-8cadb48cd43a