2025-06-30 17:29:41,524 - INFO - Domain Default found not creating 2025-06-30 17:29:41,848 - INFO - Project ctest-TestRoutersBasic-09591159 not found, creating it 2025-06-30 17:29:42,343 - INFO - Created Project:ctest-TestRoutersBasic-09591159, ID : 1a8ac1c6-bb1c-42ff-b37b-855f0a0a6231 2025-06-30 17:29:43,941 - INFO - ================================================================================ 2025-06-30 17:29:43,941 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-30 17:29:43,941 - 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-30 17:29:44,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-06-30 17:29:44,212 - INFO - Initial checks done. Running the testcase now 2025-06-30 17:29:44,212 - INFO - 2025-06-30 17:29:45,013 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-09591159 2025-06-30 17:29:45,115 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-09591159 2025-06-30 17:29:45,473 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09591159', 'default']} 2025-06-30 17:29:45,801 - DEBUG - Response for create_network : {'network': {'id': 'e7a2872b-766c-44b7-8980-4808a6257954', 'name': 'ctest-vn-51039686', 'tenant_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'project_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09591159', 'ctest-vn-51039686'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:29:46,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '77966bbc-0398-443e-b508-d64f764986ec', 'name': '', 'tenant_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'network_id': 'e7a2872b-766c-44b7-8980-4808a6257954', 'ip_version': 4, 'cidr': '143.173.119.128/26', 'allocation_pools': [{'start': '143.173.119.130', 'end': '143.173.119.190'}], 'gateway_ip': '143.173.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.173.119.130', 'tags': [], 'project_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231'}} 2025-06-30 17:29:46,069 - INFO - Created VN ctest-vn-51039686 2025-06-30 17:29:46,127 - DEBUG - VN ctest-vn-51039686 UUID is e7a2872b-766c-44b7-8980-4808a6257954 2025-06-30 17:29:46,512 - DEBUG - Response for create_network : {'network': {'id': 'c09fab22-7a88-4652-8b91-e920f4320192', 'name': 'ctest-ext_vn-15963978', 'tenant_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'project_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09591159', 'ctest-ext_vn-15963978'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:29:46,734 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcd7711f-19d8-4f61-a3d6-ed62b123335a', 'name': '', 'tenant_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231', 'network_id': 'c09fab22-7a88-4652-8b91-e920f4320192', 'ip_version': 4, 'cidr': '77.170.99.0/26', 'allocation_pools': [{'start': '77.170.99.2', 'end': '77.170.99.62'}], 'gateway_ip': '77.170.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.170.99.2', 'tags': [], 'project_id': '1a8ac1c6bb1c42ffb37b855f0a0a6231'}} 2025-06-30 17:29:46,754 - INFO - Created VN ctest-ext_vn-15963978 2025-06-30 17:29:46,811 - DEBUG - VN ctest-ext_vn-15963978 UUID is c09fab22-7a88-4652-8b91-e920f4320192 2025-06-30 17:29:47,018 - DEBUG - Services list from nova: [, , ] 2025-06-30 17:29:48,086 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3584-1) 2025-06-30 17:29:49,278 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3584-1) 2025-06-30 17:29:49,392 - INFO - Setting gateway for router 2089585c-e3fd-4f03-b83e-6eed5f7e6209 to network c09fab22-7a88-4652-8b91-e920f4320192 2025-06-30 17:29:49,462 - INFO - Adding interface with subnet_id 77966bbc-0398-443e-b508-d64f764986ec, port_id None to router 2089585c-e3fd-4f03-b83e-6eed5f7e6209 2025-06-30 17:29:49,889 - INFO - Waiting for VM ctest-TestRoutersBasic-09591159-11431292 to be up.. 2025-06-30 17:29:50,130 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-30 17:29:55,246 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:29:55,246 - INFO - VM name : ctest-TestRoutersBasic-09591159-11431292 2025-06-30 17:29:55,349 - DEBUG - VM ctest-TestRoutersBasic-09591159-11431292 ID is 0cf8d06d-b3d4-4e21-9777-526f3f79e88d 2025-06-30 17:29:55,374 - DEBUG - VM ctest-TestRoutersBasic-09591159-11431292 launched on Node cn-jenkins-deploy-platform-ansible-os-3584-1 2025-06-30 17:29:55,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/0cf8d06d-b3d4-4e21-9777-526f3f79e88d 2025-06-30 17:29:55,787 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/0cf8d06d-b3d4-4e21-9777-526f3f79e88d 2025-06-30 17:29:55,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3159dc40-4e9c-492f-b1bd-b60c8c531911 2025-06-30 17:29:59,115 - 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-30 17:29:59,116 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09591159-11431292 failed! 2025-06-30 17:29:59,178 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-09591159:ctest-vn-51039686 is 143.173.119.129 and allocation pool is NOT set 2025-06-30 17:30:01,249 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.67 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.669/3.926/5.183/1.257 ms') 2025-06-30 17:30:01,249 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09591159-11431292 passed 2025-06-30 17:30:01,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:01,407 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09591159-11431292, IP 143.173.119.131, Port 22 2025-06-30 17:30:01,573 - DEBUG - VM ctest-TestRoutersBasic-09591159-11431292 is ready for SSH connections 2025-06-30 17:30:01,573 - INFO - Waiting for VM ctest-TestRoutersBasic-09591159-16602874 to be up.. 2025-06-30 17:30:01,676 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:30:01,676 - INFO - VM name : ctest-TestRoutersBasic-09591159-16602874 2025-06-30 17:30:01,799 - DEBUG - VM ctest-TestRoutersBasic-09591159-16602874 ID is d5c5af67-d4af-4d55-86be-4aed68a064e3 2025-06-30 17:30:01,799 - DEBUG - VM ctest-TestRoutersBasic-09591159-16602874 launched on Node cn-jenkins-deploy-platform-ansible-os-3584-1 2025-06-30 17:30:01,908 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d5c5af67-d4af-4d55-86be-4aed68a064e3 2025-06-30 17:30:01,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/68b8df00-165f-4c0c-8ffd-3765161e39ed 2025-06-30 17:30:03,197 - 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=5.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.74 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.740/3.740/5.741/2.000 ms') 2025-06-30 17:30:03,197 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-09591159-16602874 passed 2025-06-30 17:30:03,354 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:03,355 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09591159-16602874, IP 77.170.99.3, Port 22 2025-06-30 17:30:03,424 - 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-30 17:30:03,517 - DEBUG - VM ctest-TestRoutersBasic-09591159-16602874 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-30 17:30:08,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:08,518 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09591159-16602874, IP 77.170.99.3, Port 22 2025-06-30 17:30:08,688 - DEBUG - VM ctest-TestRoutersBasic-09591159-16602874 is ready for SSH connections 2025-06-30 17:30:08,688 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:08,688 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.170.99.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-30 17:30:08,688 - DEBUG - ping -s 56 -c 3 -W 1 77.170.99.3 2025-06-30 17:30:12,905 - DEBUG - PING 77.170.99.3 (77.170.99.3): 56 data bytes 64 bytes from 77.170.99.3: seq=0 ttl=62 time=8.283 ms 64 bytes from 77.170.99.3: seq=1 ttl=62 time=1.040 ms 64 bytes from 77.170.99.3: seq=2 ttl=62 time=1.412 ms --- 77.170.99.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.040/3.578/8.283 ms 2025-06-30 17:30:12,905 - INFO - Ping to IP 77.170.99.3 from VM ctest-TestRoutersBasic-09591159-11431292 passed 2025-06-30 17:30:12,905 - INFO - Deleting interface with subnet_id 77966bbc-0398-443e-b508-d64f764986ec, port_id None from router 2089585c-e3fd-4f03-b83e-6eed5f7e6209 2025-06-30 17:30:13,134 - INFO - Deleting VM ctest-TestRoutersBasic-09591159-16602874 2025-06-30 17:30:13,207 - INFO - Deleting VM ctest-TestRoutersBasic-09591159-11431292 2025-06-30 17:30:13,293 - INFO - Deleting VN ctest-ext_vn-15963978 2025-06-30 17:30:13,363 - DEBUG - VN c09fab22-7a88-4652-8b91-e920f4320192 still in use: Unable to complete operation on network c09fab22-7a88-4652-8b91-e920f4320192. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a6a094e2-1cf4-4f9d-b032-7785e25fcf56'] 2025-06-30 17:30:13,363 - WARNING - Deleting VN ctest-ext_vn-15963978 failed..Will retry 2025-06-30 17:30:15,496 - DEBUG - Response for deleting network () 2025-06-30 17:30:15,496 - INFO - Deleting VN ctest-vn-51039686 2025-06-30 17:30:15,611 - DEBUG - Response for deleting network () 2025-06-30 17:30:15,881 - DEBUG - No XMPP flaps were noticed during the test
2025-06-30 17:30:15,881 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-30 17:30:15,881 - INFO - -------------------------------------------------------------------------------- 2025-06-30 17:30:16,620 - INFO - Deleted project: ctest-TestRoutersBasic-09591159, ID : 1a8ac1c6-bb1c-42ff-b37b-855f0a0a6231