2024-10-26 09:51:35,265 - INFO - Domain Default found not creating 2024-10-26 09:51:35,474 - INFO - Project ctest-TestRoutersBasic-91546457 not found, creating it 2024-10-26 09:51:35,961 - INFO - Created Project:ctest-TestRoutersBasic-91546457, ID : 6f107e73-8e8f-4896-afa4-9ce0a3154fca 2024-10-26 09:51:37,552 - INFO - ================================================================================ 2024-10-26 09:51:37,552 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-26 09:51:37,552 - 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 2024-10-26 09:51:37,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.24': '0'}} with 2024-10-26 09:51:37,808 - INFO - Initial checks done. Running the testcase now 2024-10-26 09:51:37,808 - INFO - 2024-10-26 09:51:38,550 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-91546457 2024-10-26 09:51:38,654 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-91546457 2024-10-26 09:51:38,990 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91546457', 'default']} 2024-10-26 09:51:39,317 - DEBUG - Response for create_network : {'network': {'id': '255da3e6-7391-4fe9-a71d-8b5712a06a3b', 'name': 'ctest-vn-79631302', 'tenant_id': '6f107e738e8f4896afa49ce0a3154fca', 'project_id': '6f107e738e8f4896afa49ce0a3154fca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91546457', 'ctest-vn-79631302'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:51:39,480 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16d8bc1-bb14-4a5a-bf61-17e303315225', 'name': '', 'tenant_id': '6f107e738e8f4896afa49ce0a3154fca', 'network_id': '255da3e6-7391-4fe9-a71d-8b5712a06a3b', 'ip_version': 4, 'cidr': '9.254.117.0/26', 'allocation_pools': [{'start': '9.254.117.2', 'end': '9.254.117.62'}], 'gateway_ip': '9.254.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.254.117.2', 'tags': [], 'project_id': '6f107e738e8f4896afa49ce0a3154fca'}} 2024-10-26 09:51:39,503 - INFO - Created VN ctest-vn-79631302 2024-10-26 09:51:39,562 - DEBUG - VN ctest-vn-79631302 UUID is 255da3e6-7391-4fe9-a71d-8b5712a06a3b 2024-10-26 09:51:39,918 - DEBUG - Response for create_network : {'network': {'id': '2640a2f5-7850-4e1b-a819-8100374ff299', 'name': 'ctest-ext_vn-29914621', 'tenant_id': '6f107e738e8f4896afa49ce0a3154fca', 'project_id': '6f107e738e8f4896afa49ce0a3154fca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-91546457', 'ctest-ext_vn-29914621'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:51:40,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '1328afa5-3713-482e-bd11-97792066e08f', 'name': '', 'tenant_id': '6f107e738e8f4896afa49ce0a3154fca', 'network_id': '2640a2f5-7850-4e1b-a819-8100374ff299', 'ip_version': 4, 'cidr': '5.189.245.0/26', 'allocation_pools': [{'start': '5.189.245.2', 'end': '5.189.245.62'}], 'gateway_ip': '5.189.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.189.245.2', 'tags': [], 'project_id': '6f107e738e8f4896afa49ce0a3154fca'}} 2024-10-26 09:51:40,140 - INFO - Created VN ctest-ext_vn-29914621 2024-10-26 09:51:40,198 - DEBUG - VN ctest-ext_vn-29914621 UUID is 2640a2f5-7850-4e1b-a819-8100374ff299 2024-10-26 09:51:40,381 - DEBUG - Services list from nova: [, , ] 2024-10-26 09:51:41,487 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2149-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2149-1) 2024-10-26 09:51:42,707 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2149-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2149-1) 2024-10-26 09:51:42,789 - INFO - Setting gateway for router da7009b2-a4e6-48e3-bd93-b96ce6796559 to network 2640a2f5-7850-4e1b-a819-8100374ff299 2024-10-26 09:51:42,849 - INFO - Adding interface with subnet_id e16d8bc1-bb14-4a5a-bf61-17e303315225, port_id None to router da7009b2-a4e6-48e3-bd93-b96ce6796559 2024-10-26 09:51:43,209 - INFO - Waiting for VM ctest-TestRoutersBasic-91546457-73808038 to be up.. 2024-10-26 09:51:43,347 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 09:51:48,437 - DEBUG - VM is in ACTIVE state now 2024-10-26 09:51:48,437 - INFO - VM name : ctest-TestRoutersBasic-91546457-73808038 2024-10-26 09:51:48,524 - DEBUG - VM ctest-TestRoutersBasic-91546457-73808038 ID is 7a7597ef-a234-4f27-83ad-1f1b48016146 2024-10-26 09:51:48,542 - DEBUG - VM ctest-TestRoutersBasic-91546457-73808038 launched on Node cn-jenkins-deploy-platform-ansible-os-2149-1 2024-10-26 09:51:48,638 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7a7597ef-a234-4f27-83ad-1f1b48016146 2024-10-26 09:51:48,952 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7a7597ef-a234-4f27-83ad-1f1b48016146 2024-10-26 09:51:48,991 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/24c765fa-463e-42f8-9161-173a68aca06e 2024-10-26 09:51:52,251 - 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 1002ms') 2024-10-26 09:51:52,251 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-91546457-73808038 failed! 2024-10-26 09:51:52,310 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-91546457:ctest-vn-79631302 is 9.254.117.1 and allocation pool is NOT set 2024-10-26 09:51:54,375 - 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=3.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.974 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.974/2.412/3.850/1.438 ms') 2024-10-26 09:51:54,375 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-91546457-73808038 passed 2024-10-26 09:51:54,546 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:51:54,546 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-91546457-73808038, IP 9.254.117.3, Port 22 2024-10-26 09:51:54,716 - DEBUG - VM ctest-TestRoutersBasic-91546457-73808038 is ready for SSH connections 2024-10-26 09:51:54,717 - INFO - Waiting for VM ctest-TestRoutersBasic-91546457-72623478 to be up.. 2024-10-26 09:51:54,803 - DEBUG - VM is in ACTIVE state now 2024-10-26 09:51:54,803 - INFO - VM name : ctest-TestRoutersBasic-91546457-72623478 2024-10-26 09:51:54,889 - DEBUG - VM ctest-TestRoutersBasic-91546457-72623478 ID is 08616fa4-60fa-4fe4-90ac-7a3d5424635e 2024-10-26 09:51:54,889 - DEBUG - VM ctest-TestRoutersBasic-91546457-72623478 launched on Node cn-jenkins-deploy-platform-ansible-os-2149-1 2024-10-26 09:51:54,977 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/08616fa4-60fa-4fe4-90ac-7a3d5424635e 2024-10-26 09:51:54,994 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/9db4177d-336f-4af4-98b7-0961f97cc606 2024-10-26 09:51:56,267 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.664 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.664/2.501/4.339/1.837 ms') 2024-10-26 09:51:56,267 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-91546457-72623478 passed 2024-10-26 09:51:56,426 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:51:56,426 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-91546457-72623478, IP 5.189.245.3, Port 22 2024-10-26 09:51:56,598 - DEBUG - VM ctest-TestRoutersBasic-91546457-72623478 is ready for SSH connections 2024-10-26 09:51:56,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:51:56,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.189.245.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-26 09:51:56,598 - DEBUG - ping -s 56 -c 3 -W 1 5.189.245.3 2024-10-26 09:52:00,295 - DEBUG - PING 5.189.245.3 (5.189.245.3): 56 data bytes 64 bytes from 5.189.245.3: seq=0 ttl=62 time=6.672 ms 64 bytes from 5.189.245.3: seq=1 ttl=62 time=0.890 ms 64 bytes from 5.189.245.3: seq=2 ttl=62 time=1.224 ms --- 5.189.245.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.890/2.928/6.672 ms 2024-10-26 09:52:00,295 - INFO - Ping to IP 5.189.245.3 from VM ctest-TestRoutersBasic-91546457-73808038 passed 2024-10-26 09:52:00,295 - INFO - Deleting interface with subnet_id e16d8bc1-bb14-4a5a-bf61-17e303315225, port_id None from router da7009b2-a4e6-48e3-bd93-b96ce6796559 2024-10-26 09:52:00,546 - INFO - Deleting VM ctest-TestRoutersBasic-91546457-72623478 2024-10-26 09:52:00,647 - INFO - Deleting VM ctest-TestRoutersBasic-91546457-73808038 2024-10-26 09:52:00,742 - INFO - Deleting VN ctest-ext_vn-29914621 2024-10-26 09:52:00,822 - DEBUG - VN 2640a2f5-7850-4e1b-a819-8100374ff299 still in use: Unable to complete operation on network 2640a2f5-7850-4e1b-a819-8100374ff299. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bf8853d7-e739-4928-8af3-dc7e44ec1ce9'] 2024-10-26 09:52:00,823 - WARNING - Deleting VN ctest-ext_vn-29914621 failed..Will retry 2024-10-26 09:52:02,971 - DEBUG - Response for deleting network () 2024-10-26 09:52:02,971 - INFO - Deleting VN ctest-vn-79631302 2024-10-26 09:52:03,097 - DEBUG - Response for deleting network () 2024-10-26 09:52:03,367 - DEBUG - No XMPP flaps were noticed during the test 2024-10-26 09:52:03,367 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-26 09:52:03,367 - INFO - -------------------------------------------------------------------------------- 2024-10-26 09:52:04,084 - INFO - Deleted project: ctest-TestRoutersBasic-91546457, ID : 6f107e73-8e8f-4896-afa4-9ce0a3154fca