2025-10-20 16:01:43,908 - INFO - Domain Default found not creating 2025-10-20 16:01:44,127 - INFO - Project ctest-TestRoutersBasic-32391737 not found, creating it 2025-10-20 16:01:44,637 - INFO - Created Project:ctest-TestRoutersBasic-32391737, ID : 02aeb835-01fd-4411-b3ed-95c588f43b3e 2025-10-20 16:01:46,214 - INFO - ================================================================================ 2025-10-20 16:01:46,214 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-20 16:01:46,214 - 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-20 16:01:46,470 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0'}} with 2025-10-20 16:01:46,470 - INFO - Initial checks done. Running the testcase now 2025-10-20 16:01:46,470 - INFO - 2025-10-20 16:01:47,205 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32391737 2025-10-20 16:01:47,304 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32391737 2025-10-20 16:01:47,628 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32391737', 'default']} 2025-10-20 16:01:47,934 - DEBUG - Response for create_network : {'network': {'id': 'e4985638-7c24-444b-b679-1954e2459c5d', 'name': 'ctest-vn-96245904', 'tenant_id': '02aeb83501fd4411b3ed95c588f43b3e', 'project_id': '02aeb83501fd4411b3ed95c588f43b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32391737', 'ctest-vn-96245904'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 16:01:48,169 - DEBUG - Response for create_subnet : {'subnet': {'id': '496926c3-4af7-479f-b8cc-f1b66df6731f', 'name': '', 'tenant_id': '02aeb83501fd4411b3ed95c588f43b3e', 'network_id': 'e4985638-7c24-444b-b679-1954e2459c5d', 'ip_version': 4, 'cidr': '137.78.89.64/26', 'allocation_pools': [{'start': '137.78.89.66', 'end': '137.78.89.126'}], 'gateway_ip': '137.78.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.78.89.66', 'tags': [], 'project_id': '02aeb83501fd4411b3ed95c588f43b3e'}} 2025-10-20 16:01:48,188 - INFO - Created VN ctest-vn-96245904 2025-10-20 16:01:48,240 - DEBUG - VN ctest-vn-96245904 UUID is e4985638-7c24-444b-b679-1954e2459c5d 2025-10-20 16:01:48,566 - DEBUG - Response for create_network : {'network': {'id': '37addac6-f448-40f8-960b-656afac8e47b', 'name': 'ctest-ext_vn-16897153', 'tenant_id': '02aeb83501fd4411b3ed95c588f43b3e', 'project_id': '02aeb83501fd4411b3ed95c588f43b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32391737', 'ctest-ext_vn-16897153'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 16:01:48,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd971f6e1-3fd0-4acb-9a0d-391834befae4', 'name': '', 'tenant_id': '02aeb83501fd4411b3ed95c588f43b3e', 'network_id': '37addac6-f448-40f8-960b-656afac8e47b', 'ip_version': 4, 'cidr': '40.58.187.128/26', 'allocation_pools': [{'start': '40.58.187.130', 'end': '40.58.187.190'}], 'gateway_ip': '40.58.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.58.187.130', 'tags': [], 'project_id': '02aeb83501fd4411b3ed95c588f43b3e'}} 2025-10-20 16:01:48,824 - INFO - Created VN ctest-ext_vn-16897153 2025-10-20 16:01:48,876 - DEBUG - VN ctest-ext_vn-16897153 UUID is 37addac6-f448-40f8-960b-656afac8e47b 2025-10-20 16:01:49,054 - DEBUG - Services list from nova: [, , ] 2025-10-20 16:01:50,125 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4383-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4383-1) 2025-10-20 16:01:51,431 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4383-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4383-1) 2025-10-20 16:01:51,512 - INFO - Setting gateway for router d0b99321-ab07-4c4b-98cd-db5bc2dc380c to network 37addac6-f448-40f8-960b-656afac8e47b 2025-10-20 16:01:51,579 - INFO - Adding interface with subnet_id 496926c3-4af7-479f-b8cc-f1b66df6731f, port_id None to router d0b99321-ab07-4c4b-98cd-db5bc2dc380c 2025-10-20 16:01:52,144 - INFO - Waiting for VM ctest-TestRoutersBasic-32391737-96825023 to be up.. 2025-10-20 16:01:52,320 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-20 16:01:57,403 - DEBUG - VM is in ACTIVE state now 2025-10-20 16:01:57,403 - INFO - VM name : ctest-TestRoutersBasic-32391737-96825023 2025-10-20 16:01:57,488 - DEBUG - VM ctest-TestRoutersBasic-32391737-96825023 ID is d56ad104-ca77-4ca8-bc7a-48ef6da9d232 2025-10-20 16:01:57,510 - DEBUG - VM ctest-TestRoutersBasic-32391737-96825023 launched on Node cn-jenkins-deploy-platform-ansible-os-4383-1 2025-10-20 16:01:57,591 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/d56ad104-ca77-4ca8-bc7a-48ef6da9d232 2025-10-20 16:01:57,882 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/d56ad104-ca77-4ca8-bc7a-48ef6da9d232 2025-10-20 16:01:57,926 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/8acb718c-20d9-41c4-82ee-a9c1f4d670da 2025-10-20 16:02:01,191 - 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 1026ms') 2025-10-20 16:02:01,191 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32391737-96825023 failed! 2025-10-20 16:02:01,252 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-32391737:ctest-vn-96245904 is 137.78.89.65 and allocation pool is NOT set 2025-10-20 16:02:03,318 - 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.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.843 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.843/2.813/4.783/1.970 ms') 2025-10-20 16:02:03,318 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32391737-96825023 passed 2025-10-20 16:02:03,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 16:02:03,472 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32391737-96825023, IP 137.78.89.67, Port 22 2025-10-20 16:02:03,627 - DEBUG - VM ctest-TestRoutersBasic-32391737-96825023 is ready for SSH connections 2025-10-20 16:02:03,627 - INFO - Waiting for VM ctest-TestRoutersBasic-32391737-97715036 to be up.. 2025-10-20 16:02:03,696 - DEBUG - VM is in ACTIVE state now 2025-10-20 16:02:03,696 - INFO - VM name : ctest-TestRoutersBasic-32391737-97715036 2025-10-20 16:02:03,765 - DEBUG - VM ctest-TestRoutersBasic-32391737-97715036 ID is 8178be23-86a7-42a3-9671-f74ac2c6891e 2025-10-20 16:02:03,765 - DEBUG - VM ctest-TestRoutersBasic-32391737-97715036 launched on Node cn-jenkins-deploy-platform-ansible-os-4383-1 2025-10-20 16:02:03,835 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/8178be23-86a7-42a3-9671-f74ac2c6891e 2025-10-20 16:02:03,843 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/4dce8415-5510-4d15-8bfc-e2023a12c1c0 2025-10-20 16:02:05,078 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.97 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 = 2.967/3.417/3.868/0.450 ms') 2025-10-20 16:02:05,078 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32391737-97715036 passed 2025-10-20 16:02:05,228 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 16:02:05,228 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32391737-97715036, IP 40.58.187.131, Port 22 2025-10-20 16:02:05,284 - 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-20 16:02:05,362 - DEBUG - VM ctest-TestRoutersBasic-32391737-97715036 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 16:02:10,363 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 16:02:10,363 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32391737-97715036, IP 40.58.187.131, Port 22 2025-10-20 16:02:10,520 - DEBUG - VM ctest-TestRoutersBasic-32391737-97715036 is ready for SSH connections 2025-10-20 16:02:10,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 16:02:10,520 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.58.187.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-20 16:02:10,520 - DEBUG - ping -s 56 -c 3 -W 1 40.58.187.131 2025-10-20 16:02:14,567 - DEBUG - PING 40.58.187.131 (40.58.187.131): 56 data bytes 64 bytes from 40.58.187.131: seq=0 ttl=62 time=6.667 ms 64 bytes from 40.58.187.131: seq=1 ttl=62 time=0.866 ms 64 bytes from 40.58.187.131: seq=2 ttl=62 time=1.015 ms --- 40.58.187.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.866/2.849/6.667 ms 2025-10-20 16:02:14,567 - INFO - Ping to IP 40.58.187.131 from VM ctest-TestRoutersBasic-32391737-96825023 passed 2025-10-20 16:02:14,567 - INFO - Deleting interface with subnet_id 496926c3-4af7-479f-b8cc-f1b66df6731f, port_id None from router d0b99321-ab07-4c4b-98cd-db5bc2dc380c 2025-10-20 16:02:14,737 - INFO - Deleting VM ctest-TestRoutersBasic-32391737-97715036 2025-10-20 16:02:14,813 - INFO - Deleting VM ctest-TestRoutersBasic-32391737-96825023 2025-10-20 16:02:14,884 - INFO - Deleting VN ctest-ext_vn-16897153 2025-10-20 16:02:14,953 - DEBUG - VN 37addac6-f448-40f8-960b-656afac8e47b still in use: Unable to complete operation on network 37addac6-f448-40f8-960b-656afac8e47b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-99cb881d-31bf-4b15-9916-2576ceeea254'] 2025-10-20 16:02:14,953 - WARNING - Deleting VN ctest-ext_vn-16897153 failed..Will retry 2025-10-20 16:02:17,061 - DEBUG - Response for deleting network () 2025-10-20 16:02:17,061 - INFO - Deleting VN ctest-vn-96245904 2025-10-20 16:02:17,156 - DEBUG - Response for deleting network () 2025-10-20 16:02:17,410 - DEBUG - No XMPP flaps were noticed during the test
2025-10-20 16:02:17,410 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-10-20 16:02:17,410 - INFO - -------------------------------------------------------------------------------- 2025-10-20 16:02:18,364 - INFO - Deleted project: ctest-TestRoutersBasic-32391737, ID : 02aeb835-01fd-4411-b3ed-95c588f43b3e