2024-11-10 18:12:10,225 - INFO - Domain Default found not creating 2024-11-10 18:12:10,376 - INFO - Project ctest-TestRoutersBasic-17119959 not found, creating it 2024-11-10 18:12:10,863 - INFO - Created Project:ctest-TestRoutersBasic-17119959, ID : 670bd58f-4b59-4ec0-84af-10add12ceb91 2024-11-10 18:12:12,390 - INFO - ================================================================================ 2024-11-10 18:12:12,390 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 18:12:12,390 - 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-11-10 18:12:12,650 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.27': '0'}} with 2024-11-10 18:12:12,650 - INFO - Initial checks done. Running the testcase now 2024-11-10 18:12:12,650 - INFO - 2024-11-10 18:12:13,373 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-17119959 2024-11-10 18:12:13,472 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-17119959 2024-11-10 18:12:13,816 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17119959', 'default']} 2024-11-10 18:12:14,117 - DEBUG - Response for create_network : {'network': {'id': '7ce4fe94-6300-4f11-91fc-df55687e6997', 'name': 'ctest-vn-26589252', 'tenant_id': '670bd58f4b594ec084af10add12ceb91', 'project_id': '670bd58f4b594ec084af10add12ceb91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17119959', 'ctest-vn-26589252'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:14,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9f773ed-b01d-4588-beb1-1a3efc05aac2', 'name': '', 'tenant_id': '670bd58f4b594ec084af10add12ceb91', 'network_id': '7ce4fe94-6300-4f11-91fc-df55687e6997', 'ip_version': 4, 'cidr': '113.178.80.128/26', 'allocation_pools': [{'start': '113.178.80.130', 'end': '113.178.80.190'}], 'gateway_ip': '113.178.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.178.80.130', 'tags': [], 'project_id': '670bd58f4b594ec084af10add12ceb91'}} 2024-11-10 18:12:14,389 - INFO - Created VN ctest-vn-26589252 2024-11-10 18:12:14,444 - DEBUG - VN ctest-vn-26589252 UUID is 7ce4fe94-6300-4f11-91fc-df55687e6997 2024-11-10 18:12:14,797 - DEBUG - Response for create_network : {'network': {'id': '0b78b756-e6e8-4e8d-913f-e2309b0b7c4e', 'name': 'ctest-ext_vn-91599509', 'tenant_id': '670bd58f4b594ec084af10add12ceb91', 'project_id': '670bd58f4b594ec084af10add12ceb91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17119959', 'ctest-ext_vn-91599509'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:15,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '213eeaca-8c45-4970-b138-fcee7894e06e', 'name': '', 'tenant_id': '670bd58f4b594ec084af10add12ceb91', 'network_id': '0b78b756-e6e8-4e8d-913f-e2309b0b7c4e', 'ip_version': 4, 'cidr': '145.223.77.192/26', 'allocation_pools': [{'start': '145.223.77.194', 'end': '145.223.77.254'}], 'gateway_ip': '145.223.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.223.77.194', 'tags': [], 'project_id': '670bd58f4b594ec084af10add12ceb91'}} 2024-11-10 18:12:15,028 - INFO - Created VN ctest-ext_vn-91599509 2024-11-10 18:12:15,084 - DEBUG - VN ctest-ext_vn-91599509 UUID is 0b78b756-e6e8-4e8d-913f-e2309b0b7c4e 2024-11-10 18:12:15,256 - DEBUG - Services list from nova: [, , ] 2024-11-10 18:12:16,336 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2260-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2260-1) 2024-11-10 18:12:17,619 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2260-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2260-1) 2024-11-10 18:12:17,703 - INFO - Setting gateway for router 96c51847-6d91-43ce-8e87-166ba57a83d5 to network 0b78b756-e6e8-4e8d-913f-e2309b0b7c4e 2024-11-10 18:12:17,782 - INFO - Adding interface with subnet_id f9f773ed-b01d-4588-beb1-1a3efc05aac2, port_id None to router 96c51847-6d91-43ce-8e87-166ba57a83d5 2024-11-10 18:12:18,181 - INFO - Waiting for VM ctest-TestRoutersBasic-17119959-87887673 to be up.. 2024-11-10 18:12:18,333 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 18:12:23,433 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:12:23,433 - INFO - VM name : ctest-TestRoutersBasic-17119959-87887673 2024-11-10 18:12:23,507 - DEBUG - VM ctest-TestRoutersBasic-17119959-87887673 ID is 3de42837-4b92-4155-885d-42cdaec391b2 2024-11-10 18:12:23,524 - DEBUG - VM ctest-TestRoutersBasic-17119959-87887673 launched on Node cn-jenkins-deploy-platform-ansible-os-2260-1 2024-11-10 18:12:23,631 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/3de42837-4b92-4155-885d-42cdaec391b2 2024-11-10 18:12:23,936 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/3de42837-4b92-4155-885d-42cdaec391b2 2024-11-10 18:12:23,973 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/7270e85d-8644-4503-a0d3-69775ae76d55 2024-11-10 18:12:27,226 - 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 1004ms') 2024-11-10 18:12:27,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17119959-87887673 failed! 2024-11-10 18:12:27,284 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17119959:ctest-vn-26589252 is 113.178.80.129 and allocation pool is NOT set 2024-11-10 18:12:29,342 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.399 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.399/1.599/2.799/1.200 ms') 2024-11-10 18:12:29,342 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17119959-87887673 passed 2024-11-10 18:12:29,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:12:29,500 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17119959-87887673, IP 113.178.80.131, Port 22 2024-11-10 18:12:29,659 - DEBUG - VM ctest-TestRoutersBasic-17119959-87887673 is ready for SSH connections 2024-11-10 18:12:29,659 - INFO - Waiting for VM ctest-TestRoutersBasic-17119959-11308475 to be up.. 2024-11-10 18:12:29,733 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:12:29,733 - INFO - VM name : ctest-TestRoutersBasic-17119959-11308475 2024-11-10 18:12:29,808 - DEBUG - VM ctest-TestRoutersBasic-17119959-11308475 ID is 2d361ae3-36f7-4129-8825-5914718c6467 2024-11-10 18:12:29,808 - DEBUG - VM ctest-TestRoutersBasic-17119959-11308475 launched on Node cn-jenkins-deploy-platform-ansible-os-2260-1 2024-11-10 18:12:29,884 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2d361ae3-36f7-4129-8825-5914718c6467 2024-11-10 18:12:29,896 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/5eb32d0d-355d-42a5-9b85-60526550624b 2024-11-10 18:12:31,158 - 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.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.844 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.844/2.155/3.466/1.311 ms') 2024-11-10 18:12:31,159 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17119959-11308475 passed 2024-11-10 18:12:31,316 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:12:31,316 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17119959-11308475, IP 145.223.77.195, Port 22 2024-11-10 18:12:31,476 - DEBUG - VM ctest-TestRoutersBasic-17119959-11308475 is ready for SSH connections 2024-11-10 18:12:31,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:12:31,476 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.223.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-10 18:12:31,476 - DEBUG - ping -s 56 -c 3 -W 1 145.223.77.195 2024-11-10 18:12:35,155 - DEBUG - PING 145.223.77.195 (145.223.77.195): 56 data bytes 64 bytes from 145.223.77.195: seq=0 ttl=62 time=6.233 ms 64 bytes from 145.223.77.195: seq=1 ttl=62 time=0.825 ms 64 bytes from 145.223.77.195: seq=2 ttl=62 time=0.779 ms --- 145.223.77.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.779/2.612/6.233 ms 2024-11-10 18:12:35,155 - INFO - Ping to IP 145.223.77.195 from VM ctest-TestRoutersBasic-17119959-87887673 passed 2024-11-10 18:12:35,155 - INFO - Deleting interface with subnet_id f9f773ed-b01d-4588-beb1-1a3efc05aac2, port_id None from router 96c51847-6d91-43ce-8e87-166ba57a83d5 2024-11-10 18:12:35,371 - INFO - Deleting VM ctest-TestRoutersBasic-17119959-11308475 2024-11-10 18:12:35,435 - INFO - Deleting VM ctest-TestRoutersBasic-17119959-87887673 2024-11-10 18:12:35,529 - INFO - Deleting VN ctest-ext_vn-91599509 2024-11-10 18:12:35,597 - DEBUG - VN 0b78b756-e6e8-4e8d-913f-e2309b0b7c4e still in use: Unable to complete operation on network 0b78b756-e6e8-4e8d-913f-e2309b0b7c4e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-43f72de8-334c-41f5-a363-15ab44ea5165'] 2024-11-10 18:12:35,597 - WARNING - Deleting VN ctest-ext_vn-91599509 failed..Will retry 2024-11-10 18:12:37,722 - DEBUG - Response for deleting network () 2024-11-10 18:12:37,723 - INFO - Deleting VN ctest-vn-26589252 2024-11-10 18:12:37,849 - DEBUG - Response for deleting network () 2024-11-10 18:12:38,109 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 18:12:38,109 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-10 18:12:38,109 - INFO - -------------------------------------------------------------------------------- 2024-11-10 18:12:38,900 - INFO - Deleted project: ctest-TestRoutersBasic-17119959, ID : 670bd58f-4b59-4ec0-84af-10add12ceb91