2025-01-07 17:01:24,741 - INFO - Domain Default found not creating 2025-01-07 17:01:24,881 - INFO - Project ctest-TestRoutersBasic-01667190 not found, creating it 2025-01-07 17:01:25,339 - INFO - Created Project:ctest-TestRoutersBasic-01667190, ID : 05bb6cc4-f723-47a5-b631-203320b344ae 2025-01-07 17:01:26,824 - INFO - ================================================================================ 2025-01-07 17:01:26,824 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-07 17:01:26,824 - 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-01-07 17:01:27,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.8': '0'}} with 2025-01-07 17:01:27,081 - INFO - Initial checks done. Running the testcase now 2025-01-07 17:01:27,082 - INFO - 2025-01-07 17:01:27,781 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-01667190 2025-01-07 17:01:27,876 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-01667190 2025-01-07 17:01:28,208 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01667190', 'default']} 2025-01-07 17:01:28,518 - DEBUG - Response for create_network : {'network': {'id': 'a8c7fb8a-fa53-4ed9-b22f-5bb770e28ba9', 'name': 'ctest-vn-48946378', 'tenant_id': '05bb6cc4f72347a5b631203320b344ae', 'project_id': '05bb6cc4f72347a5b631203320b344ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01667190', 'ctest-vn-48946378'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 17:01:28,709 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f218a6f1-e02b-47cf-b5ad-d0c023480580', 'name': '', 'tenant_id': '05bb6cc4f72347a5b631203320b344ae', 'network_id': 'a8c7fb8a-fa53-4ed9-b22f-5bb770e28ba9', 'ip_version': 4, 'cidr': '213.7.159.128/26', 'allocation_pools': [{'start': '213.7.159.130', 'end': '213.7.159.190'}], 'gateway_ip': '213.7.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.7.159.130', 'tags': [], 'project_id': '05bb6cc4f72347a5b631203320b344ae'}} 2025-01-07 17:01:28,726 - INFO - Created VN ctest-vn-48946378 2025-01-07 17:01:28,780 - DEBUG - VN ctest-vn-48946378 UUID is a8c7fb8a-fa53-4ed9-b22f-5bb770e28ba9 2025-01-07 17:01:29,156 - DEBUG - Response for create_network : {'network': {'id': '4d2f48a9-9e67-4e93-a468-a75ad6e89cfe', 'name': 'ctest-ext_vn-64802805', 'tenant_id': '05bb6cc4f72347a5b631203320b344ae', 'project_id': '05bb6cc4f72347a5b631203320b344ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01667190', 'ctest-ext_vn-64802805'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 17:01:29,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec4f66a7-11f9-4947-81be-bf0fca0c97c5', 'name': '', 'tenant_id': '05bb6cc4f72347a5b631203320b344ae', 'network_id': '4d2f48a9-9e67-4e93-a468-a75ad6e89cfe', 'ip_version': 4, 'cidr': '158.252.60.192/26', 'allocation_pools': [{'start': '158.252.60.194', 'end': '158.252.60.254'}], 'gateway_ip': '158.252.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.252.60.194', 'tags': [], 'project_id': '05bb6cc4f72347a5b631203320b344ae'}} 2025-01-07 17:01:29,398 - INFO - Created VN ctest-ext_vn-64802805 2025-01-07 17:01:29,452 - DEBUG - VN ctest-ext_vn-64802805 UUID is 4d2f48a9-9e67-4e93-a468-a75ad6e89cfe 2025-01-07 17:01:29,628 - DEBUG - Services list from nova: [, , ] 2025-01-07 17:01:30,653 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2552-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2552-1) 2025-01-07 17:01:31,793 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2552-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2552-1) 2025-01-07 17:01:31,871 - INFO - Setting gateway for router 17e48e60-21b4-48e9-a924-b976b92079bc to network 4d2f48a9-9e67-4e93-a468-a75ad6e89cfe 2025-01-07 17:01:31,932 - INFO - Adding interface with subnet_id f218a6f1-e02b-47cf-b5ad-d0c023480580, port_id None to router 17e48e60-21b4-48e9-a924-b976b92079bc 2025-01-07 17:01:32,280 - INFO - Waiting for VM ctest-TestRoutersBasic-01667190-82296941 to be up.. 2025-01-07 17:01:32,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-07 17:01:37,508 - DEBUG - VM is in ACTIVE state now 2025-01-07 17:01:37,508 - INFO - VM name : ctest-TestRoutersBasic-01667190-82296941 2025-01-07 17:01:37,584 - DEBUG - VM ctest-TestRoutersBasic-01667190-82296941 ID is ac731088-cf98-445c-9f56-2095741423b6 2025-01-07 17:01:37,601 - DEBUG - VM ctest-TestRoutersBasic-01667190-82296941 launched on Node cn-jenkins-deploy-platform-ansible-os-2552-1 2025-01-07 17:01:37,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ac731088-cf98-445c-9f56-2095741423b6 2025-01-07 17:01:37,980 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ac731088-cf98-445c-9f56-2095741423b6 2025-01-07 17:01:38,011 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f32d3682-56f2-4e56-8ebc-ef772b2fd230 2025-01-07 17:01:41,266 - 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 1011ms') 2025-01-07 17:01:41,266 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-01667190-82296941 failed! 2025-01-07 17:01:41,324 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-01667190:ctest-vn-48946378 is 213.7.159.129 and allocation pool is NOT set 2025-01-07 17:01:43,387 - 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.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/1.700/2.908/1.208 ms') 2025-01-07 17:01:43,387 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-01667190-82296941 passed 2025-01-07 17:01:43,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 17:01:43,540 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-01667190-82296941, IP 213.7.159.131, Port 22 2025-01-07 17:01:43,695 - DEBUG - VM ctest-TestRoutersBasic-01667190-82296941 is ready for SSH connections 2025-01-07 17:01:43,696 - INFO - Waiting for VM ctest-TestRoutersBasic-01667190-88337317 to be up.. 2025-01-07 17:01:43,774 - DEBUG - VM is in ACTIVE state now 2025-01-07 17:01:43,774 - INFO - VM name : ctest-TestRoutersBasic-01667190-88337317 2025-01-07 17:01:43,849 - DEBUG - VM ctest-TestRoutersBasic-01667190-88337317 ID is 205dbf5e-f68a-449c-aa9a-0e4c15d693b6 2025-01-07 17:01:43,849 - DEBUG - VM ctest-TestRoutersBasic-01667190-88337317 launched on Node cn-jenkins-deploy-platform-ansible-os-2552-1 2025-01-07 17:01:43,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/205dbf5e-f68a-449c-aa9a-0e4c15d693b6 2025-01-07 17:01:43,929 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/1cad8dbf-6310-4ea2-ac04-ef1b5eb86c08 2025-01-07 17:01:45,170 - 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=2.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.502 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 = 0.502/1.682/2.862/1.180 ms') 2025-01-07 17:01:45,170 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-01667190-88337317 passed 2025-01-07 17:01:45,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 17:01:45,320 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-01667190-88337317, IP 158.252.60.195, Port 22 2025-01-07 17:01:45,476 - DEBUG - VM ctest-TestRoutersBasic-01667190-88337317 is ready for SSH connections 2025-01-07 17:01:45,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 17:01:45,476 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.252.60.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-01-07 17:01:45,476 - DEBUG - ping -s 56 -c 3 -W 1 158.252.60.195 2025-01-07 17:01:49,164 - DEBUG - PING 158.252.60.195 (158.252.60.195): 56 data bytes 64 bytes from 158.252.60.195: seq=0 ttl=62 time=5.930 ms 64 bytes from 158.252.60.195: seq=1 ttl=62 time=0.899 ms 64 bytes from 158.252.60.195: seq=2 ttl=62 time=0.763 ms --- 158.252.60.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.763/2.530/5.930 ms 2025-01-07 17:01:49,164 - INFO - Ping to IP 158.252.60.195 from VM ctest-TestRoutersBasic-01667190-82296941 passed 2025-01-07 17:01:49,164 - INFO - Deleting interface with subnet_id f218a6f1-e02b-47cf-b5ad-d0c023480580, port_id None from router 17e48e60-21b4-48e9-a924-b976b92079bc 2025-01-07 17:01:49,383 - INFO - Deleting VM ctest-TestRoutersBasic-01667190-88337317 2025-01-07 17:01:49,451 - INFO - Deleting VM ctest-TestRoutersBasic-01667190-82296941 2025-01-07 17:01:49,542 - INFO - Deleting VN ctest-ext_vn-64802805 2025-01-07 17:01:49,618 - DEBUG - VN 4d2f48a9-9e67-4e93-a468-a75ad6e89cfe still in use: Unable to complete operation on network 4d2f48a9-9e67-4e93-a468-a75ad6e89cfe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c0469cbe-bb52-474f-8123-f634521bfd07'] 2025-01-07 17:01:49,618 - WARNING - Deleting VN ctest-ext_vn-64802805 failed..Will retry 2025-01-07 17:01:51,710 - DEBUG - Response for deleting network () 2025-01-07 17:01:51,710 - INFO - Deleting VN ctest-vn-48946378 2025-01-07 17:01:51,815 - DEBUG - Response for deleting network () 2025-01-07 17:01:52,073 - DEBUG - No XMPP flaps were noticed during the test 2025-01-07 17:01:52,074 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-07 17:01:52,074 - INFO - -------------------------------------------------------------------------------- 2025-01-07 17:01:52,739 - INFO - Deleted project: ctest-TestRoutersBasic-01667190, ID : 05bb6cc4-f723-47a5-b631-203320b344ae