2025-07-02 16:51:34,142 - INFO - Domain Default found not creating 2025-07-02 16:51:34,293 - INFO - Project ctest-TestRoutersBasic-99113249 not found, creating it 2025-07-02 16:51:34,791 - INFO - Created Project:ctest-TestRoutersBasic-99113249, ID : 91b5e006-6811-4255-9f14-c395069800a6 2025-07-02 16:51:36,239 - INFO - ================================================================================ 2025-07-02 16:51:36,239 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-02 16:51:36,239 - 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-07-02 16:51:36,496 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-02 16:51:36,496 - INFO - Initial checks done. Running the testcase now 2025-07-02 16:51:36,496 - INFO - 2025-07-02 16:51:37,231 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-99113249 2025-07-02 16:51:37,325 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-99113249 2025-07-02 16:51:37,653 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99113249', 'default']} 2025-07-02 16:51:37,974 - DEBUG - Response for create_network : {'network': {'id': '88794c31-2697-4ca4-902b-49f468d762ac', 'name': 'ctest-vn-45348977', 'tenant_id': '91b5e006681142559f14c395069800a6', 'project_id': '91b5e006681142559f14c395069800a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99113249', 'ctest-vn-45348977'], 'port_security_enabled': True, 'description': ''}} 2025-07-02 16:51:38,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '44ee9a76-1c8a-4abc-a909-604b364cb741', 'name': '', 'tenant_id': '91b5e006681142559f14c395069800a6', 'network_id': '88794c31-2697-4ca4-902b-49f468d762ac', 'ip_version': 4, 'cidr': '30.166.47.192/26', 'allocation_pools': [{'start': '30.166.47.194', 'end': '30.166.47.254'}], 'gateway_ip': '30.166.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.166.47.194', 'tags': [], 'project_id': '91b5e006681142559f14c395069800a6'}} 2025-07-02 16:51:38,154 - INFO - Created VN ctest-vn-45348977 2025-07-02 16:51:38,209 - DEBUG - VN ctest-vn-45348977 UUID is 88794c31-2697-4ca4-902b-49f468d762ac 2025-07-02 16:51:38,551 - DEBUG - Response for create_network : {'network': {'id': '5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0', 'name': 'ctest-ext_vn-33254978', 'tenant_id': '91b5e006681142559f14c395069800a6', 'project_id': '91b5e006681142559f14c395069800a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99113249', 'ctest-ext_vn-33254978'], 'port_security_enabled': True, 'description': ''}} 2025-07-02 16:51:38,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f5d1476-cc80-4099-9906-8d3403f175a2', 'name': '', 'tenant_id': '91b5e006681142559f14c395069800a6', 'network_id': '5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0', 'ip_version': 4, 'cidr': '60.160.195.192/26', 'allocation_pools': [{'start': '60.160.195.194', 'end': '60.160.195.254'}], 'gateway_ip': '60.160.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.160.195.194', 'tags': [], 'project_id': '91b5e006681142559f14c395069800a6'}} 2025-07-02 16:51:38,733 - INFO - Created VN ctest-ext_vn-33254978 2025-07-02 16:51:38,789 - DEBUG - VN ctest-ext_vn-33254978 UUID is 5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0 2025-07-02 16:51:38,957 - DEBUG - Services list from nova: [, , ] 2025-07-02 16:51:39,982 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3590-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3590-1) 2025-07-02 16:51:41,158 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3590-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3590-1) 2025-07-02 16:51:41,235 - INFO - Setting gateway for router b7f6e7c3-804d-4c23-b481-e78735bcb3d3 to network 5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0 2025-07-02 16:51:41,311 - INFO - Adding interface with subnet_id 44ee9a76-1c8a-4abc-a909-604b364cb741, port_id None to router b7f6e7c3-804d-4c23-b481-e78735bcb3d3 2025-07-02 16:51:41,663 - INFO - Waiting for VM ctest-TestRoutersBasic-99113249-22122672 to be up.. 2025-07-02 16:51:41,837 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-02 16:51:46,924 - DEBUG - VM is in ACTIVE state now 2025-07-02 16:51:46,924 - INFO - VM name : ctest-TestRoutersBasic-99113249-22122672 2025-07-02 16:51:47,006 - DEBUG - VM ctest-TestRoutersBasic-99113249-22122672 ID is 45f177ab-066e-45a7-92f5-6878a1357ea9 2025-07-02 16:51:47,027 - DEBUG - VM ctest-TestRoutersBasic-99113249-22122672 launched on Node cn-jenkins-deploy-platform-ansible-os-3590-1 2025-07-02 16:51:47,106 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/45f177ab-066e-45a7-92f5-6878a1357ea9 2025-07-02 16:51:47,401 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/45f177ab-066e-45a7-92f5-6878a1357ea9 2025-07-02 16:51:47,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4101b8a9-5c3c-44b6-928a-f30fa9f60c21 2025-07-02 16:51:50,700 - 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 1023ms') 2025-07-02 16:51:50,700 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99113249-22122672 failed! 2025-07-02 16:51:50,757 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-99113249:ctest-vn-45348977 is 30.166.47.193 and allocation pool is NOT set 2025-07-02 16:51:52,821 - 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=0.385 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.385/1.595/2.806/1.210 ms') 2025-07-02 16:51:52,821 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99113249-22122672 passed 2025-07-02 16:51:52,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-02 16:51:52,973 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99113249-22122672, IP 30.166.47.195, Port 22 2025-07-02 16:51:53,135 - DEBUG - VM ctest-TestRoutersBasic-99113249-22122672 is ready for SSH connections 2025-07-02 16:51:53,135 - INFO - Waiting for VM ctest-TestRoutersBasic-99113249-97855401 to be up.. 2025-07-02 16:51:53,221 - DEBUG - VM is in ACTIVE state now 2025-07-02 16:51:53,221 - INFO - VM name : ctest-TestRoutersBasic-99113249-97855401 2025-07-02 16:51:53,298 - DEBUG - VM ctest-TestRoutersBasic-99113249-97855401 ID is 47bf3a17-49a0-4401-97c6-467ffc5d2260 2025-07-02 16:51:53,298 - DEBUG - VM ctest-TestRoutersBasic-99113249-97855401 launched on Node cn-jenkins-deploy-platform-ansible-os-3590-1 2025-07-02 16:51:53,372 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/47bf3a17-49a0-4401-97c6-467ffc5d2260 2025-07-02 16:51:53,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/365caf50-f169-4633-923a-c5dafbef670b 2025-07-02 16:51:54,630 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.803/3.190/1.387 ms') 2025-07-02 16:51:54,630 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-99113249-97855401 passed 2025-07-02 16:51:54,785 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-02 16:51:54,785 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99113249-97855401, IP 60.160.195.195, Port 22 2025-07-02 16:51:54,941 - DEBUG - VM ctest-TestRoutersBasic-99113249-97855401 is ready for SSH connections 2025-07-02 16:51:54,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-02 16:51:54,941 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.160.195.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-02 16:51:54,942 - DEBUG - ping -s 56 -c 3 -W 1 60.160.195.195 2025-07-02 16:51:58,624 - DEBUG - PING 60.160.195.195 (60.160.195.195): 56 data bytes 64 bytes from 60.160.195.195: seq=0 ttl=62 time=7.643 ms 64 bytes from 60.160.195.195: seq=1 ttl=62 time=0.901 ms 64 bytes from 60.160.195.195: seq=2 ttl=62 time=0.832 ms --- 60.160.195.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.832/3.125/7.643 ms 2025-07-02 16:51:58,624 - INFO - Ping to IP 60.160.195.195 from VM ctest-TestRoutersBasic-99113249-22122672 passed 2025-07-02 16:51:58,624 - INFO - Deleting interface with subnet_id 44ee9a76-1c8a-4abc-a909-604b364cb741, port_id None from router b7f6e7c3-804d-4c23-b481-e78735bcb3d3 2025-07-02 16:51:58,825 - INFO - Deleting VM ctest-TestRoutersBasic-99113249-97855401 2025-07-02 16:51:58,894 - INFO - Deleting VM ctest-TestRoutersBasic-99113249-22122672 2025-07-02 16:51:58,968 - INFO - Deleting VN ctest-ext_vn-33254978 2025-07-02 16:51:59,035 - DEBUG - VN 5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0 still in use: Unable to complete operation on network 5ea7dbd4-a6c1-4c94-8a56-2168f55a93d0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4bce1cfc-486a-4cca-aa2d-1343a517b5f7'] 2025-07-02 16:51:59,035 - WARNING - Deleting VN ctest-ext_vn-33254978 failed..Will retry 2025-07-02 16:52:01,145 - DEBUG - Response for deleting network () 2025-07-02 16:52:01,146 - INFO - Deleting VN ctest-vn-45348977 2025-07-02 16:52:01,261 - DEBUG - Response for deleting network () 2025-07-02 16:52:01,525 - DEBUG - No XMPP flaps were noticed during the test 2025-07-02 16:52:01,525 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-07-02 16:52:01,525 - INFO - -------------------------------------------------------------------------------- 2025-07-02 16:52:02,215 - INFO - Deleted project: ctest-TestRoutersBasic-99113249, ID : 91b5e006-6811-4255-9f14-c395069800a6