2025-10-09 20:29:01,015 - INFO - Domain Default found not creating 2025-10-09 20:29:01,262 - INFO - Project ctest-TestRoutersBasic-09145587 not found, creating it 2025-10-09 20:29:01,858 - INFO - Created Project:ctest-TestRoutersBasic-09145587, ID : 732f4c47-6d11-49b0-b9cf-5c67d5546eb6 2025-10-09 20:29:03,804 - INFO - ================================================================================ 2025-10-09 20:29:03,804 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-09 20:29:03,804 - 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-10-09 20:29:04,097 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-09 20:29:04,098 - INFO - Initial checks done. Running the testcase now 2025-10-09 20:29:04,098 - INFO - 2025-10-09 20:29:04,955 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-09145587 2025-10-09 20:29:05,054 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-09145587 2025-10-09 20:29:05,414 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09145587', 'default']} 2025-10-09 20:29:05,784 - DEBUG - Response for create_network : {'network': {'id': 'bb35e62f-891d-40a1-96d7-6e9e3ca4966d', 'name': 'ctest-vn-53443091', 'tenant_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'project_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09145587', 'ctest-vn-53443091'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:29:05,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c122edc-9348-4ee9-b867-35da6fc60619', 'name': '', 'tenant_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'network_id': 'bb35e62f-891d-40a1-96d7-6e9e3ca4966d', 'ip_version': 4, 'cidr': '150.33.238.192/26', 'allocation_pools': [{'start': '150.33.238.194', 'end': '150.33.238.254'}], 'gateway_ip': '150.33.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.33.238.194', 'tags': [], 'project_id': '732f4c476d1149b0b9cf5c67d5546eb6'}} 2025-10-09 20:29:06,005 - INFO - Created VN ctest-vn-53443091 2025-10-09 20:29:06,066 - DEBUG - VN ctest-vn-53443091 UUID is bb35e62f-891d-40a1-96d7-6e9e3ca4966d 2025-10-09 20:29:06,476 - DEBUG - Response for create_network : {'network': {'id': '0983cee5-c0a2-47b8-9aba-e72c27dfe8fe', 'name': 'ctest-ext_vn-17977884', 'tenant_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'project_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09145587', 'ctest-ext_vn-17977884'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:29:06,717 - DEBUG - Response for create_subnet : {'subnet': {'id': '100a56e0-b029-43ff-99e9-d3dcef25be42', 'name': '', 'tenant_id': '732f4c476d1149b0b9cf5c67d5546eb6', 'network_id': '0983cee5-c0a2-47b8-9aba-e72c27dfe8fe', 'ip_version': 4, 'cidr': '57.147.152.64/26', 'allocation_pools': [{'start': '57.147.152.66', 'end': '57.147.152.126'}], 'gateway_ip': '57.147.152.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.147.152.66', 'tags': [], 'project_id': '732f4c476d1149b0b9cf5c67d5546eb6'}} 2025-10-09 20:29:06,737 - INFO - Created VN ctest-ext_vn-17977884 2025-10-09 20:29:06,794 - DEBUG - VN ctest-ext_vn-17977884 UUID is 0983cee5-c0a2-47b8-9aba-e72c27dfe8fe 2025-10-09 20:29:07,071 - DEBUG - Services list from nova: [, , ] 2025-10-09 20:29:08,763 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4277-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4277-1) 2025-10-09 20:29:10,209 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4277-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4277-1) 2025-10-09 20:29:10,267 - INFO - Setting gateway for router a3fed8bb-41e3-4df5-a83d-2ff0d244fc9e to network 0983cee5-c0a2-47b8-9aba-e72c27dfe8fe 2025-10-09 20:29:10,312 - INFO - Adding interface with subnet_id 4c122edc-9348-4ee9-b867-35da6fc60619, port_id None to router a3fed8bb-41e3-4df5-a83d-2ff0d244fc9e 2025-10-09 20:29:10,612 - INFO - Waiting for VM ctest-TestRoutersBasic-09145587-21674882 to be up.. 2025-10-09 20:29:10,734 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 20:29:15,862 - DEBUG - VM is in ACTIVE state now 2025-10-09 20:29:15,862 - INFO - VM name : ctest-TestRoutersBasic-09145587-21674882 2025-10-09 20:29:15,946 - DEBUG - VM ctest-TestRoutersBasic-09145587-21674882 ID is aa3bc2df-550e-4f6d-98bd-8004dd6bff7a 2025-10-09 20:29:15,982 - DEBUG - VM ctest-TestRoutersBasic-09145587-21674882 launched on Node cn-jenkins-deploy-platform-ansible-os-4277-1 2025-10-09 20:29:16,089 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/aa3bc2df-550e-4f6d-98bd-8004dd6bff7a 2025-10-09 20:29:16,396 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/aa3bc2df-550e-4f6d-98bd-8004dd6bff7a 2025-10-09 20:29:16,439 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/43d724c1-c65d-4d62-904e-2099c465aca3 2025-10-09 20:29:19,717 - 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 1007ms') 2025-10-09 20:29:19,717 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09145587-21674882 failed! 2025-10-09 20:29:19,795 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-09145587:ctest-vn-53443091 is 150.33.238.193 and allocation pool is NOT set 2025-10-09 20:29:21,865 - 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=5.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.849 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.849/3.367/5.885/2.518 ms') 2025-10-09 20:29:21,865 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09145587-21674882 passed 2025-10-09 20:29:22,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:29:22,022 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09145587-21674882, IP 150.33.238.195, Port 22 2025-10-09 20:29:22,196 - DEBUG - VM ctest-TestRoutersBasic-09145587-21674882 is ready for SSH connections 2025-10-09 20:29:22,196 - INFO - Waiting for VM ctest-TestRoutersBasic-09145587-21817718 to be up.. 2025-10-09 20:29:22,335 - DEBUG - VM is in ACTIVE state now 2025-10-09 20:29:22,336 - INFO - VM name : ctest-TestRoutersBasic-09145587-21817718 2025-10-09 20:29:22,480 - DEBUG - VM ctest-TestRoutersBasic-09145587-21817718 ID is ff9e15f6-d1d9-4559-b125-44249d56e4c1 2025-10-09 20:29:22,480 - DEBUG - VM ctest-TestRoutersBasic-09145587-21817718 launched on Node cn-jenkins-deploy-platform-ansible-os-4277-1 2025-10-09 20:29:22,607 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/ff9e15f6-d1d9-4559-b125-44249d56e4c1 2025-10-09 20:29:22,622 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/2d6ed75f-48dc-4872-8a07-87d66c07cb9b 2025-10-09 20:29:23,925 - 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=9.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.716 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.716/5.228/9.740/4.512 ms') 2025-10-09 20:29:23,926 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-09145587-21817718 passed 2025-10-09 20:29:24,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:29:24,090 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09145587-21817718, IP 57.147.152.67, Port 22 2025-10-09 20:29:24,288 - DEBUG - VM ctest-TestRoutersBasic-09145587-21817718 is ready for SSH connections 2025-10-09 20:29:24,288 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:29:24,288 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 57.147.152.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-09 20:29:24,289 - DEBUG - ping -s 56 -c 3 -W 1 57.147.152.67 2025-10-09 20:29:28,494 - DEBUG - PING 57.147.152.67 (57.147.152.67): 56 data bytes 64 bytes from 57.147.152.67: seq=0 ttl=62 time=13.999 ms 64 bytes from 57.147.152.67: seq=1 ttl=62 time=2.042 ms 64 bytes from 57.147.152.67: seq=2 ttl=62 time=1.494 ms --- 57.147.152.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.494/5.845/13.999 ms 2025-10-09 20:29:28,494 - INFO - Ping to IP 57.147.152.67 from VM ctest-TestRoutersBasic-09145587-21674882 passed 2025-10-09 20:29:28,494 - INFO - Deleting interface with subnet_id 4c122edc-9348-4ee9-b867-35da6fc60619, port_id None from router a3fed8bb-41e3-4df5-a83d-2ff0d244fc9e 2025-10-09 20:29:28,770 - INFO - Deleting VM ctest-TestRoutersBasic-09145587-21817718 2025-10-09 20:29:28,866 - INFO - Deleting VM ctest-TestRoutersBasic-09145587-21674882 2025-10-09 20:29:28,953 - INFO - Deleting VN ctest-ext_vn-17977884 2025-10-09 20:29:29,037 - DEBUG - VN 0983cee5-c0a2-47b8-9aba-e72c27dfe8fe still in use: Unable to complete operation on network 0983cee5-c0a2-47b8-9aba-e72c27dfe8fe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c6fdf62e-d533-4990-99b1-d0baad945708'] 2025-10-09 20:29:29,037 - WARNING - Deleting VN ctest-ext_vn-17977884 failed..Will retry 2025-10-09 20:29:31,200 - DEBUG - Response for deleting network () 2025-10-09 20:29:31,200 - INFO - Deleting VN ctest-vn-53443091 2025-10-09 20:29:31,324 - DEBUG - Response for deleting network () 2025-10-09 20:29:31,613 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 20:29:31,613 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2025-10-09 20:29:31,613 - INFO - -------------------------------------------------------------------------------- 2025-10-09 20:29:32,409 - INFO - Deleted project: ctest-TestRoutersBasic-09145587, ID : 732f4c47-6d11-49b0-b9cf-5c67d5546eb6