2025-11-05 08:09:27,571 - INFO - Domain Default found not creating 2025-11-05 08:09:27,740 - INFO - Project ctest-TestRoutersBasic-15793821 not found, creating it 2025-11-05 08:09:28,223 - INFO - Created Project:ctest-TestRoutersBasic-15793821, ID : 6677770e-5a07-4c65-ba73-d8eba26f62be 2025-11-05 08:09:29,768 - INFO - ================================================================================ 2025-11-05 08:09:29,768 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-05 08:09:29,768 - 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-11-05 08:09:30,034 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.14': '0'}} with 2025-11-05 08:09:30,034 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:09:30,034 - INFO - 2025-11-05 08:09:30,788 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15793821 2025-11-05 08:09:30,882 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15793821 2025-11-05 08:09:31,193 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15793821', 'default']} 2025-11-05 08:09:31,475 - DEBUG - Response for create_network : {'network': {'id': 'd99b226c-b2e6-4f0c-b7ad-11d9f7d8a393', 'name': 'ctest-vn-63047224', 'tenant_id': '6677770e5a074c65ba73d8eba26f62be', 'project_id': '6677770e5a074c65ba73d8eba26f62be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15793821', 'ctest-vn-63047224'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:09:31,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1e8d148-3bc9-40e9-983d-c8e98817fc28', 'name': '', 'tenant_id': '6677770e5a074c65ba73d8eba26f62be', 'network_id': 'd99b226c-b2e6-4f0c-b7ad-11d9f7d8a393', 'ip_version': 4, 'cidr': '24.126.42.64/26', 'allocation_pools': [{'start': '24.126.42.66', 'end': '24.126.42.126'}], 'gateway_ip': '24.126.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.126.42.66', 'tags': [], 'project_id': '6677770e5a074c65ba73d8eba26f62be'}} 2025-11-05 08:09:31,649 - INFO - Created VN ctest-vn-63047224 2025-11-05 08:09:31,701 - DEBUG - VN ctest-vn-63047224 UUID is d99b226c-b2e6-4f0c-b7ad-11d9f7d8a393 2025-11-05 08:09:32,023 - DEBUG - Response for create_network : {'network': {'id': '3cbb3c16-477e-45d3-bef0-b7cc4d51d531', 'name': 'ctest-ext_vn-99073880', 'tenant_id': '6677770e5a074c65ba73d8eba26f62be', 'project_id': '6677770e5a074c65ba73d8eba26f62be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15793821', 'ctest-ext_vn-99073880'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:09:32,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '6941629b-0b08-4e9d-8a84-fce8ae8d21ab', 'name': '', 'tenant_id': '6677770e5a074c65ba73d8eba26f62be', 'network_id': '3cbb3c16-477e-45d3-bef0-b7cc4d51d531', 'ip_version': 4, 'cidr': '62.187.110.64/26', 'allocation_pools': [{'start': '62.187.110.66', 'end': '62.187.110.126'}], 'gateway_ip': '62.187.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.187.110.66', 'tags': [], 'project_id': '6677770e5a074c65ba73d8eba26f62be'}} 2025-11-05 08:09:32,182 - INFO - Created VN ctest-ext_vn-99073880 2025-11-05 08:09:32,233 - DEBUG - VN ctest-ext_vn-99073880 UUID is 3cbb3c16-477e-45d3-bef0-b7cc4d51d531 2025-11-05 08:09:32,435 - DEBUG - Services list from nova: [, , ] 2025-11-05 08:09:33,593 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4631-1) 2025-11-05 08:09:34,726 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4631-1) 2025-11-05 08:09:34,804 - INFO - Setting gateway for router d810a732-db1c-429d-a3f2-17102b3479b4 to network 3cbb3c16-477e-45d3-bef0-b7cc4d51d531 2025-11-05 08:09:34,868 - INFO - Adding interface with subnet_id d1e8d148-3bc9-40e9-983d-c8e98817fc28, port_id None to router d810a732-db1c-429d-a3f2-17102b3479b4 2025-11-05 08:09:35,203 - INFO - Waiting for VM ctest-TestRoutersBasic-15793821-53603570 to be up.. 2025-11-05 08:09:35,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 08:09:40,396 - DEBUG - VM is in ACTIVE state now 2025-11-05 08:09:40,396 - INFO - VM name : ctest-TestRoutersBasic-15793821-53603570 2025-11-05 08:09:40,462 - DEBUG - VM ctest-TestRoutersBasic-15793821-53603570 ID is b3072f86-a0e5-4bdb-86cc-3183fa9834bb 2025-11-05 08:09:40,482 - DEBUG - VM ctest-TestRoutersBasic-15793821-53603570 launched on Node cn-jenkins-deploy-platform-ansible-os-4631-1 2025-11-05 08:09:40,568 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-machine/b3072f86-a0e5-4bdb-86cc-3183fa9834bb 2025-11-05 08:09:40,893 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-machine/b3072f86-a0e5-4bdb-86cc-3183fa9834bb 2025-11-05 08:09:40,926 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-machine-interface/7d158ba4-6743-4c11-85f1-506f56a7804d 2025-11-05 08:09:42,173 - 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.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.06 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 = 4.064/4.200/4.336/0.136 ms') 2025-11-05 08:09:42,173 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15793821-53603570 passed 2025-11-05 08:09:42,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:09:42,325 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15793821-53603570, IP 24.126.42.67, Port 22 2025-11-05 08:09:42,391 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-05 08:09:42,474 - DEBUG - VM ctest-TestRoutersBasic-15793821-53603570 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 08:09:47,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:09:47,476 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15793821-53603570, IP 24.126.42.67, Port 22 2025-11-05 08:09:47,633 - DEBUG - VM ctest-TestRoutersBasic-15793821-53603570 is ready for SSH connections 2025-11-05 08:09:47,633 - INFO - Waiting for VM ctest-TestRoutersBasic-15793821-74576432 to be up.. 2025-11-05 08:09:47,722 - DEBUG - VM is in ACTIVE state now 2025-11-05 08:09:47,722 - INFO - VM name : ctest-TestRoutersBasic-15793821-74576432 2025-11-05 08:09:47,793 - DEBUG - VM ctest-TestRoutersBasic-15793821-74576432 ID is 13858f97-4956-4dd0-adb7-fb0a7588f715 2025-11-05 08:09:47,793 - DEBUG - VM ctest-TestRoutersBasic-15793821-74576432 launched on Node cn-jenkins-deploy-platform-ansible-os-4631-1 2025-11-05 08:09:47,869 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-machine/13858f97-4956-4dd0-adb7-fb0a7588f715 2025-11-05 08:09:47,878 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-machine-interface/9f22e209-6da0-4913-b4a0-263371174501 2025-11-05 08:09:49,116 - 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=3.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.419 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 = 0.419/1.748/3.078/1.329 ms') 2025-11-05 08:09:49,116 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15793821-74576432 passed 2025-11-05 08:09:49,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:09:49,265 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15793821-74576432, IP 62.187.110.67, Port 22 2025-11-05 08:09:49,428 - DEBUG - VM ctest-TestRoutersBasic-15793821-74576432 is ready for SSH connections 2025-11-05 08:09:49,429 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:09:49,429 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.187.110.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.133, gateway password: c0ntrail123 2025-11-05 08:09:49,429 - DEBUG - ping -s 56 -c 3 -W 1 62.187.110.67 2025-11-05 08:09:53,034 - DEBUG - PING 62.187.110.67 (62.187.110.67): 56 data bytes 64 bytes from 62.187.110.67: seq=0 ttl=62 time=11.609 ms 64 bytes from 62.187.110.67: seq=1 ttl=62 time=1.104 ms 64 bytes from 62.187.110.67: seq=2 ttl=62 time=1.406 ms --- 62.187.110.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.104/4.706/11.609 ms 2025-11-05 08:09:53,034 - INFO - Ping to IP 62.187.110.67 from VM ctest-TestRoutersBasic-15793821-53603570 passed 2025-11-05 08:09:53,035 - INFO - Deleting interface with subnet_id d1e8d148-3bc9-40e9-983d-c8e98817fc28, port_id None from router d810a732-db1c-429d-a3f2-17102b3479b4 2025-11-05 08:09:53,227 - INFO - Deleting VM ctest-TestRoutersBasic-15793821-74576432 2025-11-05 08:09:53,291 - INFO - Deleting VM ctest-TestRoutersBasic-15793821-53603570 2025-11-05 08:09:53,361 - INFO - Deleting VN ctest-ext_vn-99073880 2025-11-05 08:09:53,424 - DEBUG - VN 3cbb3c16-477e-45d3-bef0-b7cc4d51d531 still in use: Unable to complete operation on network 3cbb3c16-477e-45d3-bef0-b7cc4d51d531. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-99bed327-2d68-4a76-87dd-e2de22d881be'] 2025-11-05 08:09:53,424 - WARNING - Deleting VN ctest-ext_vn-99073880 failed..Will retry 2025-11-05 08:09:55,525 - DEBUG - Response for deleting network () 2025-11-05 08:09:55,525 - INFO - Deleting VN ctest-vn-63047224 2025-11-05 08:09:55,612 - DEBUG - Response for deleting network () 2025-11-05 08:09:55,866 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:09:55,866 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-11-05 08:09:55,866 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:09:56,571 - INFO - Deleted project: ctest-TestRoutersBasic-15793821, ID : 6677770e-5a07-4c65-ba73-d8eba26f62be