2025-03-27 16:18:10,477 - INFO - Domain Default found not creating 2025-03-27 16:18:10,629 - INFO - Project ctest-TestRoutersBasic-38088410 not found, creating it 2025-03-27 16:18:11,148 - INFO - Created Project:ctest-TestRoutersBasic-38088410, ID : f1032b1c-7c9d-4b54-81ef-740dd8497618 2025-03-27 16:18:12,764 - INFO - ================================================================================ 2025-03-27 16:18:12,764 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 16:18:12,764 - 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-27 16:18:13,024 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.20': '0'}} with 2025-03-27 16:18:13,024 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:18:13,024 - INFO - 2025-03-27 16:18:13,826 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38088410 2025-03-27 16:18:13,928 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38088410 2025-03-27 16:18:14,272 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38088410', 'default']} 2025-03-27 16:18:14,622 - DEBUG - Response for create_network : {'network': {'id': '55e902e2-86bd-44ad-8373-b16f59cc086f', 'name': 'ctest-vn-07275500', 'tenant_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'project_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38088410', 'ctest-vn-07275500'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:14,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6904b80-daae-4ab1-8c49-38fcb9edd2e5', 'name': '', 'tenant_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'network_id': '55e902e2-86bd-44ad-8373-b16f59cc086f', 'ip_version': 4, 'cidr': '169.0.129.128/26', 'allocation_pools': [{'start': '169.0.129.130', 'end': '169.0.129.190'}], 'gateway_ip': '169.0.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.0.129.130', 'tags': [], 'project_id': 'f1032b1c7c9d4b5481ef740dd8497618'}} 2025-03-27 16:18:14,888 - INFO - Created VN ctest-vn-07275500 2025-03-27 16:18:14,944 - DEBUG - VN ctest-vn-07275500 UUID is 55e902e2-86bd-44ad-8373-b16f59cc086f 2025-03-27 16:18:15,308 - DEBUG - Response for create_network : {'network': {'id': '69af6c1c-7871-42f5-bae4-35a883154862', 'name': 'ctest-ext_vn-59534319', 'tenant_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'project_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38088410', 'ctest-ext_vn-59534319'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:15,527 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce996409-b38a-4de3-8ad4-ed8174450b69', 'name': '', 'tenant_id': 'f1032b1c7c9d4b5481ef740dd8497618', 'network_id': '69af6c1c-7871-42f5-bae4-35a883154862', 'ip_version': 4, 'cidr': '26.9.39.128/26', 'allocation_pools': [{'start': '26.9.39.130', 'end': '26.9.39.190'}], 'gateway_ip': '26.9.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.9.39.130', 'tags': [], 'project_id': 'f1032b1c7c9d4b5481ef740dd8497618'}} 2025-03-27 16:18:15,552 - INFO - Created VN ctest-ext_vn-59534319 2025-03-27 16:18:15,608 - DEBUG - VN ctest-ext_vn-59534319 UUID is 69af6c1c-7871-42f5-bae4-35a883154862 2025-03-27 16:18:15,793 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:18:16,951 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2977-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2977-1) 2025-03-27 16:18:18,366 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2977-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2977-1) 2025-03-27 16:18:18,475 - INFO - Setting gateway for router bf919ea1-a629-4475-a1cd-a61684820c6f to network 69af6c1c-7871-42f5-bae4-35a883154862 2025-03-27 16:18:18,579 - INFO - Adding interface with subnet_id d6904b80-daae-4ab1-8c49-38fcb9edd2e5, port_id None to router bf919ea1-a629-4475-a1cd-a61684820c6f 2025-03-27 16:18:19,242 - INFO - Waiting for VM ctest-TestRoutersBasic-38088410-20857631 to be up.. 2025-03-27 16:18:19,400 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 16:18:24,491 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:18:24,492 - INFO - VM name : ctest-TestRoutersBasic-38088410-20857631 2025-03-27 16:18:24,583 - DEBUG - VM ctest-TestRoutersBasic-38088410-20857631 ID is 640e59d4-b096-4ec6-8bee-d3d32f6158e2 2025-03-27 16:18:24,605 - DEBUG - VM ctest-TestRoutersBasic-38088410-20857631 launched on Node cn-jenkins-deploy-platform-ansible-os-2977-1 2025-03-27 16:18:24,693 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/640e59d4-b096-4ec6-8bee-d3d32f6158e2 2025-03-27 16:18:25,151 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/640e59d4-b096-4ec6-8bee-d3d32f6158e2 2025-03-27 16:18:25,189 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/dbcc0af3-90c8-4e27-afa4-bed21e418aa1 2025-03-27 16:18:28,458 - 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 1015ms') 2025-03-27 16:18:28,458 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38088410-20857631 failed! 2025-03-27 16:18:28,516 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38088410:ctest-vn-07275500 is 169.0.129.129 and allocation pool is NOT set 2025-03-27 16:18:30,580 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.18 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 = 1.184/3.080/4.977/1.896 ms') 2025-03-27 16:18:30,580 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38088410-20857631 passed 2025-03-27 16:18:30,740 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:18:30,740 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38088410-20857631, IP 169.0.129.131, Port 22 2025-03-27 16:18:30,906 - DEBUG - VM ctest-TestRoutersBasic-38088410-20857631 is ready for SSH connections 2025-03-27 16:18:30,906 - INFO - Waiting for VM ctest-TestRoutersBasic-38088410-10231211 to be up.. 2025-03-27 16:18:30,994 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:18:30,994 - INFO - VM name : ctest-TestRoutersBasic-38088410-10231211 2025-03-27 16:18:31,087 - DEBUG - VM ctest-TestRoutersBasic-38088410-10231211 ID is 459c9435-4fe8-44f2-81c5-88a39e23022a 2025-03-27 16:18:31,087 - DEBUG - VM ctest-TestRoutersBasic-38088410-10231211 launched on Node cn-jenkins-deploy-platform-ansible-os-2977-1 2025-03-27 16:18:31,186 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/459c9435-4fe8-44f2-81c5-88a39e23022a 2025-03-27 16:18:31,199 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/8a67fa7a-b2fe-45bd-b706-582b55b40605 2025-03-27 16:18:32,470 - 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=11.6 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.91 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 = 2.911/7.269/11.628/4.358 ms') 2025-03-27 16:18:32,470 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38088410-10231211 passed 2025-03-27 16:18:32,628 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:18:32,628 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38088410-10231211, IP 26.9.39.131, Port 22 2025-03-27 16:18:32,788 - DEBUG - VM ctest-TestRoutersBasic-38088410-10231211 is ready for SSH connections 2025-03-27 16:18:32,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:18:32,788 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.9.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-27 16:18:32,788 - DEBUG - ping -s 56 -c 3 -W 1 26.9.39.131 2025-03-27 16:18:36,620 - DEBUG - PING 26.9.39.131 (26.9.39.131): 56 data bytes 64 bytes from 26.9.39.131: seq=0 ttl=62 time=7.551 ms 64 bytes from 26.9.39.131: seq=1 ttl=62 time=0.906 ms 64 bytes from 26.9.39.131: seq=2 ttl=62 time=1.158 ms --- 26.9.39.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.906/3.205/7.551 ms 2025-03-27 16:18:36,621 - INFO - Ping to IP 26.9.39.131 from VM ctest-TestRoutersBasic-38088410-20857631 passed 2025-03-27 16:18:36,621 - INFO - Deleting interface with subnet_id d6904b80-daae-4ab1-8c49-38fcb9edd2e5, port_id None from router bf919ea1-a629-4475-a1cd-a61684820c6f 2025-03-27 16:18:36,846 - INFO - Deleting VM ctest-TestRoutersBasic-38088410-10231211 2025-03-27 16:18:36,924 - INFO - Deleting VM ctest-TestRoutersBasic-38088410-20857631 2025-03-27 16:18:37,034 - INFO - Deleting VN ctest-ext_vn-59534319 2025-03-27 16:18:37,113 - DEBUG - VN 69af6c1c-7871-42f5-bae4-35a883154862 still in use: Unable to complete operation on network 69af6c1c-7871-42f5-bae4-35a883154862. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d862682b-2be3-4960-9d52-29232581aee2'] 2025-03-27 16:18:37,113 - WARNING - Deleting VN ctest-ext_vn-59534319 failed..Will retry 2025-03-27 16:18:39,234 - DEBUG - Response for deleting network () 2025-03-27 16:18:39,234 - INFO - Deleting VN ctest-vn-07275500 2025-03-27 16:18:39,371 - DEBUG - Response for deleting network () 2025-03-27 16:18:39,627 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 16:18:39,627 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-03-27 16:18:39,627 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:18:40,376 - INFO - Deleted project: ctest-TestRoutersBasic-38088410, ID : f1032b1c-7c9d-4b54-81ef-740dd8497618