2025-03-22 13:48:48,991 - INFO - Domain Default found not creating 2025-03-22 13:48:49,182 - INFO - Project ctest-TestRoutersBasic-12620321 not found, creating it 2025-03-22 13:48:49,690 - INFO - Created Project:ctest-TestRoutersBasic-12620321, ID : 3aadde12-ee23-40a2-af4d-a665fe4a4405 2025-03-22 13:48:51,260 - INFO - ================================================================================ 2025-03-22 13:48:51,261 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-22 13:48:51,261 - 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 2025-03-22 13:48:51,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.5': '0'}} with 2025-03-22 13:48:51,523 - INFO - Initial checks done. Running the testcase now 2025-03-22 13:48:51,523 - INFO - 2025-03-22 13:48:52,268 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-12620321 2025-03-22 13:48:52,371 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-12620321 2025-03-22 13:48:52,727 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12620321', 'default']} 2025-03-22 13:48:53,037 - DEBUG - Response for create_network : {'network': {'id': '9f47444a-865e-4da5-b8f8-9add376ee44d', 'name': 'ctest-vn-04848129', 'tenant_id': '3aadde12ee2340a2af4da665fe4a4405', 'project_id': '3aadde12ee2340a2af4da665fe4a4405', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12620321', 'ctest-vn-04848129'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 13:48:53,264 - DEBUG - Response for create_subnet : {'subnet': {'id': '95978584-daa4-441b-a035-82dd9129d455', 'name': '', 'tenant_id': '3aadde12ee2340a2af4da665fe4a4405', 'network_id': '9f47444a-865e-4da5-b8f8-9add376ee44d', 'ip_version': 4, 'cidr': '84.63.154.0/26', 'allocation_pools': [{'start': '84.63.154.2', 'end': '84.63.154.62'}], 'gateway_ip': '84.63.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.63.154.2', 'tags': [], 'project_id': '3aadde12ee2340a2af4da665fe4a4405'}} 2025-03-22 13:48:53,283 - INFO - Created VN ctest-vn-04848129 2025-03-22 13:48:53,335 - DEBUG - VN ctest-vn-04848129 UUID is 9f47444a-865e-4da5-b8f8-9add376ee44d 2025-03-22 13:48:53,695 - DEBUG - Response for create_network : {'network': {'id': '4d107e4d-712c-41f2-ae42-245517e3c528', 'name': 'ctest-ext_vn-91177625', 'tenant_id': '3aadde12ee2340a2af4da665fe4a4405', 'project_id': '3aadde12ee2340a2af4da665fe4a4405', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12620321', 'ctest-ext_vn-91177625'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 13:48:53,865 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd56b09ef-0962-4b38-946e-ca64e5be31ae', 'name': '', 'tenant_id': '3aadde12ee2340a2af4da665fe4a4405', 'network_id': '4d107e4d-712c-41f2-ae42-245517e3c528', 'ip_version': 4, 'cidr': '157.82.106.64/26', 'allocation_pools': [{'start': '157.82.106.66', 'end': '157.82.106.126'}], 'gateway_ip': '157.82.106.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.82.106.66', 'tags': [], 'project_id': '3aadde12ee2340a2af4da665fe4a4405'}} 2025-03-22 13:48:53,886 - INFO - Created VN ctest-ext_vn-91177625 2025-03-22 13:48:53,939 - DEBUG - VN ctest-ext_vn-91177625 UUID is 4d107e4d-712c-41f2-ae42-245517e3c528 2025-03-22 13:48:54,124 - DEBUG - Services list from nova: [, , ] 2025-03-22 13:48:55,245 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2937-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2937-1) 2025-03-22 13:48:56,439 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2937-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2937-1) 2025-03-22 13:48:56,532 - INFO - Setting gateway for router cf3b5dc4-374a-455c-91c9-a3c8a365c2d9 to network 4d107e4d-712c-41f2-ae42-245517e3c528 2025-03-22 13:48:56,603 - INFO - Adding interface with subnet_id 95978584-daa4-441b-a035-82dd9129d455, port_id None to router cf3b5dc4-374a-455c-91c9-a3c8a365c2d9 2025-03-22 13:48:57,014 - INFO - Waiting for VM ctest-TestRoutersBasic-12620321-71159322 to be up.. 2025-03-22 13:48:57,220 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-22 13:49:02,317 - DEBUG - VM is in ACTIVE state now 2025-03-22 13:49:02,318 - INFO - VM name : ctest-TestRoutersBasic-12620321-71159322 2025-03-22 13:49:02,417 - DEBUG - VM ctest-TestRoutersBasic-12620321-71159322 ID is 4c9631a4-8d35-4324-9a1c-775e4db6f4b4 2025-03-22 13:49:02,443 - DEBUG - VM ctest-TestRoutersBasic-12620321-71159322 launched on Node cn-jenkins-deploy-platform-ansible-os-2937-1 2025-03-22 13:49:02,547 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4c9631a4-8d35-4324-9a1c-775e4db6f4b4 2025-03-22 13:49:02,853 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4c9631a4-8d35-4324-9a1c-775e4db6f4b4 2025-03-22 13:49:02,902 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/55d34314-6001-4dac-825e-3d67fe2c6b4a 2025-03-22 13:49:06,165 - 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') 2025-03-22 13:49:06,165 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12620321-71159322 failed! 2025-03-22 13:49:06,223 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-12620321:ctest-vn-04848129 is 84.63.154.1 and allocation pool is NOT set 2025-03-22 13:49:08,290 - 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=6.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.32 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 = 1.319/3.791/6.263/2.472 ms') 2025-03-22 13:49:08,291 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12620321-71159322 passed 2025-03-22 13:49:08,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 13:49:08,448 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12620321-71159322, IP 84.63.154.3, Port 22 2025-03-22 13:49:08,607 - DEBUG - VM ctest-TestRoutersBasic-12620321-71159322 is ready for SSH connections 2025-03-22 13:49:08,607 - INFO - Waiting for VM ctest-TestRoutersBasic-12620321-50654443 to be up.. 2025-03-22 13:49:08,701 - DEBUG - VM is in ACTIVE state now 2025-03-22 13:49:08,701 - INFO - VM name : ctest-TestRoutersBasic-12620321-50654443 2025-03-22 13:49:08,786 - DEBUG - VM ctest-TestRoutersBasic-12620321-50654443 ID is e36eac6b-afea-43f5-9bad-3cac33ad430d 2025-03-22 13:49:08,786 - DEBUG - VM ctest-TestRoutersBasic-12620321-50654443 launched on Node cn-jenkins-deploy-platform-ansible-os-2937-1 2025-03-22 13:49:08,880 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e36eac6b-afea-43f5-9bad-3cac33ad430d 2025-03-22 13:49:08,890 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/6e5108af-8c70-42f8-8a99-afc1941418a8 2025-03-22 13:49:10,144 - 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=4.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.853 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.853/2.818/4.783/1.965 ms') 2025-03-22 13:49:10,145 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-12620321-50654443 passed 2025-03-22 13:49:10,299 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 13:49:10,299 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12620321-50654443, IP 157.82.106.67, Port 22 2025-03-22 13:49:10,466 - DEBUG - VM ctest-TestRoutersBasic-12620321-50654443 is ready for SSH connections 2025-03-22 13:49:10,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 13:49:10,466 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.82.106.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-22 13:49:10,466 - DEBUG - ping -s 56 -c 3 -W 1 157.82.106.67 2025-03-22 13:49:14,508 - DEBUG - PING 157.82.106.67 (157.82.106.67): 56 data bytes 64 bytes from 157.82.106.67: seq=0 ttl=62 time=5.668 ms 64 bytes from 157.82.106.67: seq=1 ttl=62 time=1.283 ms 64 bytes from 157.82.106.67: seq=2 ttl=62 time=1.056 ms --- 157.82.106.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.056/2.669/5.668 ms 2025-03-22 13:49:14,508 - INFO - Ping to IP 157.82.106.67 from VM ctest-TestRoutersBasic-12620321-71159322 passed 2025-03-22 13:49:14,508 - INFO - Deleting interface with subnet_id 95978584-daa4-441b-a035-82dd9129d455, port_id None from router cf3b5dc4-374a-455c-91c9-a3c8a365c2d9 2025-03-22 13:49:14,802 - INFO - Deleting VM ctest-TestRoutersBasic-12620321-50654443 2025-03-22 13:49:14,876 - INFO - Deleting VM ctest-TestRoutersBasic-12620321-71159322 2025-03-22 13:49:14,965 - INFO - Deleting VN ctest-ext_vn-91177625 2025-03-22 13:49:15,038 - DEBUG - VN 4d107e4d-712c-41f2-ae42-245517e3c528 still in use: Unable to complete operation on network 4d107e4d-712c-41f2-ae42-245517e3c528. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0b4f4873-bca3-4709-8aaf-7cc4e6021f16'] 2025-03-22 13:49:15,038 - WARNING - Deleting VN ctest-ext_vn-91177625 failed..Will retry 2025-03-22 13:49:17,177 - DEBUG - Response for deleting network () 2025-03-22 13:49:17,177 - INFO - Deleting VN ctest-vn-04848129 2025-03-22 13:49:17,313 - DEBUG - Response for deleting network () 2025-03-22 13:49:17,574 - DEBUG - No XMPP flaps were noticed during the test 2025-03-22 13:49:17,574 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-22 13:49:17,574 - INFO - -------------------------------------------------------------------------------- 2025-03-22 13:49:18,306 - INFO - Deleted project: ctest-TestRoutersBasic-12620321, ID : 3aadde12-ee23-40a2-af4d-a665fe4a4405