2024-09-05 15:06:43,544 - INFO - Domain Default found not creating 2024-09-05 15:06:43,705 - INFO - Project ctest-TestRoutersBasic-27955717 not found, creating it 2024-09-05 15:06:44,180 - INFO - Created Project:ctest-TestRoutersBasic-27955717, ID : d4b1978b-7c20-43a8-946f-dd8678915139 2024-09-05 15:06:45,827 - INFO - ================================================================================ 2024-09-05 15:06:45,827 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-05 15:06:45,827 - 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-05 15:06:46,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.18': '0'}} with 2024-09-05 15:06:46,089 - INFO - Initial checks done. Running the testcase now 2024-09-05 15:06:46,089 - INFO - 2024-09-05 15:06:46,802 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27955717 2024-09-05 15:06:46,906 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27955717 2024-09-05 15:06:47,242 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27955717', 'default']} 2024-09-05 15:06:47,557 - DEBUG - Response for create_network : {'network': {'id': '26c47c2b-ef6d-46a2-8ae5-b369dec695ff', 'name': 'ctest-vn-88620428', 'tenant_id': 'd4b1978b7c2043a8946fdd8678915139', 'project_id': 'd4b1978b7c2043a8946fdd8678915139', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27955717', 'ctest-vn-88620428'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 15:06:47,730 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b405fa9b-705a-4fcc-9786-9bf33c931c0b', 'name': '', 'tenant_id': 'd4b1978b7c2043a8946fdd8678915139', 'network_id': '26c47c2b-ef6d-46a2-8ae5-b369dec695ff', 'ip_version': 4, 'cidr': '45.70.34.64/26', 'allocation_pools': [{'start': '45.70.34.66', 'end': '45.70.34.126'}], 'gateway_ip': '45.70.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.70.34.66', 'tags': [], 'project_id': 'd4b1978b7c2043a8946fdd8678915139'}} 2024-09-05 15:06:47,753 - INFO - Created VN ctest-vn-88620428 2024-09-05 15:06:47,806 - DEBUG - VN ctest-vn-88620428 UUID is 26c47c2b-ef6d-46a2-8ae5-b369dec695ff 2024-09-05 15:06:48,186 - DEBUG - Response for create_network : {'network': {'id': '00dfb6ec-2817-4a21-bfec-fd3f39a25b82', 'name': 'ctest-ext_vn-66903919', 'tenant_id': 'd4b1978b7c2043a8946fdd8678915139', 'project_id': 'd4b1978b7c2043a8946fdd8678915139', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27955717', 'ctest-ext_vn-66903919'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 15:06:48,343 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c440ce83-0c6f-44df-8a23-a1eaaf6041f5', 'name': '', 'tenant_id': 'd4b1978b7c2043a8946fdd8678915139', 'network_id': '00dfb6ec-2817-4a21-bfec-fd3f39a25b82', 'ip_version': 4, 'cidr': '194.10.146.64/26', 'allocation_pools': [{'start': '194.10.146.66', 'end': '194.10.146.126'}], 'gateway_ip': '194.10.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.10.146.66', 'tags': [], 'project_id': 'd4b1978b7c2043a8946fdd8678915139'}} 2024-09-05 15:06:48,365 - INFO - Created VN ctest-ext_vn-66903919 2024-09-05 15:06:48,418 - DEBUG - VN ctest-ext_vn-66903919 UUID is 00dfb6ec-2817-4a21-bfec-fd3f39a25b82 2024-09-05 15:06:48,605 - DEBUG - Services list from nova: [, , ] 2024-09-05 15:06:49,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1856-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1856-1) 2024-09-05 15:06:50,925 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1856-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1856-1) 2024-09-05 15:06:51,001 - INFO - Setting gateway for router e23fc2cc-7d91-491f-8dfc-a3cbaa649c4d to network 00dfb6ec-2817-4a21-bfec-fd3f39a25b82 2024-09-05 15:06:51,080 - INFO - Adding interface with subnet_id b405fa9b-705a-4fcc-9786-9bf33c931c0b, port_id None to router e23fc2cc-7d91-491f-8dfc-a3cbaa649c4d 2024-09-05 15:06:51,484 - INFO - Waiting for VM ctest-TestRoutersBasic-27955717-29776946 to be up.. 2024-09-05 15:06:51,669 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 15:06:56,759 - DEBUG - VM is in ACTIVE state now 2024-09-05 15:06:56,759 - INFO - VM name : ctest-TestRoutersBasic-27955717-29776946 2024-09-05 15:06:56,845 - DEBUG - VM ctest-TestRoutersBasic-27955717-29776946 ID is 41aa8c0c-ce3b-464d-a88f-449ee99fab27 2024-09-05 15:06:56,864 - DEBUG - VM ctest-TestRoutersBasic-27955717-29776946 launched on Node cn-jenkins-deploy-platform-ansible-os-1856-1 2024-09-05 15:06:56,981 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/41aa8c0c-ce3b-464d-a88f-449ee99fab27 2024-09-05 15:06:57,280 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/41aa8c0c-ce3b-464d-a88f-449ee99fab27 2024-09-05 15:06:57,473 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/39c50936-80c5-4d7b-8353-10cb899d2794 2024-09-05 15:07:00,746 - 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 1025ms') 2024-09-05 15:07:00,747 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27955717-29776946 failed! 2024-09-05 15:07:00,802 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27955717:ctest-vn-88620428 is 45.70.34.65 and allocation pool is NOT set 2024-09-05 15:07:02,866 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.631 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.631/1.736/2.841/1.105 ms') 2024-09-05 15:07:02,867 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27955717-29776946 passed 2024-09-05 15:07:03,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 15:07:03,018 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27955717-29776946, IP 45.70.34.67, Port 22 2024-09-05 15:07:03,177 - DEBUG - VM ctest-TestRoutersBasic-27955717-29776946 is ready for SSH connections 2024-09-05 15:07:03,177 - INFO - Waiting for VM ctest-TestRoutersBasic-27955717-58094208 to be up.. 2024-09-05 15:07:03,269 - DEBUG - VM is in ACTIVE state now 2024-09-05 15:07:03,269 - INFO - VM name : ctest-TestRoutersBasic-27955717-58094208 2024-09-05 15:07:03,354 - DEBUG - VM ctest-TestRoutersBasic-27955717-58094208 ID is 5fe6d983-054e-4594-ba9e-3a8c36cf5366 2024-09-05 15:07:03,354 - DEBUG - VM ctest-TestRoutersBasic-27955717-58094208 launched on Node cn-jenkins-deploy-platform-ansible-os-1856-1 2024-09-05 15:07:03,445 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/5fe6d983-054e-4594-ba9e-3a8c36cf5366 2024-09-05 15:07:03,456 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/25ecd613-f59d-4c2e-947a-60409ec3b729 2024-09-05 15:07:04,695 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.538 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.538/2.209/3.880/1.671 ms') 2024-09-05 15:07:04,695 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27955717-58094208 passed 2024-09-05 15:07:04,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 15:07:04,846 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27955717-58094208, IP 194.10.146.67, Port 22 2024-09-05 15:07:04,997 - DEBUG - VM ctest-TestRoutersBasic-27955717-58094208 is ready for SSH connections 2024-09-05 15:07:04,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 15:07:04,997 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 194.10.146.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-05 15:07:04,997 - DEBUG - ping -s 56 -c 3 -W 1 194.10.146.67 2024-09-05 15:07:08,952 - DEBUG - PING 194.10.146.67 (194.10.146.67): 56 data bytes 64 bytes from 194.10.146.67: seq=0 ttl=62 time=7.271 ms 64 bytes from 194.10.146.67: seq=1 ttl=62 time=0.940 ms 64 bytes from 194.10.146.67: seq=2 ttl=62 time=0.947 ms --- 194.10.146.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.940/3.052/7.271 ms 2024-09-05 15:07:08,953 - INFO - Ping to IP 194.10.146.67 from VM ctest-TestRoutersBasic-27955717-29776946 passed 2024-09-05 15:07:08,953 - INFO - Deleting interface with subnet_id b405fa9b-705a-4fcc-9786-9bf33c931c0b, port_id None from router e23fc2cc-7d91-491f-8dfc-a3cbaa649c4d 2024-09-05 15:07:09,167 - INFO - Deleting VM ctest-TestRoutersBasic-27955717-58094208 2024-09-05 15:07:09,231 - INFO - Deleting VM ctest-TestRoutersBasic-27955717-29776946 2024-09-05 15:07:09,306 - INFO - Deleting VN ctest-ext_vn-66903919 2024-09-05 15:07:09,375 - DEBUG - VN 00dfb6ec-2817-4a21-bfec-fd3f39a25b82 still in use: Unable to complete operation on network 00dfb6ec-2817-4a21-bfec-fd3f39a25b82. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f979ef17-b149-412a-bfc0-9b3544d14d0d'] 2024-09-05 15:07:09,375 - WARNING - Deleting VN ctest-ext_vn-66903919 failed..Will retry 2024-09-05 15:07:11,491 - DEBUG - Response for deleting network () 2024-09-05 15:07:11,491 - INFO - Deleting VN ctest-vn-88620428 2024-09-05 15:07:11,603 - DEBUG - Response for deleting network () 2024-09-05 15:07:11,864 - DEBUG - No XMPP flaps were noticed during the test 2024-09-05 15:07:11,864 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-05 15:07:11,864 - INFO - -------------------------------------------------------------------------------- 2024-09-05 15:07:12,545 - INFO - Deleted project: ctest-TestRoutersBasic-27955717, ID : d4b1978b-7c20-43a8-946f-dd8678915139