2024-10-26 15:05:22,203 - INFO - Domain Default found not creating 2024-10-26 15:05:22,372 - INFO - Project ctest-TestRoutersBasic-38185365 not found, creating it 2024-10-26 15:05:22,902 - INFO - Created Project:ctest-TestRoutersBasic-38185365, ID : cbc053e2-d72d-4da1-83b8-790741bd5fe0 2024-10-26 15:05:24,538 - INFO - ================================================================================ 2024-10-26 15:05:24,538 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-26 15:05:24,538 - 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-10-26 15:05:24,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with 2024-10-26 15:05:24,798 - INFO - Initial checks done. Running the testcase now 2024-10-26 15:05:24,798 - INFO - 2024-10-26 15:05:25,578 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38185365 2024-10-26 15:05:25,678 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38185365 2024-10-26 15:05:26,034 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38185365', 'default']} 2024-10-26 15:05:26,382 - DEBUG - Response for create_network : {'network': {'id': '1c88bde3-03b8-43da-a78d-724c8cd6e4c8', 'name': 'ctest-vn-76159000', 'tenant_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'project_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38185365', 'ctest-vn-76159000'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:05:26,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '12e12e7f-39cf-419b-bb4e-7329338ca26e', 'name': '', 'tenant_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'network_id': '1c88bde3-03b8-43da-a78d-724c8cd6e4c8', 'ip_version': 4, 'cidr': '215.175.53.192/26', 'allocation_pools': [{'start': '215.175.53.194', 'end': '215.175.53.254'}], 'gateway_ip': '215.175.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.175.53.194', 'tags': [], 'project_id': 'cbc053e2d72d4da183b8790741bd5fe0'}} 2024-10-26 15:05:26,648 - INFO - Created VN ctest-vn-76159000 2024-10-26 15:05:26,710 - DEBUG - VN ctest-vn-76159000 UUID is 1c88bde3-03b8-43da-a78d-724c8cd6e4c8 2024-10-26 15:05:27,107 - DEBUG - Response for create_network : {'network': {'id': 'b4fd8a7f-ea76-4743-ad00-0df2be83a6a6', 'name': 'ctest-ext_vn-94734824', 'tenant_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'project_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38185365', 'ctest-ext_vn-94734824'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:05:27,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7408be6-bb0f-480e-8c53-c67b8710a1ba', 'name': '', 'tenant_id': 'cbc053e2d72d4da183b8790741bd5fe0', 'network_id': 'b4fd8a7f-ea76-4743-ad00-0df2be83a6a6', 'ip_version': 4, 'cidr': '111.41.234.64/26', 'allocation_pools': [{'start': '111.41.234.66', 'end': '111.41.234.126'}], 'gateway_ip': '111.41.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.41.234.66', 'tags': [], 'project_id': 'cbc053e2d72d4da183b8790741bd5fe0'}} 2024-10-26 15:05:27,324 - INFO - Created VN ctest-ext_vn-94734824 2024-10-26 15:05:27,382 - DEBUG - VN ctest-ext_vn-94734824 UUID is b4fd8a7f-ea76-4743-ad00-0df2be83a6a6 2024-10-26 15:05:27,563 - DEBUG - Services list from nova: [, , ] 2024-10-26 15:05:28,651 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2151-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2151-1) 2024-10-26 15:05:29,943 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2151-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2151-1) 2024-10-26 15:05:30,036 - INFO - Setting gateway for router 2c6fb39a-8dc2-453f-a208-c3851b2305f5 to network b4fd8a7f-ea76-4743-ad00-0df2be83a6a6 2024-10-26 15:05:30,122 - INFO - Adding interface with subnet_id 12e12e7f-39cf-419b-bb4e-7329338ca26e, port_id None to router 2c6fb39a-8dc2-453f-a208-c3851b2305f5 2024-10-26 15:05:30,616 - INFO - Waiting for VM ctest-TestRoutersBasic-38185365-03095021 to be up.. 2024-10-26 15:05:30,855 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 15:05:35,957 - DEBUG - VM is in ACTIVE state now 2024-10-26 15:05:35,958 - INFO - VM name : ctest-TestRoutersBasic-38185365-03095021 2024-10-26 15:05:36,056 - DEBUG - VM ctest-TestRoutersBasic-38185365-03095021 ID is 05fd1eb2-c355-47b1-9219-35bbd4db9940 2024-10-26 15:05:36,077 - DEBUG - VM ctest-TestRoutersBasic-38185365-03095021 launched on Node cn-jenkins-deploy-platform-ansible-os-2151-1 2024-10-26 15:05:36,165 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/05fd1eb2-c355-47b1-9219-35bbd4db9940 2024-10-26 15:05:36,470 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/05fd1eb2-c355-47b1-9219-35bbd4db9940 2024-10-26 15:05:36,510 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/c7a444f2-1141-49f6-9992-ad7c65bc0db1 2024-10-26 15:05:39,779 - 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 1018ms') 2024-10-26 15:05:39,779 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38185365-03095021 failed! 2024-10-26 15:05:39,838 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38185365:ctest-vn-76159000 is 215.175.53.193 and allocation pool is NOT set 2024-10-26 15:05:41,902 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.447 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.447/1.810/3.174/1.363 ms') 2024-10-26 15:05:41,902 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38185365-03095021 passed 2024-10-26 15:05:42,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:05:42,062 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38185365-03095021, IP 215.175.53.195, Port 22 2024-10-26 15:05:42,217 - DEBUG - VM ctest-TestRoutersBasic-38185365-03095021 is ready for SSH connections 2024-10-26 15:05:42,217 - INFO - Waiting for VM ctest-TestRoutersBasic-38185365-16935647 to be up.. 2024-10-26 15:05:42,302 - DEBUG - VM is in ACTIVE state now 2024-10-26 15:05:42,302 - INFO - VM name : ctest-TestRoutersBasic-38185365-16935647 2024-10-26 15:05:42,386 - DEBUG - VM ctest-TestRoutersBasic-38185365-16935647 ID is bde165c8-5d22-4494-8403-6b67ef1503c4 2024-10-26 15:05:42,386 - DEBUG - VM ctest-TestRoutersBasic-38185365-16935647 launched on Node cn-jenkins-deploy-platform-ansible-os-2151-1 2024-10-26 15:05:42,467 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/bde165c8-5d22-4494-8403-6b67ef1503c4 2024-10-26 15:05:42,479 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/6716f801-5142-4a83-9b91-fa6f3652871e 2024-10-26 15:05:43,733 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 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.414/2.076/3.739/1.662 ms') 2024-10-26 15:05:43,733 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38185365-16935647 passed 2024-10-26 15:05:43,890 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:05:43,890 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38185365-16935647, IP 111.41.234.67, Port 22 2024-10-26 15:05:44,045 - DEBUG - VM ctest-TestRoutersBasic-38185365-16935647 is ready for SSH connections 2024-10-26 15:05:44,045 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:05:44,045 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.41.234.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-26 15:05:44,045 - DEBUG - ping -s 56 -c 3 -W 1 111.41.234.67 2024-10-26 15:05:47,777 - DEBUG - PING 111.41.234.67 (111.41.234.67): 56 data bytes 64 bytes from 111.41.234.67: seq=0 ttl=62 time=5.399 ms 64 bytes from 111.41.234.67: seq=1 ttl=62 time=0.864 ms 64 bytes from 111.41.234.67: seq=2 ttl=62 time=1.443 ms --- 111.41.234.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.864/2.568/5.399 ms 2024-10-26 15:05:47,777 - INFO - Ping to IP 111.41.234.67 from VM ctest-TestRoutersBasic-38185365-03095021 passed 2024-10-26 15:05:47,778 - INFO - Deleting interface with subnet_id 12e12e7f-39cf-419b-bb4e-7329338ca26e, port_id None from router 2c6fb39a-8dc2-453f-a208-c3851b2305f5 2024-10-26 15:05:48,013 - INFO - Deleting VM ctest-TestRoutersBasic-38185365-16935647 2024-10-26 15:05:48,081 - INFO - Deleting VM ctest-TestRoutersBasic-38185365-03095021 2024-10-26 15:05:48,153 - INFO - Deleting VN ctest-ext_vn-94734824 2024-10-26 15:05:48,267 - DEBUG - VN b4fd8a7f-ea76-4743-ad00-0df2be83a6a6 still in use: Unable to complete operation on network b4fd8a7f-ea76-4743-ad00-0df2be83a6a6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ec48b71d-1e66-4fde-aa0a-709a7fe97d43'] 2024-10-26 15:05:48,267 - WARNING - Deleting VN ctest-ext_vn-94734824 failed..Will retry 2024-10-26 15:05:50,381 - DEBUG - Response for deleting network () 2024-10-26 15:05:50,382 - INFO - Deleting VN ctest-vn-76159000 2024-10-26 15:05:50,500 - DEBUG - Response for deleting network () 2024-10-26 15:05:50,766 - DEBUG - No XMPP flaps were noticed during the test 2024-10-26 15:05:50,766 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-26 15:05:50,766 - INFO - -------------------------------------------------------------------------------- 2024-10-26 15:05:51,519 - INFO - Deleted project: ctest-TestRoutersBasic-38185365, ID : cbc053e2-d72d-4da1-83b8-790741bd5fe0