2025-10-16 02:28:46,227 - INFO - Domain Default found not creating 2025-10-16 02:28:46,380 - INFO - Project ctest-TestRoutersBasic-23794122 not found, creating it 2025-10-16 02:28:46,842 - INFO - Created Project:ctest-TestRoutersBasic-23794122, ID : e7f6718b-4a5f-4f6c-a9c6-41b25ed2ef11 2025-10-16 02:28:48,292 - INFO - ================================================================================ 2025-10-16 02:28:48,292 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-16 02:28:48,292 - 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-16 02:28:49,574 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0', '10.20.0.5': '0'}, '10.0.0.129': {'10.20.0.5': '0', '10.20.0.252': '0'}} with 2025-10-16 02:28:49,574 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:28:49,574 - INFO - 2025-10-16 02:28:50,283 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-23794122 2025-10-16 02:28:50,344 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-23794122 2025-10-16 02:28:50,654 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23794122', 'default']} 2025-10-16 02:28:51,058 - DEBUG - Response for create_network : {'network': {'id': '5d27181a-1d3b-4cff-a73d-80f10f6459bf', 'name': 'ctest-vn-51921314', 'tenant_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'project_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23794122', 'ctest-vn-51921314'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:28:51,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f347ec-c890-4a19-b7b1-9c3bb312a912', 'name': '', 'tenant_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'network_id': '5d27181a-1d3b-4cff-a73d-80f10f6459bf', 'ip_version': 4, 'cidr': '5.67.127.192/26', 'allocation_pools': [{'start': '5.67.127.194', 'end': '5.67.127.254'}], 'gateway_ip': '5.67.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.67.127.194', 'tags': [], 'project_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11'}} 2025-10-16 02:28:51,397 - INFO - Created VN ctest-vn-51921314 2025-10-16 02:28:51,412 - DEBUG - VN ctest-vn-51921314 UUID is 5d27181a-1d3b-4cff-a73d-80f10f6459bf 2025-10-16 02:28:51,835 - DEBUG - Response for create_network : {'network': {'id': '9d2a1483-8fe4-4d99-815d-328d29238dbd', 'name': 'ctest-ext_vn-35893636', 'tenant_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'project_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23794122', 'ctest-ext_vn-35893636'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:28:52,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '4944af30-4a8a-4714-a592-cd25460017b0', 'name': '', 'tenant_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11', 'network_id': '9d2a1483-8fe4-4d99-815d-328d29238dbd', 'ip_version': 4, 'cidr': '40.66.24.128/26', 'allocation_pools': [{'start': '40.66.24.130', 'end': '40.66.24.190'}], 'gateway_ip': '40.66.24.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.66.24.130', 'tags': [], 'project_id': 'e7f6718b4a5f4f6ca9c641b25ed2ef11'}} 2025-10-16 02:28:52,121 - INFO - Created VN ctest-ext_vn-35893636 2025-10-16 02:28:52,130 - DEBUG - VN ctest-ext_vn-35893636 UUID is 9d2a1483-8fe4-4d99-815d-328d29238dbd 2025-10-16 02:28:52,293 - DEBUG - Services list from nova: [, , , ] 2025-10-16 02:28:53,417 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4339-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4339-1) 2025-10-16 02:28:54,767 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4339-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4339-2) 2025-10-16 02:28:54,880 - INFO - Setting gateway for router 6d865a51-fe35-4643-9288-1e63aadf5b6a to network 9d2a1483-8fe4-4d99-815d-328d29238dbd 2025-10-16 02:28:55,001 - INFO - Adding interface with subnet_id 30f347ec-c890-4a19-b7b1-9c3bb312a912, port_id None to router 6d865a51-fe35-4643-9288-1e63aadf5b6a 2025-10-16 02:28:55,568 - INFO - Waiting for VM ctest-TestRoutersBasic-23794122-01822493 to be up.. 2025-10-16 02:28:55,793 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-16 02:29:00,876 - DEBUG - VM is in ACTIVE state now 2025-10-16 02:29:00,876 - INFO - VM name : ctest-TestRoutersBasic-23794122-01822493 2025-10-16 02:29:00,960 - DEBUG - VM ctest-TestRoutersBasic-23794122-01822493 ID is b761e7c5-9493-4a03-b42f-bcd180d36c40 2025-10-16 02:29:00,985 - DEBUG - VM ctest-TestRoutersBasic-23794122-01822493 launched on Node an-jenkins-deploy-platform-ansible-os-4339-1 2025-10-16 02:29:01,067 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b761e7c5-9493-4a03-b42f-bcd180d36c40 2025-10-16 02:29:01,375 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b761e7c5-9493-4a03-b42f-bcd180d36c40 2025-10-16 02:29:01,409 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/070dcfc9-d534-460c-8524-71f0989a17a3 2025-10-16 02:29:04,581 - 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 1007ms') 2025-10-16 02:29:04,581 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23794122-01822493 failed! 2025-10-16 02:29:04,594 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-23794122:ctest-vn-51921314 is 5.67.127.193 and allocation pool is NOT set 2025-10-16 02:29:06,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=3.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.492 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.492/2.200/3.909/1.708 ms') 2025-10-16 02:29:06,658 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23794122-01822493 passed 2025-10-16 02:29:06,722 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 02:29:06,723 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23794122-01822493, IP 5.67.127.195, Port 22 2025-10-16 02:29:06,891 - DEBUG - VM ctest-TestRoutersBasic-23794122-01822493 is ready for SSH connections 2025-10-16 02:29:06,891 - INFO - Waiting for VM ctest-TestRoutersBasic-23794122-84300858 to be up.. 2025-10-16 02:29:06,991 - DEBUG - VM is in ACTIVE state now 2025-10-16 02:29:06,991 - INFO - VM name : ctest-TestRoutersBasic-23794122-84300858 2025-10-16 02:29:07,068 - DEBUG - VM ctest-TestRoutersBasic-23794122-84300858 ID is db828630-6795-48ff-be8e-e4cdd5cedbf7 2025-10-16 02:29:07,068 - DEBUG - VM ctest-TestRoutersBasic-23794122-84300858 launched on Node an-jenkins-deploy-platform-ansible-os-4339-2 2025-10-16 02:29:07,142 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/db828630-6795-48ff-be8e-e4cdd5cedbf7 2025-10-16 02:29:07,152 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/25f32775-922e-4650-8de4-b5039b4656a3 2025-10-16 02:29:10,323 - 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=2 ttl=63 time=4.43 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1022ms\r\nrtt min/avg/max/mdev = 4.426/4.426/4.426/0.000 ms') 2025-10-16 02:29:10,323 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23794122-84300858 passed 2025-10-16 02:29:10,392 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 02:29:10,392 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23794122-84300858, IP 40.66.24.132, Port 22 2025-10-16 02:29:10,459 - 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-10-16 02:29:10,560 - DEBUG - VM ctest-TestRoutersBasic-23794122-84300858 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-16 02:29:15,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 02:29:15,562 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23794122-84300858, IP 40.66.24.132, Port 22 2025-10-16 02:29:15,726 - DEBUG - VM ctest-TestRoutersBasic-23794122-84300858 is ready for SSH connections 2025-10-16 02:29:15,726 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 02:29:15,726 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.66.24.132, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-10-16 02:29:15,726 - DEBUG - ping -s 56 -c 3 -W 1 40.66.24.132 2025-10-16 02:29:19,392 - DEBUG - PING 40.66.24.132 (40.66.24.132): 56 data bytes 64 bytes from 40.66.24.132: seq=0 ttl=62 time=8.530 ms 64 bytes from 40.66.24.132: seq=1 ttl=62 time=1.267 ms 64 bytes from 40.66.24.132: seq=2 ttl=62 time=1.402 ms --- 40.66.24.132 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.267/3.733/8.530 ms 2025-10-16 02:29:19,392 - INFO - Ping to IP 40.66.24.132 from VM ctest-TestRoutersBasic-23794122-01822493 passed 2025-10-16 02:29:19,392 - INFO - Deleting interface with subnet_id 30f347ec-c890-4a19-b7b1-9c3bb312a912, port_id None from router 6d865a51-fe35-4643-9288-1e63aadf5b6a 2025-10-16 02:29:19,713 - INFO - Deleting VM ctest-TestRoutersBasic-23794122-84300858 2025-10-16 02:29:19,799 - INFO - Deleting VM ctest-TestRoutersBasic-23794122-01822493 2025-10-16 02:29:19,910 - INFO - Deleting VN ctest-ext_vn-35893636 2025-10-16 02:29:20,004 - DEBUG - VN 9d2a1483-8fe4-4d99-815d-328d29238dbd still in use: Unable to complete operation on network 9d2a1483-8fe4-4d99-815d-328d29238dbd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7863105e-7ec4-4544-986c-0a848f40f21a'] 2025-10-16 02:29:20,004 - WARNING - Deleting VN ctest-ext_vn-35893636 failed..Will retry 2025-10-16 02:29:22,151 - DEBUG - Response for deleting network () 2025-10-16 02:29:22,151 - INFO - Deleting VN ctest-vn-51921314 2025-10-16 02:29:22,316 - DEBUG - Response for deleting network () 2025-10-16 02:29:23,576 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 02:29:23,576 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2025-10-16 02:29:23,576 - INFO - -------------------------------------------------------------------------------- 2025-10-16 02:29:24,269 - INFO - Deleted project: ctest-TestRoutersBasic-23794122, ID : e7f6718b-4a5f-4f6c-a9c6-41b25ed2ef11