2024-08-27 04:42:46,438 - INFO - Domain Default found not creating 2024-08-27 04:42:46,618 - INFO - Project ctest-TestRoutersBasic-29586210 not found, creating it 2024-08-27 04:42:47,128 - INFO - Created Project:ctest-TestRoutersBasic-29586210, ID : b5946aea-24b2-4ee7-84d3-a103810670fd 2024-08-27 04:42:49,039 - INFO - ================================================================================ 2024-08-27 04:42:49,039 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 04:42:49,039 - 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-08-27 04:42:49,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.23': '0'}} with 2024-08-27 04:42:49,301 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:42:49,302 - INFO - 2024-08-27 04:42:50,054 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-29586210 2024-08-27 04:42:50,156 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-29586210 2024-08-27 04:42:50,487 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29586210', 'default']} 2024-08-27 04:42:50,794 - DEBUG - Response for create_network : {'network': {'id': '1b244e76-a29a-4484-a4f0-d0b44f369d37', 'name': 'ctest-vn-66660453', 'tenant_id': 'b5946aea24b24ee784d3a103810670fd', 'project_id': 'b5946aea24b24ee784d3a103810670fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29586210', 'ctest-vn-66660453'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:42:51,018 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cabd137f-e241-447c-9858-88a602592c77', 'name': '', 'tenant_id': 'b5946aea24b24ee784d3a103810670fd', 'network_id': '1b244e76-a29a-4484-a4f0-d0b44f369d37', 'ip_version': 4, 'cidr': '107.14.188.128/26', 'allocation_pools': [{'start': '107.14.188.130', 'end': '107.14.188.190'}], 'gateway_ip': '107.14.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.14.188.130', 'tags': [], 'project_id': 'b5946aea24b24ee784d3a103810670fd'}} 2024-08-27 04:42:51,040 - INFO - Created VN ctest-vn-66660453 2024-08-27 04:42:51,092 - DEBUG - VN ctest-vn-66660453 UUID is 1b244e76-a29a-4484-a4f0-d0b44f369d37 2024-08-27 04:42:51,405 - DEBUG - Response for create_network : {'network': {'id': '635e70a3-c74a-4b69-b15a-32a0ecb9c072', 'name': 'ctest-ext_vn-37651862', 'tenant_id': 'b5946aea24b24ee784d3a103810670fd', 'project_id': 'b5946aea24b24ee784d3a103810670fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29586210', 'ctest-ext_vn-37651862'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:42:51,632 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a9843a3-f59e-491d-a695-4095033b5d21', 'name': '', 'tenant_id': 'b5946aea24b24ee784d3a103810670fd', 'network_id': '635e70a3-c74a-4b69-b15a-32a0ecb9c072', 'ip_version': 4, 'cidr': '128.168.113.0/26', 'allocation_pools': [{'start': '128.168.113.2', 'end': '128.168.113.62'}], 'gateway_ip': '128.168.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.168.113.2', 'tags': [], 'project_id': 'b5946aea24b24ee784d3a103810670fd'}} 2024-08-27 04:42:51,651 - INFO - Created VN ctest-ext_vn-37651862 2024-08-27 04:42:51,705 - DEBUG - VN ctest-ext_vn-37651862 UUID is 635e70a3-c74a-4b69-b15a-32a0ecb9c072 2024-08-27 04:42:51,885 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:42:52,969 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1792-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1792-1) 2024-08-27 04:42:54,152 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1792-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1792-1) 2024-08-27 04:42:54,228 - INFO - Setting gateway for router 7db6cb42-9e68-4ab9-b8cd-7ece810e9f3b to network 635e70a3-c74a-4b69-b15a-32a0ecb9c072 2024-08-27 04:42:54,300 - INFO - Adding interface with subnet_id cabd137f-e241-447c-9858-88a602592c77, port_id None to router 7db6cb42-9e68-4ab9-b8cd-7ece810e9f3b 2024-08-27 04:42:54,594 - INFO - Waiting for VM ctest-TestRoutersBasic-29586210-53741855 to be up.. 2024-08-27 04:42:54,798 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:42:59,888 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:42:59,888 - INFO - VM name : ctest-TestRoutersBasic-29586210-53741855 2024-08-27 04:42:59,969 - DEBUG - VM ctest-TestRoutersBasic-29586210-53741855 ID is 84048da7-5526-4adf-bbca-a415356f8887 2024-08-27 04:42:59,987 - DEBUG - VM ctest-TestRoutersBasic-29586210-53741855 launched on Node cn-jenkins-deploy-platform-ansible-os-1792-1 2024-08-27 04:43:00,070 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/84048da7-5526-4adf-bbca-a415356f8887 2024-08-27 04:43:00,373 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/84048da7-5526-4adf-bbca-a415356f8887 2024-08-27 04:43:00,413 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/f0353ab6-f3f2-4203-92f5-7aa21d02d0b2 2024-08-27 04:43:03,674 - 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 1015ms') 2024-08-27 04:43:03,674 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29586210-53741855 failed! 2024-08-27 04:43:03,732 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-29586210:ctest-vn-66660453 is 107.14.188.129 and allocation pool is NOT set 2024-08-27 04:43:05,799 - 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.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.404 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 = 0.404/1.682/2.961/1.278 ms') 2024-08-27 04:43:05,799 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29586210-53741855 passed 2024-08-27 04:43:05,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:05,956 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29586210-53741855, IP 107.14.188.131, Port 22 2024-08-27 04:43:06,111 - DEBUG - VM ctest-TestRoutersBasic-29586210-53741855 is ready for SSH connections 2024-08-27 04:43:06,111 - INFO - Waiting for VM ctest-TestRoutersBasic-29586210-60777871 to be up.. 2024-08-27 04:43:06,196 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:43:06,196 - INFO - VM name : ctest-TestRoutersBasic-29586210-60777871 2024-08-27 04:43:06,283 - DEBUG - VM ctest-TestRoutersBasic-29586210-60777871 ID is 963bec90-55d1-42d9-919e-678d683e19ae 2024-08-27 04:43:06,283 - DEBUG - VM ctest-TestRoutersBasic-29586210-60777871 launched on Node cn-jenkins-deploy-platform-ansible-os-1792-1 2024-08-27 04:43:06,365 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/963bec90-55d1-42d9-919e-678d683e19ae 2024-08-27 04:43:06,375 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/5e914b07-c1a8-4ddb-8f96-443c1b987d62 2024-08-27 04:43:07,614 - 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.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.495 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.495/2.049/3.603/1.554 ms') 2024-08-27 04:43:07,614 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-29586210-60777871 passed 2024-08-27 04:43:07,768 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:07,768 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29586210-60777871, IP 128.168.113.3, Port 22 2024-08-27 04:43:07,934 - DEBUG - VM ctest-TestRoutersBasic-29586210-60777871 is ready for SSH connections 2024-08-27 04:43:07,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:07,934 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 128.168.113.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-08-27 04:43:07,935 - DEBUG - ping -s 56 -c 3 -W 1 128.168.113.3 2024-08-27 04:43:11,618 - DEBUG - PING 128.168.113.3 (128.168.113.3): 56 data bytes 64 bytes from 128.168.113.3: seq=0 ttl=62 time=6.246 ms 64 bytes from 128.168.113.3: seq=1 ttl=62 time=1.313 ms 64 bytes from 128.168.113.3: seq=2 ttl=62 time=0.900 ms --- 128.168.113.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.900/2.819/6.246 ms 2024-08-27 04:43:11,618 - INFO - Ping to IP 128.168.113.3 from VM ctest-TestRoutersBasic-29586210-53741855 passed 2024-08-27 04:43:11,619 - INFO - Deleting interface with subnet_id cabd137f-e241-447c-9858-88a602592c77, port_id None from router 7db6cb42-9e68-4ab9-b8cd-7ece810e9f3b 2024-08-27 04:43:11,831 - INFO - Deleting VM ctest-TestRoutersBasic-29586210-60777871 2024-08-27 04:43:11,894 - INFO - Deleting VM ctest-TestRoutersBasic-29586210-53741855 2024-08-27 04:43:11,979 - INFO - Deleting VN ctest-ext_vn-37651862 2024-08-27 04:43:12,068 - DEBUG - VN 635e70a3-c74a-4b69-b15a-32a0ecb9c072 still in use: Unable to complete operation on network 635e70a3-c74a-4b69-b15a-32a0ecb9c072. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d08a252a-46ea-472d-9d0d-11e888131474'] 2024-08-27 04:43:12,068 - WARNING - Deleting VN ctest-ext_vn-37651862 failed..Will retry 2024-08-27 04:43:14,189 - DEBUG - Response for deleting network () 2024-08-27 04:43:14,189 - INFO - Deleting VN ctest-vn-66660453 2024-08-27 04:43:14,309 - DEBUG - Response for deleting network () 2024-08-27 04:43:14,586 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 04:43:14,586 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-08-27 04:43:14,586 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:43:15,276 - INFO - Deleted project: ctest-TestRoutersBasic-29586210, ID : b5946aea-24b2-4ee7-84d3-a103810670fd