2025-10-19 23:40:59,176 - INFO - Domain Default found not creating 2025-10-19 23:40:59,315 - INFO - Project ctest-TestRoutersBasic-86864895 not found, creating it 2025-10-19 23:40:59,757 - INFO - Created Project:ctest-TestRoutersBasic-86864895, ID : 6c6e40b8-7b03-4554-b198-9bf3d680e6eb 2025-10-19 23:41:01,199 - INFO - ================================================================================ 2025-10-19 23:41:01,199 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-19 23:41:01,199 - 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-10-19 23:41:01,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 23:41:01,452 - INFO - Initial checks done. Running the testcase now 2025-10-19 23:41:01,452 - INFO - 2025-10-19 23:41:02,163 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-86864895 2025-10-19 23:41:02,259 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-86864895 2025-10-19 23:41:02,594 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86864895', 'default']} 2025-10-19 23:41:02,871 - DEBUG - Response for create_network : {'network': {'id': '572fe3e8-6500-4ecb-9bb9-1ed2ee8fd2ca', 'name': 'ctest-vn-44808907', 'tenant_id': '6c6e40b87b034554b1989bf3d680e6eb', 'project_id': '6c6e40b87b034554b1989bf3d680e6eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86864895', 'ctest-vn-44808907'], 'port_security_enabled': True, 'description': ''}} 2025-10-19 23:41:03,046 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bce037c5-8cec-4dfb-8a8d-73065bbddb3f', 'name': '', 'tenant_id': '6c6e40b87b034554b1989bf3d680e6eb', 'network_id': '572fe3e8-6500-4ecb-9bb9-1ed2ee8fd2ca', 'ip_version': 4, 'cidr': '141.225.239.0/26', 'allocation_pools': [{'start': '141.225.239.2', 'end': '141.225.239.62'}], 'gateway_ip': '141.225.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.225.239.2', 'tags': [], 'project_id': '6c6e40b87b034554b1989bf3d680e6eb'}} 2025-10-19 23:41:03,061 - INFO - Created VN ctest-vn-44808907 2025-10-19 23:41:03,111 - DEBUG - VN ctest-vn-44808907 UUID is 572fe3e8-6500-4ecb-9bb9-1ed2ee8fd2ca 2025-10-19 23:41:03,448 - DEBUG - Response for create_network : {'network': {'id': '52684da4-425a-4152-9841-d584c713fec6', 'name': 'ctest-ext_vn-78588547', 'tenant_id': '6c6e40b87b034554b1989bf3d680e6eb', 'project_id': '6c6e40b87b034554b1989bf3d680e6eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86864895', 'ctest-ext_vn-78588547'], 'port_security_enabled': True, 'description': ''}} 2025-10-19 23:41:03,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '47548dc3-2c10-43c4-a6a1-045d4f065ce7', 'name': '', 'tenant_id': '6c6e40b87b034554b1989bf3d680e6eb', 'network_id': '52684da4-425a-4152-9841-d584c713fec6', 'ip_version': 4, 'cidr': '41.91.45.0/26', 'allocation_pools': [{'start': '41.91.45.2', 'end': '41.91.45.62'}], 'gateway_ip': '41.91.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.91.45.2', 'tags': [], 'project_id': '6c6e40b87b034554b1989bf3d680e6eb'}} 2025-10-19 23:41:03,664 - INFO - Created VN ctest-ext_vn-78588547 2025-10-19 23:41:03,715 - DEBUG - VN ctest-ext_vn-78588547 UUID is 52684da4-425a-4152-9841-d584c713fec6 2025-10-19 23:41:03,934 - DEBUG - Services list from nova: [, , ] 2025-10-19 23:41:04,944 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4366-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4366-1) 2025-10-19 23:41:06,106 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4366-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4366-1) 2025-10-19 23:41:06,171 - INFO - Setting gateway for router 5fc56b60-f349-42fa-89a3-93b330306f7c to network 52684da4-425a-4152-9841-d584c713fec6 2025-10-19 23:41:06,233 - INFO - Adding interface with subnet_id bce037c5-8cec-4dfb-8a8d-73065bbddb3f, port_id None to router 5fc56b60-f349-42fa-89a3-93b330306f7c 2025-10-19 23:41:06,587 - INFO - Waiting for VM ctest-TestRoutersBasic-86864895-49322070 to be up.. 2025-10-19 23:41:06,743 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-19 23:41:11,825 - DEBUG - VM is in ACTIVE state now 2025-10-19 23:41:11,825 - INFO - VM name : ctest-TestRoutersBasic-86864895-49322070 2025-10-19 23:41:11,901 - DEBUG - VM ctest-TestRoutersBasic-86864895-49322070 ID is 89c7eaab-782b-48b5-a053-09e1cb4fbf34 2025-10-19 23:41:11,923 - DEBUG - VM ctest-TestRoutersBasic-86864895-49322070 launched on Node cn-jenkins-deploy-platform-ansible-os-4366-1 2025-10-19 23:41:11,995 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/89c7eaab-782b-48b5-a053-09e1cb4fbf34 2025-10-19 23:41:12,291 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/89c7eaab-782b-48b5-a053-09e1cb4fbf34 2025-10-19 23:41:12,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b96e44d4-8b3c-4a78-a60d-4c555eb6175c 2025-10-19 23:41:15,572 - 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 1010ms') 2025-10-19 23:41:15,572 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86864895-49322070 failed! 2025-10-19 23:41:15,627 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-86864895:ctest-vn-44808907 is 141.225.239.1 and allocation pool is NOT set 2025-10-19 23:41:17,692 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.950 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.950/2.424/3.899/1.474 ms') 2025-10-19 23:41:17,692 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86864895-49322070 passed 2025-10-19 23:41:17,795 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-19 23:41:17,795 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86864895-49322070, IP 141.225.239.3, Port 22 2025-10-19 23:41:17,951 - DEBUG - VM ctest-TestRoutersBasic-86864895-49322070 is ready for SSH connections 2025-10-19 23:41:17,951 - INFO - Waiting for VM ctest-TestRoutersBasic-86864895-29310173 to be up.. 2025-10-19 23:41:18,021 - DEBUG - VM is in ACTIVE state now 2025-10-19 23:41:18,021 - INFO - VM name : ctest-TestRoutersBasic-86864895-29310173 2025-10-19 23:41:18,087 - DEBUG - VM ctest-TestRoutersBasic-86864895-29310173 ID is 22a97807-b419-4140-af85-f844c9d8200b 2025-10-19 23:41:18,087 - DEBUG - VM ctest-TestRoutersBasic-86864895-29310173 launched on Node cn-jenkins-deploy-platform-ansible-os-4366-1 2025-10-19 23:41:18,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/22a97807-b419-4140-af85-f844c9d8200b 2025-10-19 23:41:18,163 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4bbdb247-47c3-4bb7-bb4c-c4ff7482537b 2025-10-19 23:41:19,391 - 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.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.398 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.398/1.753/3.109/1.355 ms') 2025-10-19 23:41:19,391 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-86864895-29310173 passed 2025-10-19 23:41:19,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-19 23:41:19,543 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86864895-29310173, IP 41.91.45.3, Port 22 2025-10-19 23:41:19,711 - DEBUG - VM ctest-TestRoutersBasic-86864895-29310173 is ready for SSH connections 2025-10-19 23:41:19,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-19 23:41:19,711 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.91.45.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-19 23:41:19,711 - DEBUG - ping -s 56 -c 3 -W 1 41.91.45.3 2025-10-19 23:41:23,396 - DEBUG - PING 41.91.45.3 (41.91.45.3): 56 data bytes 64 bytes from 41.91.45.3: seq=0 ttl=62 time=5.710 ms 64 bytes from 41.91.45.3: seq=1 ttl=62 time=1.333 ms 64 bytes from 41.91.45.3: seq=2 ttl=62 time=0.834 ms --- 41.91.45.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.834/2.625/5.710 ms 2025-10-19 23:41:23,396 - INFO - Ping to IP 41.91.45.3 from VM ctest-TestRoutersBasic-86864895-49322070 passed 2025-10-19 23:41:23,396 - INFO - Deleting interface with subnet_id bce037c5-8cec-4dfb-8a8d-73065bbddb3f, port_id None from router 5fc56b60-f349-42fa-89a3-93b330306f7c 2025-10-19 23:41:23,601 - INFO - Deleting VM ctest-TestRoutersBasic-86864895-29310173 2025-10-19 23:41:23,678 - INFO - Deleting VM ctest-TestRoutersBasic-86864895-49322070 2025-10-19 23:41:23,758 - INFO - Deleting VN ctest-ext_vn-78588547 2025-10-19 23:41:23,826 - DEBUG - VN 52684da4-425a-4152-9841-d584c713fec6 still in use: Unable to complete operation on network 52684da4-425a-4152-9841-d584c713fec6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-951b557e-d047-4b3e-9cb0-c4fff3f6925a'] 2025-10-19 23:41:23,826 - WARNING - Deleting VN ctest-ext_vn-78588547 failed..Will retry 2025-10-19 23:41:25,926 - DEBUG - Response for deleting network () 2025-10-19 23:41:25,926 - INFO - Deleting VN ctest-vn-44808907 2025-10-19 23:41:26,031 - DEBUG - Response for deleting network () 2025-10-19 23:41:26,284 - DEBUG - No XMPP flaps were noticed during the test 2025-10-19 23:41:26,284 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-10-19 23:41:26,284 - INFO - -------------------------------------------------------------------------------- 2025-10-19 23:41:26,964 - INFO - Deleted project: ctest-TestRoutersBasic-86864895, ID : 6c6e40b8-7b03-4554-b198-9bf3d680e6eb