2024-09-06 16:19:11,202 - INFO - Domain Default found not creating 2024-09-06 16:19:11,367 - INFO - Project ctest-TestRoutersBasic-18031117 not found, creating it 2024-09-06 16:19:11,839 - INFO - Created Project:ctest-TestRoutersBasic-18031117, ID : 4932b9fb-9a67-4931-9eb9-02a2296b87d2 2024-09-06 16:19:13,995 - INFO - ================================================================================ 2024-09-06 16:19:13,995 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-06 16:19:13,995 - 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-06 16:19:14,248 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.23': '0'}} with 2024-09-06 16:19:14,248 - INFO - Initial checks done. Running the testcase now 2024-09-06 16:19:14,248 - INFO - 2024-09-06 16:19:14,937 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-18031117 2024-09-06 16:19:15,034 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-18031117 2024-09-06 16:19:15,354 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18031117', 'default']} 2024-09-06 16:19:15,658 - DEBUG - Response for create_network : {'network': {'id': '0f54ca33-4f04-4794-9615-e0c87d3439e1', 'name': 'ctest-vn-41582075', 'tenant_id': '4932b9fb9a6749319eb902a2296b87d2', 'project_id': '4932b9fb9a6749319eb902a2296b87d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18031117', 'ctest-vn-41582075'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:15,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '09bb5865-01cb-46b1-9109-4d3bf9c28a78', 'name': '', 'tenant_id': '4932b9fb9a6749319eb902a2296b87d2', 'network_id': '0f54ca33-4f04-4794-9615-e0c87d3439e1', 'ip_version': 4, 'cidr': '69.9.183.64/26', 'allocation_pools': [{'start': '69.9.183.66', 'end': '69.9.183.126'}], 'gateway_ip': '69.9.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.9.183.66', 'tags': [], 'project_id': '4932b9fb9a6749319eb902a2296b87d2'}} 2024-09-06 16:19:15,877 - INFO - Created VN ctest-vn-41582075 2024-09-06 16:19:15,930 - DEBUG - VN ctest-vn-41582075 UUID is 0f54ca33-4f04-4794-9615-e0c87d3439e1 2024-09-06 16:19:16,315 - DEBUG - Response for create_network : {'network': {'id': '092e0562-94ef-404d-a618-ba308dd8a2eb', 'name': 'ctest-ext_vn-66887936', 'tenant_id': '4932b9fb9a6749319eb902a2296b87d2', 'project_id': '4932b9fb9a6749319eb902a2296b87d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18031117', 'ctest-ext_vn-66887936'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:16,546 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f103da16-a93b-4e13-b084-fd2814f8d744', 'name': '', 'tenant_id': '4932b9fb9a6749319eb902a2296b87d2', 'network_id': '092e0562-94ef-404d-a618-ba308dd8a2eb', 'ip_version': 4, 'cidr': '48.83.118.128/26', 'allocation_pools': [{'start': '48.83.118.130', 'end': '48.83.118.190'}], 'gateway_ip': '48.83.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.83.118.130', 'tags': [], 'project_id': '4932b9fb9a6749319eb902a2296b87d2'}} 2024-09-06 16:19:16,564 - INFO - Created VN ctest-ext_vn-66887936 2024-09-06 16:19:16,614 - DEBUG - VN ctest-ext_vn-66887936 UUID is 092e0562-94ef-404d-a618-ba308dd8a2eb 2024-09-06 16:19:16,795 - DEBUG - Services list from nova: [, , ] 2024-09-06 16:19:17,836 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1864-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1864-1) 2024-09-06 16:19:18,938 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1864-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1864-1) 2024-09-06 16:19:19,016 - INFO - Setting gateway for router b3d0d2fc-8262-4612-b0b0-a4bf214a3de8 to network 092e0562-94ef-404d-a618-ba308dd8a2eb 2024-09-06 16:19:19,100 - INFO - Adding interface with subnet_id 09bb5865-01cb-46b1-9109-4d3bf9c28a78, port_id None to router b3d0d2fc-8262-4612-b0b0-a4bf214a3de8 2024-09-06 16:19:19,462 - INFO - Waiting for VM ctest-TestRoutersBasic-18031117-68445354 to be up.. 2024-09-06 16:19:19,563 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 16:19:24,646 - DEBUG - VM is in ACTIVE state now 2024-09-06 16:19:24,646 - INFO - VM name : ctest-TestRoutersBasic-18031117-68445354 2024-09-06 16:19:24,751 - DEBUG - VM ctest-TestRoutersBasic-18031117-68445354 ID is 11efce0a-e789-4300-90e1-20e1e695170b 2024-09-06 16:19:24,784 - DEBUG - VM ctest-TestRoutersBasic-18031117-68445354 launched on Node cn-jenkins-deploy-platform-ansible-os-1864-1 2024-09-06 16:19:24,890 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine/11efce0a-e789-4300-90e1-20e1e695170b 2024-09-06 16:19:25,193 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine/11efce0a-e789-4300-90e1-20e1e695170b 2024-09-06 16:19:25,239 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine-interface/b5e97ad7-48bb-433c-ab9e-884cf7122095 2024-09-06 16:19:28,504 - 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-06 16:19:28,504 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18031117-68445354 failed! 2024-09-06 16:19:28,558 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-18031117:ctest-vn-41582075 is 69.9.183.65 and allocation pool is NOT set 2024-09-06 16:19:30,617 - 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.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.407 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.407/1.504/2.601/1.097 ms') 2024-09-06 16:19:30,617 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18031117-68445354 passed 2024-09-06 16:19:30,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:19:30,770 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18031117-68445354, IP 69.9.183.67, Port 22 2024-09-06 16:19:30,945 - DEBUG - VM ctest-TestRoutersBasic-18031117-68445354 is ready for SSH connections 2024-09-06 16:19:30,945 - INFO - Waiting for VM ctest-TestRoutersBasic-18031117-73027976 to be up.. 2024-09-06 16:19:31,028 - DEBUG - VM is in ACTIVE state now 2024-09-06 16:19:31,028 - INFO - VM name : ctest-TestRoutersBasic-18031117-73027976 2024-09-06 16:19:31,106 - DEBUG - VM ctest-TestRoutersBasic-18031117-73027976 ID is 86a7a4d7-8700-4579-9da4-e617b1fa8fcf 2024-09-06 16:19:31,107 - DEBUG - VM ctest-TestRoutersBasic-18031117-73027976 launched on Node cn-jenkins-deploy-platform-ansible-os-1864-1 2024-09-06 16:19:31,183 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine/86a7a4d7-8700-4579-9da4-e617b1fa8fcf 2024-09-06 16:19:31,192 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine-interface/76ff20e9-c113-4773-b113-9ee9163c40b5 2024-09-06 16:19:32,439 - 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=4.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.411 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.411/2.308/4.205/1.897 ms') 2024-09-06 16:19:32,439 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-18031117-73027976 passed 2024-09-06 16:19:32,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:19:32,586 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18031117-73027976, IP 48.83.118.131, Port 22 2024-09-06 16:19:32,745 - DEBUG - VM ctest-TestRoutersBasic-18031117-73027976 is ready for SSH connections 2024-09-06 16:19:32,746 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:19:32,746 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.83.118.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.64, gateway password: c0ntrail123 2024-09-06 16:19:32,746 - DEBUG - ping -s 56 -c 3 -W 1 48.83.118.131 2024-09-06 16:19:36,431 - DEBUG - PING 48.83.118.131 (48.83.118.131): 56 data bytes 64 bytes from 48.83.118.131: seq=0 ttl=62 time=6.773 ms 64 bytes from 48.83.118.131: seq=1 ttl=62 time=0.854 ms 64 bytes from 48.83.118.131: seq=2 ttl=62 time=0.787 ms --- 48.83.118.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.787/2.804/6.773 ms 2024-09-06 16:19:36,432 - INFO - Ping to IP 48.83.118.131 from VM ctest-TestRoutersBasic-18031117-68445354 passed 2024-09-06 16:19:36,432 - INFO - Deleting interface with subnet_id 09bb5865-01cb-46b1-9109-4d3bf9c28a78, port_id None from router b3d0d2fc-8262-4612-b0b0-a4bf214a3de8 2024-09-06 16:19:36,643 - INFO - Deleting VM ctest-TestRoutersBasic-18031117-73027976 2024-09-06 16:19:36,715 - INFO - Deleting VM ctest-TestRoutersBasic-18031117-68445354 2024-09-06 16:19:36,798 - INFO - Deleting VN ctest-ext_vn-66887936 2024-09-06 16:19:36,868 - DEBUG - VN 092e0562-94ef-404d-a618-ba308dd8a2eb still in use: Unable to complete operation on network 092e0562-94ef-404d-a618-ba308dd8a2eb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cec02d52-a30d-4bb0-92ae-9cfb521fb37b'] 2024-09-06 16:19:36,868 - WARNING - Deleting VN ctest-ext_vn-66887936 failed..Will retry 2024-09-06 16:19:38,977 - DEBUG - Response for deleting network () 2024-09-06 16:19:38,977 - INFO - Deleting VN ctest-vn-41582075 2024-09-06 16:19:39,078 - DEBUG - Response for deleting network () 2024-09-06 16:19:39,332 - DEBUG - No XMPP flaps were noticed during the test 2024-09-06 16:19:39,332 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-06 16:19:39,332 - INFO - -------------------------------------------------------------------------------- 2024-09-06 16:19:39,998 - INFO - Deleted project: ctest-TestRoutersBasic-18031117, ID : 4932b9fb-9a67-4931-9eb9-02a2296b87d2