2025-01-03 07:38:01,317 - INFO - Domain Default found not creating 2025-01-03 07:38:01,459 - INFO - Project ctest-TestRoutersBasic-43535526 not found, creating it 2025-01-03 07:38:01,931 - INFO - Created Project:ctest-TestRoutersBasic-43535526, ID : 11b1f6a5-a8e8-4731-9dea-1c9d1c5baa6d 2025-01-03 07:38:03,354 - INFO - ================================================================================ 2025-01-03 07:38:03,354 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-03 07:38:03,354 - 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 2025-01-03 07:38:03,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.8': '0'}} with 2025-01-03 07:38:03,611 - INFO - Initial checks done. Running the testcase now 2025-01-03 07:38:03,611 - INFO - 2025-01-03 07:38:04,309 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-43535526 2025-01-03 07:38:04,402 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-43535526 2025-01-03 07:38:04,726 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43535526', 'default']} 2025-01-03 07:38:05,026 - DEBUG - Response for create_network : {'network': {'id': '757a3e92-a1ad-4402-9b73-f20a2d3737f8', 'name': 'ctest-vn-07556553', 'tenant_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'project_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43535526', 'ctest-vn-07556553'], 'port_security_enabled': True, 'description': ''}} 2025-01-03 07:38:05,276 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfb23ce1-bc24-47ef-90d8-1fc551d70e96', 'name': '', 'tenant_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'network_id': '757a3e92-a1ad-4402-9b73-f20a2d3737f8', 'ip_version': 4, 'cidr': '96.130.16.192/26', 'allocation_pools': [{'start': '96.130.16.194', 'end': '96.130.16.254'}], 'gateway_ip': '96.130.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.130.16.194', 'tags': [], 'project_id': '11b1f6a5a8e847319dea1c9d1c5baa6d'}} 2025-01-03 07:38:05,306 - INFO - Created VN ctest-vn-07556553 2025-01-03 07:38:05,367 - DEBUG - VN ctest-vn-07556553 UUID is 757a3e92-a1ad-4402-9b73-f20a2d3737f8 2025-01-03 07:38:05,748 - DEBUG - Response for create_network : {'network': {'id': '21c6199c-a5a1-43d2-bf7b-bc2a466b4942', 'name': 'ctest-ext_vn-89941572', 'tenant_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'project_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43535526', 'ctest-ext_vn-89941572'], 'port_security_enabled': True, 'description': ''}} 2025-01-03 07:38:05,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '70932170-6cc4-49ab-87be-fde800762029', 'name': '', 'tenant_id': '11b1f6a5a8e847319dea1c9d1c5baa6d', 'network_id': '21c6199c-a5a1-43d2-bf7b-bc2a466b4942', 'ip_version': 4, 'cidr': '157.35.96.64/26', 'allocation_pools': [{'start': '157.35.96.66', 'end': '157.35.96.126'}], 'gateway_ip': '157.35.96.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.35.96.66', 'tags': [], 'project_id': '11b1f6a5a8e847319dea1c9d1c5baa6d'}} 2025-01-03 07:38:05,920 - INFO - Created VN ctest-ext_vn-89941572 2025-01-03 07:38:05,974 - DEBUG - VN ctest-ext_vn-89941572 UUID is 21c6199c-a5a1-43d2-bf7b-bc2a466b4942 2025-01-03 07:38:06,193 - DEBUG - Services list from nova: [, , ] 2025-01-03 07:38:07,197 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2518-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2518-1) 2025-01-03 07:38:08,364 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2518-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2518-1) 2025-01-03 07:38:08,427 - INFO - Setting gateway for router 47ea8240-0908-4bc9-a3d2-10a90120126f to network 21c6199c-a5a1-43d2-bf7b-bc2a466b4942 2025-01-03 07:38:08,494 - INFO - Adding interface with subnet_id bfb23ce1-bc24-47ef-90d8-1fc551d70e96, port_id None to router 47ea8240-0908-4bc9-a3d2-10a90120126f 2025-01-03 07:38:08,804 - INFO - Waiting for VM ctest-TestRoutersBasic-43535526-57287009 to be up.. 2025-01-03 07:38:08,959 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-03 07:38:14,041 - DEBUG - VM is in ACTIVE state now 2025-01-03 07:38:14,041 - INFO - VM name : ctest-TestRoutersBasic-43535526-57287009 2025-01-03 07:38:14,113 - DEBUG - VM ctest-TestRoutersBasic-43535526-57287009 ID is fbafc4d8-f82f-40b0-a7c0-6e36a56a4f10 2025-01-03 07:38:14,129 - DEBUG - VM ctest-TestRoutersBasic-43535526-57287009 launched on Node cn-jenkins-deploy-platform-ansible-os-2518-1 2025-01-03 07:38:14,218 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/fbafc4d8-f82f-40b0-a7c0-6e36a56a4f10 2025-01-03 07:38:14,515 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/fbafc4d8-f82f-40b0-a7c0-6e36a56a4f10 2025-01-03 07:38:14,546 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/328f39fe-6b29-4b11-9c89-62823d884718 2025-01-03 07:38:17,815 - 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 1027ms') 2025-01-03 07:38:17,815 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43535526-57287009 failed! 2025-01-03 07:38:17,870 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-43535526:ctest-vn-07556553 is 96.130.16.193 and allocation pool is NOT set 2025-01-03 07:38:19,926 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.385 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.385/1.528/2.672/1.143 ms') 2025-01-03 07:38:19,926 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43535526-57287009 passed 2025-01-03 07:38:20,074 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 07:38:20,074 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43535526-57287009, IP 96.130.16.195, Port 22 2025-01-03 07:38:20,233 - DEBUG - VM ctest-TestRoutersBasic-43535526-57287009 is ready for SSH connections 2025-01-03 07:38:20,233 - INFO - Waiting for VM ctest-TestRoutersBasic-43535526-22257259 to be up.. 2025-01-03 07:38:20,305 - DEBUG - VM is in ACTIVE state now 2025-01-03 07:38:20,305 - INFO - VM name : ctest-TestRoutersBasic-43535526-22257259 2025-01-03 07:38:20,378 - DEBUG - VM ctest-TestRoutersBasic-43535526-22257259 ID is af0ccc94-dafd-4603-8be6-af67c8feb736 2025-01-03 07:38:20,378 - DEBUG - VM ctest-TestRoutersBasic-43535526-22257259 launched on Node cn-jenkins-deploy-platform-ansible-os-2518-1 2025-01-03 07:38:20,465 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/af0ccc94-dafd-4603-8be6-af67c8feb736 2025-01-03 07:38:20,475 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/653364aa-304d-4e37-87fe-a2601ffb8cec 2025-01-03 07:38:21,724 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.741 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.741/2.815/4.890/2.074 ms') 2025-01-03 07:38:21,724 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-43535526-22257259 passed 2025-01-03 07:38:21,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 07:38:21,874 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43535526-22257259, IP 157.35.96.67, Port 22 2025-01-03 07:38:22,041 - DEBUG - VM ctest-TestRoutersBasic-43535526-22257259 is ready for SSH connections 2025-01-03 07:38:22,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 07:38:22,042 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.35.96.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-03 07:38:22,042 - DEBUG - ping -s 56 -c 3 -W 1 157.35.96.67 2025-01-03 07:38:26,012 - DEBUG - PING 157.35.96.67 (157.35.96.67): 56 data bytes 64 bytes from 157.35.96.67: seq=0 ttl=62 time=6.431 ms 64 bytes from 157.35.96.67: seq=1 ttl=62 time=0.802 ms 64 bytes from 157.35.96.67: seq=2 ttl=62 time=1.010 ms --- 157.35.96.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.802/2.747/6.431 ms 2025-01-03 07:38:26,012 - INFO - Ping to IP 157.35.96.67 from VM ctest-TestRoutersBasic-43535526-57287009 passed 2025-01-03 07:38:26,012 - INFO - Deleting interface with subnet_id bfb23ce1-bc24-47ef-90d8-1fc551d70e96, port_id None from router 47ea8240-0908-4bc9-a3d2-10a90120126f 2025-01-03 07:38:26,202 - INFO - Deleting VM ctest-TestRoutersBasic-43535526-22257259 2025-01-03 07:38:26,290 - INFO - Deleting VM ctest-TestRoutersBasic-43535526-57287009 2025-01-03 07:38:26,355 - INFO - Deleting VN ctest-ext_vn-89941572 2025-01-03 07:38:26,415 - DEBUG - VN 21c6199c-a5a1-43d2-bf7b-bc2a466b4942 still in use: Unable to complete operation on network 21c6199c-a5a1-43d2-bf7b-bc2a466b4942. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7de447a0-c2c0-4f95-b4aa-abddc134ae63'] 2025-01-03 07:38:26,415 - WARNING - Deleting VN ctest-ext_vn-89941572 failed..Will retry 2025-01-03 07:38:28,516 - DEBUG - Response for deleting network () 2025-01-03 07:38:28,516 - INFO - Deleting VN ctest-vn-07556553 2025-01-03 07:38:28,619 - DEBUG - Response for deleting network () 2025-01-03 07:38:28,875 - DEBUG - No XMPP flaps were noticed during the test
2025-01-03 07:38:28,875 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-01-03 07:38:28,875 - INFO - -------------------------------------------------------------------------------- 2025-01-03 07:38:29,552 - INFO - Deleted project: ctest-TestRoutersBasic-43535526, ID : 11b1f6a5-a8e8-4731-9dea-1c9d1c5baa6d