2024-09-06 07:30:57,758 - INFO - Domain Default found not creating 2024-09-06 07:30:57,924 - INFO - Project ctest-TestRoutersBasic-57243748 not found, creating it 2024-09-06 07:30:58,380 - INFO - Created Project:ctest-TestRoutersBasic-57243748, ID : 5155e4f3-7e0b-4a68-8c89-cfac42bc4684 2024-09-06 07:30:59,951 - INFO - ================================================================================ 2024-09-06 07:30:59,951 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-06 07:30:59,951 - 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-06 07:31:00,213 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.28': '0'}} with 2024-09-06 07:31:00,213 - INFO - Initial checks done. Running the testcase now 2024-09-06 07:31:00,213 - INFO - 2024-09-06 07:31:00,926 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57243748 2024-09-06 07:31:01,026 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57243748 2024-09-06 07:31:01,349 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57243748', 'default']} 2024-09-06 07:31:01,691 - DEBUG - Response for create_network : {'network': {'id': 'f7561228-a087-4b55-855a-a1f0abcd3dfd', 'name': 'ctest-vn-80440152', 'tenant_id': '5155e4f37e0b4a688c89cfac42bc4684', 'project_id': '5155e4f37e0b4a688c89cfac42bc4684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57243748', 'ctest-vn-80440152'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 07:31:01,922 - DEBUG - Response for create_subnet : {'subnet': {'id': '101ad04c-dff0-4cd4-8dcd-45f591372523', 'name': '', 'tenant_id': '5155e4f37e0b4a688c89cfac42bc4684', 'network_id': 'f7561228-a087-4b55-855a-a1f0abcd3dfd', 'ip_version': 4, 'cidr': '186.16.188.64/26', 'allocation_pools': [{'start': '186.16.188.66', 'end': '186.16.188.126'}], 'gateway_ip': '186.16.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.16.188.66', 'tags': [], 'project_id': '5155e4f37e0b4a688c89cfac42bc4684'}} 2024-09-06 07:31:01,945 - INFO - Created VN ctest-vn-80440152 2024-09-06 07:31:01,997 - DEBUG - VN ctest-vn-80440152 UUID is f7561228-a087-4b55-855a-a1f0abcd3dfd 2024-09-06 07:31:02,327 - DEBUG - Response for create_network : {'network': {'id': 'bfb30275-da78-4e3b-acff-bb66e5093197', 'name': 'ctest-ext_vn-65671729', 'tenant_id': '5155e4f37e0b4a688c89cfac42bc4684', 'project_id': '5155e4f37e0b4a688c89cfac42bc4684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57243748', 'ctest-ext_vn-65671729'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 07:31:02,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f43af5c-e107-4786-8a51-a69e021b0617', 'name': '', 'tenant_id': '5155e4f37e0b4a688c89cfac42bc4684', 'network_id': 'bfb30275-da78-4e3b-acff-bb66e5093197', 'ip_version': 4, 'cidr': '195.0.77.128/26', 'allocation_pools': [{'start': '195.0.77.130', 'end': '195.0.77.190'}], 'gateway_ip': '195.0.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.0.77.130', 'tags': [], 'project_id': '5155e4f37e0b4a688c89cfac42bc4684'}} 2024-09-06 07:31:02,532 - INFO - Created VN ctest-ext_vn-65671729 2024-09-06 07:31:02,585 - DEBUG - VN ctest-ext_vn-65671729 UUID is bfb30275-da78-4e3b-acff-bb66e5093197 2024-09-06 07:31:02,766 - DEBUG - Services list from nova: [, , ] 2024-09-06 07:31:03,825 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1858-1) 2024-09-06 07:31:05,232 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1858-1) 2024-09-06 07:31:05,317 - INFO - Setting gateway for router c36633f3-be0e-4cb4-943a-4bd8b58c8911 to network bfb30275-da78-4e3b-acff-bb66e5093197 2024-09-06 07:31:05,403 - INFO - Adding interface with subnet_id 101ad04c-dff0-4cd4-8dcd-45f591372523, port_id None to router c36633f3-be0e-4cb4-943a-4bd8b58c8911 2024-09-06 07:31:05,837 - INFO - Waiting for VM ctest-TestRoutersBasic-57243748-51287037 to be up.. 2024-09-06 07:31:05,991 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 07:31:11,071 - DEBUG - VM is in ACTIVE state now 2024-09-06 07:31:11,071 - INFO - VM name : ctest-TestRoutersBasic-57243748-51287037 2024-09-06 07:31:11,161 - DEBUG - VM ctest-TestRoutersBasic-57243748-51287037 ID is df0803bf-75c9-4e5c-9c2f-1dc80106b7d4 2024-09-06 07:31:11,183 - DEBUG - VM ctest-TestRoutersBasic-57243748-51287037 launched on Node cn-jenkins-deploy-platform-ansible-os-1858-1 2024-09-06 07:31:11,263 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/df0803bf-75c9-4e5c-9c2f-1dc80106b7d4 2024-09-06 07:31:11,561 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/df0803bf-75c9-4e5c-9c2f-1dc80106b7d4 2024-09-06 07:31:11,598 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/72e5bd61-40f0-4ddc-a091-6bddd7b81bec 2024-09-06 07:31:14,881 - 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 1023ms') 2024-09-06 07:31:14,881 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57243748-51287037 failed! 2024-09-06 07:31:14,933 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57243748:ctest-vn-80440152 is 186.16.188.65 and allocation pool is NOT set 2024-09-06 07:31:16,996 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.558 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.558/1.770/2.982/1.212 ms') 2024-09-06 07:31:16,996 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57243748-51287037 passed 2024-09-06 07:31:17,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 07:31:17,146 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57243748-51287037, IP 186.16.188.67, Port 22 2024-09-06 07:31:17,305 - DEBUG - VM ctest-TestRoutersBasic-57243748-51287037 is ready for SSH connections 2024-09-06 07:31:17,305 - INFO - Waiting for VM ctest-TestRoutersBasic-57243748-08413402 to be up.. 2024-09-06 07:31:17,392 - DEBUG - VM is in ACTIVE state now 2024-09-06 07:31:17,393 - INFO - VM name : ctest-TestRoutersBasic-57243748-08413402 2024-09-06 07:31:17,473 - DEBUG - VM ctest-TestRoutersBasic-57243748-08413402 ID is 759dee24-e74e-407f-8c70-01a56cec7998 2024-09-06 07:31:17,474 - DEBUG - VM ctest-TestRoutersBasic-57243748-08413402 launched on Node cn-jenkins-deploy-platform-ansible-os-1858-1 2024-09-06 07:31:17,557 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/759dee24-e74e-407f-8c70-01a56cec7998 2024-09-06 07:31:17,567 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/9d14d545-41d8-49e2-a09b-203ee852d985 2024-09-06 07:31:18,801 - 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.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.462 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.462/2.312/4.162/1.850 ms') 2024-09-06 07:31:18,801 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57243748-08413402 passed 2024-09-06 07:31:18,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 07:31:18,950 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57243748-08413402, IP 195.0.77.131, Port 22 2024-09-06 07:31:19,126 - DEBUG - VM ctest-TestRoutersBasic-57243748-08413402 is ready for SSH connections 2024-09-06 07:31:19,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 07:31:19,126 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.0.77.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-06 07:31:19,127 - DEBUG - ping -s 56 -c 3 -W 1 195.0.77.131 2024-09-06 07:31:22,820 - DEBUG - PING 195.0.77.131 (195.0.77.131): 56 data bytes 64 bytes from 195.0.77.131: seq=0 ttl=62 time=6.571 ms 64 bytes from 195.0.77.131: seq=1 ttl=62 time=1.245 ms 64 bytes from 195.0.77.131: seq=2 ttl=62 time=0.927 ms --- 195.0.77.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.927/2.914/6.571 ms 2024-09-06 07:31:22,820 - INFO - Ping to IP 195.0.77.131 from VM ctest-TestRoutersBasic-57243748-51287037 passed 2024-09-06 07:31:22,820 - INFO - Deleting interface with subnet_id 101ad04c-dff0-4cd4-8dcd-45f591372523, port_id None from router c36633f3-be0e-4cb4-943a-4bd8b58c8911 2024-09-06 07:31:23,044 - INFO - Deleting VM ctest-TestRoutersBasic-57243748-08413402 2024-09-06 07:31:23,120 - INFO - Deleting VM ctest-TestRoutersBasic-57243748-51287037 2024-09-06 07:31:23,232 - INFO - Deleting VN ctest-ext_vn-65671729 2024-09-06 07:31:23,310 - DEBUG - VN bfb30275-da78-4e3b-acff-bb66e5093197 still in use: Unable to complete operation on network bfb30275-da78-4e3b-acff-bb66e5093197. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a018911a-ba5f-4b1c-9c2f-79e5b7ffa626'] 2024-09-06 07:31:23,310 - WARNING - Deleting VN ctest-ext_vn-65671729 failed..Will retry 2024-09-06 07:31:25,424 - DEBUG - Response for deleting network () 2024-09-06 07:31:25,424 - INFO - Deleting VN ctest-vn-80440152 2024-09-06 07:31:25,533 - DEBUG - Response for deleting network () 2024-09-06 07:31:25,787 - DEBUG - No XMPP flaps were noticed during the test
2024-09-06 07:31:25,787 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-06 07:31:25,787 - INFO - -------------------------------------------------------------------------------- 2024-09-06 07:31:26,473 - INFO - Deleted project: ctest-TestRoutersBasic-57243748, ID : 5155e4f3-7e0b-4a68-8c89-cfac42bc4684