2025-04-08 16:10:58,556 - INFO - Domain Default found not creating 2025-04-08 16:10:58,851 - INFO - Project ctest-TestRoutersBasic-94823152 not found, creating it 2025-04-08 16:10:59,645 - INFO - Created Project:ctest-TestRoutersBasic-94823152, ID : 6f36aca9-afdf-4b44-8834-95a7e11394a3 2025-04-08 16:11:01,470 - INFO - ================================================================================ 2025-04-08 16:11:01,470 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-08 16:11:01,470 - 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-04-08 16:11:01,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.12': '0'}} with 2025-04-08 16:11:01,767 - INFO - Initial checks done. Running the testcase now 2025-04-08 16:11:01,767 - INFO - 2025-04-08 16:11:02,596 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94823152 2025-04-08 16:11:02,694 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94823152 2025-04-08 16:11:03,078 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94823152', 'default']} 2025-04-08 16:11:03,464 - DEBUG - Response for create_network : {'network': {'id': '9848b11c-b6b2-4e21-8013-822396f3d14a', 'name': 'ctest-vn-48686792', 'tenant_id': '6f36aca9afdf4b44883495a7e11394a3', 'project_id': '6f36aca9afdf4b44883495a7e11394a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94823152', 'ctest-vn-48686792'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:03,668 - DEBUG - Response for create_subnet : {'subnet': {'id': '03790211-3f3a-4c38-886d-e05a5e0e6a98', 'name': '', 'tenant_id': '6f36aca9afdf4b44883495a7e11394a3', 'network_id': '9848b11c-b6b2-4e21-8013-822396f3d14a', 'ip_version': 4, 'cidr': '4.212.24.128/26', 'allocation_pools': [{'start': '4.212.24.130', 'end': '4.212.24.190'}], 'gateway_ip': '4.212.24.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.212.24.130', 'tags': [], 'project_id': '6f36aca9afdf4b44883495a7e11394a3'}} 2025-04-08 16:11:03,691 - INFO - Created VN ctest-vn-48686792 2025-04-08 16:11:03,751 - DEBUG - VN ctest-vn-48686792 UUID is 9848b11c-b6b2-4e21-8013-822396f3d14a 2025-04-08 16:11:04,339 - DEBUG - Response for create_network : {'network': {'id': '4312f0ea-05d2-45ae-b528-5f71ca4a5cb4', 'name': 'ctest-ext_vn-29098624', 'tenant_id': '6f36aca9afdf4b44883495a7e11394a3', 'project_id': '6f36aca9afdf4b44883495a7e11394a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94823152', 'ctest-ext_vn-29098624'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:04,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ee4ef94-ce1f-40c0-83c6-b67e1956ecc2', 'name': '', 'tenant_id': '6f36aca9afdf4b44883495a7e11394a3', 'network_id': '4312f0ea-05d2-45ae-b528-5f71ca4a5cb4', 'ip_version': 4, 'cidr': '130.224.137.64/26', 'allocation_pools': [{'start': '130.224.137.66', 'end': '130.224.137.126'}], 'gateway_ip': '130.224.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.224.137.66', 'tags': [], 'project_id': '6f36aca9afdf4b44883495a7e11394a3'}} 2025-04-08 16:11:04,539 - INFO - Created VN ctest-ext_vn-29098624 2025-04-08 16:11:04,598 - DEBUG - VN ctest-ext_vn-29098624 UUID is 4312f0ea-05d2-45ae-b528-5f71ca4a5cb4 2025-04-08 16:11:04,906 - DEBUG - Services list from nova: [, , ] 2025-04-08 16:11:06,408 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3055-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3055-1) 2025-04-08 16:11:07,808 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3055-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3055-1) 2025-04-08 16:11:07,918 - INFO - Setting gateway for router 7e2e7eb3-261b-46d4-b3a7-71118531f506 to network 4312f0ea-05d2-45ae-b528-5f71ca4a5cb4 2025-04-08 16:11:08,016 - INFO - Adding interface with subnet_id 03790211-3f3a-4c38-886d-e05a5e0e6a98, port_id None to router 7e2e7eb3-261b-46d4-b3a7-71118531f506 2025-04-08 16:11:08,486 - INFO - Waiting for VM ctest-TestRoutersBasic-94823152-39864226 to be up.. 2025-04-08 16:11:08,666 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 16:11:13,828 - DEBUG - VM is in ACTIVE state now 2025-04-08 16:11:13,828 - INFO - VM name : ctest-TestRoutersBasic-94823152-39864226 2025-04-08 16:11:13,937 - DEBUG - VM ctest-TestRoutersBasic-94823152-39864226 ID is a1a06f57-61cd-4982-8c93-1f80ed8eb7fc 2025-04-08 16:11:13,963 - DEBUG - VM ctest-TestRoutersBasic-94823152-39864226 launched on Node cn-jenkins-deploy-platform-ansible-os-3055-1 2025-04-08 16:11:14,074 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/a1a06f57-61cd-4982-8c93-1f80ed8eb7fc 2025-04-08 16:11:14,407 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/a1a06f57-61cd-4982-8c93-1f80ed8eb7fc 2025-04-08 16:11:14,442 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/89826753-404e-45cb-9249-44a52126a2c1 2025-04-08 16:11:17,719 - 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') 2025-04-08 16:11:17,719 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94823152-39864226 failed! 2025-04-08 16:11:17,783 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94823152:ctest-vn-48686792 is 4.212.24.129 and allocation pool is NOT set 2025-04-08 16:11:19,852 - 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=8.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.635 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.635/4.408/8.182/3.773 ms') 2025-04-08 16:11:19,852 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94823152-39864226 passed 2025-04-08 16:11:20,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:11:20,031 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94823152-39864226, IP 4.212.24.131, Port 22 2025-04-08 16:11:20,220 - DEBUG - VM ctest-TestRoutersBasic-94823152-39864226 is ready for SSH connections 2025-04-08 16:11:20,220 - INFO - Waiting for VM ctest-TestRoutersBasic-94823152-38561348 to be up.. 2025-04-08 16:11:20,369 - DEBUG - VM is in ACTIVE state now 2025-04-08 16:11:20,369 - INFO - VM name : ctest-TestRoutersBasic-94823152-38561348 2025-04-08 16:11:20,478 - DEBUG - VM ctest-TestRoutersBasic-94823152-38561348 ID is 5934b162-6db9-4599-acf2-2f3b495e9da8 2025-04-08 16:11:20,479 - DEBUG - VM ctest-TestRoutersBasic-94823152-38561348 launched on Node cn-jenkins-deploy-platform-ansible-os-3055-1 2025-04-08 16:11:20,625 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/5934b162-6db9-4599-acf2-2f3b495e9da8 2025-04-08 16:11:20,643 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/b1eec63d-72b6-4468-ad9d-5db0459ae369 2025-04-08 16:11:21,950 - 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.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.922 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.922/2.272/3.623/1.350 ms') 2025-04-08 16:11:21,950 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94823152-38561348 passed 2025-04-08 16:11:22,139 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:11:22,139 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94823152-38561348, IP 130.224.137.67, Port 22 2025-04-08 16:11:22,335 - DEBUG - VM ctest-TestRoutersBasic-94823152-38561348 is ready for SSH connections 2025-04-08 16:11:22,335 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:11:22,335 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.224.137.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-04-08 16:11:22,336 - DEBUG - ping -s 56 -c 3 -W 1 130.224.137.67 2025-04-08 16:11:26,504 - DEBUG - PING 130.224.137.67 (130.224.137.67): 56 data bytes 64 bytes from 130.224.137.67: seq=0 ttl=62 time=14.025 ms 64 bytes from 130.224.137.67: seq=1 ttl=62 time=1.031 ms 64 bytes from 130.224.137.67: seq=2 ttl=62 time=1.505 ms --- 130.224.137.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.031/5.520/14.025 ms 2025-04-08 16:11:26,504 - INFO - Ping to IP 130.224.137.67 from VM ctest-TestRoutersBasic-94823152-39864226 passed 2025-04-08 16:11:26,505 - INFO - Deleting interface with subnet_id 03790211-3f3a-4c38-886d-e05a5e0e6a98, port_id None from router 7e2e7eb3-261b-46d4-b3a7-71118531f506 2025-04-08 16:11:26,865 - INFO - Deleting VM ctest-TestRoutersBasic-94823152-38561348 2025-04-08 16:11:26,954 - INFO - Deleting VM ctest-TestRoutersBasic-94823152-39864226 2025-04-08 16:11:27,038 - INFO - Deleting VN ctest-ext_vn-29098624 2025-04-08 16:11:27,113 - DEBUG - VN 4312f0ea-05d2-45ae-b528-5f71ca4a5cb4 still in use: Unable to complete operation on network 4312f0ea-05d2-45ae-b528-5f71ca4a5cb4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b73714ae-a761-40d2-b852-9b1efea04209'] 2025-04-08 16:11:27,114 - WARNING - Deleting VN ctest-ext_vn-29098624 failed..Will retry 2025-04-08 16:11:29,323 - DEBUG - Response for deleting network () 2025-04-08 16:11:29,324 - INFO - Deleting VN ctest-vn-48686792 2025-04-08 16:11:29,455 - DEBUG - Response for deleting network () 2025-04-08 16:11:29,756 - DEBUG - No XMPP flaps were noticed during the test 2025-04-08 16:11:29,756 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2025-04-08 16:11:29,756 - INFO - -------------------------------------------------------------------------------- 2025-04-08 16:11:30,722 - INFO - Deleted project: ctest-TestRoutersBasic-94823152, ID : 6f36aca9-afdf-4b44-8834-95a7e11394a3