2025-10-22 12:57:14,600 - INFO - Domain Default found not creating 2025-10-22 12:57:14,748 - INFO - Project ctest-TestRoutersBasic-94539492 not found, creating it 2025-10-22 12:57:15,231 - INFO - Created Project:ctest-TestRoutersBasic-94539492, ID : fb0ccf47-91f8-4907-bfa2-4fe75060e2e6 2025-10-22 12:57:16,795 - INFO - ================================================================================ 2025-10-22 12:57:16,795 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 12:57:16,795 - 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-22 12:57:17,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-10-22 12:57:17,049 - INFO - Initial checks done. Running the testcase now 2025-10-22 12:57:17,049 - INFO - 2025-10-22 12:57:17,844 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94539492 2025-10-22 12:57:17,942 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94539492 2025-10-22 12:57:18,266 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94539492', 'default']} 2025-10-22 12:57:18,582 - DEBUG - Response for create_network : {'network': {'id': '09f5bd48-ae99-41bf-8e36-ce42e5c41fb6', 'name': 'ctest-vn-38582173', 'tenant_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'project_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94539492', 'ctest-vn-38582173'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:57:18,796 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2858e7f-d622-48b0-ae3d-92f721b2ed40', 'name': '', 'tenant_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'network_id': '09f5bd48-ae99-41bf-8e36-ce42e5c41fb6', 'ip_version': 4, 'cidr': '102.173.229.0/26', 'allocation_pools': [{'start': '102.173.229.2', 'end': '102.173.229.62'}], 'gateway_ip': '102.173.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.173.229.2', 'tags': [], 'project_id': 'fb0ccf4791f84907bfa24fe75060e2e6'}} 2025-10-22 12:57:18,814 - INFO - Created VN ctest-vn-38582173 2025-10-22 12:57:18,866 - DEBUG - VN ctest-vn-38582173 UUID is 09f5bd48-ae99-41bf-8e36-ce42e5c41fb6 2025-10-22 12:57:19,207 - DEBUG - Response for create_network : {'network': {'id': 'b49c94be-92cb-4b29-8cb9-8df24e536a83', 'name': 'ctest-ext_vn-51547156', 'tenant_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'project_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94539492', 'ctest-ext_vn-51547156'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:57:19,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ed0399a-dddb-468e-a0e0-ced0c84c5627', 'name': '', 'tenant_id': 'fb0ccf4791f84907bfa24fe75060e2e6', 'network_id': 'b49c94be-92cb-4b29-8cb9-8df24e536a83', 'ip_version': 4, 'cidr': '102.4.35.192/26', 'allocation_pools': [{'start': '102.4.35.194', 'end': '102.4.35.254'}], 'gateway_ip': '102.4.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.4.35.194', 'tags': [], 'project_id': 'fb0ccf4791f84907bfa24fe75060e2e6'}} 2025-10-22 12:57:19,389 - INFO - Created VN ctest-ext_vn-51547156 2025-10-22 12:57:19,442 - DEBUG - VN ctest-ext_vn-51547156 UUID is b49c94be-92cb-4b29-8cb9-8df24e536a83 2025-10-22 12:57:19,609 - DEBUG - Services list from nova: [, , ] 2025-10-22 12:57:20,697 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4428-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4428-1) 2025-10-22 12:57:21,903 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4428-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4428-1) 2025-10-22 12:57:21,983 - INFO - Setting gateway for router a6b838fb-0bd5-4532-8017-438a665f108c to network b49c94be-92cb-4b29-8cb9-8df24e536a83 2025-10-22 12:57:22,041 - INFO - Adding interface with subnet_id e2858e7f-d622-48b0-ae3d-92f721b2ed40, port_id None to router a6b838fb-0bd5-4532-8017-438a665f108c 2025-10-22 12:57:22,320 - INFO - Waiting for VM ctest-TestRoutersBasic-94539492-46714512 to be up.. 2025-10-22 12:57:22,484 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 12:57:27,559 - DEBUG - VM is in ACTIVE state now 2025-10-22 12:57:27,559 - INFO - VM name : ctest-TestRoutersBasic-94539492-46714512 2025-10-22 12:57:27,630 - DEBUG - VM ctest-TestRoutersBasic-94539492-46714512 ID is ba6075c4-1943-4ce2-bf29-3632538dd8e0 2025-10-22 12:57:27,649 - DEBUG - VM ctest-TestRoutersBasic-94539492-46714512 launched on Node cn-jenkins-deploy-platform-ansible-os-4428-1 2025-10-22 12:57:27,729 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/ba6075c4-1943-4ce2-bf29-3632538dd8e0 2025-10-22 12:57:28,062 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/ba6075c4-1943-4ce2-bf29-3632538dd8e0 2025-10-22 12:57:28,096 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/c9c398df-7b30-4cb6-a8f4-24f5e2ed0146 2025-10-22 12:57:31,336 - 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 1003ms') 2025-10-22 12:57:31,336 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94539492-46714512 failed! 2025-10-22 12:57:31,390 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94539492:ctest-vn-38582173 is 102.173.229.1 and allocation pool is NOT set 2025-10-22 12:57:33,453 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.53 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.532/3.079/4.627/1.547 ms') 2025-10-22 12:57:33,453 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94539492-46714512 passed 2025-10-22 12:57:33,602 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:57:33,602 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94539492-46714512, IP 102.173.229.3, Port 22 2025-10-22 12:57:33,661 - 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-22 12:57:33,740 - DEBUG - VM ctest-TestRoutersBasic-94539492-46714512 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 12:57:38,741 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:57:38,741 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94539492-46714512, IP 102.173.229.3, Port 22 2025-10-22 12:57:38,897 - DEBUG - VM ctest-TestRoutersBasic-94539492-46714512 is ready for SSH connections 2025-10-22 12:57:38,898 - INFO - Waiting for VM ctest-TestRoutersBasic-94539492-60944070 to be up.. 2025-10-22 12:57:38,970 - DEBUG - VM is in ACTIVE state now 2025-10-22 12:57:38,971 - INFO - VM name : ctest-TestRoutersBasic-94539492-60944070 2025-10-22 12:57:39,045 - DEBUG - VM ctest-TestRoutersBasic-94539492-60944070 ID is 97646ddc-051e-4388-b461-9346ead996b4 2025-10-22 12:57:39,045 - DEBUG - VM ctest-TestRoutersBasic-94539492-60944070 launched on Node cn-jenkins-deploy-platform-ansible-os-4428-1 2025-10-22 12:57:39,124 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/97646ddc-051e-4388-b461-9346ead996b4 2025-10-22 12:57:39,134 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/06a2681e-bd62-4530-a992-cd1d20615a12 2025-10-22 12:57:40,378 - 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=2.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.382 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.382/1.661/2.941/1.279 ms') 2025-10-22 12:57:40,378 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94539492-60944070 passed 2025-10-22 12:57:40,530 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:57:40,530 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94539492-60944070, IP 102.4.35.195, Port 22 2025-10-22 12:57:40,701 - DEBUG - VM ctest-TestRoutersBasic-94539492-60944070 is ready for SSH connections 2025-10-22 12:57:40,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:57:40,701 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.4.35.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-22 12:57:40,701 - DEBUG - ping -s 56 -c 3 -W 1 102.4.35.195 2025-10-22 12:57:44,486 - DEBUG - PING 102.4.35.195 (102.4.35.195): 56 data bytes 64 bytes from 102.4.35.195: seq=0 ttl=62 time=7.610 ms 64 bytes from 102.4.35.195: seq=1 ttl=62 time=1.113 ms 64 bytes from 102.4.35.195: seq=2 ttl=62 time=1.000 ms --- 102.4.35.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.000/3.241/7.610 ms 2025-10-22 12:57:44,486 - INFO - Ping to IP 102.4.35.195 from VM ctest-TestRoutersBasic-94539492-46714512 passed 2025-10-22 12:57:44,487 - INFO - Deleting interface with subnet_id e2858e7f-d622-48b0-ae3d-92f721b2ed40, port_id None from router a6b838fb-0bd5-4532-8017-438a665f108c 2025-10-22 12:57:44,704 - INFO - Deleting VM ctest-TestRoutersBasic-94539492-60944070 2025-10-22 12:57:44,786 - INFO - Deleting VM ctest-TestRoutersBasic-94539492-46714512 2025-10-22 12:57:44,877 - INFO - Deleting VN ctest-ext_vn-51547156 2025-10-22 12:57:44,950 - DEBUG - VN b49c94be-92cb-4b29-8cb9-8df24e536a83 still in use: Unable to complete operation on network b49c94be-92cb-4b29-8cb9-8df24e536a83. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9894a7ab-b493-40fa-b7cd-46cc06205048'] 2025-10-22 12:57:44,950 - WARNING - Deleting VN ctest-ext_vn-51547156 failed..Will retry 2025-10-22 12:57:47,052 - DEBUG - Response for deleting network () 2025-10-22 12:57:47,053 - INFO - Deleting VN ctest-vn-38582173 2025-10-22 12:57:47,153 - DEBUG - Response for deleting network () 2025-10-22 12:57:47,415 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 12:57:47,415 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-10-22 12:57:47,415 - INFO - -------------------------------------------------------------------------------- 2025-10-22 12:57:48,145 - INFO - Deleted project: ctest-TestRoutersBasic-94539492, ID : fb0ccf47-91f8-4907-bfa2-4fe75060e2e6