2024-09-02 02:45:20,860 - INFO - Domain Default found not creating 2024-09-02 02:45:21,212 - INFO - Project ctest-TestRoutersBasic-24367249 not found, creating it 2024-09-02 02:45:21,723 - INFO - Created Project:ctest-TestRoutersBasic-24367249, ID : 1ac82c4c-d293-45ca-a2d4-1040af046b59 2024-09-02 02:45:23,577 - INFO - ================================================================================ 2024-09-02 02:45:23,577 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 02:45:23,577 - 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-09-02 02:45:23,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.39': '0'}} with 2024-09-02 02:45:23,893 - INFO - Initial checks done. Running the testcase now 2024-09-02 02:45:23,894 - INFO - 2024-09-02 02:45:24,721 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-24367249 2024-09-02 02:45:24,835 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-24367249 2024-09-02 02:45:25,241 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24367249', 'default']} 2024-09-02 02:45:25,644 - DEBUG - Response for create_network : {'network': {'id': 'fe3affe1-2e0f-4716-96e0-51cf7c1028ce', 'name': 'ctest-vn-45464048', 'tenant_id': '1ac82c4cd29345caa2d41040af046b59', 'project_id': '1ac82c4cd29345caa2d41040af046b59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24367249', 'ctest-vn-45464048'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:25,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e894b79-28cf-4b03-8e28-8d37d3dc184b', 'name': '', 'tenant_id': '1ac82c4cd29345caa2d41040af046b59', 'network_id': 'fe3affe1-2e0f-4716-96e0-51cf7c1028ce', 'ip_version': 4, 'cidr': '66.28.50.64/26', 'allocation_pools': [{'start': '66.28.50.66', 'end': '66.28.50.126'}], 'gateway_ip': '66.28.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.28.50.66', 'tags': [], 'project_id': '1ac82c4cd29345caa2d41040af046b59'}} 2024-09-02 02:45:25,956 - INFO - Created VN ctest-vn-45464048 2024-09-02 02:45:26,014 - DEBUG - VN ctest-vn-45464048 UUID is fe3affe1-2e0f-4716-96e0-51cf7c1028ce 2024-09-02 02:45:26,595 - DEBUG - Response for create_network : {'network': {'id': '02030b19-14d0-4b20-af52-e4295e63ba31', 'name': 'ctest-ext_vn-10875263', 'tenant_id': '1ac82c4cd29345caa2d41040af046b59', 'project_id': '1ac82c4cd29345caa2d41040af046b59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24367249', 'ctest-ext_vn-10875263'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:26,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '79c52bbd-fbaf-47ef-8efb-cc8e52904a15', 'name': '', 'tenant_id': '1ac82c4cd29345caa2d41040af046b59', 'network_id': '02030b19-14d0-4b20-af52-e4295e63ba31', 'ip_version': 4, 'cidr': '176.153.202.0/26', 'allocation_pools': [{'start': '176.153.202.2', 'end': '176.153.202.62'}], 'gateway_ip': '176.153.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.153.202.2', 'tags': [], 'project_id': '1ac82c4cd29345caa2d41040af046b59'}} 2024-09-02 02:45:26,883 - INFO - Created VN ctest-ext_vn-10875263 2024-09-02 02:45:26,954 - DEBUG - VN ctest-ext_vn-10875263 UUID is 02030b19-14d0-4b20-af52-e4295e63ba31 2024-09-02 02:45:27,290 - DEBUG - Services list from nova: [, , ] 2024-09-02 02:45:28,992 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1829-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1829-1) 2024-09-02 02:45:30,416 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1829-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1829-1) 2024-09-02 02:45:30,508 - INFO - Setting gateway for router 51f41c71-33fd-48b3-bf6f-a8c82f804473 to network 02030b19-14d0-4b20-af52-e4295e63ba31 2024-09-02 02:45:30,568 - INFO - Adding interface with subnet_id 6e894b79-28cf-4b03-8e28-8d37d3dc184b, port_id None to router 51f41c71-33fd-48b3-bf6f-a8c82f804473 2024-09-02 02:45:30,938 - INFO - Waiting for VM ctest-TestRoutersBasic-24367249-56696788 to be up.. 2024-09-02 02:45:31,153 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:45:36,375 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:45:36,376 - INFO - VM name : ctest-TestRoutersBasic-24367249-56696788 2024-09-02 02:45:36,574 - DEBUG - VM ctest-TestRoutersBasic-24367249-56696788 ID is 8280454b-86cc-4d59-890d-0745bc85e0e0 2024-09-02 02:45:36,602 - DEBUG - VM ctest-TestRoutersBasic-24367249-56696788 launched on Node cn-jenkins-deploy-platform-ansible-os-1829-1 2024-09-02 02:45:36,747 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/8280454b-86cc-4d59-890d-0745bc85e0e0 2024-09-02 02:45:37,067 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/8280454b-86cc-4d59-890d-0745bc85e0e0 2024-09-02 02:45:37,112 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/50bbb367-7ceb-46df-8e56-5cc5283c3578 2024-09-02 02:45:40,443 - 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 1017ms') 2024-09-02 02:45:40,443 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24367249-56696788 failed! 2024-09-02 02:45:40,518 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-24367249:ctest-vn-45464048 is 66.28.50.65 and allocation pool is NOT set 2024-09-02 02:45:42,612 - 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=6.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=5.53 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 = 5.530/6.169/6.809/0.639 ms') 2024-09-02 02:45:42,612 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24367249-56696788 passed 2024-09-02 02:45:42,798 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:42,798 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24367249-56696788, IP 66.28.50.67, Port 22 2024-09-02 02:45:43,000 - DEBUG - VM ctest-TestRoutersBasic-24367249-56696788 is ready for SSH connections 2024-09-02 02:45:43,000 - INFO - Waiting for VM ctest-TestRoutersBasic-24367249-83605140 to be up.. 2024-09-02 02:45:43,219 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:45:43,220 - INFO - VM name : ctest-TestRoutersBasic-24367249-83605140 2024-09-02 02:45:43,433 - DEBUG - VM ctest-TestRoutersBasic-24367249-83605140 ID is f2f1b386-8b0a-412e-ba38-c82bd2cd676d 2024-09-02 02:45:43,433 - DEBUG - VM ctest-TestRoutersBasic-24367249-83605140 launched on Node cn-jenkins-deploy-platform-ansible-os-1829-1 2024-09-02 02:45:43,684 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f2f1b386-8b0a-412e-ba38-c82bd2cd676d 2024-09-02 02:45:43,710 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/c997b863-7f2a-4950-a219-4152789c224b 2024-09-02 02:45:45,068 - 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=9.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.771 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.771/5.183/9.596/4.412 ms') 2024-09-02 02:45:45,068 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-24367249-83605140 passed 2024-09-02 02:45:45,254 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:45,254 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24367249-83605140, IP 176.153.202.3, Port 22 2024-09-02 02:45:45,462 - DEBUG - VM ctest-TestRoutersBasic-24367249-83605140 is ready for SSH connections 2024-09-02 02:45:45,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:45,463 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 176.153.202.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-02 02:45:45,463 - DEBUG - ping -s 56 -c 3 -W 1 176.153.202.3 2024-09-02 02:45:49,690 - DEBUG - PING 176.153.202.3 (176.153.202.3): 56 data bytes 64 bytes from 176.153.202.3: seq=0 ttl=62 time=8.696 ms 64 bytes from 176.153.202.3: seq=1 ttl=62 time=2.568 ms 64 bytes from 176.153.202.3: seq=2 ttl=62 time=2.122 ms --- 176.153.202.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.122/4.462/8.696 ms 2024-09-02 02:45:49,690 - INFO - Ping to IP 176.153.202.3 from VM ctest-TestRoutersBasic-24367249-56696788 passed 2024-09-02 02:45:49,691 - INFO - Deleting interface with subnet_id 6e894b79-28cf-4b03-8e28-8d37d3dc184b, port_id None from router 51f41c71-33fd-48b3-bf6f-a8c82f804473 2024-09-02 02:45:50,080 - INFO - Deleting VM ctest-TestRoutersBasic-24367249-83605140 2024-09-02 02:45:50,154 - INFO - Deleting VM ctest-TestRoutersBasic-24367249-56696788 2024-09-02 02:45:50,256 - INFO - Deleting VN ctest-ext_vn-10875263 2024-09-02 02:45:50,346 - DEBUG - VN 02030b19-14d0-4b20-af52-e4295e63ba31 still in use: Unable to complete operation on network 02030b19-14d0-4b20-af52-e4295e63ba31. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2b93ea4-51fe-47bd-a8e4-066b4996a436'] 2024-09-02 02:45:50,346 - WARNING - Deleting VN ctest-ext_vn-10875263 failed..Will retry 2024-09-02 02:45:52,613 - DEBUG - Response for deleting network () 2024-09-02 02:45:52,613 - INFO - Deleting VN ctest-vn-45464048 2024-09-02 02:45:52,760 - DEBUG - Response for deleting network () 2024-09-02 02:45:53,063 - DEBUG - No XMPP flaps were noticed during the test 2024-09-02 02:45:53,063 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2024-09-02 02:45:53,064 - INFO - -------------------------------------------------------------------------------- 2024-09-02 02:45:53,928 - INFO - Deleted project: ctest-TestRoutersBasic-24367249, ID : 1ac82c4c-d293-45ca-a2d4-1040af046b59