2024-11-10 13:31:50,105 - INFO - Domain Default found not creating 2024-11-10 13:31:50,296 - INFO - Project ctest-TestRoutersBasic-62287437 not found, creating it 2024-11-10 13:31:51,118 - INFO - Created Project:ctest-TestRoutersBasic-62287437, ID : 1ca5b11b-9549-4144-8cad-9ec857d9565c 2024-11-10 13:31:52,800 - INFO - ================================================================================ 2024-11-10 13:31:52,801 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 13:31:52,801 - 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 13:31:53,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.5': '0'}} with 2024-11-10 13:31:53,071 - INFO - Initial checks done. Running the testcase now 2024-11-10 13:31:53,072 - INFO - 2024-11-10 13:31:53,845 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-62287437 2024-11-10 13:31:53,948 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-62287437 2024-11-10 13:31:54,320 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62287437', 'default']} 2024-11-10 13:31:54,687 - DEBUG - Response for create_network : {'network': {'id': '6c727d7d-3a74-41d7-b446-be3c44b685bf', 'name': 'ctest-vn-51603281', 'tenant_id': '1ca5b11b954941448cad9ec857d9565c', 'project_id': '1ca5b11b954941448cad9ec857d9565c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62287437', 'ctest-vn-51603281'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 13:31:54,933 - DEBUG - Response for create_subnet : {'subnet': {'id': '0dbabca7-5cc7-461e-906c-15a70f1e956a', 'name': '', 'tenant_id': '1ca5b11b954941448cad9ec857d9565c', 'network_id': '6c727d7d-3a74-41d7-b446-be3c44b685bf', 'ip_version': 4, 'cidr': '89.65.172.64/26', 'allocation_pools': [{'start': '89.65.172.66', 'end': '89.65.172.126'}], 'gateway_ip': '89.65.172.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.65.172.66', 'tags': [], 'project_id': '1ca5b11b954941448cad9ec857d9565c'}} 2024-11-10 13:31:54,956 - INFO - Created VN ctest-vn-51603281 2024-11-10 13:31:55,020 - DEBUG - VN ctest-vn-51603281 UUID is 6c727d7d-3a74-41d7-b446-be3c44b685bf 2024-11-10 13:31:55,424 - DEBUG - Response for create_network : {'network': {'id': 'eae50e76-bae3-4506-be11-31ec9bd483e8', 'name': 'ctest-ext_vn-99784662', 'tenant_id': '1ca5b11b954941448cad9ec857d9565c', 'project_id': '1ca5b11b954941448cad9ec857d9565c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62287437', 'ctest-ext_vn-99784662'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 13:31:55,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f7d4731-fb3b-491c-93b7-083b7ef8fa81', 'name': '', 'tenant_id': '1ca5b11b954941448cad9ec857d9565c', 'network_id': 'eae50e76-bae3-4506-be11-31ec9bd483e8', 'ip_version': 4, 'cidr': '183.29.188.0/26', 'allocation_pools': [{'start': '183.29.188.2', 'end': '183.29.188.62'}], 'gateway_ip': '183.29.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.29.188.2', 'tags': [], 'project_id': '1ca5b11b954941448cad9ec857d9565c'}} 2024-11-10 13:31:55,617 - INFO - Created VN ctest-ext_vn-99784662 2024-11-10 13:31:55,684 - DEBUG - VN ctest-ext_vn-99784662 UUID is eae50e76-bae3-4506-be11-31ec9bd483e8 2024-11-10 13:31:55,899 - DEBUG - Services list from nova: [, , ] 2024-11-10 13:31:57,029 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2250-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2250-1) 2024-11-10 13:31:58,224 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2250-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2250-1) 2024-11-10 13:31:58,320 - INFO - Setting gateway for router 4590bb8b-b45e-4233-9b92-45fca461a8ff to network eae50e76-bae3-4506-be11-31ec9bd483e8 2024-11-10 13:31:58,396 - INFO - Adding interface with subnet_id 0dbabca7-5cc7-461e-906c-15a70f1e956a, port_id None to router 4590bb8b-b45e-4233-9b92-45fca461a8ff 2024-11-10 13:31:58,846 - INFO - Waiting for VM ctest-TestRoutersBasic-62287437-90601487 to be up.. 2024-11-10 13:31:59,016 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 13:32:04,109 - DEBUG - VM is in ACTIVE state now 2024-11-10 13:32:04,110 - INFO - VM name : ctest-TestRoutersBasic-62287437-90601487 2024-11-10 13:32:04,211 - DEBUG - VM ctest-TestRoutersBasic-62287437-90601487 ID is 354c8106-5e0a-4b80-874e-b551930459b6 2024-11-10 13:32:04,234 - DEBUG - VM ctest-TestRoutersBasic-62287437-90601487 launched on Node cn-jenkins-deploy-platform-ansible-os-2250-1 2024-11-10 13:32:04,332 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/354c8106-5e0a-4b80-874e-b551930459b6 2024-11-10 13:32:04,647 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/354c8106-5e0a-4b80-874e-b551930459b6 2024-11-10 13:32:04,689 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/6938d324-56b2-46ad-aa67-c1442fe38172 2024-11-10 13:32:07,970 - 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 1014ms') 2024-11-10 13:32:07,970 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62287437-90601487 failed! 2024-11-10 13:32:08,032 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62287437:ctest-vn-51603281 is 89.65.172.65 and allocation pool is NOT set 2024-11-10 13:32:10,098 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.916 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.916/2.315/3.714/1.399 ms') 2024-11-10 13:32:10,098 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62287437-90601487 passed 2024-11-10 13:32:10,256 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 13:32:10,256 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62287437-90601487, IP 89.65.172.67, Port 22 2024-11-10 13:32:10,416 - DEBUG - VM ctest-TestRoutersBasic-62287437-90601487 is ready for SSH connections 2024-11-10 13:32:10,416 - INFO - Waiting for VM ctest-TestRoutersBasic-62287437-14317701 to be up.. 2024-11-10 13:32:10,527 - DEBUG - VM is in ACTIVE state now 2024-11-10 13:32:10,527 - INFO - VM name : ctest-TestRoutersBasic-62287437-14317701 2024-11-10 13:32:10,630 - DEBUG - VM ctest-TestRoutersBasic-62287437-14317701 ID is 96eb4bed-ba4a-445f-a3d2-a022177f86cc 2024-11-10 13:32:10,630 - DEBUG - VM ctest-TestRoutersBasic-62287437-14317701 launched on Node cn-jenkins-deploy-platform-ansible-os-2250-1 2024-11-10 13:32:10,739 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/96eb4bed-ba4a-445f-a3d2-a022177f86cc 2024-11-10 13:32:10,752 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/b4652319-2dfa-4568-93ce-06627cf5949d 2024-11-10 13:32:12,028 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.555 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.555/1.816/3.077/1.261 ms') 2024-11-10 13:32:12,029 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-62287437-14317701 passed 2024-11-10 13:32:12,188 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 13:32:12,188 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62287437-14317701, IP 183.29.188.3, Port 22 2024-11-10 13:32:12,354 - DEBUG - VM ctest-TestRoutersBasic-62287437-14317701 is ready for SSH connections 2024-11-10 13:32:12,354 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 13:32:12,354 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.29.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-11-10 13:32:12,354 - DEBUG - ping -s 56 -c 3 -W 1 183.29.188.3 2024-11-10 13:32:16,081 - DEBUG - PING 183.29.188.3 (183.29.188.3): 56 data bytes 64 bytes from 183.29.188.3: seq=0 ttl=62 time=7.820 ms 64 bytes from 183.29.188.3: seq=1 ttl=62 time=0.985 ms 64 bytes from 183.29.188.3: seq=2 ttl=62 time=1.586 ms --- 183.29.188.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.985/3.463/7.820 ms 2024-11-10 13:32:16,081 - INFO - Ping to IP 183.29.188.3 from VM ctest-TestRoutersBasic-62287437-90601487 passed 2024-11-10 13:32:16,081 - INFO - Deleting interface with subnet_id 0dbabca7-5cc7-461e-906c-15a70f1e956a, port_id None from router 4590bb8b-b45e-4233-9b92-45fca461a8ff 2024-11-10 13:32:16,360 - INFO - Deleting VM ctest-TestRoutersBasic-62287437-14317701 2024-11-10 13:32:16,450 - INFO - Deleting VM ctest-TestRoutersBasic-62287437-90601487 2024-11-10 13:32:16,598 - INFO - Deleting VN ctest-ext_vn-99784662 2024-11-10 13:32:16,744 - DEBUG - VN eae50e76-bae3-4506-be11-31ec9bd483e8 still in use: Unable to complete operation on network eae50e76-bae3-4506-be11-31ec9bd483e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-90df3d2d-8a1d-4706-8ea5-2d2a38fafcc0'] 2024-11-10 13:32:16,744 - WARNING - Deleting VN ctest-ext_vn-99784662 failed..Will retry 2024-11-10 13:32:18,880 - DEBUG - Response for deleting network () 2024-11-10 13:32:18,881 - INFO - Deleting VN ctest-vn-51603281 2024-11-10 13:32:19,044 - DEBUG - Response for deleting network () 2024-11-10 13:32:19,299 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 13:32:19,299 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-10 13:32:19,299 - INFO - -------------------------------------------------------------------------------- 2024-11-10 13:32:20,058 - INFO - Deleted project: ctest-TestRoutersBasic-62287437, ID : 1ca5b11b-9549-4144-8cad-9ec857d9565c