2025-08-15 16:31:49,934 - INFO - Domain Default found not creating 2025-08-15 16:31:50,060 - INFO - Project ctest-TestRoutersBasic-32766585 not found, creating it 2025-08-15 16:31:50,519 - INFO - Created Project:ctest-TestRoutersBasic-32766585, ID : 865a7307-14b8-4c09-8848-4ae4d0112c86 2025-08-15 16:31:51,859 - INFO - ================================================================================ 2025-08-15 16:31:51,859 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-15 16:31:51,859 - 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-08-15 16:31:52,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-15 16:31:52,118 - INFO - Initial checks done. Running the testcase now 2025-08-15 16:31:52,118 - INFO - 2025-08-15 16:31:52,792 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32766585 2025-08-15 16:31:52,888 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32766585 2025-08-15 16:31:53,208 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32766585', 'default']} 2025-08-15 16:31:53,489 - DEBUG - Response for create_network : {'network': {'id': 'da229320-021a-447e-bb80-dd6f3aaa68ef', 'name': 'ctest-vn-35975159', 'tenant_id': '865a730714b84c0988484ae4d0112c86', 'project_id': '865a730714b84c0988484ae4d0112c86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32766585', 'ctest-vn-35975159'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:31:53,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e07edb7-5bdd-4f70-9a05-8aa2caae7662', 'name': '', 'tenant_id': '865a730714b84c0988484ae4d0112c86', 'network_id': 'da229320-021a-447e-bb80-dd6f3aaa68ef', 'ip_version': 4, 'cidr': '36.56.112.64/26', 'allocation_pools': [{'start': '36.56.112.66', 'end': '36.56.112.126'}], 'gateway_ip': '36.56.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.56.112.66', 'tags': [], 'project_id': '865a730714b84c0988484ae4d0112c86'}} 2025-08-15 16:31:53,705 - INFO - Created VN ctest-vn-35975159 2025-08-15 16:31:53,759 - DEBUG - VN ctest-vn-35975159 UUID is da229320-021a-447e-bb80-dd6f3aaa68ef 2025-08-15 16:31:54,113 - DEBUG - Response for create_network : {'network': {'id': '26f05ac4-1030-4a17-a643-40259424074b', 'name': 'ctest-ext_vn-36353710', 'tenant_id': '865a730714b84c0988484ae4d0112c86', 'project_id': '865a730714b84c0988484ae4d0112c86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32766585', 'ctest-ext_vn-36353710'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:31:54,292 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c773d827-19be-4c8f-8e94-0dfcc5b478e7', 'name': '', 'tenant_id': '865a730714b84c0988484ae4d0112c86', 'network_id': '26f05ac4-1030-4a17-a643-40259424074b', 'ip_version': 4, 'cidr': '197.8.193.192/26', 'allocation_pools': [{'start': '197.8.193.194', 'end': '197.8.193.254'}], 'gateway_ip': '197.8.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.8.193.194', 'tags': [], 'project_id': '865a730714b84c0988484ae4d0112c86'}} 2025-08-15 16:31:54,307 - INFO - Created VN ctest-ext_vn-36353710 2025-08-15 16:31:54,359 - DEBUG - VN ctest-ext_vn-36353710 UUID is 26f05ac4-1030-4a17-a643-40259424074b 2025-08-15 16:31:54,555 - DEBUG - Services list from nova: [, , ] 2025-08-15 16:31:55,503 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3866-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3866-1) 2025-08-15 16:31:56,582 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3866-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3866-1) 2025-08-15 16:31:56,666 - INFO - Setting gateway for router 0b998404-ffda-404a-a50d-7ff34ccaa58c to network 26f05ac4-1030-4a17-a643-40259424074b 2025-08-15 16:31:56,753 - INFO - Adding interface with subnet_id 9e07edb7-5bdd-4f70-9a05-8aa2caae7662, port_id None to router 0b998404-ffda-404a-a50d-7ff34ccaa58c 2025-08-15 16:31:57,282 - INFO - Waiting for VM ctest-TestRoutersBasic-32766585-01148180 to be up.. 2025-08-15 16:31:57,403 - DEBUG - VM is in ACTIVE state now 2025-08-15 16:31:57,403 - INFO - VM name : ctest-TestRoutersBasic-32766585-01148180 2025-08-15 16:31:57,498 - DEBUG - VM ctest-TestRoutersBasic-32766585-01148180 ID is 0cbf363d-e923-4aec-9066-71ed94bf2f69 2025-08-15 16:31:57,523 - DEBUG - VM ctest-TestRoutersBasic-32766585-01148180 launched on Node cn-jenkins-deploy-platform-ansible-os-3866-1 2025-08-15 16:31:57,605 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/0cbf363d-e923-4aec-9066-71ed94bf2f69 2025-08-15 16:31:57,900 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/0cbf363d-e923-4aec-9066-71ed94bf2f69 2025-08-15 16:31:57,934 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/e0d8a207-10e1-4369-af80-a9da0f306b59 2025-08-15 16:32:01,219 - 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 1020ms') 2025-08-15 16:32:01,219 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32766585-01148180 failed! 2025-08-15 16:32:01,275 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32766585:ctest-vn-35975159 is 36.56.112.65 and allocation pool is NOT set 2025-08-15 16:32:05,349 - 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 1012ms') 2025-08-15 16:32:05,350 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32766585-01148180 failed! 2025-08-15 16:32:05,403 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32766585:ctest-vn-35975159 is 36.56.112.65 and allocation pool is NOT set 2025-08-15 16:32:07,463 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.416 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.416/1.661/2.907/1.245 ms') 2025-08-15 16:32:07,463 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32766585-01148180 passed 2025-08-15 16:32:07,615 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 16:32:07,616 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32766585-01148180, IP 36.56.112.67, Port 22 2025-08-15 16:32:07,775 - DEBUG - VM ctest-TestRoutersBasic-32766585-01148180 is ready for SSH connections 2025-08-15 16:32:07,775 - INFO - Waiting for VM ctest-TestRoutersBasic-32766585-43827510 to be up.. 2025-08-15 16:32:07,850 - DEBUG - VM is in ACTIVE state now 2025-08-15 16:32:07,850 - INFO - VM name : ctest-TestRoutersBasic-32766585-43827510 2025-08-15 16:32:07,924 - DEBUG - VM ctest-TestRoutersBasic-32766585-43827510 ID is bc50b542-1ed2-444f-a112-a0f2504356f4 2025-08-15 16:32:07,924 - DEBUG - VM ctest-TestRoutersBasic-32766585-43827510 launched on Node cn-jenkins-deploy-platform-ansible-os-3866-1 2025-08-15 16:32:07,992 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/bc50b542-1ed2-444f-a112-a0f2504356f4 2025-08-15 16:32:08,000 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/ea79f3ea-d2c6-4fd8-ac7f-c1e5c175cf91 2025-08-15 16:32:09,241 - 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=4.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.76 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 = 1.760/3.193/4.627/1.433 ms') 2025-08-15 16:32:09,241 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32766585-43827510 passed 2025-08-15 16:32:09,387 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 16:32:09,388 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32766585-43827510, IP 197.8.193.195, Port 22 2025-08-15 16:32:09,543 - DEBUG - VM ctest-TestRoutersBasic-32766585-43827510 is ready for SSH connections 2025-08-15 16:32:09,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 16:32:09,543 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.8.193.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-15 16:32:09,543 - DEBUG - ping -s 56 -c 3 -W 1 197.8.193.195 2025-08-15 16:32:13,198 - DEBUG - PING 197.8.193.195 (197.8.193.195): 56 data bytes 64 bytes from 197.8.193.195: seq=0 ttl=62 time=6.035 ms 64 bytes from 197.8.193.195: seq=1 ttl=62 time=0.861 ms 64 bytes from 197.8.193.195: seq=2 ttl=62 time=0.768 ms --- 197.8.193.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.768/2.554/6.035 ms 2025-08-15 16:32:13,198 - INFO - Ping to IP 197.8.193.195 from VM ctest-TestRoutersBasic-32766585-01148180 passed 2025-08-15 16:32:13,198 - INFO - Deleting interface with subnet_id 9e07edb7-5bdd-4f70-9a05-8aa2caae7662, port_id None from router 0b998404-ffda-404a-a50d-7ff34ccaa58c 2025-08-15 16:32:13,437 - INFO - Deleting VM ctest-TestRoutersBasic-32766585-43827510 2025-08-15 16:32:13,499 - INFO - Deleting VM ctest-TestRoutersBasic-32766585-01148180 2025-08-15 16:32:13,566 - INFO - Deleting VN ctest-ext_vn-36353710 2025-08-15 16:32:13,631 - DEBUG - VN 26f05ac4-1030-4a17-a643-40259424074b still in use: Unable to complete operation on network 26f05ac4-1030-4a17-a643-40259424074b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cbdc0f41-d265-4ce2-93b8-066fde35fb42'] 2025-08-15 16:32:13,631 - WARNING - Deleting VN ctest-ext_vn-36353710 failed..Will retry 2025-08-15 16:32:15,735 - DEBUG - Response for deleting network () 2025-08-15 16:32:15,735 - INFO - Deleting VN ctest-vn-35975159 2025-08-15 16:32:15,841 - DEBUG - Response for deleting network () 2025-08-15 16:32:16,100 - DEBUG - No XMPP flaps were noticed during the test 2025-08-15 16:32:16,100 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-08-15 16:32:16,100 - INFO - -------------------------------------------------------------------------------- 2025-08-15 16:32:16,762 - INFO - Deleted project: ctest-TestRoutersBasic-32766585, ID : 865a7307-14b8-4c09-8848-4ae4d0112c86