2025-06-15 09:23:45,270 - INFO - Domain Default found not creating 2025-06-15 09:23:45,409 - INFO - Project ctest-TestRoutersBasic-51006258 not found, creating it 2025-06-15 09:23:45,870 - INFO - Created Project:ctest-TestRoutersBasic-51006258, ID : 2410a147-aa44-4c52-ab70-4acecafdee5a 2025-06-15 09:23:47,419 - INFO - ================================================================================ 2025-06-15 09:23:47,419 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-15 09:23:47,419 - 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-15 09:23:47,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-06-15 09:23:47,678 - INFO - Initial checks done. Running the testcase now 2025-06-15 09:23:47,678 - INFO - 2025-06-15 09:23:48,467 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-51006258 2025-06-15 09:23:48,564 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-51006258 2025-06-15 09:23:48,895 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51006258', 'default']} 2025-06-15 09:23:49,192 - DEBUG - Response for create_network : {'network': {'id': 'ee73d2b5-6b3e-4a9d-8711-cd649c5b73f9', 'name': 'ctest-vn-13310224', 'tenant_id': '2410a147aa444c52ab704acecafdee5a', 'project_id': '2410a147aa444c52ab704acecafdee5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51006258', 'ctest-vn-13310224'], 'port_security_enabled': True, 'description': ''}} 2025-06-15 09:23:49,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '289581c5-ed24-4142-a913-81e15da0f370', 'name': '', 'tenant_id': '2410a147aa444c52ab704acecafdee5a', 'network_id': 'ee73d2b5-6b3e-4a9d-8711-cd649c5b73f9', 'ip_version': 4, 'cidr': '170.90.235.128/26', 'allocation_pools': [{'start': '170.90.235.130', 'end': '170.90.235.190'}], 'gateway_ip': '170.90.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.90.235.130', 'tags': [], 'project_id': '2410a147aa444c52ab704acecafdee5a'}} 2025-06-15 09:23:49,400 - INFO - Created VN ctest-vn-13310224 2025-06-15 09:23:49,452 - DEBUG - VN ctest-vn-13310224 UUID is ee73d2b5-6b3e-4a9d-8711-cd649c5b73f9 2025-06-15 09:23:49,823 - DEBUG - Response for create_network : {'network': {'id': '23f74ac1-7bf3-484c-b18a-0d5337eeca41', 'name': 'ctest-ext_vn-60120243', 'tenant_id': '2410a147aa444c52ab704acecafdee5a', 'project_id': '2410a147aa444c52ab704acecafdee5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51006258', 'ctest-ext_vn-60120243'], 'port_security_enabled': True, 'description': ''}} 2025-06-15 09:23:50,017 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc449c9c-0150-4fe2-9a2a-d5a901f7b5b7', 'name': '', 'tenant_id': '2410a147aa444c52ab704acecafdee5a', 'network_id': '23f74ac1-7bf3-484c-b18a-0d5337eeca41', 'ip_version': 4, 'cidr': '15.174.255.0/26', 'allocation_pools': [{'start': '15.174.255.2', 'end': '15.174.255.62'}], 'gateway_ip': '15.174.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.174.255.2', 'tags': [], 'project_id': '2410a147aa444c52ab704acecafdee5a'}} 2025-06-15 09:23:50,035 - INFO - Created VN ctest-ext_vn-60120243 2025-06-15 09:23:50,088 - DEBUG - VN ctest-ext_vn-60120243 UUID is 23f74ac1-7bf3-484c-b18a-0d5337eeca41 2025-06-15 09:23:50,269 - DEBUG - Services list from nova: [, , ] 2025-06-15 09:23:51,353 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3452-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3452-1) 2025-06-15 09:23:52,592 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3452-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3452-1) 2025-06-15 09:23:52,684 - INFO - Setting gateway for router 61729a06-0f6a-42ab-8d23-b472639ee867 to network 23f74ac1-7bf3-484c-b18a-0d5337eeca41 2025-06-15 09:23:52,743 - INFO - Adding interface with subnet_id 289581c5-ed24-4142-a913-81e15da0f370, port_id None to router 61729a06-0f6a-42ab-8d23-b472639ee867 2025-06-15 09:23:53,358 - INFO - Waiting for VM ctest-TestRoutersBasic-51006258-07538360 to be up.. 2025-06-15 09:23:53,536 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-15 09:23:58,624 - DEBUG - VM is in ACTIVE state now 2025-06-15 09:23:58,624 - INFO - VM name : ctest-TestRoutersBasic-51006258-07538360 2025-06-15 09:23:58,699 - DEBUG - VM ctest-TestRoutersBasic-51006258-07538360 ID is 8e074570-237b-4dd2-b047-01a8317d952d 2025-06-15 09:23:58,720 - DEBUG - VM ctest-TestRoutersBasic-51006258-07538360 launched on Node cn-jenkins-deploy-platform-ansible-os-3452-1 2025-06-15 09:23:58,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/8e074570-237b-4dd2-b047-01a8317d952d 2025-06-15 09:23:59,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/8e074570-237b-4dd2-b047-01a8317d952d 2025-06-15 09:23:59,179 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7f0ed98c-4882-4515-abf8-f9ccce0dd953 2025-06-15 09:24:02,456 - 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 1018ms') 2025-06-15 09:24:02,456 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51006258-07538360 failed! 2025-06-15 09:24:02,512 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-51006258:ctest-vn-13310224 is 170.90.235.129 and allocation pool is NOT set 2025-06-15 09:24:04,583 - 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=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.54 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 = 1.543/6.203/10.863/4.660 ms') 2025-06-15 09:24:04,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51006258-07538360 passed 2025-06-15 09:24:04,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-15 09:24:04,748 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51006258-07538360, IP 170.90.235.131, Port 22 2025-06-15 09:24:04,903 - DEBUG - VM ctest-TestRoutersBasic-51006258-07538360 is ready for SSH connections 2025-06-15 09:24:04,903 - INFO - Waiting for VM ctest-TestRoutersBasic-51006258-87428507 to be up.. 2025-06-15 09:24:04,993 - DEBUG - VM is in ACTIVE state now 2025-06-15 09:24:04,993 - INFO - VM name : ctest-TestRoutersBasic-51006258-87428507 2025-06-15 09:24:05,073 - DEBUG - VM ctest-TestRoutersBasic-51006258-87428507 ID is 98f32581-50dd-4e34-aa34-4917313f3f09 2025-06-15 09:24:05,073 - DEBUG - VM ctest-TestRoutersBasic-51006258-87428507 launched on Node cn-jenkins-deploy-platform-ansible-os-3452-1 2025-06-15 09:24:05,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/98f32581-50dd-4e34-aa34-4917313f3f09 2025-06-15 09:24:05,165 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c0d613f9-da7f-42f3-89d5-f93508a4ecef 2025-06-15 09:24:06,472 - 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.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.16 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 = 2.161/3.663/5.166/1.502 ms') 2025-06-15 09:24:06,472 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-51006258-87428507 passed 2025-06-15 09:24:06,623 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-15 09:24:06,624 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51006258-87428507, IP 15.174.255.3, Port 22 2025-06-15 09:24:06,679 - 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-15 09:24:06,755 - DEBUG - VM ctest-TestRoutersBasic-51006258-87428507 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-15 09:24:11,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-15 09:24:11,755 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51006258-87428507, IP 15.174.255.3, Port 22 2025-06-15 09:24:11,930 - DEBUG - VM ctest-TestRoutersBasic-51006258-87428507 is ready for SSH connections 2025-06-15 09:24:11,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-15 09:24:11,930 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.174.255.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-15 09:24:11,931 - DEBUG - ping -s 56 -c 3 -W 1 15.174.255.3 2025-06-15 09:24:16,023 - DEBUG - PING 15.174.255.3 (15.174.255.3): 56 data bytes 64 bytes from 15.174.255.3: seq=0 ttl=62 time=5.423 ms 64 bytes from 15.174.255.3: seq=1 ttl=62 time=0.962 ms 64 bytes from 15.174.255.3: seq=2 ttl=62 time=0.866 ms --- 15.174.255.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.866/2.417/5.423 ms 2025-06-15 09:24:16,023 - INFO - Ping to IP 15.174.255.3 from VM ctest-TestRoutersBasic-51006258-07538360 passed 2025-06-15 09:24:16,023 - INFO - Deleting interface with subnet_id 289581c5-ed24-4142-a913-81e15da0f370, port_id None from router 61729a06-0f6a-42ab-8d23-b472639ee867 2025-06-15 09:24:16,248 - INFO - Deleting VM ctest-TestRoutersBasic-51006258-87428507 2025-06-15 09:24:16,324 - INFO - Deleting VM ctest-TestRoutersBasic-51006258-07538360 2025-06-15 09:24:16,411 - INFO - Deleting VN ctest-ext_vn-60120243 2025-06-15 09:24:16,501 - DEBUG - VN 23f74ac1-7bf3-484c-b18a-0d5337eeca41 still in use: Unable to complete operation on network 23f74ac1-7bf3-484c-b18a-0d5337eeca41. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4f68ade7-659c-4862-9f03-41fb7809c238'] 2025-06-15 09:24:16,502 - WARNING - Deleting VN ctest-ext_vn-60120243 failed..Will retry 2025-06-15 09:24:18,621 - DEBUG - Response for deleting network () 2025-06-15 09:24:18,621 - INFO - Deleting VN ctest-vn-13310224 2025-06-15 09:24:18,743 - DEBUG - Response for deleting network () 2025-06-15 09:24:19,008 - DEBUG - No XMPP flaps were noticed during the test 2025-06-15 09:24:19,008 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-06-15 09:24:19,008 - INFO - -------------------------------------------------------------------------------- 2025-06-15 09:24:19,753 - INFO - Deleted project: ctest-TestRoutersBasic-51006258, ID : 2410a147-aa44-4c52-ab70-4acecafdee5a