2025-04-16 16:46:52,622 - INFO - Domain Default found not creating 2025-04-16 16:46:52,788 - INFO - Project ctest-TestRoutersBasic-47794779 not found, creating it 2025-04-16 16:46:53,245 - INFO - Created Project:ctest-TestRoutersBasic-47794779, ID : 99e7444c-e310-4481-b7c4-9d43f9cfc140 2025-04-16 16:46:54,880 - INFO - ================================================================================ 2025-04-16 16:46:54,880 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-16 16:46:54,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-04-16 16:46:55,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-04-16 16:46:55,157 - INFO - Initial checks done. Running the testcase now 2025-04-16 16:46:55,157 - INFO - 2025-04-16 16:46:55,964 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-47794779 2025-04-16 16:46:56,065 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-47794779 2025-04-16 16:46:56,400 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47794779', 'default']} 2025-04-16 16:46:56,706 - DEBUG - Response for create_network : {'network': {'id': 'ea942d70-75ae-427c-9465-38f4a49effa9', 'name': 'ctest-vn-01490611', 'tenant_id': '99e7444ce3104481b7c49d43f9cfc140', 'project_id': '99e7444ce3104481b7c49d43f9cfc140', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47794779', 'ctest-vn-01490611'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:46:56,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5995c7e-45c8-4816-9afe-0bc4519618d9', 'name': '', 'tenant_id': '99e7444ce3104481b7c49d43f9cfc140', 'network_id': 'ea942d70-75ae-427c-9465-38f4a49effa9', 'ip_version': 4, 'cidr': '83.137.90.128/26', 'allocation_pools': [{'start': '83.137.90.130', 'end': '83.137.90.190'}], 'gateway_ip': '83.137.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.137.90.130', 'tags': [], 'project_id': '99e7444ce3104481b7c49d43f9cfc140'}} 2025-04-16 16:46:56,882 - INFO - Created VN ctest-vn-01490611 2025-04-16 16:46:56,936 - DEBUG - VN ctest-vn-01490611 UUID is ea942d70-75ae-427c-9465-38f4a49effa9 2025-04-16 16:46:57,298 - DEBUG - Response for create_network : {'network': {'id': '3576d514-ea37-4ec6-8763-681b9a5b9ae1', 'name': 'ctest-ext_vn-88157574', 'tenant_id': '99e7444ce3104481b7c49d43f9cfc140', 'project_id': '99e7444ce3104481b7c49d43f9cfc140', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47794779', 'ctest-ext_vn-88157574'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:46:57,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f8865ca-141e-48fc-91fa-5bca4e4de7d4', 'name': '', 'tenant_id': '99e7444ce3104481b7c49d43f9cfc140', 'network_id': '3576d514-ea37-4ec6-8763-681b9a5b9ae1', 'ip_version': 4, 'cidr': '9.179.170.192/26', 'allocation_pools': [{'start': '9.179.170.194', 'end': '9.179.170.254'}], 'gateway_ip': '9.179.170.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.179.170.194', 'tags': [], 'project_id': '99e7444ce3104481b7c49d43f9cfc140'}} 2025-04-16 16:46:57,530 - INFO - Created VN ctest-ext_vn-88157574 2025-04-16 16:46:57,584 - DEBUG - VN ctest-ext_vn-88157574 UUID is 3576d514-ea37-4ec6-8763-681b9a5b9ae1 2025-04-16 16:46:57,763 - DEBUG - Services list from nova: [, , ] 2025-04-16 16:46:58,895 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3122-1) 2025-04-16 16:47:00,183 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3122-1) 2025-04-16 16:47:00,291 - INFO - Setting gateway for router 3edf61e0-fa07-45b7-bba9-4b513696e179 to network 3576d514-ea37-4ec6-8763-681b9a5b9ae1 2025-04-16 16:47:00,367 - INFO - Adding interface with subnet_id a5995c7e-45c8-4816-9afe-0bc4519618d9, port_id None to router 3edf61e0-fa07-45b7-bba9-4b513696e179 2025-04-16 16:47:00,939 - INFO - Waiting for VM ctest-TestRoutersBasic-47794779-38056846 to be up.. 2025-04-16 16:47:01,179 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 16:47:06,267 - DEBUG - VM is in ACTIVE state now 2025-04-16 16:47:06,267 - INFO - VM name : ctest-TestRoutersBasic-47794779-38056846 2025-04-16 16:47:06,350 - DEBUG - VM ctest-TestRoutersBasic-47794779-38056846 ID is f9db5bf1-0a3e-4e9c-ac17-a4be994f5fb6 2025-04-16 16:47:06,371 - DEBUG - VM ctest-TestRoutersBasic-47794779-38056846 launched on Node cn-jenkins-deploy-platform-ansible-os-3122-1 2025-04-16 16:47:06,451 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/f9db5bf1-0a3e-4e9c-ac17-a4be994f5fb6 2025-04-16 16:47:06,788 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/f9db5bf1-0a3e-4e9c-ac17-a4be994f5fb6 2025-04-16 16:47:06,823 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/33ec883d-b706-4c7a-ae27-00cea194086d 2025-04-16 16:47:10,074 - 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 1006ms') 2025-04-16 16:47:10,074 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47794779-38056846 failed! 2025-04-16 16:47:10,132 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-47794779:ctest-vn-01490611 is 83.137.90.129 and allocation pool is NOT set 2025-04-16 16:47:12,199 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.25 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.251/3.166/5.082/1.915 ms') 2025-04-16 16:47:12,199 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47794779-38056846 passed 2025-04-16 16:47:12,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:47:12,352 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47794779-38056846, IP 83.137.90.131, Port 22 2025-04-16 16:47:12,412 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-16 16:47:12,508 - DEBUG - VM ctest-TestRoutersBasic-47794779-38056846 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 16:47:17,509 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:47:17,509 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47794779-38056846, IP 83.137.90.131, Port 22 2025-04-16 16:47:17,668 - DEBUG - VM ctest-TestRoutersBasic-47794779-38056846 is ready for SSH connections 2025-04-16 16:47:17,668 - INFO - Waiting for VM ctest-TestRoutersBasic-47794779-69937980 to be up.. 2025-04-16 16:47:17,754 - DEBUG - VM is in ACTIVE state now 2025-04-16 16:47:17,754 - INFO - VM name : ctest-TestRoutersBasic-47794779-69937980 2025-04-16 16:47:17,835 - DEBUG - VM ctest-TestRoutersBasic-47794779-69937980 ID is 733c7275-8383-424f-9e47-6f3e72ae226f 2025-04-16 16:47:17,835 - DEBUG - VM ctest-TestRoutersBasic-47794779-69937980 launched on Node cn-jenkins-deploy-platform-ansible-os-3122-1 2025-04-16 16:47:17,918 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/733c7275-8383-424f-9e47-6f3e72ae226f 2025-04-16 16:47:17,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/bd18ae94-fb19-411f-8163-3f238dd6af84 2025-04-16 16:47:19,177 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.442 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.442/1.852/3.263/1.410 ms') 2025-04-16 16:47:19,177 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-47794779-69937980 passed 2025-04-16 16:47:19,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:47:19,332 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47794779-69937980, IP 9.179.170.195, Port 22 2025-04-16 16:47:19,488 - DEBUG - VM ctest-TestRoutersBasic-47794779-69937980 is ready for SSH connections 2025-04-16 16:47:19,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:47:19,488 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.179.170.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-04-16 16:47:19,489 - DEBUG - ping -s 56 -c 3 -W 1 9.179.170.195 2025-04-16 16:47:23,223 - DEBUG - PING 9.179.170.195 (9.179.170.195): 56 data bytes 64 bytes from 9.179.170.195: seq=0 ttl=62 time=4.987 ms 64 bytes from 9.179.170.195: seq=1 ttl=62 time=0.964 ms 64 bytes from 9.179.170.195: seq=2 ttl=62 time=0.948 ms --- 9.179.170.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.948/2.299/4.987 ms 2025-04-16 16:47:23,223 - INFO - Ping to IP 9.179.170.195 from VM ctest-TestRoutersBasic-47794779-38056846 passed 2025-04-16 16:47:23,223 - INFO - Deleting interface with subnet_id a5995c7e-45c8-4816-9afe-0bc4519618d9, port_id None from router 3edf61e0-fa07-45b7-bba9-4b513696e179 2025-04-16 16:47:23,478 - INFO - Deleting VM ctest-TestRoutersBasic-47794779-69937980 2025-04-16 16:47:23,570 - INFO - Deleting VM ctest-TestRoutersBasic-47794779-38056846 2025-04-16 16:47:23,668 - INFO - Deleting VN ctest-ext_vn-88157574 2025-04-16 16:47:23,764 - DEBUG - VN 3576d514-ea37-4ec6-8763-681b9a5b9ae1 still in use: Unable to complete operation on network 3576d514-ea37-4ec6-8763-681b9a5b9ae1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8943fd78-6517-4c2f-b130-fd07d2d1a428'] 2025-04-16 16:47:23,764 - WARNING - Deleting VN ctest-ext_vn-88157574 failed..Will retry 2025-04-16 16:47:25,891 - DEBUG - Response for deleting network () 2025-04-16 16:47:25,891 - INFO - Deleting VN ctest-vn-01490611 2025-04-16 16:47:26,019 - DEBUG - Response for deleting network () 2025-04-16 16:47:26,274 - DEBUG - No XMPP flaps were noticed during the test 2025-04-16 16:47:26,274 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-04-16 16:47:26,275 - INFO - -------------------------------------------------------------------------------- 2025-04-16 16:47:27,103 - INFO - Deleted project: ctest-TestRoutersBasic-47794779, ID : 99e7444c-e310-4481-b7c4-9d43f9cfc140