2025-04-16 21:33:52,251 - INFO - Domain Default found not creating 2025-04-16 21:33:52,465 - INFO - Project ctest-TestRoutersBasic-96390052 not found, creating it 2025-04-16 21:33:52,985 - INFO - Created Project:ctest-TestRoutersBasic-96390052, ID : 3c29f51d-2235-48ba-8683-56cb23f020a3 2025-04-16 21:33:54,572 - INFO - ================================================================================ 2025-04-16 21:33:54,572 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-16 21:33:54,572 - 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 21:33:54,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-16 21:33:54,840 - INFO - Initial checks done. Running the testcase now 2025-04-16 21:33:54,840 - INFO - 2025-04-16 21:33:55,605 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-96390052 2025-04-16 21:33:55,707 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-96390052 2025-04-16 21:33:56,054 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96390052', 'default']} 2025-04-16 21:33:56,389 - DEBUG - Response for create_network : {'network': {'id': 'b2307975-1064-4d38-88dd-48e0224a240e', 'name': 'ctest-vn-18377334', 'tenant_id': '3c29f51d223548ba868356cb23f020a3', 'project_id': '3c29f51d223548ba868356cb23f020a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96390052', 'ctest-vn-18377334'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 21:33:56,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ec11180-b55d-41ae-9e33-c721dff6f63f', 'name': '', 'tenant_id': '3c29f51d223548ba868356cb23f020a3', 'network_id': 'b2307975-1064-4d38-88dd-48e0224a240e', 'ip_version': 4, 'cidr': '52.193.2.192/26', 'allocation_pools': [{'start': '52.193.2.194', 'end': '52.193.2.254'}], 'gateway_ip': '52.193.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.193.2.194', 'tags': [], 'project_id': '3c29f51d223548ba868356cb23f020a3'}} 2025-04-16 21:33:56,614 - INFO - Created VN ctest-vn-18377334 2025-04-16 21:33:56,671 - DEBUG - VN ctest-vn-18377334 UUID is b2307975-1064-4d38-88dd-48e0224a240e 2025-04-16 21:33:57,056 - DEBUG - Response for create_network : {'network': {'id': '4aa63b36-77ce-4c49-ab53-ad68e0b25bd6', 'name': 'ctest-ext_vn-44973038', 'tenant_id': '3c29f51d223548ba868356cb23f020a3', 'project_id': '3c29f51d223548ba868356cb23f020a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96390052', 'ctest-ext_vn-44973038'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 21:33:57,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '77c91606-e658-4ec4-8580-4eb7122c50a1', 'name': '', 'tenant_id': '3c29f51d223548ba868356cb23f020a3', 'network_id': '4aa63b36-77ce-4c49-ab53-ad68e0b25bd6', 'ip_version': 4, 'cidr': '149.69.149.128/26', 'allocation_pools': [{'start': '149.69.149.130', 'end': '149.69.149.190'}], 'gateway_ip': '149.69.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.69.149.130', 'tags': [], 'project_id': '3c29f51d223548ba868356cb23f020a3'}} 2025-04-16 21:33:57,245 - INFO - Created VN ctest-ext_vn-44973038 2025-04-16 21:33:57,302 - DEBUG - VN ctest-ext_vn-44973038 UUID is 4aa63b36-77ce-4c49-ab53-ad68e0b25bd6 2025-04-16 21:33:57,491 - DEBUG - Services list from nova: [, , ] 2025-04-16 21:33:58,610 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3126-1) 2025-04-16 21:33:59,915 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3126-1) 2025-04-16 21:34:00,006 - INFO - Setting gateway for router f6b2dbe5-8641-46d5-9fbf-42c27a37e8ab to network 4aa63b36-77ce-4c49-ab53-ad68e0b25bd6 2025-04-16 21:34:00,091 - INFO - Adding interface with subnet_id 3ec11180-b55d-41ae-9e33-c721dff6f63f, port_id None to router f6b2dbe5-8641-46d5-9fbf-42c27a37e8ab 2025-04-16 21:34:00,595 - INFO - Waiting for VM ctest-TestRoutersBasic-96390052-81829046 to be up.. 2025-04-16 21:34:00,827 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 21:34:05,944 - DEBUG - VM is in ACTIVE state now 2025-04-16 21:34:05,945 - INFO - VM name : ctest-TestRoutersBasic-96390052-81829046 2025-04-16 21:34:06,043 - DEBUG - VM ctest-TestRoutersBasic-96390052-81829046 ID is 028041d7-d3e8-4fbc-9286-666f003ec065 2025-04-16 21:34:06,071 - DEBUG - VM ctest-TestRoutersBasic-96390052-81829046 launched on Node cn-jenkins-deploy-platform-ansible-os-3126-1 2025-04-16 21:34:06,181 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/028041d7-d3e8-4fbc-9286-666f003ec065 2025-04-16 21:34:06,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/028041d7-d3e8-4fbc-9286-666f003ec065 2025-04-16 21:34:06,529 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5d40b7a6-cbee-4082-b964-e3247c072686 2025-04-16 21:34:09,805 - 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 1008ms') 2025-04-16 21:34:09,805 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96390052-81829046 failed! 2025-04-16 21:34:09,866 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-96390052:ctest-vn-18377334 is 52.193.2.193 and allocation pool is NOT set 2025-04-16 21:34:11,934 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.942 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.942/2.317/3.693/1.375 ms') 2025-04-16 21:34:11,934 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96390052-81829046 passed 2025-04-16 21:34:12,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 21:34:12,091 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96390052-81829046, IP 52.193.2.195, Port 22 2025-04-16 21:34:12,254 - DEBUG - VM ctest-TestRoutersBasic-96390052-81829046 is ready for SSH connections 2025-04-16 21:34:12,255 - INFO - Waiting for VM ctest-TestRoutersBasic-96390052-32213085 to be up.. 2025-04-16 21:34:12,365 - DEBUG - VM is in ACTIVE state now 2025-04-16 21:34:12,365 - INFO - VM name : ctest-TestRoutersBasic-96390052-32213085 2025-04-16 21:34:12,487 - DEBUG - VM ctest-TestRoutersBasic-96390052-32213085 ID is 21e00ab1-1049-403d-ab97-5e2111c6c685 2025-04-16 21:34:12,487 - DEBUG - VM ctest-TestRoutersBasic-96390052-32213085 launched on Node cn-jenkins-deploy-platform-ansible-os-3126-1 2025-04-16 21:34:12,577 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/21e00ab1-1049-403d-ab97-5e2111c6c685 2025-04-16 21:34:12,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/4b7368c1-bc00-4dbc-bb52-5565ac44bd02 2025-04-16 21:34:13,848 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.71 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.707/2.607/3.507/0.900 ms') 2025-04-16 21:34:13,848 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-96390052-32213085 passed 2025-04-16 21:34:14,006 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 21:34:14,007 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96390052-32213085, IP 149.69.149.131, Port 22 2025-04-16 21:34:14,072 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-16 21:34:14,177 - DEBUG - VM ctest-TestRoutersBasic-96390052-32213085 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 21:34:19,178 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 21:34:19,178 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96390052-32213085, IP 149.69.149.131, Port 22 2025-04-16 21:34:19,234 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-16 21:34:19,330 - DEBUG - VM ctest-TestRoutersBasic-96390052-32213085 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 21:34:24,331 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 21:34:24,331 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96390052-32213085, IP 149.69.149.131, Port 22 2025-04-16 21:34:24,513 - DEBUG - VM ctest-TestRoutersBasic-96390052-32213085 is ready for SSH connections 2025-04-16 21:34:24,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 21:34:24,513 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 149.69.149.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-16 21:34:24,513 - DEBUG - ping -s 56 -c 3 -W 1 149.69.149.131 2025-04-16 21:34:28,250 - DEBUG - PING 149.69.149.131 (149.69.149.131): 56 data bytes 64 bytes from 149.69.149.131: seq=0 ttl=62 time=6.069 ms 64 bytes from 149.69.149.131: seq=1 ttl=62 time=1.094 ms 64 bytes from 149.69.149.131: seq=2 ttl=62 time=1.157 ms --- 149.69.149.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.094/2.773/6.069 ms 2025-04-16 21:34:28,250 - INFO - Ping to IP 149.69.149.131 from VM ctest-TestRoutersBasic-96390052-81829046 passed 2025-04-16 21:34:28,250 - INFO - Deleting interface with subnet_id 3ec11180-b55d-41ae-9e33-c721dff6f63f, port_id None from router f6b2dbe5-8641-46d5-9fbf-42c27a37e8ab 2025-04-16 21:34:28,516 - INFO - Deleting VM ctest-TestRoutersBasic-96390052-32213085 2025-04-16 21:34:28,626 - INFO - Deleting VM ctest-TestRoutersBasic-96390052-81829046 2025-04-16 21:34:28,731 - INFO - Deleting VN ctest-ext_vn-44973038 2025-04-16 21:34:28,829 - DEBUG - VN 4aa63b36-77ce-4c49-ab53-ad68e0b25bd6 still in use: Unable to complete operation on network 4aa63b36-77ce-4c49-ab53-ad68e0b25bd6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-459be9f6-011d-4796-9878-e6be10fd97d6'] 2025-04-16 21:34:28,829 - WARNING - Deleting VN ctest-ext_vn-44973038 failed..Will retry 2025-04-16 21:34:30,954 - DEBUG - Response for deleting network () 2025-04-16 21:34:30,954 - INFO - Deleting VN ctest-vn-18377334 2025-04-16 21:34:31,098 - DEBUG - Response for deleting network () 2025-04-16 21:34:31,374 - DEBUG - No XMPP flaps were noticed during the test
2025-04-16 21:34:31,374 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:37]
2025-04-16 21:34:31,374 - INFO - -------------------------------------------------------------------------------- 2025-04-16 21:34:32,134 - INFO - Deleted project: ctest-TestRoutersBasic-96390052, ID : 3c29f51d-2235-48ba-8683-56cb23f020a3