2024-11-14 17:56:45,893 - INFO - Domain Default found not creating 2024-11-14 17:56:46,070 - INFO - Project ctest-TestRoutersBasic-28022676 not found, creating it 2024-11-14 17:56:46,583 - INFO - Created Project:ctest-TestRoutersBasic-28022676, ID : 34a33349-ead2-4aa6-b96a-0d5c20d315a7 2024-11-14 17:56:48,096 - INFO - ================================================================================ 2024-11-14 17:56:48,096 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-14 17:56:48,096 - 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-14 17:56:48,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.8': '0'}} with 2024-11-14 17:56:48,350 - INFO - Initial checks done. Running the testcase now 2024-11-14 17:56:48,350 - INFO - 2024-11-14 17:56:49,090 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28022676 2024-11-14 17:56:49,188 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28022676 2024-11-14 17:56:49,528 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28022676', 'default']} 2024-11-14 17:56:49,864 - DEBUG - Response for create_network : {'network': {'id': 'cad98ab9-44d7-4330-ad45-3bafa832a674', 'name': 'ctest-vn-18541522', 'tenant_id': '34a33349ead24aa6b96a0d5c20d315a7', 'project_id': '34a33349ead24aa6b96a0d5c20d315a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28022676', 'ctest-vn-18541522'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:56:50,017 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e873050b-033e-48fb-8354-3aa0cb51f6a3', 'name': '', 'tenant_id': '34a33349ead24aa6b96a0d5c20d315a7', 'network_id': 'cad98ab9-44d7-4330-ad45-3bafa832a674', 'ip_version': 4, 'cidr': '26.86.160.192/26', 'allocation_pools': [{'start': '26.86.160.194', 'end': '26.86.160.254'}], 'gateway_ip': '26.86.160.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.86.160.194', 'tags': [], 'project_id': '34a33349ead24aa6b96a0d5c20d315a7'}} 2024-11-14 17:56:50,039 - INFO - Created VN ctest-vn-18541522 2024-11-14 17:56:50,100 - DEBUG - VN ctest-vn-18541522 UUID is cad98ab9-44d7-4330-ad45-3bafa832a674 2024-11-14 17:56:50,485 - DEBUG - Response for create_network : {'network': {'id': '07c80f66-4383-410f-a50e-e72673fc643f', 'name': 'ctest-ext_vn-58341524', 'tenant_id': '34a33349ead24aa6b96a0d5c20d315a7', 'project_id': '34a33349ead24aa6b96a0d5c20d315a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28022676', 'ctest-ext_vn-58341524'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:56:50,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5c73604-c293-412d-89a2-a44c921da6aa', 'name': '', 'tenant_id': '34a33349ead24aa6b96a0d5c20d315a7', 'network_id': '07c80f66-4383-410f-a50e-e72673fc643f', 'ip_version': 4, 'cidr': '165.113.223.0/26', 'allocation_pools': [{'start': '165.113.223.2', 'end': '165.113.223.62'}], 'gateway_ip': '165.113.223.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.113.223.2', 'tags': [], 'project_id': '34a33349ead24aa6b96a0d5c20d315a7'}} 2024-11-14 17:56:50,740 - INFO - Created VN ctest-ext_vn-58341524 2024-11-14 17:56:50,796 - DEBUG - VN ctest-ext_vn-58341524 UUID is 07c80f66-4383-410f-a50e-e72673fc643f 2024-11-14 17:56:50,983 - DEBUG - Services list from nova: [, , ] 2024-11-14 17:56:52,072 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2301-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2301-1) 2024-11-14 17:56:53,319 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2301-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2301-1) 2024-11-14 17:56:53,423 - INFO - Setting gateway for router 6f207158-9891-4f35-abfa-7762d7979574 to network 07c80f66-4383-410f-a50e-e72673fc643f 2024-11-14 17:56:53,499 - INFO - Adding interface with subnet_id e873050b-033e-48fb-8354-3aa0cb51f6a3, port_id None to router 6f207158-9891-4f35-abfa-7762d7979574 2024-11-14 17:56:54,056 - INFO - Waiting for VM ctest-TestRoutersBasic-28022676-99454210 to be up.. 2024-11-14 17:56:54,298 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 17:56:59,391 - DEBUG - VM is in ACTIVE state now 2024-11-14 17:56:59,391 - INFO - VM name : ctest-TestRoutersBasic-28022676-99454210 2024-11-14 17:56:59,473 - DEBUG - VM ctest-TestRoutersBasic-28022676-99454210 ID is 1f039ac8-9ab5-426e-b36a-1131716c2c81 2024-11-14 17:56:59,492 - DEBUG - VM ctest-TestRoutersBasic-28022676-99454210 launched on Node cn-jenkins-deploy-platform-ansible-os-2301-1 2024-11-14 17:56:59,586 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/1f039ac8-9ab5-426e-b36a-1131716c2c81 2024-11-14 17:56:59,878 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/1f039ac8-9ab5-426e-b36a-1131716c2c81 2024-11-14 17:56:59,913 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/939312b8-e321-4e5d-8857-050d0073f200 2024-11-14 17:57:03,187 - 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 1023ms') 2024-11-14 17:57:03,188 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28022676-99454210 failed! 2024-11-14 17:57:03,248 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28022676:ctest-vn-18541522 is 26.86.160.193 and allocation pool is NOT set 2024-11-14 17:57:05,308 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.619 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.619/2.230/3.842/1.611 ms') 2024-11-14 17:57:05,308 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28022676-99454210 passed 2024-11-14 17:57:05,468 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:05,468 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28022676-99454210, IP 26.86.160.195, Port 22 2024-11-14 17:57:05,624 - DEBUG - VM ctest-TestRoutersBasic-28022676-99454210 is ready for SSH connections 2024-11-14 17:57:05,624 - INFO - Waiting for VM ctest-TestRoutersBasic-28022676-03308187 to be up.. 2024-11-14 17:57:05,711 - DEBUG - VM is in ACTIVE state now 2024-11-14 17:57:05,712 - INFO - VM name : ctest-TestRoutersBasic-28022676-03308187 2024-11-14 17:57:05,790 - DEBUG - VM ctest-TestRoutersBasic-28022676-03308187 ID is 86f8c3d1-54b3-4b2a-b503-748c7bd9655b 2024-11-14 17:57:05,790 - DEBUG - VM ctest-TestRoutersBasic-28022676-03308187 launched on Node cn-jenkins-deploy-platform-ansible-os-2301-1 2024-11-14 17:57:05,878 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/86f8c3d1-54b3-4b2a-b503-748c7bd9655b 2024-11-14 17:57:05,891 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/5512dcd5-0ada-4302-8567-fa47006e5fbe 2024-11-14 17:57:07,147 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.356 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.356/2.071/3.787/1.715 ms') 2024-11-14 17:57:07,147 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28022676-03308187 passed 2024-11-14 17:57:07,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:07,312 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28022676-03308187, IP 165.113.223.3, Port 22 2024-11-14 17:57:07,471 - DEBUG - VM ctest-TestRoutersBasic-28022676-03308187 is ready for SSH connections 2024-11-14 17:57:07,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:07,471 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 165.113.223.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-14 17:57:07,471 - DEBUG - ping -s 56 -c 3 -W 1 165.113.223.3 2024-11-14 17:57:11,190 - DEBUG - PING 165.113.223.3 (165.113.223.3): 56 data bytes 64 bytes from 165.113.223.3: seq=0 ttl=62 time=7.842 ms 64 bytes from 165.113.223.3: seq=1 ttl=62 time=1.069 ms 64 bytes from 165.113.223.3: seq=2 ttl=62 time=1.031 ms --- 165.113.223.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.031/3.314/7.842 ms 2024-11-14 17:57:11,190 - INFO - Ping to IP 165.113.223.3 from VM ctest-TestRoutersBasic-28022676-99454210 passed 2024-11-14 17:57:11,191 - INFO - Deleting interface with subnet_id e873050b-033e-48fb-8354-3aa0cb51f6a3, port_id None from router 6f207158-9891-4f35-abfa-7762d7979574 2024-11-14 17:57:11,411 - INFO - Deleting VM ctest-TestRoutersBasic-28022676-03308187 2024-11-14 17:57:11,480 - INFO - Deleting VM ctest-TestRoutersBasic-28022676-99454210 2024-11-14 17:57:11,565 - INFO - Deleting VN ctest-ext_vn-58341524 2024-11-14 17:57:11,649 - DEBUG - VN 07c80f66-4383-410f-a50e-e72673fc643f still in use: Unable to complete operation on network 07c80f66-4383-410f-a50e-e72673fc643f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2fa22ba8-32a9-4a86-987f-0dcda922f851'] 2024-11-14 17:57:11,650 - WARNING - Deleting VN ctest-ext_vn-58341524 failed..Will retry 2024-11-14 17:57:13,758 - DEBUG - Response for deleting network () 2024-11-14 17:57:13,758 - INFO - Deleting VN ctest-vn-18541522 2024-11-14 17:57:13,880 - DEBUG - Response for deleting network () 2024-11-14 17:57:14,133 - DEBUG - No XMPP flaps were noticed during the test
2024-11-14 17:57:14,133 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-14 17:57:14,134 - INFO - -------------------------------------------------------------------------------- 2024-11-14 17:57:15,064 - INFO - Deleted project: ctest-TestRoutersBasic-28022676, ID : 34a33349-ead2-4aa6-b96a-0d5c20d315a7