2025-10-21 20:21:20,420 - INFO - Domain Default found not creating 2025-10-21 20:21:20,552 - INFO - Project ctest-TestRoutersBasic-73160862 not found, creating it 2025-10-21 20:21:20,989 - INFO - Created Project:ctest-TestRoutersBasic-73160862, ID : f8ac47f5-1681-4ada-892c-7221d26d51aa 2025-10-21 20:21:22,359 - INFO - ================================================================================ 2025-10-21 20:21:22,359 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-21 20:21:22,359 - 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-21 20:21:22,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.254': '0'}} with 2025-10-21 20:21:22,611 - INFO - Initial checks done. Running the testcase now 2025-10-21 20:21:22,611 - INFO - 2025-10-21 20:21:23,309 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-73160862 2025-10-21 20:21:23,402 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-73160862 2025-10-21 20:21:23,722 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73160862', 'default']} 2025-10-21 20:21:24,003 - DEBUG - Response for create_network : {'network': {'id': 'a53e0f99-3c63-4c84-9339-4558878b2d42', 'name': 'ctest-vn-53122750', 'tenant_id': 'f8ac47f516814ada892c7221d26d51aa', 'project_id': 'f8ac47f516814ada892c7221d26d51aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73160862', 'ctest-vn-53122750'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 20:21:24,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c8421c1-47dc-4f0e-9ac8-b860f01ee0f7', 'name': '', 'tenant_id': 'f8ac47f516814ada892c7221d26d51aa', 'network_id': 'a53e0f99-3c63-4c84-9339-4558878b2d42', 'ip_version': 4, 'cidr': '69.24.102.0/26', 'allocation_pools': [{'start': '69.24.102.2', 'end': '69.24.102.62'}], 'gateway_ip': '69.24.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.24.102.2', 'tags': [], 'project_id': 'f8ac47f516814ada892c7221d26d51aa'}} 2025-10-21 20:21:24,177 - INFO - Created VN ctest-vn-53122750 2025-10-21 20:21:24,230 - DEBUG - VN ctest-vn-53122750 UUID is a53e0f99-3c63-4c84-9339-4558878b2d42 2025-10-21 20:21:24,562 - DEBUG - Response for create_network : {'network': {'id': 'd4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b', 'name': 'ctest-ext_vn-24685268', 'tenant_id': 'f8ac47f516814ada892c7221d26d51aa', 'project_id': 'f8ac47f516814ada892c7221d26d51aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-73160862', 'ctest-ext_vn-24685268'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 20:21:24,699 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e34a66e-01c6-4cf6-938f-32b0f0ca19a1', 'name': '', 'tenant_id': 'f8ac47f516814ada892c7221d26d51aa', 'network_id': 'd4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b', 'ip_version': 4, 'cidr': '205.108.1.0/26', 'allocation_pools': [{'start': '205.108.1.2', 'end': '205.108.1.62'}], 'gateway_ip': '205.108.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.108.1.2', 'tags': [], 'project_id': 'f8ac47f516814ada892c7221d26d51aa'}} 2025-10-21 20:21:24,714 - INFO - Created VN ctest-ext_vn-24685268 2025-10-21 20:21:24,766 - DEBUG - VN ctest-ext_vn-24685268 UUID is d4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b 2025-10-21 20:21:24,964 - DEBUG - Services list from nova: [, , ] 2025-10-21 20:21:25,970 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4406-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4406-1) 2025-10-21 20:21:27,130 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4406-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4406-1) 2025-10-21 20:21:27,209 - INFO - Setting gateway for router 574b1e2d-b3d0-47ba-8364-a585b6b291c2 to network d4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b 2025-10-21 20:21:27,285 - INFO - Adding interface with subnet_id 6c8421c1-47dc-4f0e-9ac8-b860f01ee0f7, port_id None to router 574b1e2d-b3d0-47ba-8364-a585b6b291c2 2025-10-21 20:21:27,617 - INFO - Waiting for VM ctest-TestRoutersBasic-73160862-61277780 to be up.. 2025-10-21 20:21:27,731 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-21 20:21:32,797 - DEBUG - VM is in ACTIVE state now 2025-10-21 20:21:32,797 - INFO - VM name : ctest-TestRoutersBasic-73160862-61277780 2025-10-21 20:21:32,863 - DEBUG - VM ctest-TestRoutersBasic-73160862-61277780 ID is d069a19c-def1-4962-93c5-5fc69146836f 2025-10-21 20:21:32,882 - DEBUG - VM ctest-TestRoutersBasic-73160862-61277780 launched on Node cn-jenkins-deploy-platform-ansible-os-4406-1 2025-10-21 20:21:32,958 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d069a19c-def1-4962-93c5-5fc69146836f 2025-10-21 20:21:33,254 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d069a19c-def1-4962-93c5-5fc69146836f 2025-10-21 20:21:33,296 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/1d022446-03f5-4b35-84b8-8c81ea265ff6 2025-10-21 20:21:36,542 - 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-21 20:21:36,542 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73160862-61277780 failed! 2025-10-21 20:21:36,598 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-73160862:ctest-vn-53122750 is 69.24.102.1 and allocation pool is NOT set 2025-10-21 20:21:38,658 - 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.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.477 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.477/1.648/2.819/1.171 ms') 2025-10-21 20:21:38,658 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-73160862-61277780 passed 2025-10-21 20:21:38,766 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 20:21:38,766 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73160862-61277780, IP 69.24.102.3, Port 22 2025-10-21 20:21:38,925 - DEBUG - VM ctest-TestRoutersBasic-73160862-61277780 is ready for SSH connections 2025-10-21 20:21:38,925 - INFO - Waiting for VM ctest-TestRoutersBasic-73160862-84887898 to be up.. 2025-10-21 20:21:39,002 - DEBUG - VM is in ACTIVE state now 2025-10-21 20:21:39,002 - INFO - VM name : ctest-TestRoutersBasic-73160862-84887898 2025-10-21 20:21:39,076 - DEBUG - VM ctest-TestRoutersBasic-73160862-84887898 ID is 1f85cfbd-4d09-46c5-9ceb-3ecf66600376 2025-10-21 20:21:39,076 - DEBUG - VM ctest-TestRoutersBasic-73160862-84887898 launched on Node cn-jenkins-deploy-platform-ansible-os-4406-1 2025-10-21 20:21:39,147 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/1f85cfbd-4d09-46c5-9ceb-3ecf66600376 2025-10-21 20:21:39,155 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/26e8bb86-caad-4305-b568-670363939a02 2025-10-21 20:21:40,387 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.24 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.243/2.514/2.785/0.271 ms') 2025-10-21 20:21:40,387 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-73160862-84887898 passed 2025-10-21 20:21:40,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 20:21:40,538 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73160862-84887898, IP 205.108.1.3, Port 22 2025-10-21 20:21:40,598 - 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-21 20:21:40,673 - DEBUG - VM ctest-TestRoutersBasic-73160862-84887898 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-21 20:21:45,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 20:21:45,674 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-73160862-84887898, IP 205.108.1.3, Port 22 2025-10-21 20:21:45,833 - DEBUG - VM ctest-TestRoutersBasic-73160862-84887898 is ready for SSH connections 2025-10-21 20:21:45,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 20:21:45,833 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.108.1.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-10-21 20:21:45,833 - DEBUG - ping -s 56 -c 3 -W 1 205.108.1.3 2025-10-21 20:21:49,562 - DEBUG - PING 205.108.1.3 (205.108.1.3): 56 data bytes 64 bytes from 205.108.1.3: seq=0 ttl=62 time=4.964 ms 64 bytes from 205.108.1.3: seq=1 ttl=62 time=0.928 ms 64 bytes from 205.108.1.3: seq=2 ttl=62 time=0.885 ms --- 205.108.1.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.885/2.259/4.964 ms 2025-10-21 20:21:49,562 - INFO - Ping to IP 205.108.1.3 from VM ctest-TestRoutersBasic-73160862-61277780 passed 2025-10-21 20:21:49,562 - INFO - Deleting interface with subnet_id 6c8421c1-47dc-4f0e-9ac8-b860f01ee0f7, port_id None from router 574b1e2d-b3d0-47ba-8364-a585b6b291c2 2025-10-21 20:21:49,730 - INFO - Deleting VM ctest-TestRoutersBasic-73160862-84887898 2025-10-21 20:21:49,800 - INFO - Deleting VM ctest-TestRoutersBasic-73160862-61277780 2025-10-21 20:21:49,875 - INFO - Deleting VN ctest-ext_vn-24685268 2025-10-21 20:21:49,935 - DEBUG - VN d4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b still in use: Unable to complete operation on network d4ff27ca-62d8-4cca-b7c0-3f5c49b28f8b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3a3c04cb-adb6-4a91-92a0-2ff38fa9c3ef'] 2025-10-21 20:21:49,935 - WARNING - Deleting VN ctest-ext_vn-24685268 failed..Will retry 2025-10-21 20:21:52,019 - DEBUG - Response for deleting network () 2025-10-21 20:21:52,019 - INFO - Deleting VN ctest-vn-53122750 2025-10-21 20:21:52,120 - DEBUG - Response for deleting network () 2025-10-21 20:21:52,375 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 20:21:52,375 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-10-21 20:21:52,375 - INFO - -------------------------------------------------------------------------------- 2025-10-21 20:21:53,047 - INFO - Deleted project: ctest-TestRoutersBasic-73160862, ID : f8ac47f5-1681-4ada-892c-7221d26d51aa