2024-08-27 20:07:21,146 - INFO - Domain Default found not creating 2024-08-27 20:07:21,315 - INFO - Project ctest-TestRoutersBasic-76279885 not found, creating it 2024-08-27 20:07:21,779 - INFO - Created Project:ctest-TestRoutersBasic-76279885, ID : da6451ce-d456-4128-a1c9-6005062c7d82 2024-08-27 20:07:23,409 - INFO - ================================================================================ 2024-08-27 20:07:23,409 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 20:07:23,409 - 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-08-27 20:07:23,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.6': '0'}} with 2024-08-27 20:07:23,665 - INFO - Initial checks done. Running the testcase now 2024-08-27 20:07:23,665 - INFO - 2024-08-27 20:07:24,363 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-76279885 2024-08-27 20:07:24,463 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-76279885 2024-08-27 20:07:24,786 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76279885', 'default']} 2024-08-27 20:07:25,072 - DEBUG - Response for create_network : {'network': {'id': 'f42b7c3b-dc31-40a9-b73f-44e7f55011d2', 'name': 'ctest-vn-91106580', 'tenant_id': 'da6451ced4564128a1c96005062c7d82', 'project_id': 'da6451ced4564128a1c96005062c7d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76279885', 'ctest-vn-91106580'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:07:25,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8d393fd-54de-41da-b321-4da2d501874d', 'name': '', 'tenant_id': 'da6451ced4564128a1c96005062c7d82', 'network_id': 'f42b7c3b-dc31-40a9-b73f-44e7f55011d2', 'ip_version': 4, 'cidr': '164.246.138.128/26', 'allocation_pools': [{'start': '164.246.138.130', 'end': '164.246.138.190'}], 'gateway_ip': '164.246.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.246.138.130', 'tags': [], 'project_id': 'da6451ced4564128a1c96005062c7d82'}} 2024-08-27 20:07:25,262 - INFO - Created VN ctest-vn-91106580 2024-08-27 20:07:25,315 - DEBUG - VN ctest-vn-91106580 UUID is f42b7c3b-dc31-40a9-b73f-44e7f55011d2 2024-08-27 20:07:25,635 - DEBUG - Response for create_network : {'network': {'id': '4984bdd4-f68f-4989-bd40-653d2920ffec', 'name': 'ctest-ext_vn-51408292', 'tenant_id': 'da6451ced4564128a1c96005062c7d82', 'project_id': 'da6451ced4564128a1c96005062c7d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-76279885', 'ctest-ext_vn-51408292'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:07:25,858 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0dab0ac-3077-4440-84a3-9793fda54a5f', 'name': '', 'tenant_id': 'da6451ced4564128a1c96005062c7d82', 'network_id': '4984bdd4-f68f-4989-bd40-653d2920ffec', 'ip_version': 4, 'cidr': '98.22.23.0/26', 'allocation_pools': [{'start': '98.22.23.2', 'end': '98.22.23.62'}], 'gateway_ip': '98.22.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.22.23.2', 'tags': [], 'project_id': 'da6451ced4564128a1c96005062c7d82'}} 2024-08-27 20:07:25,877 - INFO - Created VN ctest-ext_vn-51408292 2024-08-27 20:07:25,927 - DEBUG - VN ctest-ext_vn-51408292 UUID is 4984bdd4-f68f-4989-bd40-653d2920ffec 2024-08-27 20:07:26,090 - DEBUG - Services list from nova: [, , ] 2024-08-27 20:07:27,092 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1804-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1804-1) 2024-08-27 20:07:28,227 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1804-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1804-1) 2024-08-27 20:07:28,302 - INFO - Setting gateway for router 5748a4bf-de80-41b5-9576-a12fdb521dde to network 4984bdd4-f68f-4989-bd40-653d2920ffec 2024-08-27 20:07:28,381 - INFO - Adding interface with subnet_id a8d393fd-54de-41da-b321-4da2d501874d, port_id None to router 5748a4bf-de80-41b5-9576-a12fdb521dde 2024-08-27 20:07:28,759 - INFO - Waiting for VM ctest-TestRoutersBasic-76279885-64662657 to be up.. 2024-08-27 20:07:28,966 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 20:07:34,062 - DEBUG - VM is in ACTIVE state now 2024-08-27 20:07:34,062 - INFO - VM name : ctest-TestRoutersBasic-76279885-64662657 2024-08-27 20:07:34,155 - DEBUG - VM ctest-TestRoutersBasic-76279885-64662657 ID is 49ba2a7b-137f-40b7-959c-30a4794923f6 2024-08-27 20:07:34,176 - DEBUG - VM ctest-TestRoutersBasic-76279885-64662657 launched on Node cn-jenkins-deploy-platform-ansible-os-1804-1 2024-08-27 20:07:34,265 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/49ba2a7b-137f-40b7-959c-30a4794923f6 2024-08-27 20:07:34,566 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/49ba2a7b-137f-40b7-959c-30a4794923f6 2024-08-27 20:07:34,600 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/73072573-54ae-4f3a-a980-62b3c9de49d7 2024-08-27 20:07:37,839 - 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 1001ms') 2024-08-27 20:07:37,839 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76279885-64662657 failed! 2024-08-27 20:07:37,891 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-76279885:ctest-vn-91106580 is 164.246.138.129 and allocation pool is NOT set 2024-08-27 20:07:39,956 - 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.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.460 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.460/1.520/2.581/1.060 ms') 2024-08-27 20:07:39,956 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-76279885-64662657 passed 2024-08-27 20:07:40,179 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:07:40,179 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76279885-64662657, IP 164.246.138.131, Port 22 2024-08-27 20:07:40,334 - DEBUG - VM ctest-TestRoutersBasic-76279885-64662657 is ready for SSH connections 2024-08-27 20:07:40,334 - INFO - Waiting for VM ctest-TestRoutersBasic-76279885-79521200 to be up.. 2024-08-27 20:07:40,409 - DEBUG - VM is in ACTIVE state now 2024-08-27 20:07:40,409 - INFO - VM name : ctest-TestRoutersBasic-76279885-79521200 2024-08-27 20:07:40,488 - DEBUG - VM ctest-TestRoutersBasic-76279885-79521200 ID is c84cc0f4-dded-450e-9158-a84bf8459e69 2024-08-27 20:07:40,488 - DEBUG - VM ctest-TestRoutersBasic-76279885-79521200 launched on Node cn-jenkins-deploy-platform-ansible-os-1804-1 2024-08-27 20:07:40,567 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/c84cc0f4-dded-450e-9158-a84bf8459e69 2024-08-27 20:07:40,575 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/8c9fb46e-ec1d-4ade-853a-d72dcb3451cf 2024-08-27 20:07:41,809 - 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.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.336 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.336/1.511/2.687/1.175 ms') 2024-08-27 20:07:41,809 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-76279885-79521200 passed 2024-08-27 20:07:41,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:07:41,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-76279885-79521200, IP 98.22.23.3, Port 22 2024-08-27 20:07:42,115 - DEBUG - VM ctest-TestRoutersBasic-76279885-79521200 is ready for SSH connections 2024-08-27 20:07:42,115 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:07:42,115 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.22.23.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-08-27 20:07:42,115 - DEBUG - ping -s 56 -c 3 -W 1 98.22.23.3 2024-08-27 20:07:45,783 - DEBUG - PING 98.22.23.3 (98.22.23.3): 56 data bytes 64 bytes from 98.22.23.3: seq=0 ttl=62 time=6.208 ms 64 bytes from 98.22.23.3: seq=1 ttl=62 time=1.008 ms 64 bytes from 98.22.23.3: seq=2 ttl=62 time=0.880 ms --- 98.22.23.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.880/2.698/6.208 ms 2024-08-27 20:07:45,783 - INFO - Ping to IP 98.22.23.3 from VM ctest-TestRoutersBasic-76279885-64662657 passed 2024-08-27 20:07:45,783 - INFO - Deleting interface with subnet_id a8d393fd-54de-41da-b321-4da2d501874d, port_id None from router 5748a4bf-de80-41b5-9576-a12fdb521dde 2024-08-27 20:07:45,982 - INFO - Deleting VM ctest-TestRoutersBasic-76279885-79521200 2024-08-27 20:07:46,048 - INFO - Deleting VM ctest-TestRoutersBasic-76279885-64662657 2024-08-27 20:07:46,119 - INFO - Deleting VN ctest-ext_vn-51408292 2024-08-27 20:07:46,178 - DEBUG - VN 4984bdd4-f68f-4989-bd40-653d2920ffec still in use: Unable to complete operation on network 4984bdd4-f68f-4989-bd40-653d2920ffec. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-94efd0bf-c861-43ee-ab71-3d5f13d88ddc'] 2024-08-27 20:07:46,178 - WARNING - Deleting VN ctest-ext_vn-51408292 failed..Will retry 2024-08-27 20:07:48,281 - DEBUG - Response for deleting network () 2024-08-27 20:07:48,281 - INFO - Deleting VN ctest-vn-91106580 2024-08-27 20:07:48,403 - DEBUG - Response for deleting network () 2024-08-27 20:07:48,656 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 20:07:48,656 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-08-27 20:07:48,656 - INFO - -------------------------------------------------------------------------------- 2024-08-27 20:07:49,585 - INFO - Deleted project: ctest-TestRoutersBasic-76279885, ID : da6451ce-d456-4128-a1c9-6005062c7d82