2025-09-22 07:46:53,464 - INFO - Domain Default found not creating 2025-09-22 07:46:53,607 - INFO - Project ctest-TestRoutersBasic-60324483 not found, creating it 2025-09-22 07:46:54,050 - INFO - Created Project:ctest-TestRoutersBasic-60324483, ID : 7877fc00-b28b-48bd-837a-38bcc3f1302e 2025-09-22 07:46:55,599 - INFO - ================================================================================ 2025-09-22 07:46:55,600 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-22 07:46:55,600 - 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-09-22 07:46:55,856 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-22 07:46:55,856 - INFO - Initial checks done. Running the testcase now 2025-09-22 07:46:55,856 - INFO - 2025-09-22 07:46:56,640 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-60324483 2025-09-22 07:46:56,735 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-60324483 2025-09-22 07:46:57,059 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60324483', 'default']} 2025-09-22 07:46:57,349 - DEBUG - Response for create_network : {'network': {'id': '90e3c7ef-4ee6-47fc-9bba-d823c0a5ec4f', 'name': 'ctest-vn-17644921', 'tenant_id': '7877fc00b28b48bd837a38bcc3f1302e', 'project_id': '7877fc00b28b48bd837a38bcc3f1302e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60324483', 'ctest-vn-17644921'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 07:46:57,572 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a808a523-1de0-49f0-b252-bf4d44ae420d', 'name': '', 'tenant_id': '7877fc00b28b48bd837a38bcc3f1302e', 'network_id': '90e3c7ef-4ee6-47fc-9bba-d823c0a5ec4f', 'ip_version': 4, 'cidr': '30.70.22.0/26', 'allocation_pools': [{'start': '30.70.22.2', 'end': '30.70.22.62'}], 'gateway_ip': '30.70.22.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.70.22.2', 'tags': [], 'project_id': '7877fc00b28b48bd837a38bcc3f1302e'}} 2025-09-22 07:46:57,590 - INFO - Created VN ctest-vn-17644921 2025-09-22 07:46:57,643 - DEBUG - VN ctest-vn-17644921 UUID is 90e3c7ef-4ee6-47fc-9bba-d823c0a5ec4f 2025-09-22 07:46:57,956 - DEBUG - Response for create_network : {'network': {'id': 'c61ed27d-e4dd-44ec-8a5f-af6dc64bba00', 'name': 'ctest-ext_vn-76549346', 'tenant_id': '7877fc00b28b48bd837a38bcc3f1302e', 'project_id': '7877fc00b28b48bd837a38bcc3f1302e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60324483', 'ctest-ext_vn-76549346'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 07:46:58,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '775d1042-5fa0-42b5-b353-9558f630df70', 'name': '', 'tenant_id': '7877fc00b28b48bd837a38bcc3f1302e', 'network_id': 'c61ed27d-e4dd-44ec-8a5f-af6dc64bba00', 'ip_version': 4, 'cidr': '91.22.3.128/26', 'allocation_pools': [{'start': '91.22.3.130', 'end': '91.22.3.190'}], 'gateway_ip': '91.22.3.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.22.3.130', 'tags': [], 'project_id': '7877fc00b28b48bd837a38bcc3f1302e'}} 2025-09-22 07:46:58,119 - INFO - Created VN ctest-ext_vn-76549346 2025-09-22 07:46:58,171 - DEBUG - VN ctest-ext_vn-76549346 UUID is c61ed27d-e4dd-44ec-8a5f-af6dc64bba00 2025-09-22 07:46:58,345 - DEBUG - Services list from nova: [, , ] 2025-09-22 07:46:59,496 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4165-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4165-1) 2025-09-22 07:47:00,737 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4165-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4165-1) 2025-09-22 07:47:00,816 - INFO - Setting gateway for router eff67d82-631a-4fff-b5ef-871f7fed4ac5 to network c61ed27d-e4dd-44ec-8a5f-af6dc64bba00 2025-09-22 07:47:00,914 - INFO - Adding interface with subnet_id a808a523-1de0-49f0-b252-bf4d44ae420d, port_id None to router eff67d82-631a-4fff-b5ef-871f7fed4ac5 2025-09-22 07:47:01,365 - INFO - Waiting for VM ctest-TestRoutersBasic-60324483-80333963 to be up.. 2025-09-22 07:47:01,549 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-22 07:47:06,637 - DEBUG - VM is in ACTIVE state now 2025-09-22 07:47:06,638 - INFO - VM name : ctest-TestRoutersBasic-60324483-80333963 2025-09-22 07:47:06,724 - DEBUG - VM ctest-TestRoutersBasic-60324483-80333963 ID is c223f7dd-caf6-4868-bf0d-b8c55735c889 2025-09-22 07:47:06,750 - DEBUG - VM ctest-TestRoutersBasic-60324483-80333963 launched on Node cn-jenkins-deploy-platform-ansible-os-4165-1 2025-09-22 07:47:06,834 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/c223f7dd-caf6-4868-bf0d-b8c55735c889 2025-09-22 07:47:07,170 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/c223f7dd-caf6-4868-bf0d-b8c55735c889 2025-09-22 07:47:07,203 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/ef8ba0c2-4306-4035-8770-96be819dfcb8 2025-09-22 07:47:10,480 - 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 1029ms') 2025-09-22 07:47:10,480 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60324483-80333963 failed! 2025-09-22 07:47:10,539 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-60324483:ctest-vn-17644921 is 30.70.22.1 and allocation pool is NOT set 2025-09-22 07:47:12,611 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.64 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.643/3.542/4.442/0.899 ms') 2025-09-22 07:47:12,611 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60324483-80333963 passed 2025-09-22 07:47:12,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 07:47:12,771 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60324483-80333963, IP 30.70.22.3, Port 22 2025-09-22 07:47:12,945 - DEBUG - VM ctest-TestRoutersBasic-60324483-80333963 is ready for SSH connections 2025-09-22 07:47:12,946 - INFO - Waiting for VM ctest-TestRoutersBasic-60324483-73197403 to be up.. 2025-09-22 07:47:13,045 - DEBUG - VM is in ACTIVE state now 2025-09-22 07:47:13,045 - INFO - VM name : ctest-TestRoutersBasic-60324483-73197403 2025-09-22 07:47:13,145 - DEBUG - VM ctest-TestRoutersBasic-60324483-73197403 ID is 781c26a3-8b65-4119-a51c-cd08537e9efa 2025-09-22 07:47:13,146 - DEBUG - VM ctest-TestRoutersBasic-60324483-73197403 launched on Node cn-jenkins-deploy-platform-ansible-os-4165-1 2025-09-22 07:47:13,242 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/781c26a3-8b65-4119-a51c-cd08537e9efa 2025-09-22 07:47:13,253 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/19e1e07e-1aaa-4c18-bb2d-5c998fa07ef6 2025-09-22 07:47:14,504 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.863 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.863/2.380/3.898/1.517 ms') 2025-09-22 07:47:14,504 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-60324483-73197403 passed 2025-09-22 07:47:14,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 07:47:14,655 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60324483-73197403, IP 91.22.3.131, Port 22 2025-09-22 07:47:14,720 - 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-09-22 07:47:14,806 - DEBUG - VM ctest-TestRoutersBasic-60324483-73197403 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-22 07:47:19,807 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 07:47:19,808 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60324483-73197403, IP 91.22.3.131, Port 22 2025-09-22 07:47:19,963 - DEBUG - VM ctest-TestRoutersBasic-60324483-73197403 is ready for SSH connections 2025-09-22 07:47:19,963 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 07:47:19,963 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.22.3.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-09-22 07:47:19,963 - DEBUG - ping -s 56 -c 3 -W 1 91.22.3.131 2025-09-22 07:47:23,697 - DEBUG - PING 91.22.3.131 (91.22.3.131): 56 data bytes 64 bytes from 91.22.3.131: seq=0 ttl=62 time=5.851 ms 64 bytes from 91.22.3.131: seq=1 ttl=62 time=0.841 ms 64 bytes from 91.22.3.131: seq=2 ttl=62 time=0.849 ms --- 91.22.3.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.841/2.513/5.851 ms 2025-09-22 07:47:23,697 - INFO - Ping to IP 91.22.3.131 from VM ctest-TestRoutersBasic-60324483-80333963 passed 2025-09-22 07:47:23,698 - INFO - Deleting interface with subnet_id a808a523-1de0-49f0-b252-bf4d44ae420d, port_id None from router eff67d82-631a-4fff-b5ef-871f7fed4ac5 2025-09-22 07:47:23,888 - INFO - Deleting VM ctest-TestRoutersBasic-60324483-73197403 2025-09-22 07:47:23,965 - INFO - Deleting VM ctest-TestRoutersBasic-60324483-80333963 2025-09-22 07:47:24,047 - INFO - Deleting VN ctest-ext_vn-76549346 2025-09-22 07:47:24,116 - DEBUG - VN c61ed27d-e4dd-44ec-8a5f-af6dc64bba00 still in use: Unable to complete operation on network c61ed27d-e4dd-44ec-8a5f-af6dc64bba00. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b22fd7ee-262c-4de9-a453-906f6a151046'] 2025-09-22 07:47:24,116 - WARNING - Deleting VN ctest-ext_vn-76549346 failed..Will retry 2025-09-22 07:47:26,233 - DEBUG - Response for deleting network () 2025-09-22 07:47:26,233 - INFO - Deleting VN ctest-vn-17644921 2025-09-22 07:47:26,359 - DEBUG - Response for deleting network () 2025-09-22 07:47:26,612 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 07:47:26,612 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-09-22 07:47:26,612 - INFO - -------------------------------------------------------------------------------- 2025-09-22 07:47:27,319 - INFO - Deleted project: ctest-TestRoutersBasic-60324483, ID : 7877fc00-b28b-48bd-837a-38bcc3f1302e