2025-05-15 14:26:41,657 - INFO - Domain Default found not creating 2025-05-15 14:26:41,826 - INFO - Project ctest-TestRoutersBasic-53536295 not found, creating it 2025-05-15 14:26:42,316 - INFO - Created Project:ctest-TestRoutersBasic-53536295, ID : 7b685825-c54a-4f5c-9181-3db6d1fcee04 2025-05-15 14:26:43,927 - INFO - ================================================================================ 2025-05-15 14:26:43,927 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-15 14:26:43,928 - 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-15 14:26:44,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-05-15 14:26:44,190 - INFO - Initial checks done. Running the testcase now 2025-05-15 14:26:44,190 - INFO - 2025-05-15 14:26:45,002 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-53536295 2025-05-15 14:26:45,103 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-53536295 2025-05-15 14:26:45,422 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53536295', 'default']} 2025-05-15 14:26:45,753 - DEBUG - Response for create_network : {'network': {'id': '9f043c08-61c3-40f1-80b0-862eb5881929', 'name': 'ctest-vn-36406467', 'tenant_id': '7b685825c54a4f5c91813db6d1fcee04', 'project_id': '7b685825c54a4f5c91813db6d1fcee04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53536295', 'ctest-vn-36406467'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:26:45,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c428491-d983-4ce6-9aa2-76134045c157', 'name': '', 'tenant_id': '7b685825c54a4f5c91813db6d1fcee04', 'network_id': '9f043c08-61c3-40f1-80b0-862eb5881929', 'ip_version': 4, 'cidr': '23.199.21.0/26', 'allocation_pools': [{'start': '23.199.21.2', 'end': '23.199.21.62'}], 'gateway_ip': '23.199.21.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.199.21.2', 'tags': [], 'project_id': '7b685825c54a4f5c91813db6d1fcee04'}} 2025-05-15 14:26:46,005 - INFO - Created VN ctest-vn-36406467 2025-05-15 14:26:46,063 - DEBUG - VN ctest-vn-36406467 UUID is 9f043c08-61c3-40f1-80b0-862eb5881929 2025-05-15 14:26:46,397 - DEBUG - Response for create_network : {'network': {'id': 'f13bf505-47ea-40fb-95f4-94e3effb04f8', 'name': 'ctest-ext_vn-81993677', 'tenant_id': '7b685825c54a4f5c91813db6d1fcee04', 'project_id': '7b685825c54a4f5c91813db6d1fcee04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53536295', 'ctest-ext_vn-81993677'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:26:46,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '3449e86b-b797-48a3-a0f6-627b7eadc1cc', 'name': '', 'tenant_id': '7b685825c54a4f5c91813db6d1fcee04', 'network_id': 'f13bf505-47ea-40fb-95f4-94e3effb04f8', 'ip_version': 4, 'cidr': '153.241.133.128/26', 'allocation_pools': [{'start': '153.241.133.130', 'end': '153.241.133.190'}], 'gateway_ip': '153.241.133.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.241.133.130', 'tags': [], 'project_id': '7b685825c54a4f5c91813db6d1fcee04'}} 2025-05-15 14:26:46,649 - INFO - Created VN ctest-ext_vn-81993677 2025-05-15 14:26:46,703 - DEBUG - VN ctest-ext_vn-81993677 UUID is f13bf505-47ea-40fb-95f4-94e3effb04f8 2025-05-15 14:26:46,885 - DEBUG - Services list from nova: [, , ] 2025-05-15 14:26:48,011 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3319-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3319-1) 2025-05-15 14:26:49,288 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3319-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3319-1) 2025-05-15 14:26:49,373 - INFO - Setting gateway for router 6ff39532-67a9-4ca6-8efa-afbd38ab3ef5 to network f13bf505-47ea-40fb-95f4-94e3effb04f8 2025-05-15 14:26:49,468 - INFO - Adding interface with subnet_id 5c428491-d983-4ce6-9aa2-76134045c157, port_id None to router 6ff39532-67a9-4ca6-8efa-afbd38ab3ef5 2025-05-15 14:26:49,881 - INFO - Waiting for VM ctest-TestRoutersBasic-53536295-59394242 to be up.. 2025-05-15 14:26:50,058 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-15 14:26:55,160 - DEBUG - VM is in ACTIVE state now 2025-05-15 14:26:55,161 - INFO - VM name : ctest-TestRoutersBasic-53536295-59394242 2025-05-15 14:26:55,249 - DEBUG - VM ctest-TestRoutersBasic-53536295-59394242 ID is 4e15e52b-a029-4f91-a103-62b5edea9ab6 2025-05-15 14:26:55,269 - DEBUG - VM ctest-TestRoutersBasic-53536295-59394242 launched on Node cn-jenkins-deploy-platform-ansible-os-3319-1 2025-05-15 14:26:55,353 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/4e15e52b-a029-4f91-a103-62b5edea9ab6 2025-05-15 14:26:55,691 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/4e15e52b-a029-4f91-a103-62b5edea9ab6 2025-05-15 14:26:55,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3289a551-325e-4d09-9d19-60490db5e53b 2025-05-15 14:26:58,995 - 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 1002ms') 2025-05-15 14:26:58,995 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53536295-59394242 failed! 2025-05-15 14:26:59,055 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-53536295:ctest-vn-36406467 is 23.199.21.1 and allocation pool is NOT set 2025-05-15 14:27:01,120 - 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=5.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.631 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.631/2.870/5.110/2.239 ms') 2025-05-15 14:27:01,120 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53536295-59394242 passed 2025-05-15 14:27:01,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:01,275 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53536295-59394242, IP 23.199.21.3, Port 22 2025-05-15 14:27:01,430 - DEBUG - VM ctest-TestRoutersBasic-53536295-59394242 is ready for SSH connections 2025-05-15 14:27:01,430 - INFO - Waiting for VM ctest-TestRoutersBasic-53536295-40685456 to be up.. 2025-05-15 14:27:01,514 - DEBUG - VM is in ACTIVE state now 2025-05-15 14:27:01,514 - INFO - VM name : ctest-TestRoutersBasic-53536295-40685456 2025-05-15 14:27:01,607 - DEBUG - VM ctest-TestRoutersBasic-53536295-40685456 ID is e7a57215-8729-44ed-9707-7483b4edea78 2025-05-15 14:27:01,608 - DEBUG - VM ctest-TestRoutersBasic-53536295-40685456 launched on Node cn-jenkins-deploy-platform-ansible-os-3319-1 2025-05-15 14:27:01,691 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/e7a57215-8729-44ed-9707-7483b4edea78 2025-05-15 14:27:01,701 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/beba3980-7549-47e7-84ae-75b70862cdc1 2025-05-15 14:27:02,952 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.49 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.487/3.085/3.684/0.598 ms') 2025-05-15 14:27:02,953 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-53536295-40685456 passed 2025-05-15 14:27:03,119 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:03,119 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53536295-40685456, IP 153.241.133.131, Port 22 2025-05-15 14:27:03,282 - DEBUG - VM ctest-TestRoutersBasic-53536295-40685456 is ready for SSH connections 2025-05-15 14:27:03,282 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:03,283 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.241.133.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-15 14:27:03,283 - DEBUG - ping -s 56 -c 3 -W 1 153.241.133.131 2025-05-15 14:27:07,027 - DEBUG - PING 153.241.133.131 (153.241.133.131): 56 data bytes 64 bytes from 153.241.133.131: seq=0 ttl=62 time=5.807 ms 64 bytes from 153.241.133.131: seq=1 ttl=62 time=1.016 ms 64 bytes from 153.241.133.131: seq=2 ttl=62 time=1.213 ms --- 153.241.133.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.016/2.678/5.807 ms 2025-05-15 14:27:07,027 - INFO - Ping to IP 153.241.133.131 from VM ctest-TestRoutersBasic-53536295-59394242 passed 2025-05-15 14:27:07,027 - INFO - Deleting interface with subnet_id 5c428491-d983-4ce6-9aa2-76134045c157, port_id None from router 6ff39532-67a9-4ca6-8efa-afbd38ab3ef5 2025-05-15 14:27:07,243 - INFO - Deleting VM ctest-TestRoutersBasic-53536295-40685456 2025-05-15 14:27:07,329 - INFO - Deleting VM ctest-TestRoutersBasic-53536295-59394242 2025-05-15 14:27:07,425 - INFO - Deleting VN ctest-ext_vn-81993677 2025-05-15 14:27:07,518 - DEBUG - VN f13bf505-47ea-40fb-95f4-94e3effb04f8 still in use: Unable to complete operation on network f13bf505-47ea-40fb-95f4-94e3effb04f8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-16b110f2-d207-491d-b82f-ad46a5e2d5ab'] 2025-05-15 14:27:07,518 - WARNING - Deleting VN ctest-ext_vn-81993677 failed..Will retry 2025-05-15 14:27:09,642 - DEBUG - Response for deleting network () 2025-05-15 14:27:09,642 - INFO - Deleting VN ctest-vn-36406467 2025-05-15 14:27:09,783 - DEBUG - Response for deleting network () 2025-05-15 14:27:10,041 - DEBUG - No XMPP flaps were noticed during the test
2025-05-15 14:27:10,041 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-05-15 14:27:10,041 - INFO - -------------------------------------------------------------------------------- 2025-05-15 14:27:10,777 - INFO - Deleted project: ctest-TestRoutersBasic-53536295, ID : 7b685825-c54a-4f5c-9181-3db6d1fcee04