2024-11-07 15:39:57,995 - INFO - Domain Default found not creating 2024-11-07 15:39:58,169 - INFO - Project ctest-TestRoutersBasic-15168539 not found, creating it 2024-11-07 15:39:58,683 - INFO - Created Project:ctest-TestRoutersBasic-15168539, ID : 69818cb6-2243-49b0-ba6f-287d3a7df1bf 2024-11-07 15:40:00,386 - INFO - ================================================================================ 2024-11-07 15:40:00,387 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 15:40:00,387 - 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-07 15:40:00,650 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with 2024-11-07 15:40:00,650 - INFO - Initial checks done. Running the testcase now 2024-11-07 15:40:00,650 - INFO - 2024-11-07 15:40:01,484 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15168539 2024-11-07 15:40:01,587 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15168539 2024-11-07 15:40:01,971 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15168539', 'default']} 2024-11-07 15:40:02,498 - DEBUG - Response for create_network : {'network': {'id': 'ebe43f36-15db-4ffd-a295-7424867e6f05', 'name': 'ctest-vn-38599335', 'tenant_id': '69818cb6224349b0ba6f287d3a7df1bf', 'project_id': '69818cb6224349b0ba6f287d3a7df1bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15168539', 'ctest-vn-38599335'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:02,735 - DEBUG - Response for create_subnet : {'subnet': {'id': '76091c37-24c9-450b-acb8-87521fdf8a7e', 'name': '', 'tenant_id': '69818cb6224349b0ba6f287d3a7df1bf', 'network_id': 'ebe43f36-15db-4ffd-a295-7424867e6f05', 'ip_version': 4, 'cidr': '55.63.245.64/26', 'allocation_pools': [{'start': '55.63.245.66', 'end': '55.63.245.126'}], 'gateway_ip': '55.63.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.63.245.66', 'tags': [], 'project_id': '69818cb6224349b0ba6f287d3a7df1bf'}} 2024-11-07 15:40:02,761 - INFO - Created VN ctest-vn-38599335 2024-11-07 15:40:02,823 - DEBUG - VN ctest-vn-38599335 UUID is ebe43f36-15db-4ffd-a295-7424867e6f05 2024-11-07 15:40:03,228 - DEBUG - Response for create_network : {'network': {'id': '57d7442e-4639-4125-a76c-bdf332814e59', 'name': 'ctest-ext_vn-08947640', 'tenant_id': '69818cb6224349b0ba6f287d3a7df1bf', 'project_id': '69818cb6224349b0ba6f287d3a7df1bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15168539', 'ctest-ext_vn-08947640'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:03,460 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2893095-29f3-485b-b03f-8823a04a12fb', 'name': '', 'tenant_id': '69818cb6224349b0ba6f287d3a7df1bf', 'network_id': '57d7442e-4639-4125-a76c-bdf332814e59', 'ip_version': 4, 'cidr': '160.113.32.0/26', 'allocation_pools': [{'start': '160.113.32.2', 'end': '160.113.32.62'}], 'gateway_ip': '160.113.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.113.32.2', 'tags': [], 'project_id': '69818cb6224349b0ba6f287d3a7df1bf'}} 2024-11-07 15:40:03,484 - INFO - Created VN ctest-ext_vn-08947640 2024-11-07 15:40:03,547 - DEBUG - VN ctest-ext_vn-08947640 UUID is 57d7442e-4639-4125-a76c-bdf332814e59 2024-11-07 15:40:03,756 - DEBUG - Services list from nova: [, , ] 2024-11-07 15:40:05,019 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2218-1) 2024-11-07 15:40:06,414 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2218-1) 2024-11-07 15:40:06,514 - INFO - Setting gateway for router 79fa60c5-e4cb-4c23-a408-a9d33764c1ac to network 57d7442e-4639-4125-a76c-bdf332814e59 2024-11-07 15:40:06,594 - INFO - Adding interface with subnet_id 76091c37-24c9-450b-acb8-87521fdf8a7e, port_id None to router 79fa60c5-e4cb-4c23-a408-a9d33764c1ac 2024-11-07 15:40:07,173 - INFO - Waiting for VM ctest-TestRoutersBasic-15168539-16249149 to be up.. 2024-11-07 15:40:07,421 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 15:40:12,509 - DEBUG - VM is in ACTIVE state now 2024-11-07 15:40:12,509 - INFO - VM name : ctest-TestRoutersBasic-15168539-16249149 2024-11-07 15:40:12,598 - DEBUG - VM ctest-TestRoutersBasic-15168539-16249149 ID is e07e14de-0dc1-46be-a6c8-b51d161515fc 2024-11-07 15:40:12,621 - DEBUG - VM ctest-TestRoutersBasic-15168539-16249149 launched on Node cn-jenkins-deploy-platform-ansible-os-2218-1 2024-11-07 15:40:12,713 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/e07e14de-0dc1-46be-a6c8-b51d161515fc 2024-11-07 15:40:13,061 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/e07e14de-0dc1-46be-a6c8-b51d161515fc 2024-11-07 15:40:13,101 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/4f05cf4c-661d-47a7-b312-9c9f5311f8a9 2024-11-07 15:40:16,391 - 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-11-07 15:40:16,391 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15168539-16249149 failed! 2024-11-07 15:40:16,455 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15168539:ctest-vn-38599335 is 55.63.245.65 and allocation pool is NOT set 2024-11-07 15:40:18,521 - 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=5.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.897 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.897/3.187/5.477/2.290 ms') 2024-11-07 15:40:18,521 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15168539-16249149 passed 2024-11-07 15:40:18,683 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:40:18,683 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15168539-16249149, IP 55.63.245.67, Port 22 2024-11-07 15:40:18,858 - DEBUG - VM ctest-TestRoutersBasic-15168539-16249149 is ready for SSH connections 2024-11-07 15:40:18,858 - INFO - Waiting for VM ctest-TestRoutersBasic-15168539-08604076 to be up.. 2024-11-07 15:40:18,951 - DEBUG - VM is in ACTIVE state now 2024-11-07 15:40:18,951 - INFO - VM name : ctest-TestRoutersBasic-15168539-08604076 2024-11-07 15:40:19,033 - DEBUG - VM ctest-TestRoutersBasic-15168539-08604076 ID is bd661b56-91ef-4bea-96c1-fb9e393b6918 2024-11-07 15:40:19,034 - DEBUG - VM ctest-TestRoutersBasic-15168539-08604076 launched on Node cn-jenkins-deploy-platform-ansible-os-2218-1 2024-11-07 15:40:19,120 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/bd661b56-91ef-4bea-96c1-fb9e393b6918 2024-11-07 15:40:19,133 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/1f554ec6-b07c-43a6-a231-06a9a85c52b0 2024-11-07 15:40:20,397 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.476 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.476/1.980/3.485/1.504 ms') 2024-11-07 15:40:20,397 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15168539-08604076 passed 2024-11-07 15:40:20,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:40:20,555 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15168539-08604076, IP 160.113.32.3, Port 22 2024-11-07 15:40:20,715 - DEBUG - VM ctest-TestRoutersBasic-15168539-08604076 is ready for SSH connections 2024-11-07 15:40:20,715 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:40:20,716 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.113.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-11-07 15:40:20,716 - DEBUG - ping -s 56 -c 3 -W 1 160.113.32.3 2024-11-07 15:40:24,862 - DEBUG - PING 160.113.32.3 (160.113.32.3): 56 data bytes 64 bytes from 160.113.32.3: seq=0 ttl=62 time=7.950 ms 64 bytes from 160.113.32.3: seq=1 ttl=62 time=1.170 ms 64 bytes from 160.113.32.3: seq=2 ttl=62 time=1.088 ms --- 160.113.32.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.088/3.402/7.950 ms 2024-11-07 15:40:24,863 - INFO - Ping to IP 160.113.32.3 from VM ctest-TestRoutersBasic-15168539-16249149 passed 2024-11-07 15:40:24,863 - INFO - Deleting interface with subnet_id 76091c37-24c9-450b-acb8-87521fdf8a7e, port_id None from router 79fa60c5-e4cb-4c23-a408-a9d33764c1ac 2024-11-07 15:40:25,109 - INFO - Deleting VM ctest-TestRoutersBasic-15168539-08604076 2024-11-07 15:40:25,189 - INFO - Deleting VM ctest-TestRoutersBasic-15168539-16249149 2024-11-07 15:40:25,295 - INFO - Deleting VN ctest-ext_vn-08947640 2024-11-07 15:40:25,392 - DEBUG - VN 57d7442e-4639-4125-a76c-bdf332814e59 still in use: Unable to complete operation on network 57d7442e-4639-4125-a76c-bdf332814e59. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c622352c-f227-4026-b097-e1e63d723db1'] 2024-11-07 15:40:25,392 - WARNING - Deleting VN ctest-ext_vn-08947640 failed..Will retry 2024-11-07 15:40:27,513 - DEBUG - Response for deleting network () 2024-11-07 15:40:27,513 - INFO - Deleting VN ctest-vn-38599335 2024-11-07 15:40:27,633 - DEBUG - Response for deleting network () 2024-11-07 15:40:27,889 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 15:40:27,890 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-07 15:40:27,890 - INFO - -------------------------------------------------------------------------------- 2024-11-07 15:40:28,675 - INFO - Deleted project: ctest-TestRoutersBasic-15168539, ID : 69818cb6-2243-49b0-ba6f-287d3a7df1bf