2025-09-11 14:39:06,314 - INFO - Domain Default found not creating 2025-09-11 14:39:06,511 - INFO - Project ctest-TestRoutersBasic-67002567 not found, creating it 2025-09-11 14:39:07,005 - INFO - Created Project:ctest-TestRoutersBasic-67002567, ID : 7e4709cc-0420-4938-a2dd-795295f01988 2025-09-11 14:39:08,744 - INFO - ================================================================================ 2025-09-11 14:39:08,744 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-11 14:39:08,744 - 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-11 14:39:09,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.254': '0'}} with 2025-09-11 14:39:09,016 - INFO - Initial checks done. Running the testcase now 2025-09-11 14:39:09,016 - INFO - 2025-09-11 14:39:09,871 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67002567 2025-09-11 14:39:09,971 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67002567 2025-09-11 14:39:10,307 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67002567', 'default']} 2025-09-11 14:39:10,640 - DEBUG - Response for create_network : {'network': {'id': 'b956c0ce-2e0b-4fa4-a038-114f8dcc3995', 'name': 'ctest-vn-46075354', 'tenant_id': '7e4709cc04204938a2dd795295f01988', 'project_id': '7e4709cc04204938a2dd795295f01988', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67002567', 'ctest-vn-46075354'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 14:39:10,858 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe84468c-8a96-4e84-a87c-c463c75e94e9', 'name': '', 'tenant_id': '7e4709cc04204938a2dd795295f01988', 'network_id': 'b956c0ce-2e0b-4fa4-a038-114f8dcc3995', 'ip_version': 4, 'cidr': '40.208.216.0/26', 'allocation_pools': [{'start': '40.208.216.2', 'end': '40.208.216.62'}], 'gateway_ip': '40.208.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.208.216.2', 'tags': [], 'project_id': '7e4709cc04204938a2dd795295f01988'}} 2025-09-11 14:39:10,881 - INFO - Created VN ctest-vn-46075354 2025-09-11 14:39:10,943 - DEBUG - VN ctest-vn-46075354 UUID is b956c0ce-2e0b-4fa4-a038-114f8dcc3995 2025-09-11 14:39:11,295 - DEBUG - Response for create_network : {'network': {'id': '2487ee81-d2e6-42f5-bead-05b68388320c', 'name': 'ctest-ext_vn-50742316', 'tenant_id': '7e4709cc04204938a2dd795295f01988', 'project_id': '7e4709cc04204938a2dd795295f01988', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67002567', 'ctest-ext_vn-50742316'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 14:39:11,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d2208fd-d187-47ef-9e42-a6489ecde40b', 'name': '', 'tenant_id': '7e4709cc04204938a2dd795295f01988', 'network_id': '2487ee81-d2e6-42f5-bead-05b68388320c', 'ip_version': 4, 'cidr': '40.4.131.64/26', 'allocation_pools': [{'start': '40.4.131.66', 'end': '40.4.131.126'}], 'gateway_ip': '40.4.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.4.131.66', 'tags': [], 'project_id': '7e4709cc04204938a2dd795295f01988'}} 2025-09-11 14:39:11,498 - INFO - Created VN ctest-ext_vn-50742316 2025-09-11 14:39:11,551 - DEBUG - VN ctest-ext_vn-50742316 UUID is 2487ee81-d2e6-42f5-bead-05b68388320c 2025-09-11 14:39:11,741 - DEBUG - Services list from nova: [, , ] 2025-09-11 14:39:12,949 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4093-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4093-1) 2025-09-11 14:39:14,281 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4093-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4093-1) 2025-09-11 14:39:14,364 - INFO - Setting gateway for router 550721d2-784a-4686-9482-23fc9a566761 to network 2487ee81-d2e6-42f5-bead-05b68388320c 2025-09-11 14:39:14,447 - INFO - Adding interface with subnet_id fe84468c-8a96-4e84-a87c-c463c75e94e9, port_id None to router 550721d2-784a-4686-9482-23fc9a566761 2025-09-11 14:39:14,845 - INFO - Waiting for VM ctest-TestRoutersBasic-67002567-82379592 to be up.. 2025-09-11 14:39:14,999 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-11 14:39:20,109 - DEBUG - VM is in ACTIVE state now 2025-09-11 14:39:20,109 - INFO - VM name : ctest-TestRoutersBasic-67002567-82379592 2025-09-11 14:39:20,202 - DEBUG - VM ctest-TestRoutersBasic-67002567-82379592 ID is afd12d51-8a03-407a-ad42-243994d250f0 2025-09-11 14:39:20,231 - DEBUG - VM ctest-TestRoutersBasic-67002567-82379592 launched on Node cn-jenkins-deploy-platform-ansible-os-4093-1 2025-09-11 14:39:20,330 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/afd12d51-8a03-407a-ad42-243994d250f0 2025-09-11 14:39:20,693 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/afd12d51-8a03-407a-ad42-243994d250f0 2025-09-11 14:39:20,732 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/f36f882b-c93d-470d-ae06-b070c18e4a4c 2025-09-11 14:39:24,007 - 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 1023ms') 2025-09-11 14:39:24,007 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67002567-82379592 failed! 2025-09-11 14:39:24,067 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67002567:ctest-vn-46075354 is 40.208.216.1 and allocation pool is NOT set 2025-09-11 14:39:26,126 - 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.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.16 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.164/2.823/4.482/1.659 ms') 2025-09-11 14:39:26,126 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67002567-82379592 passed 2025-09-11 14:39:26,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 14:39:26,283 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67002567-82379592, IP 40.208.216.3, Port 22 2025-09-11 14:39:26,349 - 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-09-11 14:39:26,446 - DEBUG - VM ctest-TestRoutersBasic-67002567-82379592 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-11 14:39:31,446 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 14:39:31,447 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67002567-82379592, IP 40.208.216.3, Port 22 2025-09-11 14:39:31,618 - DEBUG - VM ctest-TestRoutersBasic-67002567-82379592 is ready for SSH connections 2025-09-11 14:39:31,618 - INFO - Waiting for VM ctest-TestRoutersBasic-67002567-95161251 to be up.. 2025-09-11 14:39:31,712 - DEBUG - VM is in ACTIVE state now 2025-09-11 14:39:31,713 - INFO - VM name : ctest-TestRoutersBasic-67002567-95161251 2025-09-11 14:39:31,810 - DEBUG - VM ctest-TestRoutersBasic-67002567-95161251 ID is 00d6d652-95de-400d-92c8-d4cadc98a82c 2025-09-11 14:39:31,810 - DEBUG - VM ctest-TestRoutersBasic-67002567-95161251 launched on Node cn-jenkins-deploy-platform-ansible-os-4093-1 2025-09-11 14:39:31,908 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/00d6d652-95de-400d-92c8-d4cadc98a82c 2025-09-11 14:39:31,918 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/daf2d223-0c78-4ee4-ac39-a3127b728d85 2025-09-11 14:39:33,166 - 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=6.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.605 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.605/3.740/6.875/3.135 ms') 2025-09-11 14:39:33,166 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67002567-95161251 passed 2025-09-11 14:39:33,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 14:39:33,327 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67002567-95161251, IP 40.4.131.67, Port 22 2025-09-11 14:39:33,505 - DEBUG - VM ctest-TestRoutersBasic-67002567-95161251 is ready for SSH connections 2025-09-11 14:39:33,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 14:39:33,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.4.131.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-09-11 14:39:33,506 - DEBUG - ping -s 56 -c 3 -W 1 40.4.131.67 2025-09-11 14:39:37,325 - DEBUG - PING 40.4.131.67 (40.4.131.67): 56 data bytes 64 bytes from 40.4.131.67: seq=0 ttl=62 time=6.326 ms 64 bytes from 40.4.131.67: seq=1 ttl=62 time=1.247 ms 64 bytes from 40.4.131.67: seq=2 ttl=62 time=1.364 ms --- 40.4.131.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.247/2.979/6.326 ms 2025-09-11 14:39:37,325 - INFO - Ping to IP 40.4.131.67 from VM ctest-TestRoutersBasic-67002567-82379592 passed 2025-09-11 14:39:37,325 - INFO - Deleting interface with subnet_id fe84468c-8a96-4e84-a87c-c463c75e94e9, port_id None from router 550721d2-784a-4686-9482-23fc9a566761 2025-09-11 14:39:37,579 - INFO - Deleting VM ctest-TestRoutersBasic-67002567-95161251 2025-09-11 14:39:37,680 - INFO - Deleting VM ctest-TestRoutersBasic-67002567-82379592 2025-09-11 14:39:37,778 - INFO - Deleting VN ctest-ext_vn-50742316 2025-09-11 14:39:37,860 - DEBUG - VN 2487ee81-d2e6-42f5-bead-05b68388320c still in use: Unable to complete operation on network 2487ee81-d2e6-42f5-bead-05b68388320c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8382e6ab-0a2f-4c15-a9ad-8e7fc94d5f37'] 2025-09-11 14:39:37,860 - WARNING - Deleting VN ctest-ext_vn-50742316 failed..Will retry 2025-09-11 14:39:39,988 - DEBUG - Response for deleting network () 2025-09-11 14:39:39,988 - INFO - Deleting VN ctest-vn-46075354 2025-09-11 14:39:40,103 - DEBUG - Response for deleting network () 2025-09-11 14:39:40,372 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 14:39:40,372 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-09-11 14:39:40,372 - INFO - -------------------------------------------------------------------------------- 2025-09-11 14:39:41,125 - INFO - Deleted project: ctest-TestRoutersBasic-67002567, ID : 7e4709cc-0420-4938-a2dd-795295f01988