2025-01-08 20:52:16,652 - INFO - Domain Default found not creating 2025-01-08 20:52:16,812 - INFO - Project ctest-TestRoutersBasic-94437223 not found, creating it 2025-01-08 20:52:17,304 - INFO - Created Project:ctest-TestRoutersBasic-94437223, ID : 3de220cd-5701-4399-8c68-88d168f9d026 2025-01-08 20:52:18,803 - INFO - ================================================================================ 2025-01-08 20:52:18,803 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-08 20:52:18,804 - 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-01-08 20:52:19,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.5': '0'}} with 2025-01-08 20:52:19,060 - INFO - Initial checks done. Running the testcase now 2025-01-08 20:52:19,060 - INFO - 2025-01-08 20:52:20,300 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94437223 2025-01-08 20:52:20,401 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94437223 2025-01-08 20:52:20,741 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94437223', 'default']} 2025-01-08 20:52:21,050 - DEBUG - Response for create_network : {'network': {'id': '2d253f8f-9f23-489d-aca9-50db909cd1cd', 'name': 'ctest-vn-69105544', 'tenant_id': '3de220cd570143998c6888d168f9d026', 'project_id': '3de220cd570143998c6888d168f9d026', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94437223', 'ctest-vn-69105544'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 20:52:21,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f59d775-8b6f-4a07-ad50-f4bfb79c6cc4', 'name': '', 'tenant_id': '3de220cd570143998c6888d168f9d026', 'network_id': '2d253f8f-9f23-489d-aca9-50db909cd1cd', 'ip_version': 4, 'cidr': '131.217.36.128/26', 'allocation_pools': [{'start': '131.217.36.130', 'end': '131.217.36.190'}], 'gateway_ip': '131.217.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.217.36.130', 'tags': [], 'project_id': '3de220cd570143998c6888d168f9d026'}} 2025-01-08 20:52:21,246 - INFO - Created VN ctest-vn-69105544 2025-01-08 20:52:21,301 - DEBUG - VN ctest-vn-69105544 UUID is 2d253f8f-9f23-489d-aca9-50db909cd1cd 2025-01-08 20:52:21,635 - DEBUG - Response for create_network : {'network': {'id': '80acaf40-a35b-4dc4-8c21-5f55136d5ac2', 'name': 'ctest-ext_vn-69048339', 'tenant_id': '3de220cd570143998c6888d168f9d026', 'project_id': '3de220cd570143998c6888d168f9d026', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94437223', 'ctest-ext_vn-69048339'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 20:52:21,862 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f33774d-9dca-4df4-b3c6-3c38a23b2f0e', 'name': '', 'tenant_id': '3de220cd570143998c6888d168f9d026', 'network_id': '80acaf40-a35b-4dc4-8c21-5f55136d5ac2', 'ip_version': 4, 'cidr': '88.28.185.64/26', 'allocation_pools': [{'start': '88.28.185.66', 'end': '88.28.185.126'}], 'gateway_ip': '88.28.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.28.185.66', 'tags': [], 'project_id': '3de220cd570143998c6888d168f9d026'}} 2025-01-08 20:52:21,882 - INFO - Created VN ctest-ext_vn-69048339 2025-01-08 20:52:21,937 - DEBUG - VN ctest-ext_vn-69048339 UUID is 80acaf40-a35b-4dc4-8c21-5f55136d5ac2 2025-01-08 20:52:22,112 - DEBUG - Services list from nova: [, , ] 2025-01-08 20:52:23,150 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2568-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2568-1) 2025-01-08 20:52:24,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2568-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2568-1) 2025-01-08 20:52:24,506 - INFO - Setting gateway for router 8898fb0e-6c75-4957-bfdd-2f6a55443d3f to network 80acaf40-a35b-4dc4-8c21-5f55136d5ac2 2025-01-08 20:52:24,596 - INFO - Adding interface with subnet_id 1f59d775-8b6f-4a07-ad50-f4bfb79c6cc4, port_id None to router 8898fb0e-6c75-4957-bfdd-2f6a55443d3f 2025-01-08 20:52:25,130 - INFO - Waiting for VM ctest-TestRoutersBasic-94437223-34422981 to be up.. 2025-01-08 20:52:25,291 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 20:52:30,388 - DEBUG - VM is in ACTIVE state now 2025-01-08 20:52:30,389 - INFO - VM name : ctest-TestRoutersBasic-94437223-34422981 2025-01-08 20:52:30,481 - DEBUG - VM ctest-TestRoutersBasic-94437223-34422981 ID is 3c3e1bd4-cc41-4de9-9d3a-67f2410d8fcd 2025-01-08 20:52:30,504 - DEBUG - VM ctest-TestRoutersBasic-94437223-34422981 launched on Node cn-jenkins-deploy-platform-ansible-os-2568-1 2025-01-08 20:52:30,606 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3c3e1bd4-cc41-4de9-9d3a-67f2410d8fcd 2025-01-08 20:52:30,912 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3c3e1bd4-cc41-4de9-9d3a-67f2410d8fcd 2025-01-08 20:52:30,954 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e0000bb6-f2ac-4896-b9c1-f764563f7ca6 2025-01-08 20:52:34,221 - 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 1017ms') 2025-01-08 20:52:34,222 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94437223-34422981 failed! 2025-01-08 20:52:34,281 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94437223:ctest-vn-69105544 is 131.217.36.129 and allocation pool is NOT set 2025-01-08 20:52:36,355 - 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=4.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.44 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.440/2.857/4.274/1.417 ms') 2025-01-08 20:52:36,355 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94437223-34422981 passed 2025-01-08 20:52:36,517 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 20:52:36,517 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94437223-34422981, IP 131.217.36.131, Port 22 2025-01-08 20:52:36,589 - 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-01-08 20:52:36,701 - DEBUG - VM ctest-TestRoutersBasic-94437223-34422981 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-08 20:52:41,702 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 20:52:41,703 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94437223-34422981, IP 131.217.36.131, Port 22 2025-01-08 20:52:41,865 - DEBUG - VM ctest-TestRoutersBasic-94437223-34422981 is ready for SSH connections 2025-01-08 20:52:41,865 - INFO - Waiting for VM ctest-TestRoutersBasic-94437223-77537080 to be up.. 2025-01-08 20:52:41,971 - DEBUG - VM is in ACTIVE state now 2025-01-08 20:52:41,972 - INFO - VM name : ctest-TestRoutersBasic-94437223-77537080 2025-01-08 20:52:42,067 - DEBUG - VM ctest-TestRoutersBasic-94437223-77537080 ID is d2b07c6e-c40e-4cb2-991b-ce9a1bf4739a 2025-01-08 20:52:42,068 - DEBUG - VM ctest-TestRoutersBasic-94437223-77537080 launched on Node cn-jenkins-deploy-platform-ansible-os-2568-1 2025-01-08 20:52:42,164 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/d2b07c6e-c40e-4cb2-991b-ce9a1bf4739a 2025-01-08 20:52:42,177 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/4e5ac89c-93bf-4dba-aa0e-42ea6fb5bed2 2025-01-08 20:52:43,427 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.515 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.515/1.855/3.195/1.340 ms') 2025-01-08 20:52:43,427 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94437223-77537080 passed 2025-01-08 20:52:43,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 20:52:43,586 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94437223-77537080, IP 88.28.185.67, Port 22 2025-01-08 20:52:43,740 - DEBUG - VM ctest-TestRoutersBasic-94437223-77537080 is ready for SSH connections 2025-01-08 20:52:43,740 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 20:52:43,740 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 88.28.185.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-01-08 20:52:43,740 - DEBUG - ping -s 56 -c 3 -W 1 88.28.185.67 2025-01-08 20:52:47,479 - DEBUG - PING 88.28.185.67 (88.28.185.67): 56 data bytes 64 bytes from 88.28.185.67: seq=0 ttl=62 time=5.762 ms 64 bytes from 88.28.185.67: seq=1 ttl=62 time=0.875 ms 64 bytes from 88.28.185.67: seq=2 ttl=62 time=0.830 ms --- 88.28.185.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.830/2.489/5.762 ms 2025-01-08 20:52:47,479 - INFO - Ping to IP 88.28.185.67 from VM ctest-TestRoutersBasic-94437223-34422981 passed 2025-01-08 20:52:47,479 - INFO - Deleting interface with subnet_id 1f59d775-8b6f-4a07-ad50-f4bfb79c6cc4, port_id None from router 8898fb0e-6c75-4957-bfdd-2f6a55443d3f 2025-01-08 20:52:47,710 - INFO - Deleting VM ctest-TestRoutersBasic-94437223-77537080 2025-01-08 20:52:47,784 - INFO - Deleting VM ctest-TestRoutersBasic-94437223-34422981 2025-01-08 20:52:47,890 - INFO - Deleting VN ctest-ext_vn-69048339 2025-01-08 20:52:47,972 - DEBUG - VN 80acaf40-a35b-4dc4-8c21-5f55136d5ac2 still in use: Unable to complete operation on network 80acaf40-a35b-4dc4-8c21-5f55136d5ac2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef16ee23-9060-481e-a346-a741c85ffae7'] 2025-01-08 20:52:47,972 - WARNING - Deleting VN ctest-ext_vn-69048339 failed..Will retry 2025-01-08 20:52:50,110 - DEBUG - Response for deleting network () 2025-01-08 20:52:50,110 - INFO - Deleting VN ctest-vn-69105544 2025-01-08 20:52:50,249 - DEBUG - Response for deleting network () 2025-01-08 20:52:50,508 - DEBUG - No XMPP flaps were noticed during the test
2025-01-08 20:52:50,508 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-01-08 20:52:50,508 - INFO - -------------------------------------------------------------------------------- 2025-01-08 20:52:51,235 - INFO - Deleted project: ctest-TestRoutersBasic-94437223, ID : 3de220cd-5701-4399-8c68-88d168f9d026