2025-05-13 09:53:57,302 - INFO - Domain Default found not creating 2025-05-13 09:53:57,431 - INFO - Project ctest-TestRoutersBasic-99580697 not found, creating it 2025-05-13 09:53:57,852 - INFO - Created Project:ctest-TestRoutersBasic-99580697, ID : db6676c8-33b4-4eaa-8387-b92fd37c1f3d 2025-05-13 09:53:59,190 - INFO - ================================================================================ 2025-05-13 09:53:59,190 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-13 09:53:59,190 - 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-05-13 09:53:59,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-05-13 09:53:59,442 - INFO - Initial checks done. Running the testcase now 2025-05-13 09:53:59,442 - INFO - 2025-05-13 09:54:00,123 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-99580697 2025-05-13 09:54:00,217 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-99580697 2025-05-13 09:54:00,541 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99580697', 'default']} 2025-05-13 09:54:00,820 - DEBUG - Response for create_network : {'network': {'id': '65e0e93e-e9f6-46f3-b353-f6f6e60cd15d', 'name': 'ctest-vn-77158385', 'tenant_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'project_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99580697', 'ctest-vn-77158385'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:54:01,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '49de4bbd-7a9d-4419-8f0c-b2f11604d31b', 'name': '', 'tenant_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'network_id': '65e0e93e-e9f6-46f3-b353-f6f6e60cd15d', 'ip_version': 4, 'cidr': '71.130.82.64/26', 'allocation_pools': [{'start': '71.130.82.66', 'end': '71.130.82.126'}], 'gateway_ip': '71.130.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.130.82.66', 'tags': [], 'project_id': 'db6676c833b44eaa8387b92fd37c1f3d'}} 2025-05-13 09:54:01,047 - INFO - Created VN ctest-vn-77158385 2025-05-13 09:54:01,101 - DEBUG - VN ctest-vn-77158385 UUID is 65e0e93e-e9f6-46f3-b353-f6f6e60cd15d 2025-05-13 09:54:01,411 - DEBUG - Response for create_network : {'network': {'id': '5060acc6-07ab-4816-802f-299b7ea0d5b0', 'name': 'ctest-ext_vn-55737192', 'tenant_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'project_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99580697', 'ctest-ext_vn-55737192'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:54:01,628 - DEBUG - Response for create_subnet : {'subnet': {'id': '1289d3fe-5c41-48c9-9aae-ac8afc21f1be', 'name': '', 'tenant_id': 'db6676c833b44eaa8387b92fd37c1f3d', 'network_id': '5060acc6-07ab-4816-802f-299b7ea0d5b0', 'ip_version': 4, 'cidr': '5.91.240.0/26', 'allocation_pools': [{'start': '5.91.240.2', 'end': '5.91.240.62'}], 'gateway_ip': '5.91.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.91.240.2', 'tags': [], 'project_id': 'db6676c833b44eaa8387b92fd37c1f3d'}} 2025-05-13 09:54:01,646 - INFO - Created VN ctest-ext_vn-55737192 2025-05-13 09:54:01,697 - DEBUG - VN ctest-ext_vn-55737192 UUID is 5060acc6-07ab-4816-802f-299b7ea0d5b0 2025-05-13 09:54:01,903 - DEBUG - Services list from nova: [, , ] 2025-05-13 09:54:02,861 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3304-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3304-1) 2025-05-13 09:54:03,941 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3304-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3304-1) 2025-05-13 09:54:04,020 - INFO - Setting gateway for router 0ad74b8d-96e7-47e4-a03b-a2444d7c18c2 to network 5060acc6-07ab-4816-802f-299b7ea0d5b0 2025-05-13 09:54:04,105 - INFO - Adding interface with subnet_id 49de4bbd-7a9d-4419-8f0c-b2f11604d31b, port_id None to router 0ad74b8d-96e7-47e4-a03b-a2444d7c18c2 2025-05-13 09:54:04,513 - INFO - Waiting for VM ctest-TestRoutersBasic-99580697-16268243 to be up.. 2025-05-13 09:54:04,666 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-13 09:54:09,736 - DEBUG - VM is in ACTIVE state now 2025-05-13 09:54:09,736 - INFO - VM name : ctest-TestRoutersBasic-99580697-16268243 2025-05-13 09:54:09,812 - DEBUG - VM ctest-TestRoutersBasic-99580697-16268243 ID is cbef2e54-626c-4128-8f80-db1514ed1416 2025-05-13 09:54:09,833 - DEBUG - VM ctest-TestRoutersBasic-99580697-16268243 launched on Node cn-jenkins-deploy-platform-ansible-os-3304-1 2025-05-13 09:54:09,907 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/cbef2e54-626c-4128-8f80-db1514ed1416 2025-05-13 09:54:10,196 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/cbef2e54-626c-4128-8f80-db1514ed1416 2025-05-13 09:54:10,225 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/fb166845-077a-4dec-a58f-30510a9d8844 2025-05-13 09:54:13,470 - 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 1016ms') 2025-05-13 09:54:13,470 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99580697-16268243 failed! 2025-05-13 09:54:13,525 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-99580697:ctest-vn-77158385 is 71.130.82.65 and allocation pool is NOT set 2025-05-13 09:54:15,586 - 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.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.377 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.377/1.650/2.924/1.273 ms') 2025-05-13 09:54:15,586 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99580697-16268243 passed 2025-05-13 09:54:15,733 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:54:15,733 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99580697-16268243, IP 71.130.82.67, Port 22 2025-05-13 09:54:15,885 - DEBUG - VM ctest-TestRoutersBasic-99580697-16268243 is ready for SSH connections 2025-05-13 09:54:15,885 - INFO - Waiting for VM ctest-TestRoutersBasic-99580697-00470709 to be up.. 2025-05-13 09:54:15,959 - DEBUG - VM is in ACTIVE state now 2025-05-13 09:54:15,959 - INFO - VM name : ctest-TestRoutersBasic-99580697-00470709 2025-05-13 09:54:16,027 - DEBUG - VM ctest-TestRoutersBasic-99580697-00470709 ID is 37322eaf-e017-4801-bd64-f58c4d0dbb18 2025-05-13 09:54:16,027 - DEBUG - VM ctest-TestRoutersBasic-99580697-00470709 launched on Node cn-jenkins-deploy-platform-ansible-os-3304-1 2025-05-13 09:54:16,094 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/37322eaf-e017-4801-bd64-f58c4d0dbb18 2025-05-13 09:54:16,104 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/4f54c752-7bd8-4690-b016-031fd4633285 2025-05-13 09:54:17,339 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.343 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.343/1.574/2.806/1.231 ms') 2025-05-13 09:54:17,339 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-99580697-00470709 passed 2025-05-13 09:54:17,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:54:17,489 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99580697-00470709, IP 5.91.240.3, Port 22 2025-05-13 09:54:17,641 - DEBUG - VM ctest-TestRoutersBasic-99580697-00470709 is ready for SSH connections 2025-05-13 09:54:17,641 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:54:17,641 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.91.240.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-05-13 09:54:17,641 - DEBUG - ping -s 56 -c 3 -W 1 5.91.240.3 2025-05-13 09:54:21,587 - DEBUG - PING 5.91.240.3 (5.91.240.3): 56 data bytes 64 bytes from 5.91.240.3: seq=0 ttl=62 time=5.740 ms 64 bytes from 5.91.240.3: seq=1 ttl=62 time=0.858 ms 64 bytes from 5.91.240.3: seq=2 ttl=62 time=0.761 ms --- 5.91.240.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.761/2.453/5.740 ms 2025-05-13 09:54:21,587 - INFO - Ping to IP 5.91.240.3 from VM ctest-TestRoutersBasic-99580697-16268243 passed 2025-05-13 09:54:21,587 - INFO - Deleting interface with subnet_id 49de4bbd-7a9d-4419-8f0c-b2f11604d31b, port_id None from router 0ad74b8d-96e7-47e4-a03b-a2444d7c18c2 2025-05-13 09:54:21,778 - INFO - Deleting VM ctest-TestRoutersBasic-99580697-00470709 2025-05-13 09:54:21,852 - INFO - Deleting VM ctest-TestRoutersBasic-99580697-16268243 2025-05-13 09:54:21,921 - INFO - Deleting VN ctest-ext_vn-55737192 2025-05-13 09:54:21,983 - DEBUG - VN 5060acc6-07ab-4816-802f-299b7ea0d5b0 still in use: Unable to complete operation on network 5060acc6-07ab-4816-802f-299b7ea0d5b0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a5ecb1ea-eff3-4ca3-85cf-a76867b64b8c'] 2025-05-13 09:54:21,983 - WARNING - Deleting VN ctest-ext_vn-55737192 failed..Will retry 2025-05-13 09:54:24,079 - DEBUG - Response for deleting network () 2025-05-13 09:54:24,079 - INFO - Deleting VN ctest-vn-77158385 2025-05-13 09:54:24,181 - DEBUG - Response for deleting network () 2025-05-13 09:54:24,444 - DEBUG - No XMPP flaps were noticed during the test 2025-05-13 09:54:24,444 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-05-13 09:54:24,444 - INFO - -------------------------------------------------------------------------------- 2025-05-13 09:54:25,088 - INFO - Deleted project: ctest-TestRoutersBasic-99580697, ID : db6676c8-33b4-4eaa-8387-b92fd37c1f3d