2025-11-03 02:02:41,837 - INFO - Domain Default found not creating 2025-11-03 02:02:41,993 - INFO - Project ctest-TestRoutersBasic-70147709 not found, creating it 2025-11-03 02:02:42,452 - INFO - Created Project:ctest-TestRoutersBasic-70147709, ID : fefdf121-930c-4c58-a93a-60fd832965de 2025-11-03 02:02:43,892 - INFO - ================================================================================ 2025-11-03 02:02:43,892 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-03 02:02:43,893 - 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-03 02:02:44,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-11-03 02:02:44,145 - INFO - Initial checks done. Running the testcase now 2025-11-03 02:02:44,145 - INFO - 2025-11-03 02:02:44,866 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-70147709 2025-11-03 02:02:44,964 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-70147709 2025-11-03 02:02:45,280 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70147709', 'default']} 2025-11-03 02:02:45,578 - DEBUG - Response for create_network : {'network': {'id': '53756027-251f-42d5-9e1b-158e459638e7', 'name': 'ctest-vn-28266768', 'tenant_id': 'fefdf121930c4c58a93a60fd832965de', 'project_id': 'fefdf121930c4c58a93a60fd832965de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70147709', 'ctest-vn-28266768'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:02:45,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b0e33e3-7f17-420c-974c-fe1c289bbc0d', 'name': '', 'tenant_id': 'fefdf121930c4c58a93a60fd832965de', 'network_id': '53756027-251f-42d5-9e1b-158e459638e7', 'ip_version': 4, 'cidr': '129.19.249.0/26', 'allocation_pools': [{'start': '129.19.249.2', 'end': '129.19.249.62'}], 'gateway_ip': '129.19.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.19.249.2', 'tags': [], 'project_id': 'fefdf121930c4c58a93a60fd832965de'}} 2025-11-03 02:02:45,838 - INFO - Created VN ctest-vn-28266768 2025-11-03 02:02:45,888 - DEBUG - VN ctest-vn-28266768 UUID is 53756027-251f-42d5-9e1b-158e459638e7 2025-11-03 02:02:46,198 - DEBUG - Response for create_network : {'network': {'id': 'f8bdc0c8-d7dd-4249-9313-5f90b0db765e', 'name': 'ctest-ext_vn-00160205', 'tenant_id': 'fefdf121930c4c58a93a60fd832965de', 'project_id': 'fefdf121930c4c58a93a60fd832965de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70147709', 'ctest-ext_vn-00160205'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:02:46,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '80aefe50-5a4f-400c-ac4c-2ca2860f263a', 'name': '', 'tenant_id': 'fefdf121930c4c58a93a60fd832965de', 'network_id': 'f8bdc0c8-d7dd-4249-9313-5f90b0db765e', 'ip_version': 4, 'cidr': '115.136.109.192/26', 'allocation_pools': [{'start': '115.136.109.194', 'end': '115.136.109.254'}], 'gateway_ip': '115.136.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.136.109.194', 'tags': [], 'project_id': 'fefdf121930c4c58a93a60fd832965de'}} 2025-11-03 02:02:46,380 - INFO - Created VN ctest-ext_vn-00160205 2025-11-03 02:02:46,432 - DEBUG - VN ctest-ext_vn-00160205 UUID is f8bdc0c8-d7dd-4249-9313-5f90b0db765e 2025-11-03 02:02:46,632 - DEBUG - Services list from nova: [, , ] 2025-11-03 02:02:47,656 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4600-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4600-1) 2025-11-03 02:02:48,825 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4600-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4600-1) 2025-11-03 02:02:48,900 - INFO - Setting gateway for router b23c5b0e-52de-4912-85a6-9632ead02bbf to network f8bdc0c8-d7dd-4249-9313-5f90b0db765e 2025-11-03 02:02:48,971 - INFO - Adding interface with subnet_id 9b0e33e3-7f17-420c-974c-fe1c289bbc0d, port_id None to router b23c5b0e-52de-4912-85a6-9632ead02bbf 2025-11-03 02:02:49,339 - INFO - Waiting for VM ctest-TestRoutersBasic-70147709-66479601 to be up.. 2025-11-03 02:02:49,521 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:02:54,598 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:02:54,598 - INFO - VM name : ctest-TestRoutersBasic-70147709-66479601 2025-11-03 02:02:54,677 - DEBUG - VM ctest-TestRoutersBasic-70147709-66479601 ID is 67b26471-9ec8-44ce-8a64-e5926fdebb08 2025-11-03 02:02:54,694 - DEBUG - VM ctest-TestRoutersBasic-70147709-66479601 launched on Node cn-jenkins-deploy-platform-ansible-os-4600-1 2025-11-03 02:02:54,763 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/67b26471-9ec8-44ce-8a64-e5926fdebb08 2025-11-03 02:02:55,062 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/67b26471-9ec8-44ce-8a64-e5926fdebb08 2025-11-03 02:02:55,098 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/f8743d9e-3ba7-42a5-b750-09a50e726264 2025-11-03 02:02:58,369 - 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 1029ms') 2025-11-03 02:02:58,369 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70147709-66479601 failed! 2025-11-03 02:02:58,428 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-70147709:ctest-vn-28266768 is 129.19.249.1 and allocation pool is NOT set 2025-11-03 02:03:00,493 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.36 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 = 2.361/2.583/2.805/0.222 ms') 2025-11-03 02:03:00,493 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70147709-66479601 passed 2025-11-03 02:03:00,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:03:00,644 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70147709-66479601, IP 129.19.249.3, Port 22 2025-11-03 02:03:00,715 - 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-03 02:03:00,816 - DEBUG - VM ctest-TestRoutersBasic-70147709-66479601 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-03 02:03:05,817 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:03:05,817 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70147709-66479601, IP 129.19.249.3, Port 22 2025-11-03 02:03:05,976 - DEBUG - VM ctest-TestRoutersBasic-70147709-66479601 is ready for SSH connections 2025-11-03 02:03:05,976 - INFO - Waiting for VM ctest-TestRoutersBasic-70147709-28259439 to be up.. 2025-11-03 02:03:06,057 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:03:06,057 - INFO - VM name : ctest-TestRoutersBasic-70147709-28259439 2025-11-03 02:03:06,133 - DEBUG - VM ctest-TestRoutersBasic-70147709-28259439 ID is d69c2ce1-3178-4dfa-b0d8-f5e40cf0e369 2025-11-03 02:03:06,133 - DEBUG - VM ctest-TestRoutersBasic-70147709-28259439 launched on Node cn-jenkins-deploy-platform-ansible-os-4600-1 2025-11-03 02:03:06,210 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d69c2ce1-3178-4dfa-b0d8-f5e40cf0e369 2025-11-03 02:03:06,219 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/5a5b9f7a-2c2d-40f1-8e94-bb3146233eec 2025-11-03 02:03:07,460 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.392 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.392/1.728/3.064/1.336 ms') 2025-11-03 02:03:07,460 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-70147709-28259439 passed 2025-11-03 02:03:07,612 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:03:07,612 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70147709-28259439, IP 115.136.109.195, Port 22 2025-11-03 02:03:07,771 - DEBUG - VM ctest-TestRoutersBasic-70147709-28259439 is ready for SSH connections 2025-11-03 02:03:07,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:03:07,772 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.136.109.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-11-03 02:03:07,772 - DEBUG - ping -s 56 -c 3 -W 1 115.136.109.195 2025-11-03 02:03:11,498 - DEBUG - PING 115.136.109.195 (115.136.109.195): 56 data bytes 64 bytes from 115.136.109.195: seq=0 ttl=62 time=6.545 ms 64 bytes from 115.136.109.195: seq=1 ttl=62 time=1.054 ms 64 bytes from 115.136.109.195: seq=2 ttl=62 time=0.926 ms --- 115.136.109.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.926/2.841/6.545 ms 2025-11-03 02:03:11,498 - INFO - Ping to IP 115.136.109.195 from VM ctest-TestRoutersBasic-70147709-66479601 passed 2025-11-03 02:03:11,498 - INFO - Deleting interface with subnet_id 9b0e33e3-7f17-420c-974c-fe1c289bbc0d, port_id None from router b23c5b0e-52de-4912-85a6-9632ead02bbf 2025-11-03 02:03:11,716 - INFO - Deleting VM ctest-TestRoutersBasic-70147709-28259439 2025-11-03 02:03:11,797 - INFO - Deleting VM ctest-TestRoutersBasic-70147709-66479601 2025-11-03 02:03:11,880 - INFO - Deleting VN ctest-ext_vn-00160205 2025-11-03 02:03:11,951 - DEBUG - VN f8bdc0c8-d7dd-4249-9313-5f90b0db765e still in use: Unable to complete operation on network f8bdc0c8-d7dd-4249-9313-5f90b0db765e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5e745c7f-cc9d-4c18-b868-a0f5755de132'] 2025-11-03 02:03:11,951 - WARNING - Deleting VN ctest-ext_vn-00160205 failed..Will retry 2025-11-03 02:03:14,072 - DEBUG - Response for deleting network () 2025-11-03 02:03:14,072 - INFO - Deleting VN ctest-vn-28266768 2025-11-03 02:03:14,187 - DEBUG - Response for deleting network () 2025-11-03 02:03:14,446 - DEBUG - No XMPP flaps were noticed during the test 2025-11-03 02:03:14,446 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-11-03 02:03:14,446 - INFO - -------------------------------------------------------------------------------- 2025-11-03 02:03:15,290 - INFO - Deleted project: ctest-TestRoutersBasic-70147709, ID : fefdf121-930c-4c58-a93a-60fd832965de