2025-04-22 12:41:14,723 - INFO - Domain Default found not creating 2025-04-22 12:41:14,850 - INFO - Project ctest-TestRoutersBasic-69424564 not found, creating it 2025-04-22 12:41:15,251 - INFO - Created Project:ctest-TestRoutersBasic-69424564, ID : 5b0197fa-af48-4f8b-8bc4-8fd11f292752 2025-04-22 12:41:16,579 - INFO - ================================================================================ 2025-04-22 12:41:16,579 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 12:41:16,579 - 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-22 12:41:16,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-04-22 12:41:16,667 - INFO - Initial checks done. Running the testcase now 2025-04-22 12:41:16,667 - INFO - 2025-04-22 12:41:17,340 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-69424564 2025-04-22 12:41:17,351 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-69424564 2025-04-22 12:41:17,497 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69424564', 'default']} 2025-04-22 12:41:17,697 - DEBUG - Response for create_network : {'network': {'id': '51c5c0d5-6dd8-4a32-b3e9-f5efe059af11', 'name': 'ctest-vn-10709076', 'tenant_id': '5b0197faaf484f8b8bc48fd11f292752', 'project_id': '5b0197faaf484f8b8bc48fd11f292752', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69424564', 'ctest-vn-10709076'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 12:41:17,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '75882fc4-fee9-4ac0-a1a7-8f50ff263709', 'name': '', 'tenant_id': '5b0197faaf484f8b8bc48fd11f292752', 'network_id': '51c5c0d5-6dd8-4a32-b3e9-f5efe059af11', 'ip_version': 4, 'cidr': '66.251.237.64/26', 'allocation_pools': [{'start': '66.251.237.66', 'end': '66.251.237.126'}], 'gateway_ip': '66.251.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.251.237.66', 'tags': [], 'project_id': '5b0197faaf484f8b8bc48fd11f292752'}} 2025-04-22 12:41:17,899 - INFO - Created VN ctest-vn-10709076 2025-04-22 12:41:17,909 - DEBUG - VN ctest-vn-10709076 UUID is 51c5c0d5-6dd8-4a32-b3e9-f5efe059af11 2025-04-22 12:41:18,192 - DEBUG - Response for create_network : {'network': {'id': '72d016bb-7971-4841-a80c-a468be256f5a', 'name': 'ctest-ext_vn-90307145', 'tenant_id': '5b0197faaf484f8b8bc48fd11f292752', 'project_id': '5b0197faaf484f8b8bc48fd11f292752', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69424564', 'ctest-ext_vn-90307145'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 12:41:18,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '0392f595-a0f5-4d3e-9aa8-1b220d1f214d', 'name': '', 'tenant_id': '5b0197faaf484f8b8bc48fd11f292752', 'network_id': '72d016bb-7971-4841-a80c-a468be256f5a', 'ip_version': 4, 'cidr': '163.244.67.128/26', 'allocation_pools': [{'start': '163.244.67.130', 'end': '163.244.67.190'}], 'gateway_ip': '163.244.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.244.67.130', 'tags': [], 'project_id': '5b0197faaf484f8b8bc48fd11f292752'}} 2025-04-22 12:41:18,390 - INFO - Created VN ctest-ext_vn-90307145 2025-04-22 12:41:18,400 - DEBUG - VN ctest-ext_vn-90307145 UUID is 72d016bb-7971-4841-a80c-a468be256f5a 2025-04-22 12:41:18,546 - DEBUG - Services list from nova: [, , ] 2025-04-22 12:41:19,455 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3160-1) 2025-04-22 12:41:20,520 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3160-1) 2025-04-22 12:41:20,594 - INFO - Setting gateway for router 2e597ddf-f288-431b-81e7-c6dfe22a1111 to network 72d016bb-7971-4841-a80c-a468be256f5a 2025-04-22 12:41:20,650 - INFO - Adding interface with subnet_id 75882fc4-fee9-4ac0-a1a7-8f50ff263709, port_id None to router 2e597ddf-f288-431b-81e7-c6dfe22a1111 2025-04-22 12:41:21,038 - INFO - Waiting for VM ctest-TestRoutersBasic-69424564-11426191 to be up.. 2025-04-22 12:41:21,210 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 12:41:26,280 - DEBUG - VM is in ACTIVE state now 2025-04-22 12:41:26,280 - INFO - VM name : ctest-TestRoutersBasic-69424564-11426191 2025-04-22 12:41:26,350 - DEBUG - VM ctest-TestRoutersBasic-69424564-11426191 ID is 83c48ab5-bdab-408e-8cc6-7886884817e6 2025-04-22 12:41:26,368 - DEBUG - VM ctest-TestRoutersBasic-69424564-11426191 launched on Node cn-jenkins-deploy-platform-ansible-os-3160-1 2025-04-22 12:41:26,436 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/83c48ab5-bdab-408e-8cc6-7886884817e6 2025-04-22 12:41:26,734 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/83c48ab5-bdab-408e-8cc6-7886884817e6 2025-04-22 12:41:26,766 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/6f6aed03-3bb5-4ccf-b55f-55711d3bd010 2025-04-22 12:41:29,947 - 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 1028ms') 2025-04-22 12:41:29,947 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69424564-11426191 failed! 2025-04-22 12:41:29,959 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-69424564:ctest-vn-10709076 is 66.251.237.65 and allocation pool is NOT set 2025-04-22 12:41:31,972 - 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.02 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.376 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.376/1.695/3.015/1.319 ms') 2025-04-22 12:41:31,972 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69424564-11426191 passed 2025-04-22 12:41:32,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 12:41:32,035 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69424564-11426191, IP 66.251.237.67, Port 22 2025-04-22 12:41:32,104 - DEBUG - VM ctest-TestRoutersBasic-69424564-11426191 is ready for SSH connections 2025-04-22 12:41:32,104 - INFO - Waiting for VM ctest-TestRoutersBasic-69424564-55895338 to be up.. 2025-04-22 12:41:32,172 - DEBUG - VM is in ACTIVE state now 2025-04-22 12:41:32,172 - INFO - VM name : ctest-TestRoutersBasic-69424564-55895338 2025-04-22 12:41:32,238 - DEBUG - VM ctest-TestRoutersBasic-69424564-55895338 ID is e4054623-1414-4c7f-9d5c-e92104e47a76 2025-04-22 12:41:32,238 - DEBUG - VM ctest-TestRoutersBasic-69424564-55895338 launched on Node cn-jenkins-deploy-platform-ansible-os-3160-1 2025-04-22 12:41:32,313 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/e4054623-1414-4c7f-9d5c-e92104e47a76 2025-04-22 12:41:32,322 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/01fe8245-a012-4678-a391-6989e66816fb 2025-04-22 12:41:33,474 - 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.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.480 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 = 0.480/2.048/3.616/1.568 ms') 2025-04-22 12:41:33,475 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-69424564-55895338 passed 2025-04-22 12:41:33,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 12:41:33,541 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69424564-55895338, IP 163.244.67.131, Port 22 2025-04-22 12:41:33,568 - DEBUG - VM ctest-TestRoutersBasic-69424564-55895338 is ready for SSH connections 2025-04-22 12:41:33,568 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 12:41:33,568 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.244.67.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-04-22 12:41:33,569 - DEBUG - ping -s 56 -c 3 -W 1 163.244.67.131 2025-04-22 12:41:37,471 - DEBUG - PING 163.244.67.131 (163.244.67.131): 56 data bytes 64 bytes from 163.244.67.131: seq=0 ttl=62 time=6.377 ms 64 bytes from 163.244.67.131: seq=1 ttl=62 time=0.798 ms 64 bytes from 163.244.67.131: seq=2 ttl=62 time=1.153 ms --- 163.244.67.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.798/2.776/6.377 ms 2025-04-22 12:41:37,471 - INFO - Ping to IP 163.244.67.131 from VM ctest-TestRoutersBasic-69424564-11426191 passed 2025-04-22 12:41:37,471 - INFO - Deleting interface with subnet_id 75882fc4-fee9-4ac0-a1a7-8f50ff263709, port_id None from router 2e597ddf-f288-431b-81e7-c6dfe22a1111 2025-04-22 12:41:37,772 - INFO - Deleting VM ctest-TestRoutersBasic-69424564-55895338 2025-04-22 12:41:37,841 - INFO - Deleting VM ctest-TestRoutersBasic-69424564-11426191 2025-04-22 12:41:37,911 - INFO - Deleting VN ctest-ext_vn-90307145 2025-04-22 12:41:37,977 - DEBUG - VN 72d016bb-7971-4841-a80c-a468be256f5a still in use: Unable to complete operation on network 72d016bb-7971-4841-a80c-a468be256f5a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1660248c-7713-451f-8056-5075ec92037c'] 2025-04-22 12:41:37,977 - WARNING - Deleting VN ctest-ext_vn-90307145 failed..Will retry 2025-04-22 12:41:40,095 - DEBUG - Response for deleting network () 2025-04-22 12:41:40,095 - INFO - Deleting VN ctest-vn-10709076 2025-04-22 12:41:40,201 - DEBUG - Response for deleting network () 2025-04-22 12:41:40,291 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 12:41:40,291 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2025-04-22 12:41:40,291 - INFO - -------------------------------------------------------------------------------- 2025-04-22 12:41:40,882 - INFO - Deleted project: ctest-TestRoutersBasic-69424564, ID : 5b0197fa-af48-4f8b-8bc4-8fd11f292752