2025-03-27 16:42:45,346 - INFO - Domain Default found not creating 2025-03-27 16:42:45,506 - INFO - Project ctest-TestRoutersBasic-66180307 not found, creating it 2025-03-27 16:42:45,974 - INFO - Created Project:ctest-TestRoutersBasic-66180307, ID : f8047633-7211-490d-9515-0a6a51c78274 2025-03-27 16:42:47,465 - INFO - ================================================================================ 2025-03-27 16:42:47,466 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 16:42:47,466 - 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-27 16:42:47,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.22': '0'}} with 2025-03-27 16:42:47,732 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:42:47,732 - INFO - 2025-03-27 16:42:48,442 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-66180307 2025-03-27 16:42:48,543 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-66180307 2025-03-27 16:42:48,875 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66180307', 'default']} 2025-03-27 16:42:49,200 - DEBUG - Response for create_network : {'network': {'id': '2741d009-2d39-43f2-a7f8-1ef91762fd1b', 'name': 'ctest-vn-09581148', 'tenant_id': 'f80476337211490d95150a6a51c78274', 'project_id': 'f80476337211490d95150a6a51c78274', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66180307', 'ctest-vn-09581148'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:42:49,431 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce73327a-da17-4c3f-b23f-174326a2360a', 'name': '', 'tenant_id': 'f80476337211490d95150a6a51c78274', 'network_id': '2741d009-2d39-43f2-a7f8-1ef91762fd1b', 'ip_version': 4, 'cidr': '140.188.189.0/26', 'allocation_pools': [{'start': '140.188.189.2', 'end': '140.188.189.62'}], 'gateway_ip': '140.188.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.188.189.2', 'tags': [], 'project_id': 'f80476337211490d95150a6a51c78274'}} 2025-03-27 16:42:49,451 - INFO - Created VN ctest-vn-09581148 2025-03-27 16:42:49,507 - DEBUG - VN ctest-vn-09581148 UUID is 2741d009-2d39-43f2-a7f8-1ef91762fd1b 2025-03-27 16:42:49,861 - DEBUG - Response for create_network : {'network': {'id': 'ea3bf601-233d-41dd-8d06-0b7e32b9b6ce', 'name': 'ctest-ext_vn-69328226', 'tenant_id': 'f80476337211490d95150a6a51c78274', 'project_id': 'f80476337211490d95150a6a51c78274', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66180307', 'ctest-ext_vn-69328226'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:42:50,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d273cb6-b647-4ef6-8112-8c749fa4b37f', 'name': '', 'tenant_id': 'f80476337211490d95150a6a51c78274', 'network_id': 'ea3bf601-233d-41dd-8d06-0b7e32b9b6ce', 'ip_version': 4, 'cidr': '121.18.221.192/26', 'allocation_pools': [{'start': '121.18.221.194', 'end': '121.18.221.254'}], 'gateway_ip': '121.18.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.18.221.194', 'tags': [], 'project_id': 'f80476337211490d95150a6a51c78274'}} 2025-03-27 16:42:50,108 - INFO - Created VN ctest-ext_vn-69328226 2025-03-27 16:42:50,163 - DEBUG - VN ctest-ext_vn-69328226 UUID is ea3bf601-233d-41dd-8d06-0b7e32b9b6ce 2025-03-27 16:42:50,331 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:42:51,327 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2981-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2981-1) 2025-03-27 16:42:52,479 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2981-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2981-1) 2025-03-27 16:42:52,556 - INFO - Setting gateway for router 3a1dd573-9040-4dd9-8d69-2a6378b75cf6 to network ea3bf601-233d-41dd-8d06-0b7e32b9b6ce 2025-03-27 16:42:52,627 - INFO - Adding interface with subnet_id ce73327a-da17-4c3f-b23f-174326a2360a, port_id None to router 3a1dd573-9040-4dd9-8d69-2a6378b75cf6 2025-03-27 16:42:53,054 - INFO - Waiting for VM ctest-TestRoutersBasic-66180307-70201492 to be up.. 2025-03-27 16:42:53,215 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 16:42:58,295 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:42:58,295 - INFO - VM name : ctest-TestRoutersBasic-66180307-70201492 2025-03-27 16:42:58,370 - DEBUG - VM ctest-TestRoutersBasic-66180307-70201492 ID is 506c0cfa-0ddf-43a5-ac54-99ccfb42218c 2025-03-27 16:42:58,387 - DEBUG - VM ctest-TestRoutersBasic-66180307-70201492 launched on Node cn-jenkins-deploy-platform-ansible-os-2981-1 2025-03-27 16:42:58,458 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/506c0cfa-0ddf-43a5-ac54-99ccfb42218c 2025-03-27 16:42:58,752 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/506c0cfa-0ddf-43a5-ac54-99ccfb42218c 2025-03-27 16:42:58,790 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/6288e470-4a69-427e-b944-5d1362c6fa3d 2025-03-27 16:43:02,057 - 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 1011ms') 2025-03-27 16:43:02,057 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-66180307-70201492 failed! 2025-03-27 16:43:02,115 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-66180307:ctest-vn-09581148 is 140.188.189.1 and allocation pool is NOT set 2025-03-27 16:43:04,179 - 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=4.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.70 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 = 1.702/3.252/4.802/1.550 ms') 2025-03-27 16:43:04,180 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-66180307-70201492 passed 2025-03-27 16:43:04,339 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:43:04,339 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-66180307-70201492, IP 140.188.189.3, Port 22 2025-03-27 16:43:04,494 - DEBUG - VM ctest-TestRoutersBasic-66180307-70201492 is ready for SSH connections 2025-03-27 16:43:04,494 - INFO - Waiting for VM ctest-TestRoutersBasic-66180307-70931075 to be up.. 2025-03-27 16:43:04,569 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:43:04,569 - INFO - VM name : ctest-TestRoutersBasic-66180307-70931075 2025-03-27 16:43:04,645 - DEBUG - VM ctest-TestRoutersBasic-66180307-70931075 ID is 081553a3-383a-473c-91e1-e8aa2b48ee25 2025-03-27 16:43:04,645 - DEBUG - VM ctest-TestRoutersBasic-66180307-70931075 launched on Node cn-jenkins-deploy-platform-ansible-os-2981-1 2025-03-27 16:43:04,716 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/081553a3-383a-473c-91e1-e8aa2b48ee25 2025-03-27 16:43:04,725 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/acd2b2f9-ab21-4402-8fd8-40a90286228a 2025-03-27 16:43:05,960 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.809/3.229/1.420 ms') 2025-03-27 16:43:05,960 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-66180307-70931075 passed 2025-03-27 16:43:06,111 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:43:06,111 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-66180307-70931075, IP 121.18.221.195, Port 22 2025-03-27 16:43:06,267 - DEBUG - VM ctest-TestRoutersBasic-66180307-70931075 is ready for SSH connections 2025-03-27 16:43:06,267 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:43:06,267 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.18.221.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-03-27 16:43:06,267 - DEBUG - ping -s 56 -c 3 -W 1 121.18.221.195 2025-03-27 16:43:09,941 - DEBUG - PING 121.18.221.195 (121.18.221.195): 56 data bytes 64 bytes from 121.18.221.195: seq=0 ttl=62 time=4.154 ms 64 bytes from 121.18.221.195: seq=1 ttl=62 time=0.805 ms 64 bytes from 121.18.221.195: seq=2 ttl=62 time=0.869 ms --- 121.18.221.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.805/1.942/4.154 ms 2025-03-27 16:43:09,941 - INFO - Ping to IP 121.18.221.195 from VM ctest-TestRoutersBasic-66180307-70201492 passed 2025-03-27 16:43:09,941 - INFO - Deleting interface with subnet_id ce73327a-da17-4c3f-b23f-174326a2360a, port_id None from router 3a1dd573-9040-4dd9-8d69-2a6378b75cf6 2025-03-27 16:43:10,127 - INFO - Deleting VM ctest-TestRoutersBasic-66180307-70931075 2025-03-27 16:43:10,191 - INFO - Deleting VM ctest-TestRoutersBasic-66180307-70201492 2025-03-27 16:43:10,300 - INFO - Deleting VN ctest-ext_vn-69328226 2025-03-27 16:43:10,368 - DEBUG - VN ea3bf601-233d-41dd-8d06-0b7e32b9b6ce still in use: Unable to complete operation on network ea3bf601-233d-41dd-8d06-0b7e32b9b6ce. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bb17094e-7fe8-4001-bbfe-1d91b173bb97'] 2025-03-27 16:43:10,368 - WARNING - Deleting VN ctest-ext_vn-69328226 failed..Will retry 2025-03-27 16:43:12,467 - DEBUG - Response for deleting network () 2025-03-27 16:43:12,468 - INFO - Deleting VN ctest-vn-09581148 2025-03-27 16:43:12,572 - DEBUG - Response for deleting network () 2025-03-27 16:43:12,824 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 16:43:12,824 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-27 16:43:12,824 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:43:13,478 - INFO - Deleted project: ctest-TestRoutersBasic-66180307, ID : f8047633-7211-490d-9515-0a6a51c78274