2025-11-05 06:38:47,011 - INFO - Domain Default found not creating 2025-11-05 06:38:47,189 - INFO - Project ctest-TestRoutersBasic-97688741 not found, creating it 2025-11-05 06:38:47,675 - INFO - Created Project:ctest-TestRoutersBasic-97688741, ID : 642c50e8-a638-426a-bbc6-5c814407b285 2025-11-05 06:38:49,326 - INFO - ================================================================================ 2025-11-05 06:38:49,327 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-05 06:38:49,327 - 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 06:38:49,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-11-05 06:38:49,588 - INFO - Initial checks done. Running the testcase now 2025-11-05 06:38:49,588 - INFO - 2025-11-05 06:38:50,408 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-97688741 2025-11-05 06:38:50,510 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-97688741 2025-11-05 06:38:50,837 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97688741', 'default']} 2025-11-05 06:38:51,154 - DEBUG - Response for create_network : {'network': {'id': '57e1fec9-5762-47c4-accc-8e20da7ec397', 'name': 'ctest-vn-30497187', 'tenant_id': '642c50e8a638426abbc65c814407b285', 'project_id': '642c50e8a638426abbc65c814407b285', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97688741', 'ctest-vn-30497187'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 06:38:51,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a26c1021-2cdf-4cb8-99e7-e9c5ef563488', 'name': '', 'tenant_id': '642c50e8a638426abbc65c814407b285', 'network_id': '57e1fec9-5762-47c4-accc-8e20da7ec397', 'ip_version': 4, 'cidr': '121.83.198.192/26', 'allocation_pools': [{'start': '121.83.198.194', 'end': '121.83.198.254'}], 'gateway_ip': '121.83.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.83.198.194', 'tags': [], 'project_id': '642c50e8a638426abbc65c814407b285'}} 2025-11-05 06:38:51,404 - INFO - Created VN ctest-vn-30497187 2025-11-05 06:38:51,458 - DEBUG - VN ctest-vn-30497187 UUID is 57e1fec9-5762-47c4-accc-8e20da7ec397 2025-11-05 06:38:51,781 - DEBUG - Response for create_network : {'network': {'id': '63ef0e2f-985d-40fe-a589-e7f7c7ba12c3', 'name': 'ctest-ext_vn-53004996', 'tenant_id': '642c50e8a638426abbc65c814407b285', 'project_id': '642c50e8a638426abbc65c814407b285', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97688741', 'ctest-ext_vn-53004996'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 06:38:51,948 - DEBUG - Response for create_subnet : {'subnet': {'id': '19a89973-a461-4882-b6e3-191c94904941', 'name': '', 'tenant_id': '642c50e8a638426abbc65c814407b285', 'network_id': '63ef0e2f-985d-40fe-a589-e7f7c7ba12c3', 'ip_version': 4, 'cidr': '192.17.63.128/26', 'allocation_pools': [{'start': '192.17.63.130', 'end': '192.17.63.190'}], 'gateway_ip': '192.17.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.17.63.130', 'tags': [], 'project_id': '642c50e8a638426abbc65c814407b285'}} 2025-11-05 06:38:51,972 - INFO - Created VN ctest-ext_vn-53004996 2025-11-05 06:38:52,025 - DEBUG - VN ctest-ext_vn-53004996 UUID is 63ef0e2f-985d-40fe-a589-e7f7c7ba12c3 2025-11-05 06:38:52,196 - DEBUG - Services list from nova: [, , ] 2025-11-05 06:38:53,358 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4627-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4627-1) 2025-11-05 06:38:54,696 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4627-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4627-1) 2025-11-05 06:38:54,784 - INFO - Setting gateway for router 73849fc4-d62f-47f2-92dd-318449b92116 to network 63ef0e2f-985d-40fe-a589-e7f7c7ba12c3 2025-11-05 06:38:54,866 - INFO - Adding interface with subnet_id a26c1021-2cdf-4cb8-99e7-e9c5ef563488, port_id None to router 73849fc4-d62f-47f2-92dd-318449b92116 2025-11-05 06:38:55,257 - INFO - Waiting for VM ctest-TestRoutersBasic-97688741-60407324 to be up.. 2025-11-05 06:38:55,474 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 06:39:00,581 - DEBUG - VM is in ACTIVE state now 2025-11-05 06:39:00,581 - INFO - VM name : ctest-TestRoutersBasic-97688741-60407324 2025-11-05 06:39:00,677 - DEBUG - VM ctest-TestRoutersBasic-97688741-60407324 ID is 3ffc5ef0-1787-47af-81ac-166c2adca8d1 2025-11-05 06:39:00,699 - DEBUG - VM ctest-TestRoutersBasic-97688741-60407324 launched on Node cn-jenkins-deploy-platform-ansible-os-4627-1 2025-11-05 06:39:00,797 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/3ffc5ef0-1787-47af-81ac-166c2adca8d1 2025-11-05 06:39:01,140 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/3ffc5ef0-1787-47af-81ac-166c2adca8d1 2025-11-05 06:39:01,178 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/14cec183-801e-4711-901c-ef93c14c5bc9 2025-11-05 06:39:04,444 - 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 1017ms') 2025-11-05 06:39:04,444 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97688741-60407324 failed! 2025-11-05 06:39:04,510 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-97688741:ctest-vn-30497187 is 121.83.198.193 and allocation pool is NOT set 2025-11-05 06:39:06,586 - 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=6.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.57 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 = 1.571/4.033/6.496/2.462 ms') 2025-11-05 06:39:06,586 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97688741-60407324 passed 2025-11-05 06:39:06,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 06:39:06,742 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97688741-60407324, IP 121.83.198.195, Port 22 2025-11-05 06:39:06,807 - 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 06:39:06,906 - DEBUG - VM ctest-TestRoutersBasic-97688741-60407324 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 06:39:11,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 06:39:11,907 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97688741-60407324, IP 121.83.198.195, Port 22 2025-11-05 06:39:11,975 - 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 06:39:12,062 - DEBUG - VM ctest-TestRoutersBasic-97688741-60407324 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 06:39:17,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 06:39:17,064 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97688741-60407324, IP 121.83.198.195, Port 22 2025-11-05 06:39:17,240 - DEBUG - VM ctest-TestRoutersBasic-97688741-60407324 is ready for SSH connections 2025-11-05 06:39:17,240 - INFO - Waiting for VM ctest-TestRoutersBasic-97688741-07733793 to be up.. 2025-11-05 06:39:17,330 - DEBUG - VM is in ACTIVE state now 2025-11-05 06:39:17,330 - INFO - VM name : ctest-TestRoutersBasic-97688741-07733793 2025-11-05 06:39:17,415 - DEBUG - VM ctest-TestRoutersBasic-97688741-07733793 ID is 797d2086-f031-49a9-a6ea-c863c915eeb3 2025-11-05 06:39:17,415 - DEBUG - VM ctest-TestRoutersBasic-97688741-07733793 launched on Node cn-jenkins-deploy-platform-ansible-os-4627-1 2025-11-05 06:39:17,494 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/797d2086-f031-49a9-a6ea-c863c915eeb3 2025-11-05 06:39:17,506 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/2577b57b-da2f-4b6f-b10b-19933d54a7c8 2025-11-05 06:39:18,746 - 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.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.450 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.450/2.145/3.840/1.695 ms') 2025-11-05 06:39:18,747 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-97688741-07733793 passed 2025-11-05 06:39:18,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 06:39:18,898 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97688741-07733793, IP 192.17.63.131, Port 22 2025-11-05 06:39:19,067 - DEBUG - VM ctest-TestRoutersBasic-97688741-07733793 is ready for SSH connections 2025-11-05 06:39:19,067 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 06:39:19,068 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.17.63.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-11-05 06:39:19,068 - DEBUG - ping -s 56 -c 3 -W 1 192.17.63.131 2025-11-05 06:39:22,830 - DEBUG - PING 192.17.63.131 (192.17.63.131): 56 data bytes 64 bytes from 192.17.63.131: seq=0 ttl=62 time=5.980 ms 64 bytes from 192.17.63.131: seq=1 ttl=62 time=1.045 ms 64 bytes from 192.17.63.131: seq=2 ttl=62 time=1.092 ms --- 192.17.63.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.045/2.705/5.980 ms 2025-11-05 06:39:22,830 - INFO - Ping to IP 192.17.63.131 from VM ctest-TestRoutersBasic-97688741-60407324 passed 2025-11-05 06:39:22,830 - INFO - Deleting interface with subnet_id a26c1021-2cdf-4cb8-99e7-e9c5ef563488, port_id None from router 73849fc4-d62f-47f2-92dd-318449b92116 2025-11-05 06:39:23,055 - INFO - Deleting VM ctest-TestRoutersBasic-97688741-07733793 2025-11-05 06:39:23,139 - INFO - Deleting VM ctest-TestRoutersBasic-97688741-60407324 2025-11-05 06:39:23,237 - INFO - Deleting VN ctest-ext_vn-53004996 2025-11-05 06:39:23,322 - DEBUG - VN 63ef0e2f-985d-40fe-a589-e7f7c7ba12c3 still in use: Unable to complete operation on network 63ef0e2f-985d-40fe-a589-e7f7c7ba12c3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1d9a06e8-f67f-4470-ab15-25c608df4fb2'] 2025-11-05 06:39:23,322 - WARNING - Deleting VN ctest-ext_vn-53004996 failed..Will retry 2025-11-05 06:39:25,427 - DEBUG - Response for deleting network () 2025-11-05 06:39:25,427 - INFO - Deleting VN ctest-vn-30497187 2025-11-05 06:39:25,553 - DEBUG - Response for deleting network () 2025-11-05 06:39:25,830 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 06:39:25,830 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36] 2025-11-05 06:39:25,830 - INFO - -------------------------------------------------------------------------------- 2025-11-05 06:39:26,596 - INFO - Deleted project: ctest-TestRoutersBasic-97688741, ID : 642c50e8-a638-426a-bbc6-5c814407b285