2025-03-28 22:37:21,153 - INFO - Domain Default found not creating 2025-03-28 22:37:21,300 - INFO - Project ctest-TestRoutersBasic-89214447 not found, creating it 2025-03-28 22:37:21,795 - INFO - Created Project:ctest-TestRoutersBasic-89214447, ID : 9c6b0169-2910-4ff7-ad2e-b86cf9b6aa07 2025-03-28 22:37:23,184 - INFO - ================================================================================ 2025-03-28 22:37:23,184 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-28 22:37:23,184 - 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-03-28 22:37:23,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.10': '0'}} with 2025-03-28 22:37:23,452 - INFO - Initial checks done. Running the testcase now 2025-03-28 22:37:23,453 - INFO - 2025-03-28 22:37:24,183 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89214447 2025-03-28 22:37:24,284 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89214447 2025-03-28 22:37:24,615 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89214447', 'default']} 2025-03-28 22:37:24,914 - DEBUG - Response for create_network : {'network': {'id': '947fa4fa-e97b-482e-bd65-1257001d3ff0', 'name': 'ctest-vn-17014461', 'tenant_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'project_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89214447', 'ctest-vn-17014461'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 22:37:25,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4ea283d-dbf6-480a-b178-d4a1046bd69d', 'name': '', 'tenant_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'network_id': '947fa4fa-e97b-482e-bd65-1257001d3ff0', 'ip_version': 4, 'cidr': '40.155.220.128/26', 'allocation_pools': [{'start': '40.155.220.130', 'end': '40.155.220.190'}], 'gateway_ip': '40.155.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.155.220.130', 'tags': [], 'project_id': '9c6b016929104ff7ad2eb86cf9b6aa07'}} 2025-03-28 22:37:25,084 - INFO - Created VN ctest-vn-17014461 2025-03-28 22:37:25,140 - DEBUG - VN ctest-vn-17014461 UUID is 947fa4fa-e97b-482e-bd65-1257001d3ff0 2025-03-28 22:37:25,469 - DEBUG - Response for create_network : {'network': {'id': 'fde65ebe-3c76-4327-ab94-5d166182cff5', 'name': 'ctest-ext_vn-84134837', 'tenant_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'project_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89214447', 'ctest-ext_vn-84134837'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 22:37:25,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '2385021e-e2f2-434b-85e8-836c2d2a9225', 'name': '', 'tenant_id': '9c6b016929104ff7ad2eb86cf9b6aa07', 'network_id': 'fde65ebe-3c76-4327-ab94-5d166182cff5', 'ip_version': 4, 'cidr': '52.249.4.128/26', 'allocation_pools': [{'start': '52.249.4.130', 'end': '52.249.4.190'}], 'gateway_ip': '52.249.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.249.4.130', 'tags': [], 'project_id': '9c6b016929104ff7ad2eb86cf9b6aa07'}} 2025-03-28 22:37:25,646 - INFO - Created VN ctest-ext_vn-84134837 2025-03-28 22:37:25,704 - DEBUG - VN ctest-ext_vn-84134837 UUID is fde65ebe-3c76-4327-ab94-5d166182cff5 2025-03-28 22:37:25,880 - DEBUG - Services list from nova: [, , ] 2025-03-28 22:37:26,873 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2997-1) 2025-03-28 22:37:28,028 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2997-1) 2025-03-28 22:37:28,103 - INFO - Setting gateway for router f47a10d7-4d16-4c14-82ca-eeda570d4f04 to network fde65ebe-3c76-4327-ab94-5d166182cff5 2025-03-28 22:37:28,162 - INFO - Adding interface with subnet_id d4ea283d-dbf6-480a-b178-d4a1046bd69d, port_id None to router f47a10d7-4d16-4c14-82ca-eeda570d4f04 2025-03-28 22:37:28,468 - INFO - Waiting for VM ctest-TestRoutersBasic-89214447-23477703 to be up.. 2025-03-28 22:37:28,633 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 22:37:33,708 - DEBUG - VM is in ACTIVE state now 2025-03-28 22:37:33,708 - INFO - VM name : ctest-TestRoutersBasic-89214447-23477703 2025-03-28 22:37:33,785 - DEBUG - VM ctest-TestRoutersBasic-89214447-23477703 ID is ca94db3a-fecf-4f8a-8dc7-130b35fa6d14 2025-03-28 22:37:33,803 - DEBUG - VM ctest-TestRoutersBasic-89214447-23477703 launched on Node cn-jenkins-deploy-platform-ansible-os-2997-1 2025-03-28 22:37:33,899 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ca94db3a-fecf-4f8a-8dc7-130b35fa6d14 2025-03-28 22:37:34,190 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ca94db3a-fecf-4f8a-8dc7-130b35fa6d14 2025-03-28 22:37:34,220 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/f0522ec6-f3fc-4cda-8f18-ff3de81b434a 2025-03-28 22:37:37,477 - 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 1003ms') 2025-03-28 22:37:37,477 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89214447-23477703 failed! 2025-03-28 22:37:37,536 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89214447:ctest-vn-17014461 is 40.155.220.129 and allocation pool is NOT set 2025-03-28 22:37:39,599 - 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=4.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.532 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.532/2.360/4.188/1.828 ms') 2025-03-28 22:37:39,599 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89214447-23477703 passed 2025-03-28 22:37:39,760 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 22:37:39,760 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89214447-23477703, IP 40.155.220.131, Port 22 2025-03-28 22:37:39,916 - DEBUG - VM ctest-TestRoutersBasic-89214447-23477703 is ready for SSH connections 2025-03-28 22:37:39,916 - INFO - Waiting for VM ctest-TestRoutersBasic-89214447-57561704 to be up.. 2025-03-28 22:37:39,991 - DEBUG - VM is in ACTIVE state now 2025-03-28 22:37:39,991 - INFO - VM name : ctest-TestRoutersBasic-89214447-57561704 2025-03-28 22:37:40,068 - DEBUG - VM ctest-TestRoutersBasic-89214447-57561704 ID is 80a117be-2052-48e5-bc9b-c168c3ec1e6f 2025-03-28 22:37:40,068 - DEBUG - VM ctest-TestRoutersBasic-89214447-57561704 launched on Node cn-jenkins-deploy-platform-ansible-os-2997-1 2025-03-28 22:37:40,140 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/80a117be-2052-48e5-bc9b-c168c3ec1e6f 2025-03-28 22:37:40,150 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/8f05e1a1-2e56-47f0-b7fb-c7370771a9de 2025-03-28 22:37:41,388 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/1.696/2.936/1.239 ms') 2025-03-28 22:37:41,388 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89214447-57561704 passed 2025-03-28 22:37:41,544 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 22:37:41,544 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89214447-57561704, IP 52.249.4.131, Port 22 2025-03-28 22:37:41,699 - DEBUG - VM ctest-TestRoutersBasic-89214447-57561704 is ready for SSH connections 2025-03-28 22:37:41,699 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 22:37:41,699 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.249.4.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-28 22:37:41,699 - DEBUG - ping -s 56 -c 3 -W 1 52.249.4.131 2025-03-28 22:37:45,669 - DEBUG - PING 52.249.4.131 (52.249.4.131): 56 data bytes 64 bytes from 52.249.4.131: seq=0 ttl=62 time=6.482 ms 64 bytes from 52.249.4.131: seq=1 ttl=62 time=0.957 ms 64 bytes from 52.249.4.131: seq=2 ttl=62 time=0.820 ms --- 52.249.4.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.820/2.753/6.482 ms 2025-03-28 22:37:45,669 - INFO - Ping to IP 52.249.4.131 from VM ctest-TestRoutersBasic-89214447-23477703 passed 2025-03-28 22:37:45,669 - INFO - Deleting interface with subnet_id d4ea283d-dbf6-480a-b178-d4a1046bd69d, port_id None from router f47a10d7-4d16-4c14-82ca-eeda570d4f04 2025-03-28 22:37:45,873 - INFO - Deleting VM ctest-TestRoutersBasic-89214447-57561704 2025-03-28 22:37:45,937 - INFO - Deleting VM ctest-TestRoutersBasic-89214447-23477703 2025-03-28 22:37:46,024 - INFO - Deleting VN ctest-ext_vn-84134837 2025-03-28 22:37:46,092 - DEBUG - VN fde65ebe-3c76-4327-ab94-5d166182cff5 still in use: Unable to complete operation on network fde65ebe-3c76-4327-ab94-5d166182cff5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-09500233-34a9-4f67-b64a-fb232ce6ffa0'] 2025-03-28 22:37:46,092 - WARNING - Deleting VN ctest-ext_vn-84134837 failed..Will retry 2025-03-28 22:37:48,197 - DEBUG - Response for deleting network () 2025-03-28 22:37:48,197 - INFO - Deleting VN ctest-vn-17014461 2025-03-28 22:37:48,311 - DEBUG - Response for deleting network () 2025-03-28 22:37:48,571 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 22:37:48,571 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-28 22:37:48,571 - INFO - -------------------------------------------------------------------------------- 2025-03-28 22:37:49,232 - INFO - Deleted project: ctest-TestRoutersBasic-89214447, ID : 9c6b0169-2910-4ff7-ad2e-b86cf9b6aa07