2025-06-10 14:45:04,768 - INFO - Domain Default found not creating 2025-06-10 14:45:04,928 - INFO - Project ctest-TestRoutersBasic-10209472 not found, creating it 2025-06-10 14:45:05,387 - INFO - Created Project:ctest-TestRoutersBasic-10209472, ID : 451f66b3-ba5b-4ea5-a78a-c7ef60808c03 2025-06-10 14:45:06,956 - INFO - ================================================================================ 2025-06-10 14:45:06,956 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-10 14:45:06,956 - 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-10 14:45:07,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-06-10 14:45:07,220 - INFO - Initial checks done. Running the testcase now 2025-06-10 14:45:07,220 - INFO - 2025-06-10 14:45:08,008 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-10209472 2025-06-10 14:45:08,111 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-10209472 2025-06-10 14:45:08,434 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10209472', 'default']} 2025-06-10 14:45:08,742 - DEBUG - Response for create_network : {'network': {'id': '360dd3b9-097d-42bc-ba62-588bec656582', 'name': 'ctest-vn-39804122', 'tenant_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'project_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10209472', 'ctest-vn-39804122'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:08,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fb4297c-5248-4254-a06c-4644ca6e5c53', 'name': '', 'tenant_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'network_id': '360dd3b9-097d-42bc-ba62-588bec656582', 'ip_version': 4, 'cidr': '123.135.249.128/26', 'allocation_pools': [{'start': '123.135.249.130', 'end': '123.135.249.190'}], 'gateway_ip': '123.135.249.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.135.249.130', 'tags': [], 'project_id': '451f66b3ba5b4ea5a78ac7ef60808c03'}} 2025-06-10 14:45:08,979 - INFO - Created VN ctest-vn-39804122 2025-06-10 14:45:09,031 - DEBUG - VN ctest-vn-39804122 UUID is 360dd3b9-097d-42bc-ba62-588bec656582 2025-06-10 14:45:09,367 - DEBUG - Response for create_network : {'network': {'id': 'd7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e', 'name': 'ctest-ext_vn-48530848', 'tenant_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'project_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10209472', 'ctest-ext_vn-48530848'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:09,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f44f3f5-476a-4f4b-9e75-121c1dacb032', 'name': '', 'tenant_id': '451f66b3ba5b4ea5a78ac7ef60808c03', 'network_id': 'd7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e', 'ip_version': 4, 'cidr': '157.67.59.64/26', 'allocation_pools': [{'start': '157.67.59.66', 'end': '157.67.59.126'}], 'gateway_ip': '157.67.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.67.59.66', 'tags': [], 'project_id': '451f66b3ba5b4ea5a78ac7ef60808c03'}} 2025-06-10 14:45:09,546 - INFO - Created VN ctest-ext_vn-48530848 2025-06-10 14:45:09,598 - DEBUG - VN ctest-ext_vn-48530848 UUID is d7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e 2025-06-10 14:45:09,767 - DEBUG - Services list from nova: [, , ] 2025-06-10 14:45:10,909 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3434-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3434-1) 2025-06-10 14:45:12,148 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3434-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3434-1) 2025-06-10 14:45:12,246 - INFO - Setting gateway for router 4245c0e2-76d2-417c-b960-9d587ef69948 to network d7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e 2025-06-10 14:45:12,318 - INFO - Adding interface with subnet_id 7fb4297c-5248-4254-a06c-4644ca6e5c53, port_id None to router 4245c0e2-76d2-417c-b960-9d587ef69948 2025-06-10 14:45:12,773 - INFO - Waiting for VM ctest-TestRoutersBasic-10209472-94847538 to be up.. 2025-06-10 14:45:12,975 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 14:45:18,066 - DEBUG - VM is in ACTIVE state now 2025-06-10 14:45:18,066 - INFO - VM name : ctest-TestRoutersBasic-10209472-94847538 2025-06-10 14:45:18,148 - DEBUG - VM ctest-TestRoutersBasic-10209472-94847538 ID is 3bf59664-bd83-45c4-859b-0dab035cbdff 2025-06-10 14:45:18,168 - DEBUG - VM ctest-TestRoutersBasic-10209472-94847538 launched on Node cn-jenkins-deploy-platform-ansible-os-3434-1 2025-06-10 14:45:18,258 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3bf59664-bd83-45c4-859b-0dab035cbdff 2025-06-10 14:45:18,623 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3bf59664-bd83-45c4-859b-0dab035cbdff 2025-06-10 14:45:18,669 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/5f156249-fe08-4c3f-9868-22e4855f4458 2025-06-10 14:45:21,942 - 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 1026ms') 2025-06-10 14:45:21,942 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10209472-94847538 failed! 2025-06-10 14:45:22,002 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-10209472:ctest-vn-39804122 is 123.135.249.129 and allocation pool is NOT set 2025-06-10 14:45:24,073 - 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=4.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.91 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.909/3.940/4.972/1.031 ms') 2025-06-10 14:45:24,073 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10209472-94847538 passed 2025-06-10 14:45:24,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:45:24,235 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10209472-94847538, IP 123.135.249.131, Port 22 2025-06-10 14:45:24,291 - 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-06-10 14:45:24,376 - DEBUG - VM ctest-TestRoutersBasic-10209472-94847538 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 14:45:29,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:45:29,376 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10209472-94847538, IP 123.135.249.131, Port 22 2025-06-10 14:45:29,534 - DEBUG - VM ctest-TestRoutersBasic-10209472-94847538 is ready for SSH connections 2025-06-10 14:45:29,534 - INFO - Waiting for VM ctest-TestRoutersBasic-10209472-49218490 to be up.. 2025-06-10 14:45:29,621 - DEBUG - VM is in ACTIVE state now 2025-06-10 14:45:29,622 - INFO - VM name : ctest-TestRoutersBasic-10209472-49218490 2025-06-10 14:45:29,717 - DEBUG - VM ctest-TestRoutersBasic-10209472-49218490 ID is 3b4e6ba8-9b36-4a71-bac5-8e357ca58ba1 2025-06-10 14:45:29,717 - DEBUG - VM ctest-TestRoutersBasic-10209472-49218490 launched on Node cn-jenkins-deploy-platform-ansible-os-3434-1 2025-06-10 14:45:29,795 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3b4e6ba8-9b36-4a71-bac5-8e357ca58ba1 2025-06-10 14:45:29,806 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/4326a26b-18da-48fa-be6b-790d0c2fb98e 2025-06-10 14:45:31,055 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.390 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.390/2.234/4.078/1.844 ms') 2025-06-10 14:45:31,055 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-10209472-49218490 passed 2025-06-10 14:45:31,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:45:31,211 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10209472-49218490, IP 157.67.59.67, Port 22 2025-06-10 14:45:31,374 - DEBUG - VM ctest-TestRoutersBasic-10209472-49218490 is ready for SSH connections 2025-06-10 14:45:31,374 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:45:31,374 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.67.59.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-10 14:45:31,374 - DEBUG - ping -s 56 -c 3 -W 1 157.67.59.67 2025-06-10 14:45:35,101 - DEBUG - PING 157.67.59.67 (157.67.59.67): 56 data bytes 64 bytes from 157.67.59.67: seq=0 ttl=62 time=8.514 ms 64 bytes from 157.67.59.67: seq=1 ttl=62 time=2.101 ms 64 bytes from 157.67.59.67: seq=2 ttl=62 time=0.918 ms --- 157.67.59.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.918/3.844/8.514 ms 2025-06-10 14:45:35,101 - INFO - Ping to IP 157.67.59.67 from VM ctest-TestRoutersBasic-10209472-94847538 passed 2025-06-10 14:45:35,101 - INFO - Deleting interface with subnet_id 7fb4297c-5248-4254-a06c-4644ca6e5c53, port_id None from router 4245c0e2-76d2-417c-b960-9d587ef69948 2025-06-10 14:45:35,303 - INFO - Deleting VM ctest-TestRoutersBasic-10209472-49218490 2025-06-10 14:45:35,382 - INFO - Deleting VM ctest-TestRoutersBasic-10209472-94847538 2025-06-10 14:45:35,466 - INFO - Deleting VN ctest-ext_vn-48530848 2025-06-10 14:45:35,531 - DEBUG - VN d7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e still in use: Unable to complete operation on network d7bfa9c9-ed7c-40d1-adb8-c0e9afcea83e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2ae6e994-7c24-461b-84eb-37b600690dee'] 2025-06-10 14:45:35,531 - WARNING - Deleting VN ctest-ext_vn-48530848 failed..Will retry 2025-06-10 14:45:37,640 - DEBUG - Response for deleting network () 2025-06-10 14:45:37,640 - INFO - Deleting VN ctest-vn-39804122 2025-06-10 14:45:37,759 - DEBUG - Response for deleting network () 2025-06-10 14:45:38,031 - DEBUG - No XMPP flaps were noticed during the test 2025-06-10 14:45:38,031 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-06-10 14:45:38,031 - INFO - -------------------------------------------------------------------------------- 2025-06-10 14:45:38,789 - INFO - Deleted project: ctest-TestRoutersBasic-10209472, ID : 451f66b3-ba5b-4ea5-a78a-c7ef60808c03