2024-09-11 09:53:29,629 - INFO - Domain Default found not creating 2024-09-11 09:53:29,784 - INFO - Project ctest-TestRoutersBasic-84554768 not found, creating it 2024-09-11 09:53:30,260 - INFO - Created Project:ctest-TestRoutersBasic-84554768, ID : 4f910a47-aa9d-4a3c-839d-46d6c5790259 2024-09-11 09:53:31,822 - INFO - ================================================================================ 2024-09-11 09:53:31,822 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 09:53:31,822 - 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-11 09:53:32,076 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.6': '0'}} with 2024-09-11 09:53:32,076 - INFO - Initial checks done. Running the testcase now 2024-09-11 09:53:32,076 - INFO - 2024-09-11 09:53:32,781 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-84554768 2024-09-11 09:53:32,875 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-84554768 2024-09-11 09:53:33,198 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84554768', 'default']} 2024-09-11 09:53:33,483 - DEBUG - Response for create_network : {'network': {'id': 'f87315fa-3881-4473-843a-0879b83ed728', 'name': 'ctest-vn-13733439', 'tenant_id': '4f910a47aa9d4a3c839d46d6c5790259', 'project_id': '4f910a47aa9d4a3c839d46d6c5790259', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84554768', 'ctest-vn-13733439'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:53:33,638 - DEBUG - Response for create_subnet : {'subnet': {'id': '60981cdd-6af8-48b0-b387-daff4e3a3f60', 'name': '', 'tenant_id': '4f910a47aa9d4a3c839d46d6c5790259', 'network_id': 'f87315fa-3881-4473-843a-0879b83ed728', 'ip_version': 4, 'cidr': '86.7.44.64/26', 'allocation_pools': [{'start': '86.7.44.66', 'end': '86.7.44.126'}], 'gateway_ip': '86.7.44.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.7.44.66', 'tags': [], 'project_id': '4f910a47aa9d4a3c839d46d6c5790259'}} 2024-09-11 09:53:33,657 - INFO - Created VN ctest-vn-13733439 2024-09-11 09:53:33,711 - DEBUG - VN ctest-vn-13733439 UUID is f87315fa-3881-4473-843a-0879b83ed728 2024-09-11 09:53:34,011 - DEBUG - Response for create_network : {'network': {'id': '07fb2297-ff51-4c61-83af-c320ba6d13f6', 'name': 'ctest-ext_vn-72472142', 'tenant_id': '4f910a47aa9d4a3c839d46d6c5790259', 'project_id': '4f910a47aa9d4a3c839d46d6c5790259', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84554768', 'ctest-ext_vn-72472142'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:53:34,200 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c980d8e-cc44-479c-b38d-8671a0f97e16', 'name': '', 'tenant_id': '4f910a47aa9d4a3c839d46d6c5790259', 'network_id': '07fb2297-ff51-4c61-83af-c320ba6d13f6', 'ip_version': 4, 'cidr': '3.35.59.192/26', 'allocation_pools': [{'start': '3.35.59.194', 'end': '3.35.59.254'}], 'gateway_ip': '3.35.59.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.35.59.194', 'tags': [], 'project_id': '4f910a47aa9d4a3c839d46d6c5790259'}} 2024-09-11 09:53:34,219 - INFO - Created VN ctest-ext_vn-72472142 2024-09-11 09:53:34,271 - DEBUG - VN ctest-ext_vn-72472142 UUID is 07fb2297-ff51-4c61-83af-c320ba6d13f6 2024-09-11 09:53:34,426 - DEBUG - Services list from nova: [, , ] 2024-09-11 09:53:35,434 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1892-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1892-1) 2024-09-11 09:53:36,566 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1892-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1892-1) 2024-09-11 09:53:36,643 - INFO - Setting gateway for router 63e65f54-11cb-4da8-b8f6-3c5b066d1bcd to network 07fb2297-ff51-4c61-83af-c320ba6d13f6 2024-09-11 09:53:36,705 - INFO - Adding interface with subnet_id 60981cdd-6af8-48b0-b387-daff4e3a3f60, port_id None to router 63e65f54-11cb-4da8-b8f6-3c5b066d1bcd 2024-09-11 09:53:37,134 - INFO - Waiting for VM ctest-TestRoutersBasic-84554768-41317174 to be up.. 2024-09-11 09:53:37,309 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 09:53:42,386 - DEBUG - VM is in ACTIVE state now 2024-09-11 09:53:42,387 - INFO - VM name : ctest-TestRoutersBasic-84554768-41317174 2024-09-11 09:53:42,462 - DEBUG - VM ctest-TestRoutersBasic-84554768-41317174 ID is 12edbf9d-a236-409e-b1e5-eba29e84845d 2024-09-11 09:53:42,480 - DEBUG - VM ctest-TestRoutersBasic-84554768-41317174 launched on Node cn-jenkins-deploy-platform-ansible-os-1892-1 2024-09-11 09:53:42,561 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/12edbf9d-a236-409e-b1e5-eba29e84845d 2024-09-11 09:53:42,856 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/12edbf9d-a236-409e-b1e5-eba29e84845d 2024-09-11 09:53:42,889 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/f903ccd6-2442-49cf-ba92-44bea21b7717 2024-09-11 09:53:46,147 - 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 1019ms') 2024-09-11 09:53:46,147 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84554768-41317174 failed! 2024-09-11 09:53:46,203 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-84554768:ctest-vn-13733439 is 86.7.44.65 and allocation pool is NOT set 2024-09-11 09:53:48,258 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.560 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.560/1.869/3.179/1.309 ms') 2024-09-11 09:53:48,258 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84554768-41317174 passed 2024-09-11 09:53:48,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:53:48,435 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84554768-41317174, IP 86.7.44.67, Port 22 2024-09-11 09:53:48,606 - DEBUG - VM ctest-TestRoutersBasic-84554768-41317174 is ready for SSH connections 2024-09-11 09:53:48,606 - INFO - Waiting for VM ctest-TestRoutersBasic-84554768-93506723 to be up.. 2024-09-11 09:53:48,713 - DEBUG - VM is in ACTIVE state now 2024-09-11 09:53:48,713 - INFO - VM name : ctest-TestRoutersBasic-84554768-93506723 2024-09-11 09:53:48,795 - DEBUG - VM ctest-TestRoutersBasic-84554768-93506723 ID is 527e7848-beb8-4cfd-979b-392d267cff49 2024-09-11 09:53:48,795 - DEBUG - VM ctest-TestRoutersBasic-84554768-93506723 launched on Node cn-jenkins-deploy-platform-ansible-os-1892-1 2024-09-11 09:53:48,878 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/527e7848-beb8-4cfd-979b-392d267cff49 2024-09-11 09:53:48,887 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/2ae39c0f-7d5a-4138-bfb2-55013d01ea98 2024-09-11 09:53:50,131 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.333 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.333/1.573/2.814/1.240 ms') 2024-09-11 09:53:50,131 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-84554768-93506723 passed 2024-09-11 09:53:50,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:53:50,283 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84554768-93506723, IP 3.35.59.195, Port 22 2024-09-11 09:53:50,438 - DEBUG - VM ctest-TestRoutersBasic-84554768-93506723 is ready for SSH connections 2024-09-11 09:53:50,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:53:50,438 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.35.59.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-11 09:53:50,438 - DEBUG - ping -s 56 -c 3 -W 1 3.35.59.195 2024-09-11 09:53:54,117 - DEBUG - PING 3.35.59.195 (3.35.59.195): 56 data bytes 64 bytes from 3.35.59.195: seq=0 ttl=62 time=4.781 ms 64 bytes from 3.35.59.195: seq=1 ttl=62 time=0.840 ms 64 bytes from 3.35.59.195: seq=2 ttl=62 time=0.963 ms --- 3.35.59.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.840/2.194/4.781 ms 2024-09-11 09:53:54,117 - INFO - Ping to IP 3.35.59.195 from VM ctest-TestRoutersBasic-84554768-41317174 passed 2024-09-11 09:53:54,117 - INFO - Deleting interface with subnet_id 60981cdd-6af8-48b0-b387-daff4e3a3f60, port_id None from router 63e65f54-11cb-4da8-b8f6-3c5b066d1bcd 2024-09-11 09:53:54,337 - INFO - Deleting VM ctest-TestRoutersBasic-84554768-93506723 2024-09-11 09:53:54,398 - INFO - Deleting VM ctest-TestRoutersBasic-84554768-41317174 2024-09-11 09:53:54,473 - INFO - Deleting VN ctest-ext_vn-72472142 2024-09-11 09:53:54,541 - DEBUG - VN 07fb2297-ff51-4c61-83af-c320ba6d13f6 still in use: Unable to complete operation on network 07fb2297-ff51-4c61-83af-c320ba6d13f6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1cd9da01-856f-42a3-b0b7-c45291a2d538'] 2024-09-11 09:53:54,542 - WARNING - Deleting VN ctest-ext_vn-72472142 failed..Will retry 2024-09-11 09:53:56,642 - DEBUG - Response for deleting network () 2024-09-11 09:53:56,642 - INFO - Deleting VN ctest-vn-13733439 2024-09-11 09:53:56,746 - DEBUG - Response for deleting network () 2024-09-11 09:53:57,001 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 09:53:57,001 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-11 09:53:57,001 - INFO - -------------------------------------------------------------------------------- 2024-09-11 09:53:57,656 - INFO - Deleted project: ctest-TestRoutersBasic-84554768, ID : 4f910a47-aa9d-4a3c-839d-46d6c5790259