2025-03-13 02:24:38,868 - INFO - Domain Default found not creating 2025-03-13 02:24:39,045 - INFO - Project ctest-TestRoutersBasic-21829887 not found, creating it 2025-03-13 02:24:39,587 - INFO - Created Project:ctest-TestRoutersBasic-21829887, ID : adf295b2-f9f5-4b33-bf9e-5dd0a0c41f1c 2025-03-13 02:24:41,242 - INFO - ================================================================================ 2025-03-13 02:24:41,243 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-13 02:24:41,243 - 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-03-13 02:24:41,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.18': '0'}} with 2025-03-13 02:24:41,513 - INFO - Initial checks done. Running the testcase now 2025-03-13 02:24:41,513 - INFO - 2025-03-13 02:24:42,256 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21829887 2025-03-13 02:24:42,354 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21829887 2025-03-13 02:24:42,686 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21829887', 'default']} 2025-03-13 02:24:43,005 - DEBUG - Response for create_network : {'network': {'id': '39c65e4e-9810-4ede-8d27-721849961d31', 'name': 'ctest-vn-80588478', 'tenant_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'project_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21829887', 'ctest-vn-80588478'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:24:43,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ef4e2d8-a171-4ec5-9346-0e185133c78e', 'name': '', 'tenant_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'network_id': '39c65e4e-9810-4ede-8d27-721849961d31', 'ip_version': 4, 'cidr': '81.253.108.128/26', 'allocation_pools': [{'start': '81.253.108.130', 'end': '81.253.108.190'}], 'gateway_ip': '81.253.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.253.108.130', 'tags': [], 'project_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c'}} 2025-03-13 02:24:43,262 - INFO - Created VN ctest-vn-80588478 2025-03-13 02:24:43,322 - DEBUG - VN ctest-vn-80588478 UUID is 39c65e4e-9810-4ede-8d27-721849961d31 2025-03-13 02:24:43,760 - DEBUG - Response for create_network : {'network': {'id': '01509a64-95a4-4b26-96d3-6e8bb06f1c11', 'name': 'ctest-ext_vn-71293952', 'tenant_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'project_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21829887', 'ctest-ext_vn-71293952'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:24:44,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f3975c2-47f6-4795-80d0-9a148e952b73', 'name': '', 'tenant_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c', 'network_id': '01509a64-95a4-4b26-96d3-6e8bb06f1c11', 'ip_version': 4, 'cidr': '218.159.76.0/26', 'allocation_pools': [{'start': '218.159.76.2', 'end': '218.159.76.62'}], 'gateway_ip': '218.159.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.159.76.2', 'tags': [], 'project_id': 'adf295b2f9f54b33bf9e5dd0a0c41f1c'}} 2025-03-13 02:24:44,039 - INFO - Created VN ctest-ext_vn-71293952 2025-03-13 02:24:44,094 - DEBUG - VN ctest-ext_vn-71293952 UUID is 01509a64-95a4-4b26-96d3-6e8bb06f1c11 2025-03-13 02:24:44,278 - DEBUG - Services list from nova: [, , ] 2025-03-13 02:24:45,413 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2858-1) 2025-03-13 02:24:46,634 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2858-1) 2025-03-13 02:24:46,718 - INFO - Setting gateway for router 04564ab2-f85a-48ad-8d44-d065dd9c7b1b to network 01509a64-95a4-4b26-96d3-6e8bb06f1c11 2025-03-13 02:24:46,786 - INFO - Adding interface with subnet_id 7ef4e2d8-a171-4ec5-9346-0e185133c78e, port_id None to router 04564ab2-f85a-48ad-8d44-d065dd9c7b1b 2025-03-13 02:24:47,214 - INFO - Waiting for VM ctest-TestRoutersBasic-21829887-89680942 to be up.. 2025-03-13 02:24:47,382 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-13 02:24:52,481 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:24:52,481 - INFO - VM name : ctest-TestRoutersBasic-21829887-89680942 2025-03-13 02:24:52,574 - DEBUG - VM ctest-TestRoutersBasic-21829887-89680942 ID is c9d926fe-75ec-435f-b66d-737baf955e6a 2025-03-13 02:24:52,595 - DEBUG - VM ctest-TestRoutersBasic-21829887-89680942 launched on Node cn-jenkins-deploy-platform-ansible-os-2858-1 2025-03-13 02:24:52,686 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c9d926fe-75ec-435f-b66d-737baf955e6a 2025-03-13 02:24:52,989 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c9d926fe-75ec-435f-b66d-737baf955e6a 2025-03-13 02:24:53,029 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/6d2d305b-140e-4b1e-a4a2-67b977b51313 2025-03-13 02:24:56,293 - 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 1022ms') 2025-03-13 02:24:56,293 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21829887-89680942 failed! 2025-03-13 02:24:56,350 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21829887:ctest-vn-80588478 is 81.253.108.129 and allocation pool is NOT set 2025-03-13 02:24:58,421 - 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.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.22 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 = 1.223/2.637/4.052/1.414 ms') 2025-03-13 02:24:58,421 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21829887-89680942 passed 2025-03-13 02:24:58,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:24:58,578 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21829887-89680942, IP 81.253.108.131, Port 22 2025-03-13 02:24:58,746 - DEBUG - VM ctest-TestRoutersBasic-21829887-89680942 is ready for SSH connections 2025-03-13 02:24:58,746 - INFO - Waiting for VM ctest-TestRoutersBasic-21829887-91157812 to be up.. 2025-03-13 02:24:58,839 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:24:58,839 - INFO - VM name : ctest-TestRoutersBasic-21829887-91157812 2025-03-13 02:24:58,935 - DEBUG - VM ctest-TestRoutersBasic-21829887-91157812 ID is c42f31dd-df33-4024-8933-b1b13591c11a 2025-03-13 02:24:58,935 - DEBUG - VM ctest-TestRoutersBasic-21829887-91157812 launched on Node cn-jenkins-deploy-platform-ansible-os-2858-1 2025-03-13 02:24:59,023 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c42f31dd-df33-4024-8933-b1b13591c11a 2025-03-13 02:24:59,032 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/8b6858a3-0d82-4df1-a1e1-f961d830b14f 2025-03-13 02:25:00,278 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.37 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 = 1.370/3.122/4.875/1.752 ms') 2025-03-13 02:25:00,279 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21829887-91157812 passed 2025-03-13 02:25:00,430 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:00,430 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21829887-91157812, IP 218.159.76.3, Port 22 2025-03-13 02:25:00,586 - DEBUG - VM ctest-TestRoutersBasic-21829887-91157812 is ready for SSH connections 2025-03-13 02:25:00,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:00,586 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.159.76.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-13 02:25:00,586 - DEBUG - ping -s 56 -c 3 -W 1 218.159.76.3 2025-03-13 02:25:04,371 - DEBUG - PING 218.159.76.3 (218.159.76.3): 56 data bytes 64 bytes from 218.159.76.3: seq=0 ttl=62 time=5.186 ms 64 bytes from 218.159.76.3: seq=1 ttl=62 time=1.205 ms 64 bytes from 218.159.76.3: seq=2 ttl=62 time=1.095 ms --- 218.159.76.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.095/2.495/5.186 ms 2025-03-13 02:25:04,371 - INFO - Ping to IP 218.159.76.3 from VM ctest-TestRoutersBasic-21829887-89680942 passed 2025-03-13 02:25:04,371 - INFO - Deleting interface with subnet_id 7ef4e2d8-a171-4ec5-9346-0e185133c78e, port_id None from router 04564ab2-f85a-48ad-8d44-d065dd9c7b1b 2025-03-13 02:25:04,590 - INFO - Deleting VM ctest-TestRoutersBasic-21829887-91157812 2025-03-13 02:25:04,672 - INFO - Deleting VM ctest-TestRoutersBasic-21829887-89680942 2025-03-13 02:25:04,766 - INFO - Deleting VN ctest-ext_vn-71293952 2025-03-13 02:25:04,856 - DEBUG - VN 01509a64-95a4-4b26-96d3-6e8bb06f1c11 still in use: Unable to complete operation on network 01509a64-95a4-4b26-96d3-6e8bb06f1c11. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d624309f-b01a-44d0-84c3-17d26a194ad3'] 2025-03-13 02:25:04,856 - WARNING - Deleting VN ctest-ext_vn-71293952 failed..Will retry 2025-03-13 02:25:06,973 - DEBUG - Response for deleting network () 2025-03-13 02:25:06,973 - INFO - Deleting VN ctest-vn-80588478 2025-03-13 02:25:07,088 - DEBUG - Response for deleting network () 2025-03-13 02:25:07,349 - DEBUG - No XMPP flaps were noticed during the test 2025-03-13 02:25:07,349 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-13 02:25:07,349 - INFO - -------------------------------------------------------------------------------- 2025-03-13 02:25:08,078 - INFO - Deleted project: ctest-TestRoutersBasic-21829887, ID : adf295b2-f9f5-4b33-bf9e-5dd0a0c41f1c