2025-10-09 13:43:46,288 - INFO - Reading existing Domain with UUID 8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:43:46,301 - INFO - Using existing domain ['admin_domain'](8ad80d2d-2369-4ab9-896f-7a17fd6c7f55) 2025-10-09 13:43:46,529 - INFO - Project ctest-TestRoutersBasic-15726802 not found, creating it 2025-10-09 13:43:47,062 - INFO - Created Project:ctest-TestRoutersBasic-15726802, ID : 05196281-8f54-4d7f-ab3b-a4cb8a7919eb 2025-10-09 13:43:49,004 - INFO - ================================================================================ 2025-10-09 13:43:49,004 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-09 13:43:49,004 - 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-10-09 13:43:49,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2025-10-09 13:43:49,404 - INFO - Initial checks done. Running the testcase now 2025-10-09 13:43:49,404 - INFO - 2025-10-09 13:43:50,286 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15726802 2025-10-09 13:43:50,386 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15726802 2025-10-09 13:43:50,726 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-15726802', 'default']} 2025-10-09 13:43:51,240 - DEBUG - Response for create_network : {'network': {'id': '4277ee72-fdea-48a7-9e27-2adbe0917284', 'name': 'ctest-vn-16762792', 'tenant_id': '051962818f544d7fab3ba4cb8a7919eb', 'project_id': '051962818f544d7fab3ba4cb8a7919eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-15726802', 'ctest-vn-16762792'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 13:43:51,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '514d6b28-83fa-470c-a200-d867ceb21090', 'name': '', 'tenant_id': '051962818f544d7fab3ba4cb8a7919eb', 'network_id': '4277ee72-fdea-48a7-9e27-2adbe0917284', 'ip_version': 4, 'cidr': '157.33.234.0/26', 'allocation_pools': [{'start': '157.33.234.2', 'end': '157.33.234.62'}], 'gateway_ip': '157.33.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:43:51.402086', 'updated_at': '2025-10-09T13:43:51.402086', 'dns_server_address': '157.33.234.2', 'tags': [], 'project_id': '051962818f544d7fab3ba4cb8a7919eb'}} 2025-10-09 13:43:51,585 - INFO - Created VN ctest-vn-16762792 2025-10-09 13:43:51,642 - DEBUG - VN ctest-vn-16762792 UUID is 4277ee72-fdea-48a7-9e27-2adbe0917284 2025-10-09 13:43:52,188 - DEBUG - Response for create_network : {'network': {'id': '4e9dc846-422c-438f-8e06-3fde2021cb24', 'name': 'ctest-ext_vn-75057742', 'tenant_id': '051962818f544d7fab3ba4cb8a7919eb', 'project_id': '051962818f544d7fab3ba4cb8a7919eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-15726802', 'ctest-ext_vn-75057742'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 13:43:52,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d2471f-914d-44ab-a966-9780efe3c9c4', 'name': '', 'tenant_id': '051962818f544d7fab3ba4cb8a7919eb', 'network_id': '4e9dc846-422c-438f-8e06-3fde2021cb24', 'ip_version': 4, 'cidr': '187.14.95.192/26', 'allocation_pools': [{'start': '187.14.95.194', 'end': '187.14.95.254'}], 'gateway_ip': '187.14.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:43:52.320694', 'updated_at': '2025-10-09T13:43:52.320694', 'dns_server_address': '187.14.95.194', 'tags': [], 'project_id': '051962818f544d7fab3ba4cb8a7919eb'}} 2025-10-09 13:43:52,497 - INFO - Created VN ctest-ext_vn-75057742 2025-10-09 13:43:52,550 - DEBUG - VN ctest-ext_vn-75057742 UUID is 4e9dc846-422c-438f-8e06-3fde2021cb24 2025-10-09 13:43:52,846 - DEBUG - Services list from nova: [, , ] 2025-10-09 13:43:54,039 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-588-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-588-1) 2025-10-09 13:43:55,426 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-588-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-588-1) 2025-10-09 13:43:55,573 - INFO - Setting gateway for router 3cc1dab3-618b-480c-841c-5ab10885d15f to network 4e9dc846-422c-438f-8e06-3fde2021cb24 2025-10-09 13:43:55,756 - INFO - Adding interface with subnet_id 514d6b28-83fa-470c-a200-d867ceb21090, port_id None to router 3cc1dab3-618b-480c-841c-5ab10885d15f 2025-10-09 13:43:56,358 - INFO - Waiting for VM ctest-TestRoutersBasic-15726802-70486895 to be up.. 2025-10-09 13:43:56,535 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 13:44:01,681 - DEBUG - VM is in ACTIVE state now 2025-10-09 13:44:01,681 - INFO - VM name : ctest-TestRoutersBasic-15726802-70486895 2025-10-09 13:44:01,835 - DEBUG - VM ctest-TestRoutersBasic-15726802-70486895 ID is 845c899a-4a87-4bf0-8310-b3c0c27025a9 2025-10-09 13:44:01,866 - DEBUG - VM ctest-TestRoutersBasic-15726802-70486895 launched on Node cn-jenkins-deploy-platform-juju-os-588-1 2025-10-09 13:44:02,029 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-machine/845c899a-4a87-4bf0-8310-b3c0c27025a9 2025-10-09 13:44:02,425 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-machine/845c899a-4a87-4bf0-8310-b3c0c27025a9 2025-10-09 13:44:02,515 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-machine-interface/cdf43f08-e0ff-4e19-b929-82cbe370e24f 2025-10-09 13:44:05,991 - 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 1005ms') 2025-10-09 13:44:05,991 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15726802-70486895 failed! 2025-10-09 13:44:06,046 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-15726802:ctest-vn-16762792 is 157.33.234.1 and allocation pool is NOT set 2025-10-09 13:44:08,141 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.92 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 = 2.920/3.354/3.789/0.434 ms') 2025-10-09 13:44:08,141 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15726802-70486895 passed 2025-10-09 13:44:08,298 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 13:44:08,298 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15726802-70486895, IP 157.33.234.3, Port 22 2025-10-09 13:44:08,406 - 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-10-09 13:44:08,574 - DEBUG - VM ctest-TestRoutersBasic-15726802-70486895 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 13:44:13,574 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 13:44:13,574 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15726802-70486895, IP 157.33.234.3, Port 22 2025-10-09 13:44:13,799 - DEBUG - VM ctest-TestRoutersBasic-15726802-70486895 is ready for SSH connections 2025-10-09 13:44:13,800 - INFO - Waiting for VM ctest-TestRoutersBasic-15726802-54692060 to be up.. 2025-10-09 13:44:13,943 - DEBUG - VM is in ACTIVE state now 2025-10-09 13:44:13,943 - INFO - VM name : ctest-TestRoutersBasic-15726802-54692060 2025-10-09 13:44:14,096 - DEBUG - VM ctest-TestRoutersBasic-15726802-54692060 ID is 9bde9179-d0f1-4475-b30f-2a1cec836374 2025-10-09 13:44:14,096 - DEBUG - VM ctest-TestRoutersBasic-15726802-54692060 launched on Node cn-jenkins-deploy-platform-juju-os-588-1 2025-10-09 13:44:14,236 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-machine/9bde9179-d0f1-4475-b30f-2a1cec836374 2025-10-09 13:44:14,291 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-machine-interface/dc2cc7c9-a8c1-4ffb-b09b-7a9ab836555d 2025-10-09 13:44:15,756 - 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.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.483 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.483/1.881/3.279/1.398 ms') 2025-10-09 13:44:15,756 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15726802-54692060 passed 2025-10-09 13:44:15,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 13:44:15,914 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15726802-54692060, IP 187.14.95.195, Port 22 2025-10-09 13:44:16,145 - DEBUG - VM ctest-TestRoutersBasic-15726802-54692060 is ready for SSH connections 2025-10-09 13:44:16,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 13:44:16,145 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 187.14.95.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-10-09 13:44:16,145 - DEBUG - ping -s 56 -c 3 -W 1 187.14.95.195 2025-10-09 13:44:20,331 - DEBUG - PING 187.14.95.195 (187.14.95.195): 56 data bytes 64 bytes from 187.14.95.195: seq=0 ttl=62 time=9.020 ms 64 bytes from 187.14.95.195: seq=1 ttl=62 time=1.065 ms 64 bytes from 187.14.95.195: seq=2 ttl=62 time=1.043 ms --- 187.14.95.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.043/3.709/9.020 ms 2025-10-09 13:44:20,331 - INFO - Ping to IP 187.14.95.195 from VM ctest-TestRoutersBasic-15726802-70486895 passed 2025-10-09 13:44:20,331 - INFO - Deleting interface with subnet_id 514d6b28-83fa-470c-a200-d867ceb21090, port_id None from router 3cc1dab3-618b-480c-841c-5ab10885d15f 2025-10-09 13:44:20,828 - INFO - Deleting VM ctest-TestRoutersBasic-15726802-54692060 2025-10-09 13:44:20,997 - INFO - Deleting VM ctest-TestRoutersBasic-15726802-70486895 2025-10-09 13:44:21,159 - INFO - Deleting VN ctest-ext_vn-75057742 2025-10-09 13:44:21,386 - DEBUG - VN 4e9dc846-422c-438f-8e06-3fde2021cb24 still in use: Unable to complete operation on network 4e9dc846-422c-438f-8e06-3fde2021cb24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d6e2dcca-ebf2-4e87-b987-4cfd5675ea94'] 2025-10-09 13:44:21,386 - WARNING - Deleting VN ctest-ext_vn-75057742 failed..Will retry 2025-10-09 13:44:23,692 - DEBUG - Response for deleting network () 2025-10-09 13:44:23,692 - INFO - Deleting VN ctest-vn-16762792 2025-10-09 13:44:23,915 - DEBUG - Response for deleting network () 2025-10-09 13:44:24,328 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 13:44:24,328 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2025-10-09 13:44:24,328 - INFO - -------------------------------------------------------------------------------- 2025-10-09 13:44:25,183 - INFO - Deleted project: ctest-TestRoutersBasic-15726802, ID : 05196281-8f54-4d7f-ab3b-a4cb8a7919eb