2025-10-21 17:49:43,628 - INFO - Domain Default found not creating 2025-10-21 17:49:43,937 - INFO - Project ctest-TestRoutersBasic-23064223 not found, creating it 2025-10-21 17:49:44,565 - INFO - Created Project:ctest-TestRoutersBasic-23064223, ID : fd8d5600-2877-48bf-8974-1f49bbce8d6f 2025-10-21 17:49:46,713 - INFO - ================================================================================ 2025-10-21 17:49:46,713 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-21 17:49:46,714 - 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-21 17:49:47,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2025-10-21 17:49:47,026 - INFO - Initial checks done. Running the testcase now 2025-10-21 17:49:47,026 - INFO - 2025-10-21 17:49:47,978 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-23064223 2025-10-21 17:49:48,088 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-23064223 2025-10-21 17:49:48,485 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23064223', 'default']} 2025-10-21 17:49:48,797 - DEBUG - Response for create_network : {'network': {'id': '8da4f499-84ee-4695-ad9d-592a544f206d', 'name': 'ctest-vn-98362012', 'tenant_id': 'fd8d5600287748bf89741f49bbce8d6f', 'project_id': 'fd8d5600287748bf89741f49bbce8d6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23064223', 'ctest-vn-98362012'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 17:49:49,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc54512f-84f4-4374-bd79-3e7a3a55ed0a', 'name': '', 'tenant_id': 'fd8d5600287748bf89741f49bbce8d6f', 'network_id': '8da4f499-84ee-4695-ad9d-592a544f206d', 'ip_version': 4, 'cidr': '86.30.140.128/26', 'allocation_pools': [{'start': '86.30.140.130', 'end': '86.30.140.190'}], 'gateway_ip': '86.30.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.30.140.130', 'tags': [], 'project_id': 'fd8d5600287748bf89741f49bbce8d6f'}} 2025-10-21 17:49:49,095 - INFO - Created VN ctest-vn-98362012 2025-10-21 17:49:49,147 - DEBUG - VN ctest-vn-98362012 UUID is 8da4f499-84ee-4695-ad9d-592a544f206d 2025-10-21 17:49:49,525 - DEBUG - Response for create_network : {'network': {'id': 'a13dedd8-1b12-421b-8276-1ece72c88602', 'name': 'ctest-ext_vn-29051065', 'tenant_id': 'fd8d5600287748bf89741f49bbce8d6f', 'project_id': 'fd8d5600287748bf89741f49bbce8d6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23064223', 'ctest-ext_vn-29051065'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 17:49:49,733 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd07e2fa6-9af5-4e85-bc34-c2f514242a77', 'name': '', 'tenant_id': 'fd8d5600287748bf89741f49bbce8d6f', 'network_id': 'a13dedd8-1b12-421b-8276-1ece72c88602', 'ip_version': 4, 'cidr': '178.97.35.64/26', 'allocation_pools': [{'start': '178.97.35.66', 'end': '178.97.35.126'}], 'gateway_ip': '178.97.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.97.35.66', 'tags': [], 'project_id': 'fd8d5600287748bf89741f49bbce8d6f'}} 2025-10-21 17:49:49,753 - INFO - Created VN ctest-ext_vn-29051065 2025-10-21 17:49:49,812 - DEBUG - VN ctest-ext_vn-29051065 UUID is a13dedd8-1b12-421b-8276-1ece72c88602 2025-10-21 17:49:50,019 - DEBUG - Services list from nova: [, , ] 2025-10-21 17:49:51,460 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4402-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4402-1) 2025-10-21 17:49:52,893 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4402-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4402-1) 2025-10-21 17:49:52,999 - INFO - Setting gateway for router e1370bcc-4a14-4bcd-a5a8-0a27aa2ba48a to network a13dedd8-1b12-421b-8276-1ece72c88602 2025-10-21 17:49:53,054 - INFO - Adding interface with subnet_id cc54512f-84f4-4374-bd79-3e7a3a55ed0a, port_id None to router e1370bcc-4a14-4bcd-a5a8-0a27aa2ba48a 2025-10-21 17:49:53,314 - INFO - Waiting for VM ctest-TestRoutersBasic-23064223-66326339 to be up.. 2025-10-21 17:49:53,436 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-21 17:49:58,580 - DEBUG - VM is in ACTIVE state now 2025-10-21 17:49:58,580 - INFO - VM name : ctest-TestRoutersBasic-23064223-66326339 2025-10-21 17:49:58,700 - DEBUG - VM ctest-TestRoutersBasic-23064223-66326339 ID is 5fcf5b98-30d7-4556-8ad8-6f4448f2fa50 2025-10-21 17:49:58,724 - DEBUG - VM ctest-TestRoutersBasic-23064223-66326339 launched on Node cn-jenkins-deploy-platform-ansible-os-4402-1 2025-10-21 17:49:58,824 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/5fcf5b98-30d7-4556-8ad8-6f4448f2fa50 2025-10-21 17:49:59,139 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/5fcf5b98-30d7-4556-8ad8-6f4448f2fa50 2025-10-21 17:49:59,172 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/7bd343ee-0c03-4b74-a3cc-34624c07fbea 2025-10-21 17:50:02,479 - 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 1027ms') 2025-10-21 17:50:02,479 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23064223-66326339 failed! 2025-10-21 17:50:02,539 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-23064223:ctest-vn-98362012 is 86.30.140.129 and allocation pool is NOT set 2025-10-21 17:50:04,610 - 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=7.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.43 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.425/4.435/7.446/3.010 ms') 2025-10-21 17:50:04,610 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23064223-66326339 passed 2025-10-21 17:50:04,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 17:50:04,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23064223-66326339, IP 86.30.140.131, Port 22 2025-10-21 17:50:04,841 - 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-21 17:50:04,970 - DEBUG - VM ctest-TestRoutersBasic-23064223-66326339 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-21 17:50:09,971 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 17:50:09,972 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23064223-66326339, IP 86.30.140.131, Port 22 2025-10-21 17:50:10,163 - DEBUG - VM ctest-TestRoutersBasic-23064223-66326339 is ready for SSH connections 2025-10-21 17:50:10,164 - INFO - Waiting for VM ctest-TestRoutersBasic-23064223-35536200 to be up.. 2025-10-21 17:50:10,317 - DEBUG - VM is in ACTIVE state now 2025-10-21 17:50:10,317 - INFO - VM name : ctest-TestRoutersBasic-23064223-35536200 2025-10-21 17:50:10,399 - DEBUG - VM ctest-TestRoutersBasic-23064223-35536200 ID is 864c7bfc-3383-4089-ac1e-22cd79158f63 2025-10-21 17:50:10,399 - DEBUG - VM ctest-TestRoutersBasic-23064223-35536200 launched on Node cn-jenkins-deploy-platform-ansible-os-4402-1 2025-10-21 17:50:10,496 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/864c7bfc-3383-4089-ac1e-22cd79158f63 2025-10-21 17:50:10,507 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/eb177f91-0d12-4a71-b999-57b02362dbff 2025-10-21 17:50:11,800 - 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=10.1 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/5.249/10.076/4.827 ms') 2025-10-21 17:50:11,800 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-23064223-35536200 passed 2025-10-21 17:50:11,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 17:50:11,972 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23064223-35536200, IP 178.97.35.67, Port 22 2025-10-21 17:50:12,185 - DEBUG - VM ctest-TestRoutersBasic-23064223-35536200 is ready for SSH connections 2025-10-21 17:50:12,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 17:50:12,186 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 178.97.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-10-21 17:50:12,186 - DEBUG - ping -s 56 -c 3 -W 1 178.97.35.67 2025-10-21 17:50:16,220 - DEBUG - PING 178.97.35.67 (178.97.35.67): 56 data bytes 64 bytes from 178.97.35.67: seq=0 ttl=62 time=10.533 ms 64 bytes from 178.97.35.67: seq=1 ttl=62 time=1.860 ms 64 bytes from 178.97.35.67: seq=2 ttl=62 time=1.621 ms --- 178.97.35.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.621/4.671/10.533 ms 2025-10-21 17:50:16,220 - INFO - Ping to IP 178.97.35.67 from VM ctest-TestRoutersBasic-23064223-66326339 passed 2025-10-21 17:50:16,221 - INFO - Deleting interface with subnet_id cc54512f-84f4-4374-bd79-3e7a3a55ed0a, port_id None from router e1370bcc-4a14-4bcd-a5a8-0a27aa2ba48a 2025-10-21 17:50:16,522 - INFO - Deleting VM ctest-TestRoutersBasic-23064223-35536200 2025-10-21 17:50:16,614 - INFO - Deleting VM ctest-TestRoutersBasic-23064223-66326339 2025-10-21 17:50:16,714 - INFO - Deleting VN ctest-ext_vn-29051065 2025-10-21 17:50:16,804 - DEBUG - VN a13dedd8-1b12-421b-8276-1ece72c88602 still in use: Unable to complete operation on network a13dedd8-1b12-421b-8276-1ece72c88602. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-654e164d-f771-4e33-9a5e-5052bc70a4ae'] 2025-10-21 17:50:16,804 - WARNING - Deleting VN ctest-ext_vn-29051065 failed..Will retry 2025-10-21 17:50:18,968 - DEBUG - Response for deleting network () 2025-10-21 17:50:18,968 - INFO - Deleting VN ctest-vn-98362012 2025-10-21 17:50:19,085 - DEBUG - Response for deleting network () 2025-10-21 17:50:19,393 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 17:50:19,393 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33] 2025-10-21 17:50:19,393 - INFO - -------------------------------------------------------------------------------- 2025-10-21 17:50:20,281 - INFO - Deleted project: ctest-TestRoutersBasic-23064223, ID : fd8d5600-2877-48bf-8974-1f49bbce8d6f