2025-05-14 09:54:23,684 - INFO - Domain Default found not creating 2025-05-14 09:54:23,860 - INFO - Project ctest-TestRoutersBasic-64126213 not found, creating it 2025-05-14 09:54:24,398 - INFO - Created Project:ctest-TestRoutersBasic-64126213, ID : 32ca2225-466d-4a1a-9e13-f0eac2cfa417 2025-05-14 09:54:25,999 - INFO - ================================================================================ 2025-05-14 09:54:25,999 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-14 09:54:25,999 - 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-05-14 09:54:26,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-05-14 09:54:26,252 - INFO - Initial checks done. Running the testcase now 2025-05-14 09:54:26,252 - INFO - 2025-05-14 09:54:27,036 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64126213 2025-05-14 09:54:27,130 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64126213 2025-05-14 09:54:27,462 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64126213', 'default']} 2025-05-14 09:54:27,778 - DEBUG - Response for create_network : {'network': {'id': 'ed9eed45-1c89-47a1-bfb3-84e49b4dbe04', 'name': 'ctest-vn-84924591', 'tenant_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'project_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64126213', 'ctest-vn-84924591'], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:54:27,996 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd31eb889-0eb0-46bb-a006-9a7ce1ebc264', 'name': '', 'tenant_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'network_id': 'ed9eed45-1c89-47a1-bfb3-84e49b4dbe04', 'ip_version': 4, 'cidr': '215.96.249.0/26', 'allocation_pools': [{'start': '215.96.249.2', 'end': '215.96.249.62'}], 'gateway_ip': '215.96.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.96.249.2', 'tags': [], 'project_id': '32ca2225466d4a1a9e13f0eac2cfa417'}} 2025-05-14 09:54:28,015 - INFO - Created VN ctest-vn-84924591 2025-05-14 09:54:28,070 - DEBUG - VN ctest-vn-84924591 UUID is ed9eed45-1c89-47a1-bfb3-84e49b4dbe04 2025-05-14 09:54:28,389 - DEBUG - Response for create_network : {'network': {'id': '7404d547-9e82-4768-b6b1-9dc662683617', 'name': 'ctest-ext_vn-98272512', 'tenant_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'project_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64126213', 'ctest-ext_vn-98272512'], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:54:28,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '280fb147-d98b-4cee-bb1b-44b9c0a58210', 'name': '', 'tenant_id': '32ca2225466d4a1a9e13f0eac2cfa417', 'network_id': '7404d547-9e82-4768-b6b1-9dc662683617', 'ip_version': 4, 'cidr': '22.167.188.128/26', 'allocation_pools': [{'start': '22.167.188.130', 'end': '22.167.188.190'}], 'gateway_ip': '22.167.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.167.188.130', 'tags': [], 'project_id': '32ca2225466d4a1a9e13f0eac2cfa417'}} 2025-05-14 09:54:28,640 - INFO - Created VN ctest-ext_vn-98272512 2025-05-14 09:54:28,694 - DEBUG - VN ctest-ext_vn-98272512 UUID is 7404d547-9e82-4768-b6b1-9dc662683617 2025-05-14 09:54:28,892 - DEBUG - Services list from nova: [, , ] 2025-05-14 09:54:30,031 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3308-1) 2025-05-14 09:54:31,382 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3308-1) 2025-05-14 09:54:31,460 - INFO - Setting gateway for router 22d8c6d9-9341-4fc0-9d71-0250c1babc4a to network 7404d547-9e82-4768-b6b1-9dc662683617 2025-05-14 09:54:31,552 - INFO - Adding interface with subnet_id d31eb889-0eb0-46bb-a006-9a7ce1ebc264, port_id None to router 22d8c6d9-9341-4fc0-9d71-0250c1babc4a 2025-05-14 09:54:31,994 - INFO - Waiting for VM ctest-TestRoutersBasic-64126213-93571917 to be up.. 2025-05-14 09:54:32,248 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-14 09:54:37,350 - DEBUG - VM is in ACTIVE state now 2025-05-14 09:54:37,350 - INFO - VM name : ctest-TestRoutersBasic-64126213-93571917 2025-05-14 09:54:37,453 - DEBUG - VM ctest-TestRoutersBasic-64126213-93571917 ID is df9fce9e-a873-48de-a8ad-644af078d843 2025-05-14 09:54:37,476 - DEBUG - VM ctest-TestRoutersBasic-64126213-93571917 launched on Node cn-jenkins-deploy-platform-ansible-os-3308-1 2025-05-14 09:54:37,600 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/df9fce9e-a873-48de-a8ad-644af078d843 2025-05-14 09:54:37,948 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/df9fce9e-a873-48de-a8ad-644af078d843 2025-05-14 09:54:37,985 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/23a41214-0307-4ab1-904c-4398a2005803 2025-05-14 09:54:41,246 - 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 1009ms') 2025-05-14 09:54:41,246 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64126213-93571917 failed! 2025-05-14 09:54:41,302 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64126213:ctest-vn-84924591 is 215.96.249.1 and allocation pool is NOT set 2025-05-14 09:54:43,363 - 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=5.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.906 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 = 0.906/3.245/5.584/2.339 ms') 2025-05-14 09:54:43,363 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64126213-93571917 passed 2025-05-14 09:54:43,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:54:43,518 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64126213-93571917, IP 215.96.249.3, Port 22 2025-05-14 09:54:43,681 - DEBUG - VM ctest-TestRoutersBasic-64126213-93571917 is ready for SSH connections 2025-05-14 09:54:43,681 - INFO - Waiting for VM ctest-TestRoutersBasic-64126213-38087420 to be up.. 2025-05-14 09:54:43,767 - DEBUG - VM is in ACTIVE state now 2025-05-14 09:54:43,767 - INFO - VM name : ctest-TestRoutersBasic-64126213-38087420 2025-05-14 09:54:43,856 - DEBUG - VM ctest-TestRoutersBasic-64126213-38087420 ID is 8866d11d-1bed-49e7-bb13-edf7907293ed 2025-05-14 09:54:43,857 - DEBUG - VM ctest-TestRoutersBasic-64126213-38087420 launched on Node cn-jenkins-deploy-platform-ansible-os-3308-1 2025-05-14 09:54:43,944 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/8866d11d-1bed-49e7-bb13-edf7907293ed 2025-05-14 09:54:43,954 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ce0b9ca0-9546-44ef-ba2b-847a7ffcc049 2025-05-14 09:54:45,214 - 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=4.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.61 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 = 1.611/2.845/4.080/1.234 ms') 2025-05-14 09:54:45,214 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64126213-38087420 passed 2025-05-14 09:54:45,370 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:54:45,370 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64126213-38087420, IP 22.167.188.131, Port 22 2025-05-14 09:54:45,428 - 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-05-14 09:54:45,505 - DEBUG - VM ctest-TestRoutersBasic-64126213-38087420 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-14 09:54:50,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:54:50,505 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64126213-38087420, IP 22.167.188.131, Port 22 2025-05-14 09:54:50,662 - DEBUG - VM ctest-TestRoutersBasic-64126213-38087420 is ready for SSH connections 2025-05-14 09:54:50,662 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:54:50,662 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.167.188.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-05-14 09:54:50,662 - DEBUG - ping -s 56 -c 3 -W 1 22.167.188.131 2025-05-14 09:54:54,388 - DEBUG - PING 22.167.188.131 (22.167.188.131): 56 data bytes 64 bytes from 22.167.188.131: seq=0 ttl=62 time=6.772 ms 64 bytes from 22.167.188.131: seq=1 ttl=62 time=0.991 ms 64 bytes from 22.167.188.131: seq=2 ttl=62 time=0.932 ms --- 22.167.188.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.932/2.898/6.772 ms 2025-05-14 09:54:54,388 - INFO - Ping to IP 22.167.188.131 from VM ctest-TestRoutersBasic-64126213-93571917 passed 2025-05-14 09:54:54,388 - INFO - Deleting interface with subnet_id d31eb889-0eb0-46bb-a006-9a7ce1ebc264, port_id None from router 22d8c6d9-9341-4fc0-9d71-0250c1babc4a 2025-05-14 09:54:54,593 - INFO - Deleting VM ctest-TestRoutersBasic-64126213-38087420 2025-05-14 09:54:54,667 - INFO - Deleting VM ctest-TestRoutersBasic-64126213-93571917 2025-05-14 09:54:54,755 - INFO - Deleting VN ctest-ext_vn-98272512 2025-05-14 09:54:54,845 - DEBUG - VN 7404d547-9e82-4768-b6b1-9dc662683617 still in use: Unable to complete operation on network 7404d547-9e82-4768-b6b1-9dc662683617. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-473cb396-7d34-47f8-856c-c416b5435de4'] 2025-05-14 09:54:54,845 - WARNING - Deleting VN ctest-ext_vn-98272512 failed..Will retry 2025-05-14 09:54:56,964 - DEBUG - Response for deleting network () 2025-05-14 09:54:56,964 - INFO - Deleting VN ctest-vn-84924591 2025-05-14 09:54:57,072 - DEBUG - Response for deleting network () 2025-05-14 09:54:57,329 - DEBUG - No XMPP flaps were noticed during the test
2025-05-14 09:54:57,329 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-05-14 09:54:57,329 - INFO - -------------------------------------------------------------------------------- 2025-05-14 09:54:58,074 - INFO - Deleted project: ctest-TestRoutersBasic-64126213, ID : 32ca2225-466d-4a1a-9e13-f0eac2cfa417