2024-08-27 17:46:52,257 - INFO - Domain Default found not creating 2024-08-27 17:46:52,413 - INFO - Project ctest-TestRoutersBasic-15087901 not found, creating it 2024-08-27 17:46:52,892 - INFO - Created Project:ctest-TestRoutersBasic-15087901, ID : 391be6ab-2df9-466a-a69c-d730a2f4ad8a 2024-08-27 17:46:54,475 - INFO - ================================================================================ 2024-08-27 17:46:54,475 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 17:46:54,475 - 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 17:46:54,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.22': '0'}} with 2024-08-27 17:46:54,733 - INFO - Initial checks done. Running the testcase now 2024-08-27 17:46:54,734 - INFO - 2024-08-27 17:46:55,454 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15087901 2024-08-27 17:46:55,553 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15087901 2024-08-27 17:46:55,876 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15087901', 'default']} 2024-08-27 17:46:56,224 - DEBUG - Response for create_network : {'network': {'id': '5e705257-b8c9-4408-84dc-fdac7b75a4cc', 'name': 'ctest-vn-93478010', 'tenant_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'project_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15087901', 'ctest-vn-93478010'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:46:56,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '5341e5aa-34a2-4f5a-a069-3204c7b666fc', 'name': '', 'tenant_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'network_id': '5e705257-b8c9-4408-84dc-fdac7b75a4cc', 'ip_version': 4, 'cidr': '85.136.78.192/26', 'allocation_pools': [{'start': '85.136.78.194', 'end': '85.136.78.254'}], 'gateway_ip': '85.136.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.136.78.194', 'tags': [], 'project_id': '391be6ab2df9466aa69cd730a2f4ad8a'}} 2024-08-27 17:46:56,469 - INFO - Created VN ctest-vn-93478010 2024-08-27 17:46:56,521 - DEBUG - VN ctest-vn-93478010 UUID is 5e705257-b8c9-4408-84dc-fdac7b75a4cc 2024-08-27 17:46:56,925 - DEBUG - Response for create_network : {'network': {'id': '8235e340-8367-4c0a-a7a0-48d5341c4563', 'name': 'ctest-ext_vn-22309987', 'tenant_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'project_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15087901', 'ctest-ext_vn-22309987'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:46:57,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '5454af93-e20f-4eda-9506-2e3202bf22b3', 'name': '', 'tenant_id': '391be6ab2df9466aa69cd730a2f4ad8a', 'network_id': '8235e340-8367-4c0a-a7a0-48d5341c4563', 'ip_version': 4, 'cidr': '23.183.226.0/26', 'allocation_pools': [{'start': '23.183.226.2', 'end': '23.183.226.62'}], 'gateway_ip': '23.183.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.183.226.2', 'tags': [], 'project_id': '391be6ab2df9466aa69cd730a2f4ad8a'}} 2024-08-27 17:46:57,157 - INFO - Created VN ctest-ext_vn-22309987 2024-08-27 17:46:57,208 - DEBUG - VN ctest-ext_vn-22309987 UUID is 8235e340-8367-4c0a-a7a0-48d5341c4563 2024-08-27 17:46:57,380 - DEBUG - Services list from nova: [, , ] 2024-08-27 17:46:58,447 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1802-1) 2024-08-27 17:46:59,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1802-1) 2024-08-27 17:46:59,916 - INFO - Setting gateway for router cd97674a-5791-4fa5-b9de-0138931ecdc1 to network 8235e340-8367-4c0a-a7a0-48d5341c4563 2024-08-27 17:47:00,023 - INFO - Adding interface with subnet_id 5341e5aa-34a2-4f5a-a069-3204c7b666fc, port_id None to router cd97674a-5791-4fa5-b9de-0138931ecdc1 2024-08-27 17:47:00,444 - INFO - Waiting for VM ctest-TestRoutersBasic-15087901-96016450 to be up.. 2024-08-27 17:47:00,600 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 17:47:05,699 - DEBUG - VM is in ACTIVE state now 2024-08-27 17:47:05,699 - INFO - VM name : ctest-TestRoutersBasic-15087901-96016450 2024-08-27 17:47:05,797 - DEBUG - VM ctest-TestRoutersBasic-15087901-96016450 ID is f93aea2c-e5be-4d6e-92be-7eccdae9e436 2024-08-27 17:47:05,817 - DEBUG - VM ctest-TestRoutersBasic-15087901-96016450 launched on Node cn-jenkins-deploy-platform-ansible-os-1802-1 2024-08-27 17:47:05,909 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/f93aea2c-e5be-4d6e-92be-7eccdae9e436 2024-08-27 17:47:06,228 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/f93aea2c-e5be-4d6e-92be-7eccdae9e436 2024-08-27 17:47:06,266 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/645f169d-e922-4c2b-b5d9-dc42e008434e 2024-08-27 17:47:09,522 - 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 1006ms') 2024-08-27 17:47:09,522 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15087901-96016450 failed! 2024-08-27 17:47:09,576 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15087901:ctest-vn-93478010 is 85.136.78.193 and allocation pool is NOT set 2024-08-27 17:47:11,640 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.523 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.523/1.982/3.441/1.459 ms') 2024-08-27 17:47:11,640 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15087901-96016450 passed 2024-08-27 17:47:11,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:11,797 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15087901-96016450, IP 85.136.78.195, Port 22 2024-08-27 17:47:11,951 - DEBUG - VM ctest-TestRoutersBasic-15087901-96016450 is ready for SSH connections 2024-08-27 17:47:11,952 - INFO - Waiting for VM ctest-TestRoutersBasic-15087901-82271260 to be up.. 2024-08-27 17:47:12,049 - DEBUG - VM is in ACTIVE state now 2024-08-27 17:47:12,049 - INFO - VM name : ctest-TestRoutersBasic-15087901-82271260 2024-08-27 17:47:12,140 - DEBUG - VM ctest-TestRoutersBasic-15087901-82271260 ID is a2ae8ebf-1335-494f-a6ed-9b884f4f26e0 2024-08-27 17:47:12,141 - DEBUG - VM ctest-TestRoutersBasic-15087901-82271260 launched on Node cn-jenkins-deploy-platform-ansible-os-1802-1 2024-08-27 17:47:12,225 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/a2ae8ebf-1335-494f-a6ed-9b884f4f26e0 2024-08-27 17:47:12,235 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/a0c43f4a-21d4-455f-aa6b-a68c12417800 2024-08-27 17:47:13,478 - 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=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.510 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.510/1.743/2.977/1.233 ms') 2024-08-27 17:47:13,479 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15087901-82271260 passed 2024-08-27 17:47:13,636 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:13,637 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15087901-82271260, IP 23.183.226.3, Port 22 2024-08-27 17:47:13,796 - DEBUG - VM ctest-TestRoutersBasic-15087901-82271260 is ready for SSH connections 2024-08-27 17:47:13,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:13,796 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.183.226.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-08-27 17:47:13,797 - DEBUG - ping -s 56 -c 3 -W 1 23.183.226.3 2024-08-27 17:47:17,479 - DEBUG - PING 23.183.226.3 (23.183.226.3): 56 data bytes 64 bytes from 23.183.226.3: seq=0 ttl=62 time=4.663 ms 64 bytes from 23.183.226.3: seq=1 ttl=62 time=0.895 ms 64 bytes from 23.183.226.3: seq=2 ttl=62 time=0.902 ms --- 23.183.226.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.153/4.663 ms 2024-08-27 17:47:17,479 - INFO - Ping to IP 23.183.226.3 from VM ctest-TestRoutersBasic-15087901-96016450 passed 2024-08-27 17:47:17,479 - INFO - Deleting interface with subnet_id 5341e5aa-34a2-4f5a-a069-3204c7b666fc, port_id None from router cd97674a-5791-4fa5-b9de-0138931ecdc1 2024-08-27 17:47:17,701 - INFO - Deleting VM ctest-TestRoutersBasic-15087901-82271260 2024-08-27 17:47:17,778 - INFO - Deleting VM ctest-TestRoutersBasic-15087901-96016450 2024-08-27 17:47:17,854 - INFO - Deleting VN ctest-ext_vn-22309987 2024-08-27 17:47:17,934 - DEBUG - VN 8235e340-8367-4c0a-a7a0-48d5341c4563 still in use: Unable to complete operation on network 8235e340-8367-4c0a-a7a0-48d5341c4563. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2d9015ec-7b53-4ea2-b2dc-da11c33ea779'] 2024-08-27 17:47:17,934 - WARNING - Deleting VN ctest-ext_vn-22309987 failed..Will retry 2024-08-27 17:47:20,037 - DEBUG - Response for deleting network () 2024-08-27 17:47:20,038 - INFO - Deleting VN ctest-vn-93478010 2024-08-27 17:47:20,151 - DEBUG - Response for deleting network () 2024-08-27 17:47:20,407 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 17:47:20,407 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-27 17:47:20,408 - INFO - -------------------------------------------------------------------------------- 2024-08-27 17:47:21,082 - INFO - Deleted project: ctest-TestRoutersBasic-15087901, ID : 391be6ab-2df9-466a-a69c-d730a2f4ad8a