2024-09-17 07:07:53,337 - INFO - Domain Default found not creating 2024-09-17 07:07:53,531 - INFO - Project ctest-TestRoutersBasic-74486803 not found, creating it 2024-09-17 07:07:54,088 - INFO - Created Project:ctest-TestRoutersBasic-74486803, ID : 4b07517a-d866-4201-8c2f-71156cc88408 2024-09-17 07:07:56,111 - INFO - ================================================================================ 2024-09-17 07:07:56,112 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 07:07:56,112 - 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-17 07:07:56,382 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with 2024-09-17 07:07:56,382 - INFO - Initial checks done. Running the testcase now 2024-09-17 07:07:56,382 - INFO - 2024-09-17 07:07:57,230 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-74486803 2024-09-17 07:07:57,329 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-74486803 2024-09-17 07:07:57,677 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74486803', 'default']} 2024-09-17 07:07:58,006 - DEBUG - Response for create_network : {'network': {'id': '333615c8-2513-41d4-9fb9-32ac29ebad1a', 'name': 'ctest-vn-07032507', 'tenant_id': '4b07517ad86642018c2f71156cc88408', 'project_id': '4b07517ad86642018c2f71156cc88408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74486803', 'ctest-vn-07032507'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:07:58,201 - DEBUG - Response for create_subnet : {'subnet': {'id': '037108af-bfe0-4921-a0e8-c456545890bb', 'name': '', 'tenant_id': '4b07517ad86642018c2f71156cc88408', 'network_id': '333615c8-2513-41d4-9fb9-32ac29ebad1a', 'ip_version': 4, 'cidr': '185.79.84.128/26', 'allocation_pools': [{'start': '185.79.84.130', 'end': '185.79.84.190'}], 'gateway_ip': '185.79.84.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.79.84.130', 'tags': [], 'project_id': '4b07517ad86642018c2f71156cc88408'}} 2024-09-17 07:07:58,222 - INFO - Created VN ctest-vn-07032507 2024-09-17 07:07:58,281 - DEBUG - VN ctest-vn-07032507 UUID is 333615c8-2513-41d4-9fb9-32ac29ebad1a 2024-09-17 07:07:58,731 - DEBUG - Response for create_network : {'network': {'id': '04091b55-4cd9-4280-b011-b1b6db4f26a0', 'name': 'ctest-ext_vn-64887314', 'tenant_id': '4b07517ad86642018c2f71156cc88408', 'project_id': '4b07517ad86642018c2f71156cc88408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74486803', 'ctest-ext_vn-64887314'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:07:58,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b1af956-ab56-44fa-b300-5367f3570b6d', 'name': '', 'tenant_id': '4b07517ad86642018c2f71156cc88408', 'network_id': '04091b55-4cd9-4280-b011-b1b6db4f26a0', 'ip_version': 4, 'cidr': '37.175.49.64/26', 'allocation_pools': [{'start': '37.175.49.66', 'end': '37.175.49.126'}], 'gateway_ip': '37.175.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.175.49.66', 'tags': [], 'project_id': '4b07517ad86642018c2f71156cc88408'}} 2024-09-17 07:07:58,932 - INFO - Created VN ctest-ext_vn-64887314 2024-09-17 07:07:58,993 - DEBUG - VN ctest-ext_vn-64887314 UUID is 04091b55-4cd9-4280-b011-b1b6db4f26a0 2024-09-17 07:07:59,182 - DEBUG - Services list from nova: [, , ] 2024-09-17 07:08:00,380 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1955-1) 2024-09-17 07:08:01,685 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1955-1) 2024-09-17 07:08:01,785 - INFO - Setting gateway for router 69319228-c93b-4346-9b6e-cf1a27d78400 to network 04091b55-4cd9-4280-b011-b1b6db4f26a0 2024-09-17 07:08:01,855 - INFO - Adding interface with subnet_id 037108af-bfe0-4921-a0e8-c456545890bb, port_id None to router 69319228-c93b-4346-9b6e-cf1a27d78400 2024-09-17 07:08:02,203 - INFO - Waiting for VM ctest-TestRoutersBasic-74486803-23708426 to be up.. 2024-09-17 07:08:02,355 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 07:08:07,452 - DEBUG - VM is in ACTIVE state now 2024-09-17 07:08:07,452 - INFO - VM name : ctest-TestRoutersBasic-74486803-23708426 2024-09-17 07:08:07,541 - DEBUG - VM ctest-TestRoutersBasic-74486803-23708426 ID is 4df8a5b1-8c35-4c91-967f-006e596da12d 2024-09-17 07:08:07,561 - DEBUG - VM ctest-TestRoutersBasic-74486803-23708426 launched on Node cn-jenkins-deploy-platform-ansible-os-1955-1 2024-09-17 07:08:07,661 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/4df8a5b1-8c35-4c91-967f-006e596da12d 2024-09-17 07:08:08,005 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/4df8a5b1-8c35-4c91-967f-006e596da12d 2024-09-17 07:08:08,046 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/21f5ab3d-0aa7-4f9b-bab1-456d2a2fe5e2 2024-09-17 07:08:11,340 - 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 1022ms') 2024-09-17 07:08:11,340 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74486803-23708426 failed! 2024-09-17 07:08:11,409 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-74486803:ctest-vn-07032507 is 185.79.84.129 and allocation pool is NOT set 2024-09-17 07:08:13,473 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.517 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.517/2.209/3.901/1.692 ms') 2024-09-17 07:08:13,473 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74486803-23708426 passed 2024-09-17 07:08:13,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:08:13,637 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74486803-23708426, IP 185.79.84.131, Port 22 2024-09-17 07:08:13,808 - DEBUG - VM ctest-TestRoutersBasic-74486803-23708426 is ready for SSH connections 2024-09-17 07:08:13,808 - INFO - Waiting for VM ctest-TestRoutersBasic-74486803-50747552 to be up.. 2024-09-17 07:08:13,896 - DEBUG - VM is in ACTIVE state now 2024-09-17 07:08:13,896 - INFO - VM name : ctest-TestRoutersBasic-74486803-50747552 2024-09-17 07:08:13,989 - DEBUG - VM ctest-TestRoutersBasic-74486803-50747552 ID is 9a047cb3-1800-471e-935b-0fd3fd2b37b5 2024-09-17 07:08:13,989 - DEBUG - VM ctest-TestRoutersBasic-74486803-50747552 launched on Node cn-jenkins-deploy-platform-ansible-os-1955-1 2024-09-17 07:08:14,077 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/9a047cb3-1800-471e-935b-0fd3fd2b37b5 2024-09-17 07:08:14,087 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/e9179a9f-a4d8-4ca7-8c1f-cd3c9d37c613 2024-09-17 07:08:15,347 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.00 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 = 1.996/2.458/2.921/0.462 ms') 2024-09-17 07:08:15,347 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-74486803-50747552 passed 2024-09-17 07:08:15,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:08:15,513 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74486803-50747552, IP 37.175.49.67, Port 22 2024-09-17 07:08:15,676 - DEBUG - VM ctest-TestRoutersBasic-74486803-50747552 is ready for SSH connections 2024-09-17 07:08:15,676 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:08:15,677 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.175.49.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-17 07:08:15,677 - DEBUG - ping -s 56 -c 3 -W 1 37.175.49.67 2024-09-17 07:08:19,432 - DEBUG - PING 37.175.49.67 (37.175.49.67): 56 data bytes 64 bytes from 37.175.49.67: seq=0 ttl=62 time=12.865 ms 64 bytes from 37.175.49.67: seq=1 ttl=62 time=0.971 ms 64 bytes from 37.175.49.67: seq=2 ttl=62 time=1.038 ms --- 37.175.49.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.971/4.958/12.865 ms 2024-09-17 07:08:19,432 - INFO - Ping to IP 37.175.49.67 from VM ctest-TestRoutersBasic-74486803-23708426 passed 2024-09-17 07:08:19,432 - INFO - Deleting interface with subnet_id 037108af-bfe0-4921-a0e8-c456545890bb, port_id None from router 69319228-c93b-4346-9b6e-cf1a27d78400 2024-09-17 07:08:19,672 - INFO - Deleting VM ctest-TestRoutersBasic-74486803-50747552 2024-09-17 07:08:19,741 - INFO - Deleting VM ctest-TestRoutersBasic-74486803-23708426 2024-09-17 07:08:19,822 - INFO - Deleting VN ctest-ext_vn-64887314 2024-09-17 07:08:19,907 - DEBUG - VN 04091b55-4cd9-4280-b011-b1b6db4f26a0 still in use: Unable to complete operation on network 04091b55-4cd9-4280-b011-b1b6db4f26a0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cb2e5846-96a6-4296-9b63-270dac816620'] 2024-09-17 07:08:19,907 - WARNING - Deleting VN ctest-ext_vn-64887314 failed..Will retry 2024-09-17 07:08:22,025 - DEBUG - Response for deleting network () 2024-09-17 07:08:22,025 - INFO - Deleting VN ctest-vn-07032507 2024-09-17 07:08:22,140 - DEBUG - Response for deleting network () 2024-09-17 07:08:22,399 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 07:08:22,399 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-17 07:08:22,399 - INFO - -------------------------------------------------------------------------------- 2024-09-17 07:08:23,140 - INFO - Deleted project: ctest-TestRoutersBasic-74486803, ID : 4b07517a-d866-4201-8c2f-71156cc88408