2025-06-09 02:14:16,720 - INFO - Domain Default found not creating 2025-06-09 02:14:16,876 - INFO - Project ctest-TestRoutersBasic-41220981 not found, creating it 2025-06-09 02:14:17,344 - INFO - Created Project:ctest-TestRoutersBasic-41220981, ID : 70e3550f-14af-4603-bdb2-2f52ef34dd9f 2025-06-09 02:14:18,765 - INFO - ================================================================================ 2025-06-09 02:14:18,765 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-09 02:14:18,765 - 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-06-09 02:14:19,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-06-09 02:14:19,019 - INFO - Initial checks done. Running the testcase now 2025-06-09 02:14:19,019 - INFO - 2025-06-09 02:14:19,702 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41220981 2025-06-09 02:14:19,802 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41220981 2025-06-09 02:14:20,137 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41220981', 'default']} 2025-06-09 02:14:20,433 - DEBUG - Response for create_network : {'network': {'id': '4617d973-a25d-48fe-857f-9191c4e8f752', 'name': 'ctest-vn-05262283', 'tenant_id': '70e3550f14af4603bdb22f52ef34dd9f', 'project_id': '70e3550f14af4603bdb22f52ef34dd9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41220981', 'ctest-vn-05262283'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 02:14:20,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '9350d253-717f-4b32-85cb-fcf0861544d9', 'name': '', 'tenant_id': '70e3550f14af4603bdb22f52ef34dd9f', 'network_id': '4617d973-a25d-48fe-857f-9191c4e8f752', 'ip_version': 4, 'cidr': '42.185.151.0/26', 'allocation_pools': [{'start': '42.185.151.2', 'end': '42.185.151.62'}], 'gateway_ip': '42.185.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.185.151.2', 'tags': [], 'project_id': '70e3550f14af4603bdb22f52ef34dd9f'}} 2025-06-09 02:14:20,596 - INFO - Created VN ctest-vn-05262283 2025-06-09 02:14:20,650 - DEBUG - VN ctest-vn-05262283 UUID is 4617d973-a25d-48fe-857f-9191c4e8f752 2025-06-09 02:14:20,980 - DEBUG - Response for create_network : {'network': {'id': '675bec4d-4b57-46e0-a9f3-96fc050c69f8', 'name': 'ctest-ext_vn-62079061', 'tenant_id': '70e3550f14af4603bdb22f52ef34dd9f', 'project_id': '70e3550f14af4603bdb22f52ef34dd9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41220981', 'ctest-ext_vn-62079061'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 02:14:21,142 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df8c1673-ebc5-4b5b-8b73-e0037ac62c41', 'name': '', 'tenant_id': '70e3550f14af4603bdb22f52ef34dd9f', 'network_id': '675bec4d-4b57-46e0-a9f3-96fc050c69f8', 'ip_version': 4, 'cidr': '44.24.222.64/26', 'allocation_pools': [{'start': '44.24.222.66', 'end': '44.24.222.126'}], 'gateway_ip': '44.24.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.24.222.66', 'tags': [], 'project_id': '70e3550f14af4603bdb22f52ef34dd9f'}} 2025-06-09 02:14:21,159 - INFO - Created VN ctest-ext_vn-62079061 2025-06-09 02:14:21,209 - DEBUG - VN ctest-ext_vn-62079061 UUID is 675bec4d-4b57-46e0-a9f3-96fc050c69f8 2025-06-09 02:14:21,450 - DEBUG - Services list from nova: [, , ] 2025-06-09 02:14:22,417 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3421-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3421-1) 2025-06-09 02:14:23,530 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3421-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3421-1) 2025-06-09 02:14:23,613 - INFO - Setting gateway for router e2e1250f-3334-4b36-8d53-3ab512f376cf to network 675bec4d-4b57-46e0-a9f3-96fc050c69f8 2025-06-09 02:14:23,675 - INFO - Adding interface with subnet_id 9350d253-717f-4b32-85cb-fcf0861544d9, port_id None to router e2e1250f-3334-4b36-8d53-3ab512f376cf 2025-06-09 02:14:24,094 - INFO - Waiting for VM ctest-TestRoutersBasic-41220981-46529819 to be up.. 2025-06-09 02:14:24,213 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 02:14:29,295 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:14:29,295 - INFO - VM name : ctest-TestRoutersBasic-41220981-46529819 2025-06-09 02:14:29,370 - DEBUG - VM ctest-TestRoutersBasic-41220981-46529819 ID is 68fe1708-ef35-4580-b066-b9e4e7bf9d60 2025-06-09 02:14:29,392 - DEBUG - VM ctest-TestRoutersBasic-41220981-46529819 launched on Node cn-jenkins-deploy-platform-ansible-os-3421-1 2025-06-09 02:14:29,468 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/68fe1708-ef35-4580-b066-b9e4e7bf9d60 2025-06-09 02:14:29,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/68fe1708-ef35-4580-b066-b9e4e7bf9d60 2025-06-09 02:14:29,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/eddaf7e5-d290-4965-9008-be301846b947 2025-06-09 02:14:33,044 - 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 1007ms') 2025-06-09 02:14:33,045 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41220981-46529819 failed! 2025-06-09 02:14:33,105 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41220981:ctest-vn-05262283 is 42.185.151.1 and allocation pool is NOT set 2025-06-09 02:14:35,168 - 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=2.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.398 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.398/1.621/2.844/1.223 ms') 2025-06-09 02:14:35,168 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41220981-46529819 passed 2025-06-09 02:14:35,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:14:35,318 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41220981-46529819, IP 42.185.151.3, Port 22 2025-06-09 02:14:35,477 - DEBUG - VM ctest-TestRoutersBasic-41220981-46529819 is ready for SSH connections 2025-06-09 02:14:35,477 - INFO - Waiting for VM ctest-TestRoutersBasic-41220981-18767084 to be up.. 2025-06-09 02:14:35,550 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:14:35,550 - INFO - VM name : ctest-TestRoutersBasic-41220981-18767084 2025-06-09 02:14:35,619 - DEBUG - VM ctest-TestRoutersBasic-41220981-18767084 ID is d131942d-909c-4882-83aa-de5950a2b728 2025-06-09 02:14:35,619 - DEBUG - VM ctest-TestRoutersBasic-41220981-18767084 launched on Node cn-jenkins-deploy-platform-ansible-os-3421-1 2025-06-09 02:14:35,715 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/d131942d-909c-4882-83aa-de5950a2b728 2025-06-09 02:14:35,724 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/0f5799a6-883f-44a2-aa91-552f2091de6f 2025-06-09 02:14:36,975 - 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=4.38 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 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.014/2.697/4.380/1.683 ms') 2025-06-09 02:14:36,975 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41220981-18767084 passed 2025-06-09 02:14:37,122 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:14:37,122 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41220981-18767084, IP 44.24.222.67, Port 22 2025-06-09 02:14:37,178 - 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-06-09 02:14:37,254 - DEBUG - VM ctest-TestRoutersBasic-41220981-18767084 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-09 02:14:42,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:14:42,256 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41220981-18767084, IP 44.24.222.67, Port 22 2025-06-09 02:14:42,421 - DEBUG - VM ctest-TestRoutersBasic-41220981-18767084 is ready for SSH connections 2025-06-09 02:14:42,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:14:42,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.24.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-09 02:14:42,421 - DEBUG - ping -s 56 -c 3 -W 1 44.24.222.67 2025-06-09 02:14:46,123 - DEBUG - PING 44.24.222.67 (44.24.222.67): 56 data bytes 64 bytes from 44.24.222.67: seq=0 ttl=62 time=6.867 ms 64 bytes from 44.24.222.67: seq=1 ttl=62 time=0.811 ms 64 bytes from 44.24.222.67: seq=2 ttl=62 time=1.100 ms --- 44.24.222.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.811/2.926/6.867 ms 2025-06-09 02:14:46,123 - INFO - Ping to IP 44.24.222.67 from VM ctest-TestRoutersBasic-41220981-46529819 passed 2025-06-09 02:14:46,123 - INFO - Deleting interface with subnet_id 9350d253-717f-4b32-85cb-fcf0861544d9, port_id None from router e2e1250f-3334-4b36-8d53-3ab512f376cf 2025-06-09 02:14:46,424 - INFO - Deleting VM ctest-TestRoutersBasic-41220981-18767084 2025-06-09 02:14:46,505 - INFO - Deleting VM ctest-TestRoutersBasic-41220981-46529819 2025-06-09 02:14:46,592 - INFO - Deleting VN ctest-ext_vn-62079061 2025-06-09 02:14:46,673 - DEBUG - VN 675bec4d-4b57-46e0-a9f3-96fc050c69f8 still in use: Unable to complete operation on network 675bec4d-4b57-46e0-a9f3-96fc050c69f8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-77f91a35-0f10-4f2c-b74f-c1872486f706'] 2025-06-09 02:14:46,673 - WARNING - Deleting VN ctest-ext_vn-62079061 failed..Will retry 2025-06-09 02:14:48,783 - DEBUG - Response for deleting network () 2025-06-09 02:14:48,783 - INFO - Deleting VN ctest-vn-05262283 2025-06-09 02:14:48,892 - DEBUG - Response for deleting network () 2025-06-09 02:14:49,147 - DEBUG - No XMPP flaps were noticed during the test 2025-06-09 02:14:49,147 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-06-09 02:14:49,147 - INFO - -------------------------------------------------------------------------------- 2025-06-09 02:14:49,805 - INFO - Deleted project: ctest-TestRoutersBasic-41220981, ID : 70e3550f-14af-4603-bdb2-2f52ef34dd9f