2025-04-08 20:48:03,414 - INFO - Domain Default found not creating 2025-04-08 20:48:03,573 - INFO - Project ctest-TestRoutersBasic-40572767 not found, creating it 2025-04-08 20:48:04,051 - INFO - Created Project:ctest-TestRoutersBasic-40572767, ID : 58ddb4d6-7d5c-4562-a0bc-adf19f57aade 2025-04-08 20:48:05,500 - INFO - ================================================================================ 2025-04-08 20:48:05,500 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-08 20:48:05,501 - 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 20:48:05,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.18': '0'}} with 2025-04-08 20:48:05,767 - INFO - Initial checks done. Running the testcase now 2025-04-08 20:48:05,767 - INFO - 2025-04-08 20:48:06,513 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40572767 2025-04-08 20:48:06,614 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40572767 2025-04-08 20:48:06,950 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40572767', 'default']} 2025-04-08 20:48:07,268 - DEBUG - Response for create_network : {'network': {'id': '376f2985-edb2-49c8-a460-db2d33a1ac3c', 'name': 'ctest-vn-56191128', 'tenant_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'project_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40572767', 'ctest-vn-56191128'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:07,432 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d832586-440e-4183-ae19-a94541b272dc', 'name': '', 'tenant_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'network_id': '376f2985-edb2-49c8-a460-db2d33a1ac3c', 'ip_version': 4, 'cidr': '203.116.170.64/26', 'allocation_pools': [{'start': '203.116.170.66', 'end': '203.116.170.126'}], 'gateway_ip': '203.116.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.116.170.66', 'tags': [], 'project_id': '58ddb4d67d5c4562a0bcadf19f57aade'}} 2025-04-08 20:48:07,451 - INFO - Created VN ctest-vn-56191128 2025-04-08 20:48:07,506 - DEBUG - VN ctest-vn-56191128 UUID is 376f2985-edb2-49c8-a460-db2d33a1ac3c 2025-04-08 20:48:07,853 - DEBUG - Response for create_network : {'network': {'id': 'c4760c5a-40b0-48b5-9e3a-0229943d7188', 'name': 'ctest-ext_vn-60518101', 'tenant_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'project_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40572767', 'ctest-ext_vn-60518101'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:08,057 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4866a13-7859-4839-a1b6-309441768e12', 'name': '', 'tenant_id': '58ddb4d67d5c4562a0bcadf19f57aade', 'network_id': 'c4760c5a-40b0-48b5-9e3a-0229943d7188', 'ip_version': 4, 'cidr': '92.121.208.0/26', 'allocation_pools': [{'start': '92.121.208.2', 'end': '92.121.208.62'}], 'gateway_ip': '92.121.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.121.208.2', 'tags': [], 'project_id': '58ddb4d67d5c4562a0bcadf19f57aade'}} 2025-04-08 20:48:08,075 - INFO - Created VN ctest-ext_vn-60518101 2025-04-08 20:48:08,126 - DEBUG - VN ctest-ext_vn-60518101 UUID is c4760c5a-40b0-48b5-9e3a-0229943d7188 2025-04-08 20:48:08,326 - DEBUG - Services list from nova: [, , ] 2025-04-08 20:48:09,323 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3058-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3058-1) 2025-04-08 20:48:10,413 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3058-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3058-1) 2025-04-08 20:48:10,497 - INFO - Setting gateway for router 280395db-e974-47c4-90f5-842f4acae69c to network c4760c5a-40b0-48b5-9e3a-0229943d7188 2025-04-08 20:48:10,561 - INFO - Adding interface with subnet_id 3d832586-440e-4183-ae19-a94541b272dc, port_id None to router 280395db-e974-47c4-90f5-842f4acae69c 2025-04-08 20:48:10,950 - INFO - Waiting for VM ctest-TestRoutersBasic-40572767-89569550 to be up.. 2025-04-08 20:48:11,119 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 20:48:16,195 - DEBUG - VM is in ACTIVE state now 2025-04-08 20:48:16,196 - INFO - VM name : ctest-TestRoutersBasic-40572767-89569550 2025-04-08 20:48:16,276 - DEBUG - VM ctest-TestRoutersBasic-40572767-89569550 ID is 4ef45f9b-9ec9-47a4-b8af-eb3a8f7b26ea 2025-04-08 20:48:16,298 - DEBUG - VM ctest-TestRoutersBasic-40572767-89569550 launched on Node cn-jenkins-deploy-platform-ansible-os-3058-1 2025-04-08 20:48:16,382 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/4ef45f9b-9ec9-47a4-b8af-eb3a8f7b26ea 2025-04-08 20:48:16,684 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/4ef45f9b-9ec9-47a4-b8af-eb3a8f7b26ea 2025-04-08 20:48:16,724 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/77c48f01-e9b0-417a-885a-9f86c2fbd493 2025-04-08 20:48:19,985 - 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-04-08 20:48:19,985 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40572767-89569550 failed! 2025-04-08 20:48:20,042 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40572767:ctest-vn-56191128 is 203.116.170.65 and allocation pool is NOT set 2025-04-08 20:48:22,111 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.409 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.409/2.320/4.231/1.911 ms') 2025-04-08 20:48:22,112 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40572767-89569550 passed 2025-04-08 20:48:22,274 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:48:22,274 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40572767-89569550, IP 203.116.170.67, Port 22 2025-04-08 20:48:22,430 - DEBUG - VM ctest-TestRoutersBasic-40572767-89569550 is ready for SSH connections 2025-04-08 20:48:22,430 - INFO - Waiting for VM ctest-TestRoutersBasic-40572767-51495326 to be up.. 2025-04-08 20:48:22,520 - DEBUG - VM is in ACTIVE state now 2025-04-08 20:48:22,520 - INFO - VM name : ctest-TestRoutersBasic-40572767-51495326 2025-04-08 20:48:22,604 - DEBUG - VM ctest-TestRoutersBasic-40572767-51495326 ID is bada9c51-fe29-4656-95d5-36912ed7c507 2025-04-08 20:48:22,605 - DEBUG - VM ctest-TestRoutersBasic-40572767-51495326 launched on Node cn-jenkins-deploy-platform-ansible-os-3058-1 2025-04-08 20:48:22,681 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/bada9c51-fe29-4656-95d5-36912ed7c507 2025-04-08 20:48:22,696 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/43ebc796-056f-4012-9322-2665c5821ab3 2025-04-08 20:48:23,940 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.480 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.480/1.662/2.845/1.182 ms') 2025-04-08 20:48:23,940 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40572767-51495326 passed 2025-04-08 20:48:24,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:48:24,094 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40572767-51495326, IP 92.121.208.3, Port 22 2025-04-08 20:48:24,250 - DEBUG - VM ctest-TestRoutersBasic-40572767-51495326 is ready for SSH connections 2025-04-08 20:48:24,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:48:24,250 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.121.208.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2025-04-08 20:48:24,251 - DEBUG - ping -s 56 -c 3 -W 1 92.121.208.3 2025-04-08 20:48:28,365 - DEBUG - PING 92.121.208.3 (92.121.208.3): 56 data bytes 64 bytes from 92.121.208.3: seq=0 ttl=62 time=4.758 ms 64 bytes from 92.121.208.3: seq=1 ttl=62 time=1.198 ms 64 bytes from 92.121.208.3: seq=2 ttl=62 time=0.792 ms --- 92.121.208.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.792/2.249/4.758 ms 2025-04-08 20:48:28,365 - INFO - Ping to IP 92.121.208.3 from VM ctest-TestRoutersBasic-40572767-89569550 passed 2025-04-08 20:48:28,365 - INFO - Deleting interface with subnet_id 3d832586-440e-4183-ae19-a94541b272dc, port_id None from router 280395db-e974-47c4-90f5-842f4acae69c 2025-04-08 20:48:28,550 - INFO - Deleting VM ctest-TestRoutersBasic-40572767-51495326 2025-04-08 20:48:28,626 - INFO - Deleting VM ctest-TestRoutersBasic-40572767-89569550 2025-04-08 20:48:28,706 - INFO - Deleting VN ctest-ext_vn-60518101 2025-04-08 20:48:28,780 - DEBUG - VN c4760c5a-40b0-48b5-9e3a-0229943d7188 still in use: Unable to complete operation on network c4760c5a-40b0-48b5-9e3a-0229943d7188. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8f4db25b-c733-4681-a561-0fac9981840e'] 2025-04-08 20:48:28,780 - WARNING - Deleting VN ctest-ext_vn-60518101 failed..Will retry 2025-04-08 20:48:30,926 - DEBUG - Response for deleting network () 2025-04-08 20:48:30,927 - INFO - Deleting VN ctest-vn-56191128 2025-04-08 20:48:31,062 - DEBUG - Response for deleting network () 2025-04-08 20:48:31,320 - DEBUG - No XMPP flaps were noticed during the test 2025-04-08 20:48:31,320 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-04-08 20:48:31,321 - INFO - -------------------------------------------------------------------------------- 2025-04-08 20:48:32,021 - INFO - Deleted project: ctest-TestRoutersBasic-40572767, ID : 58ddb4d6-7d5c-4562-a0bc-adf19f57aade