2025-04-27 16:51:21,174 - INFO - Domain Default found not creating 2025-04-27 16:51:21,280 - INFO - Project ctest-TestRoutersBasic-94854585 not found, creating it 2025-04-27 16:51:21,776 - INFO - Created Project:ctest-TestRoutersBasic-94854585, ID : ca1d592a-b64b-4afe-a90f-58f387d3deb5 2025-04-27 16:51:22,966 - INFO - ================================================================================ 2025-04-27 16:51:22,966 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-27 16:51:22,966 - 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-04-27 16:51:23,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-27 16:51:23,216 - INFO - Initial checks done. Running the testcase now 2025-04-27 16:51:23,217 - INFO - 2025-04-27 16:51:23,814 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94854585 2025-04-27 16:51:23,908 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94854585 2025-04-27 16:51:24,223 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94854585', 'default']} 2025-04-27 16:51:24,490 - DEBUG - Response for create_network : {'network': {'id': '5fb14bec-bdba-4871-9e25-24036c3ceb59', 'name': 'ctest-vn-77594589', 'tenant_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'project_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94854585', 'ctest-vn-77594589'], 'port_security_enabled': True, 'description': ''}} 2025-04-27 16:51:24,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35fb034-c6c8-4c66-aa6f-98464ab8aee2', 'name': '', 'tenant_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'network_id': '5fb14bec-bdba-4871-9e25-24036c3ceb59', 'ip_version': 4, 'cidr': '121.89.91.0/26', 'allocation_pools': [{'start': '121.89.91.2', 'end': '121.89.91.62'}], 'gateway_ip': '121.89.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.89.91.2', 'tags': [], 'project_id': 'ca1d592ab64b4afea90f58f387d3deb5'}} 2025-04-27 16:51:24,684 - INFO - Created VN ctest-vn-77594589 2025-04-27 16:51:24,735 - DEBUG - VN ctest-vn-77594589 UUID is 5fb14bec-bdba-4871-9e25-24036c3ceb59 2025-04-27 16:51:25,065 - DEBUG - Response for create_network : {'network': {'id': '3a65daf1-0989-4e43-b251-bd1e05b7ebce', 'name': 'ctest-ext_vn-42113263', 'tenant_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'project_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94854585', 'ctest-ext_vn-42113263'], 'port_security_enabled': True, 'description': ''}} 2025-04-27 16:51:25,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9043727-4281-48c6-be15-ba5607b3901e', 'name': '', 'tenant_id': 'ca1d592ab64b4afea90f58f387d3deb5', 'network_id': '3a65daf1-0989-4e43-b251-bd1e05b7ebce', 'ip_version': 4, 'cidr': '170.236.164.64/26', 'allocation_pools': [{'start': '170.236.164.66', 'end': '170.236.164.126'}], 'gateway_ip': '170.236.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.236.164.66', 'tags': [], 'project_id': 'ca1d592ab64b4afea90f58f387d3deb5'}} 2025-04-27 16:51:25,287 - INFO - Created VN ctest-ext_vn-42113263 2025-04-27 16:51:25,335 - DEBUG - VN ctest-ext_vn-42113263 UUID is 3a65daf1-0989-4e43-b251-bd1e05b7ebce 2025-04-27 16:51:25,509 - DEBUG - Services list from nova: [, , ] 2025-04-27 16:51:26,365 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3228-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3228-1) 2025-04-27 16:51:27,489 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3228-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3228-1) 2025-04-27 16:51:27,569 - INFO - Setting gateway for router ed0a8083-39e0-489f-8525-9cef2a8f2733 to network 3a65daf1-0989-4e43-b251-bd1e05b7ebce 2025-04-27 16:51:27,653 - INFO - Adding interface with subnet_id b35fb034-c6c8-4c66-aa6f-98464ab8aee2, port_id None to router ed0a8083-39e0-489f-8525-9cef2a8f2733 2025-04-27 16:51:28,187 - INFO - Waiting for VM ctest-TestRoutersBasic-94854585-83894473 to be up.. 2025-04-27 16:51:28,317 - DEBUG - VM is in ACTIVE state now 2025-04-27 16:51:28,317 - INFO - VM name : ctest-TestRoutersBasic-94854585-83894473 2025-04-27 16:51:28,388 - DEBUG - VM ctest-TestRoutersBasic-94854585-83894473 ID is e537ac65-4b40-4a82-a1ee-2a5a01ed1d47 2025-04-27 16:51:28,403 - DEBUG - VM ctest-TestRoutersBasic-94854585-83894473 launched on Node cn-jenkins-deploy-platform-ansible-os-3228-1 2025-04-27 16:51:28,486 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/e537ac65-4b40-4a82-a1ee-2a5a01ed1d47 2025-04-27 16:51:28,764 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/e537ac65-4b40-4a82-a1ee-2a5a01ed1d47 2025-04-27 16:51:28,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c7298ad4-bab6-4958-8593-2666225e28b4 2025-04-27 16:51:32,068 - 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 1017ms') 2025-04-27 16:51:32,068 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94854585-83894473 failed! 2025-04-27 16:51:32,124 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94854585:ctest-vn-77594589 is 121.89.91.1 and allocation pool is NOT set 2025-04-27 16:51:36,202 - 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=2 ttl=63 time=8.34 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1020ms\r\nrtt min/avg/max/mdev = 8.342/8.342/8.342/0.000 ms') 2025-04-27 16:51:36,202 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94854585-83894473 passed 2025-04-27 16:51:36,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 16:51:36,352 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94854585-83894473, IP 121.89.91.3, Port 22 2025-04-27 16:51:36,503 - DEBUG - VM ctest-TestRoutersBasic-94854585-83894473 is ready for SSH connections 2025-04-27 16:51:36,503 - INFO - Waiting for VM ctest-TestRoutersBasic-94854585-79604834 to be up.. 2025-04-27 16:51:36,566 - DEBUG - VM is in ACTIVE state now 2025-04-27 16:51:36,566 - INFO - VM name : ctest-TestRoutersBasic-94854585-79604834 2025-04-27 16:51:36,625 - DEBUG - VM ctest-TestRoutersBasic-94854585-79604834 ID is fa4dd5b4-217e-4fac-a536-4fa314f57452 2025-04-27 16:51:36,625 - DEBUG - VM ctest-TestRoutersBasic-94854585-79604834 launched on Node cn-jenkins-deploy-platform-ansible-os-3228-1 2025-04-27 16:51:36,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fa4dd5b4-217e-4fac-a536-4fa314f57452 2025-04-27 16:51:36,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/2c1d4955-8c62-4d88-893b-d95d21715961 2025-04-27 16:51:37,913 - 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.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.332 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.332/1.315/2.298/0.983 ms') 2025-04-27 16:51:37,913 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94854585-79604834 passed 2025-04-27 16:51:38,059 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 16:51:38,060 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94854585-79604834, IP 170.236.164.67, Port 22 2025-04-27 16:51:38,219 - DEBUG - VM ctest-TestRoutersBasic-94854585-79604834 is ready for SSH connections 2025-04-27 16:51:38,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 16:51:38,219 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.236.164.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-27 16:51:38,219 - DEBUG - ping -s 56 -c 3 -W 1 170.236.164.67 2025-04-27 16:51:41,830 - DEBUG - PING 170.236.164.67 (170.236.164.67): 56 data bytes 64 bytes from 170.236.164.67: seq=0 ttl=62 time=5.645 ms 64 bytes from 170.236.164.67: seq=1 ttl=62 time=0.797 ms 64 bytes from 170.236.164.67: seq=2 ttl=62 time=0.958 ms --- 170.236.164.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.797/2.466/5.645 ms 2025-04-27 16:51:41,830 - INFO - Ping to IP 170.236.164.67 from VM ctest-TestRoutersBasic-94854585-83894473 passed 2025-04-27 16:51:41,830 - INFO - Deleting interface with subnet_id b35fb034-c6c8-4c66-aa6f-98464ab8aee2, port_id None from router ed0a8083-39e0-489f-8525-9cef2a8f2733 2025-04-27 16:51:41,981 - INFO - Deleting VM ctest-TestRoutersBasic-94854585-79604834 2025-04-27 16:51:42,032 - INFO - Deleting VM ctest-TestRoutersBasic-94854585-83894473 2025-04-27 16:51:42,090 - INFO - Deleting VN ctest-ext_vn-42113263 2025-04-27 16:51:42,152 - DEBUG - VN 3a65daf1-0989-4e43-b251-bd1e05b7ebce still in use: Unable to complete operation on network 3a65daf1-0989-4e43-b251-bd1e05b7ebce. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-18f1745d-6a5f-4569-b3f5-a32ab4f7d081'] 2025-04-27 16:51:42,152 - WARNING - Deleting VN ctest-ext_vn-42113263 failed..Will retry 2025-04-27 16:51:44,239 - DEBUG - Response for deleting network () 2025-04-27 16:51:44,239 - INFO - Deleting VN ctest-vn-77594589 2025-04-27 16:51:44,333 - DEBUG - Response for deleting network () 2025-04-27 16:51:44,596 - DEBUG - No XMPP flaps were noticed during the test
2025-04-27 16:51:44,596 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:22]
2025-04-27 16:51:44,596 - INFO - -------------------------------------------------------------------------------- 2025-04-27 16:51:45,198 - INFO - Deleted project: ctest-TestRoutersBasic-94854585, ID : ca1d592a-b64b-4afe-a90f-58f387d3deb5