2025-05-01 02:10:50,011 - INFO - Domain Default found not creating 2025-05-01 02:10:50,147 - INFO - Project ctest-TestRoutersBasic-59645382 not found, creating it 2025-05-01 02:10:50,573 - INFO - Created Project:ctest-TestRoutersBasic-59645382, ID : 8bf8270f-c4c4-4a21-9062-9d2f353e2222 2025-05-01 02:10:51,879 - INFO - ================================================================================ 2025-05-01 02:10:51,880 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-01 02:10:51,880 - 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-05-01 02:10:52,130 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.201': '0'}} with 2025-05-01 02:10:52,130 - INFO - Initial checks done. Running the testcase now 2025-05-01 02:10:52,130 - INFO - 2025-05-01 02:10:52,810 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-59645382 2025-05-01 02:10:52,905 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-59645382 2025-05-01 02:10:53,225 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59645382', 'default']} 2025-05-01 02:10:53,501 - DEBUG - Response for create_network : {'network': {'id': 'e7544c03-6634-4a9e-837a-5e50888ce6fa', 'name': 'ctest-vn-41863921', 'tenant_id': '8bf8270fc4c44a2190629d2f353e2222', 'project_id': '8bf8270fc4c44a2190629d2f353e2222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59645382', 'ctest-vn-41863921'], 'port_security_enabled': True, 'description': ''}} 2025-05-01 02:10:53,725 - DEBUG - Response for create_subnet : {'subnet': {'id': '19e90ec8-bc92-46f3-9b8a-87a44f5a4d8e', 'name': '', 'tenant_id': '8bf8270fc4c44a2190629d2f353e2222', 'network_id': 'e7544c03-6634-4a9e-837a-5e50888ce6fa', 'ip_version': 4, 'cidr': '117.90.224.64/26', 'allocation_pools': [{'start': '117.90.224.66', 'end': '117.90.224.126'}], 'gateway_ip': '117.90.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.90.224.66', 'tags': [], 'project_id': '8bf8270fc4c44a2190629d2f353e2222'}} 2025-05-01 02:10:53,741 - INFO - Created VN ctest-vn-41863921 2025-05-01 02:10:53,793 - DEBUG - VN ctest-vn-41863921 UUID is e7544c03-6634-4a9e-837a-5e50888ce6fa 2025-05-01 02:10:54,115 - DEBUG - Response for create_network : {'network': {'id': '54203b29-9afe-4695-b5b9-6bae195573b9', 'name': 'ctest-ext_vn-80831904', 'tenant_id': '8bf8270fc4c44a2190629d2f353e2222', 'project_id': '8bf8270fc4c44a2190629d2f353e2222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-59645382', 'ctest-ext_vn-80831904'], 'port_security_enabled': True, 'description': ''}} 2025-05-01 02:10:54,288 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0c31868-0361-44d3-9ea8-f36ec93a93bd', 'name': '', 'tenant_id': '8bf8270fc4c44a2190629d2f353e2222', 'network_id': '54203b29-9afe-4695-b5b9-6bae195573b9', 'ip_version': 4, 'cidr': '1.103.87.128/26', 'allocation_pools': [{'start': '1.103.87.130', 'end': '1.103.87.190'}], 'gateway_ip': '1.103.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.103.87.130', 'tags': [], 'project_id': '8bf8270fc4c44a2190629d2f353e2222'}} 2025-05-01 02:10:54,308 - INFO - Created VN ctest-ext_vn-80831904 2025-05-01 02:10:54,361 - DEBUG - VN ctest-ext_vn-80831904 UUID is 54203b29-9afe-4695-b5b9-6bae195573b9 2025-05-01 02:10:54,558 - DEBUG - Services list from nova: [, , ] 2025-05-01 02:10:55,504 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3253-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3253-1) 2025-05-01 02:10:56,571 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3253-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3253-1) 2025-05-01 02:10:56,644 - INFO - Setting gateway for router 9fad9985-3e30-46d8-92a7-e9ddcca85d50 to network 54203b29-9afe-4695-b5b9-6bae195573b9 2025-05-01 02:10:56,712 - INFO - Adding interface with subnet_id 19e90ec8-bc92-46f3-9b8a-87a44f5a4d8e, port_id None to router 9fad9985-3e30-46d8-92a7-e9ddcca85d50 2025-05-01 02:10:57,073 - INFO - Waiting for VM ctest-TestRoutersBasic-59645382-78964351 to be up.. 2025-05-01 02:10:57,228 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-01 02:11:02,305 - DEBUG - VM is in ACTIVE state now 2025-05-01 02:11:02,305 - INFO - VM name : ctest-TestRoutersBasic-59645382-78964351 2025-05-01 02:11:02,384 - DEBUG - VM ctest-TestRoutersBasic-59645382-78964351 ID is 1878e590-805d-447a-8946-6989d93ab97c 2025-05-01 02:11:02,401 - DEBUG - VM ctest-TestRoutersBasic-59645382-78964351 launched on Node cn-jenkins-deploy-platform-ansible-os-3253-1 2025-05-01 02:11:02,466 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/1878e590-805d-447a-8946-6989d93ab97c 2025-05-01 02:11:02,755 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/1878e590-805d-447a-8946-6989d93ab97c 2025-05-01 02:11:02,784 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/59630f0f-13ee-4b0f-b605-ae8d7961df9e 2025-05-01 02:11:06,050 - 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=11.6 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 = 11.576/11.576/11.576/0.000 ms') 2025-05-01 02:11:06,050 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-59645382-78964351 passed 2025-05-01 02:11:06,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 02:11:06,205 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-59645382-78964351, IP 117.90.224.67, Port 22 2025-05-01 02:11:06,365 - DEBUG - VM ctest-TestRoutersBasic-59645382-78964351 is ready for SSH connections 2025-05-01 02:11:06,365 - INFO - Waiting for VM ctest-TestRoutersBasic-59645382-64288984 to be up.. 2025-05-01 02:11:06,432 - DEBUG - VM is in ACTIVE state now 2025-05-01 02:11:06,432 - INFO - VM name : ctest-TestRoutersBasic-59645382-64288984 2025-05-01 02:11:06,501 - DEBUG - VM ctest-TestRoutersBasic-59645382-64288984 ID is dc9e4f57-8fd7-42c4-8152-69a9cd934631 2025-05-01 02:11:06,501 - DEBUG - VM ctest-TestRoutersBasic-59645382-64288984 launched on Node cn-jenkins-deploy-platform-ansible-os-3253-1 2025-05-01 02:11:06,566 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/dc9e4f57-8fd7-42c4-8152-69a9cd934631 2025-05-01 02:11:06,576 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/fb021499-a59f-458c-99a5-473c31bd679f 2025-05-01 02:11:07,815 - 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.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.55 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 = 1.553/3.017/4.482/1.464 ms') 2025-05-01 02:11:07,815 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-59645382-64288984 passed 2025-05-01 02:11:07,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 02:11:07,965 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-59645382-64288984, IP 1.103.87.131, Port 22 2025-05-01 02:11:08,120 - DEBUG - VM ctest-TestRoutersBasic-59645382-64288984 is ready for SSH connections 2025-05-01 02:11:08,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 02:11:08,120 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.103.87.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-05-01 02:11:08,121 - DEBUG - ping -s 56 -c 3 -W 1 1.103.87.131 2025-05-01 02:11:12,054 - DEBUG - PING 1.103.87.131 (1.103.87.131): 56 data bytes 64 bytes from 1.103.87.131: seq=0 ttl=62 time=7.547 ms 64 bytes from 1.103.87.131: seq=1 ttl=62 time=0.751 ms 64 bytes from 1.103.87.131: seq=2 ttl=62 time=0.927 ms --- 1.103.87.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.751/3.075/7.547 ms 2025-05-01 02:11:12,054 - INFO - Ping to IP 1.103.87.131 from VM ctest-TestRoutersBasic-59645382-78964351 passed 2025-05-01 02:11:12,054 - INFO - Deleting interface with subnet_id 19e90ec8-bc92-46f3-9b8a-87a44f5a4d8e, port_id None from router 9fad9985-3e30-46d8-92a7-e9ddcca85d50 2025-05-01 02:11:12,245 - INFO - Deleting VM ctest-TestRoutersBasic-59645382-64288984 2025-05-01 02:11:12,313 - INFO - Deleting VM ctest-TestRoutersBasic-59645382-78964351 2025-05-01 02:11:12,403 - INFO - Deleting VN ctest-ext_vn-80831904 2025-05-01 02:11:12,472 - DEBUG - VN 54203b29-9afe-4695-b5b9-6bae195573b9 still in use: Unable to complete operation on network 54203b29-9afe-4695-b5b9-6bae195573b9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a02e4b97-c581-4df9-9694-e86f533bf3c4'] 2025-05-01 02:11:12,472 - WARNING - Deleting VN ctest-ext_vn-80831904 failed..Will retry 2025-05-01 02:11:14,579 - DEBUG - Response for deleting network () 2025-05-01 02:11:14,579 - INFO - Deleting VN ctest-vn-41863921 2025-05-01 02:11:14,688 - DEBUG - Response for deleting network () 2025-05-01 02:11:14,950 - DEBUG - No XMPP flaps were noticed during the test
2025-05-01 02:11:14,950 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:23]
2025-05-01 02:11:14,950 - INFO - -------------------------------------------------------------------------------- 2025-05-01 02:11:15,638 - INFO - Deleted project: ctest-TestRoutersBasic-59645382, ID : 8bf8270f-c4c4-4a21-9062-9d2f353e2222