2025-10-05 21:08:57,904 - INFO - Domain Default found not creating 2025-10-05 21:08:58,032 - INFO - Project ctest-TestRoutersBasic-26699548 not found, creating it 2025-10-05 21:08:58,482 - INFO - Created Project:ctest-TestRoutersBasic-26699548, ID : 522b6b56-e7a6-4468-b43d-887fad38ac62 2025-10-05 21:08:59,810 - INFO - ================================================================================ 2025-10-05 21:08:59,810 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-05 21:08:59,810 - 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-05 21:09:00,058 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-05 21:09:00,058 - INFO - Initial checks done. Running the testcase now 2025-10-05 21:09:00,058 - INFO - 2025-10-05 21:09:00,745 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26699548 2025-10-05 21:09:00,846 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26699548 2025-10-05 21:09:01,194 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26699548', 'default']} 2025-10-05 21:09:01,475 - DEBUG - Response for create_network : {'network': {'id': 'f1d74e03-b2e2-4fd3-89d8-cfd0e45b3a81', 'name': 'ctest-vn-10151264', 'tenant_id': '522b6b56e7a64468b43d887fad38ac62', 'project_id': '522b6b56e7a64468b43d887fad38ac62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26699548', 'ctest-vn-10151264'], 'port_security_enabled': True, 'description': ''}} 2025-10-05 21:09:01,635 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc67e9fc-ff48-494f-aa07-330a9f4092c2', 'name': '', 'tenant_id': '522b6b56e7a64468b43d887fad38ac62', 'network_id': 'f1d74e03-b2e2-4fd3-89d8-cfd0e45b3a81', 'ip_version': 4, 'cidr': '15.149.104.192/26', 'allocation_pools': [{'start': '15.149.104.194', 'end': '15.149.104.254'}], 'gateway_ip': '15.149.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.149.104.194', 'tags': [], 'project_id': '522b6b56e7a64468b43d887fad38ac62'}} 2025-10-05 21:09:01,652 - INFO - Created VN ctest-vn-10151264 2025-10-05 21:09:01,702 - DEBUG - VN ctest-vn-10151264 UUID is f1d74e03-b2e2-4fd3-89d8-cfd0e45b3a81 2025-10-05 21:09:02,026 - DEBUG - Response for create_network : {'network': {'id': '3f2140c6-d2b1-44b4-8373-5ac5e84ca430', 'name': 'ctest-ext_vn-74762331', 'tenant_id': '522b6b56e7a64468b43d887fad38ac62', 'project_id': '522b6b56e7a64468b43d887fad38ac62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26699548', 'ctest-ext_vn-74762331'], 'port_security_enabled': True, 'description': ''}} 2025-10-05 21:09:02,186 - DEBUG - Response for create_subnet : {'subnet': {'id': '06a834e3-fd60-49ab-a303-bf5104478ae5', 'name': '', 'tenant_id': '522b6b56e7a64468b43d887fad38ac62', 'network_id': '3f2140c6-d2b1-44b4-8373-5ac5e84ca430', 'ip_version': 4, 'cidr': '156.3.101.0/26', 'allocation_pools': [{'start': '156.3.101.2', 'end': '156.3.101.62'}], 'gateway_ip': '156.3.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.3.101.2', 'tags': [], 'project_id': '522b6b56e7a64468b43d887fad38ac62'}} 2025-10-05 21:09:02,201 - INFO - Created VN ctest-ext_vn-74762331 2025-10-05 21:09:02,254 - DEBUG - VN ctest-ext_vn-74762331 UUID is 3f2140c6-d2b1-44b4-8373-5ac5e84ca430 2025-10-05 21:09:02,443 - DEBUG - Services list from nova: [, , ] 2025-10-05 21:09:03,369 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4215-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4215-1) 2025-10-05 21:09:04,462 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4215-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4215-1) 2025-10-05 21:09:04,523 - INFO - Setting gateway for router b9ecce4b-6caa-4565-a4c4-5dbfc0eae0e5 to network 3f2140c6-d2b1-44b4-8373-5ac5e84ca430 2025-10-05 21:09:04,599 - INFO - Adding interface with subnet_id dc67e9fc-ff48-494f-aa07-330a9f4092c2, port_id None to router b9ecce4b-6caa-4565-a4c4-5dbfc0eae0e5 2025-10-05 21:09:04,916 - INFO - Waiting for VM ctest-TestRoutersBasic-26699548-41844952 to be up.. 2025-10-05 21:09:05,034 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-05 21:09:10,104 - DEBUG - VM is in ACTIVE state now 2025-10-05 21:09:10,105 - INFO - VM name : ctest-TestRoutersBasic-26699548-41844952 2025-10-05 21:09:10,176 - DEBUG - VM ctest-TestRoutersBasic-26699548-41844952 ID is 1606976d-db6f-4435-8172-6e82d9867a27 2025-10-05 21:09:10,192 - DEBUG - VM ctest-TestRoutersBasic-26699548-41844952 launched on Node cn-jenkins-deploy-platform-ansible-os-4215-1 2025-10-05 21:09:10,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1606976d-db6f-4435-8172-6e82d9867a27 2025-10-05 21:09:10,565 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1606976d-db6f-4435-8172-6e82d9867a27 2025-10-05 21:09:10,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e8ce417b-f665-4e99-bd2d-af2cd86bbfd7 2025-10-05 21:09:13,839 - 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-10-05 21:09:13,839 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26699548-41844952 failed! 2025-10-05 21:09:13,890 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26699548:ctest-vn-10151264 is 15.149.104.193 and allocation pool is NOT set 2025-10-05 21:09:15,952 - 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=3.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.373 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.373/2.040/3.708/1.667 ms') 2025-10-05 21:09:15,952 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26699548-41844952 passed 2025-10-05 21:09:16,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-05 21:09:16,098 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26699548-41844952, IP 15.149.104.195, Port 22 2025-10-05 21:09:16,253 - DEBUG - VM ctest-TestRoutersBasic-26699548-41844952 is ready for SSH connections 2025-10-05 21:09:16,253 - INFO - Waiting for VM ctest-TestRoutersBasic-26699548-44807500 to be up.. 2025-10-05 21:09:16,322 - DEBUG - VM is in ACTIVE state now 2025-10-05 21:09:16,322 - INFO - VM name : ctest-TestRoutersBasic-26699548-44807500 2025-10-05 21:09:16,397 - DEBUG - VM ctest-TestRoutersBasic-26699548-44807500 ID is 5ef82600-3f50-4fa0-96f5-264d506a0362 2025-10-05 21:09:16,397 - DEBUG - VM ctest-TestRoutersBasic-26699548-44807500 launched on Node cn-jenkins-deploy-platform-ansible-os-4215-1 2025-10-05 21:09:16,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/5ef82600-3f50-4fa0-96f5-264d506a0362 2025-10-05 21:09:16,473 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/745f496e-9e29-49dc-8c9a-dd5bddaeafa8 2025-10-05 21:09:17,713 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.34 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.343/3.064/4.786/1.721 ms') 2025-10-05 21:09:17,713 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26699548-44807500 passed 2025-10-05 21:09:17,862 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-05 21:09:17,862 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26699548-44807500, IP 156.3.101.3, Port 22 2025-10-05 21:09:17,918 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-05 21:09:17,985 - DEBUG - VM ctest-TestRoutersBasic-26699548-44807500 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-05 21:09:22,986 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-05 21:09:22,986 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26699548-44807500, IP 156.3.101.3, Port 22 2025-10-05 21:09:23,137 - DEBUG - VM ctest-TestRoutersBasic-26699548-44807500 is ready for SSH connections 2025-10-05 21:09:23,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-05 21:09:23,138 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 156.3.101.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-10-05 21:09:23,138 - DEBUG - ping -s 56 -c 3 -W 1 156.3.101.3 2025-10-05 21:09:26,821 - DEBUG - PING 156.3.101.3 (156.3.101.3): 56 data bytes 64 bytes from 156.3.101.3: seq=0 ttl=62 time=5.839 ms 64 bytes from 156.3.101.3: seq=1 ttl=62 time=0.845 ms 64 bytes from 156.3.101.3: seq=2 ttl=62 time=0.879 ms --- 156.3.101.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/2.521/5.839 ms 2025-10-05 21:09:26,821 - INFO - Ping to IP 156.3.101.3 from VM ctest-TestRoutersBasic-26699548-41844952 passed 2025-10-05 21:09:26,821 - INFO - Deleting interface with subnet_id dc67e9fc-ff48-494f-aa07-330a9f4092c2, port_id None from router b9ecce4b-6caa-4565-a4c4-5dbfc0eae0e5 2025-10-05 21:09:26,981 - INFO - Deleting VM ctest-TestRoutersBasic-26699548-44807500 2025-10-05 21:09:27,055 - INFO - Deleting VM ctest-TestRoutersBasic-26699548-41844952 2025-10-05 21:09:27,119 - INFO - Deleting VN ctest-ext_vn-74762331 2025-10-05 21:09:27,178 - DEBUG - VN 3f2140c6-d2b1-44b4-8373-5ac5e84ca430 still in use: Unable to complete operation on network 3f2140c6-d2b1-44b4-8373-5ac5e84ca430. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-35dfdc63-316e-4ccc-baff-6bc95093b601'] 2025-10-05 21:09:27,178 - WARNING - Deleting VN ctest-ext_vn-74762331 failed..Will retry 2025-10-05 21:09:29,264 - DEBUG - Response for deleting network () 2025-10-05 21:09:29,265 - INFO - Deleting VN ctest-vn-10151264 2025-10-05 21:09:29,371 - DEBUG - Response for deleting network () 2025-10-05 21:09:29,623 - DEBUG - No XMPP flaps were noticed during the test 2025-10-05 21:09:29,623 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-10-05 21:09:29,623 - INFO - -------------------------------------------------------------------------------- 2025-10-05 21:09:30,268 - INFO - Deleted project: ctest-TestRoutersBasic-26699548, ID : 522b6b56-e7a6-4468-b43d-887fad38ac62