2025-08-19 16:03:14,322 - INFO - Domain Default found not creating 2025-08-19 16:03:14,440 - INFO - Project ctest-TestRoutersBasic-90838417 not found, creating it 2025-08-19 16:03:14,874 - INFO - Created Project:ctest-TestRoutersBasic-90838417, ID : 5e44cd05-95e9-4e29-beca-1a6ed51a4b74 2025-08-19 16:03:16,217 - INFO - ================================================================================ 2025-08-19 16:03:16,218 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-19 16:03:16,218 - 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-08-19 16:03:16,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-19 16:03:16,481 - INFO - Initial checks done. Running the testcase now 2025-08-19 16:03:16,481 - INFO - 2025-08-19 16:03:17,185 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90838417 2025-08-19 16:03:17,284 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90838417 2025-08-19 16:03:17,599 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90838417', 'default']} 2025-08-19 16:03:17,892 - DEBUG - Response for create_network : {'network': {'id': '2b9d99ee-c72f-47c7-a605-817adbc17d31', 'name': 'ctest-vn-96013440', 'tenant_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'project_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90838417', 'ctest-vn-96013440'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 16:03:18,093 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb3b87c3-4711-4128-8bcf-ff0e47d44b91', 'name': '', 'tenant_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'network_id': '2b9d99ee-c72f-47c7-a605-817adbc17d31', 'ip_version': 4, 'cidr': '118.9.94.128/26', 'allocation_pools': [{'start': '118.9.94.130', 'end': '118.9.94.190'}], 'gateway_ip': '118.9.94.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.9.94.130', 'tags': [], 'project_id': '5e44cd0595e94e29beca1a6ed51a4b74'}} 2025-08-19 16:03:18,108 - INFO - Created VN ctest-vn-96013440 2025-08-19 16:03:18,159 - DEBUG - VN ctest-vn-96013440 UUID is 2b9d99ee-c72f-47c7-a605-817adbc17d31 2025-08-19 16:03:18,512 - DEBUG - Response for create_network : {'network': {'id': '0ad7a111-5c5a-489b-9224-fc47db616d58', 'name': 'ctest-ext_vn-97262398', 'tenant_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'project_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90838417', 'ctest-ext_vn-97262398'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 16:03:18,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '54c89bb1-519d-426e-ab9e-953eb7b5f558', 'name': '', 'tenant_id': '5e44cd0595e94e29beca1a6ed51a4b74', 'network_id': '0ad7a111-5c5a-489b-9224-fc47db616d58', 'ip_version': 4, 'cidr': '196.47.200.64/26', 'allocation_pools': [{'start': '196.47.200.66', 'end': '196.47.200.126'}], 'gateway_ip': '196.47.200.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.47.200.66', 'tags': [], 'project_id': '5e44cd0595e94e29beca1a6ed51a4b74'}} 2025-08-19 16:03:18,725 - INFO - Created VN ctest-ext_vn-97262398 2025-08-19 16:03:18,775 - DEBUG - VN ctest-ext_vn-97262398 UUID is 0ad7a111-5c5a-489b-9224-fc47db616d58 2025-08-19 16:03:18,972 - DEBUG - Services list from nova: [, , ] 2025-08-19 16:03:20,129 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3887-1) 2025-08-19 16:03:21,256 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3887-1) 2025-08-19 16:03:21,319 - INFO - Setting gateway for router 169001ff-08c2-4c11-ba88-16295d923d23 to network 0ad7a111-5c5a-489b-9224-fc47db616d58 2025-08-19 16:03:21,368 - INFO - Adding interface with subnet_id eb3b87c3-4711-4128-8bcf-ff0e47d44b91, port_id None to router 169001ff-08c2-4c11-ba88-16295d923d23 2025-08-19 16:03:21,843 - INFO - Waiting for VM ctest-TestRoutersBasic-90838417-75223143 to be up.. 2025-08-19 16:03:21,975 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-19 16:03:27,045 - DEBUG - VM is in ACTIVE state now 2025-08-19 16:03:27,045 - INFO - VM name : ctest-TestRoutersBasic-90838417-75223143 2025-08-19 16:03:27,119 - DEBUG - VM ctest-TestRoutersBasic-90838417-75223143 ID is 9809dff5-19c8-46f6-b791-12a1c25a10d3 2025-08-19 16:03:27,136 - DEBUG - VM ctest-TestRoutersBasic-90838417-75223143 launched on Node cn-jenkins-deploy-platform-ansible-os-3887-1 2025-08-19 16:03:27,213 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/9809dff5-19c8-46f6-b791-12a1c25a10d3 2025-08-19 16:03:27,503 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/9809dff5-19c8-46f6-b791-12a1c25a10d3 2025-08-19 16:03:27,530 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/4dcf26b8-3ac6-41ea-9aca-5808265254fe 2025-08-19 16:03:30,770 - 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=2 ttl=63 time=16.0 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1016ms\r\nrtt min/avg/max/mdev = 16.027/16.027/16.027/0.000 ms') 2025-08-19 16:03:30,770 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90838417-75223143 passed 2025-08-19 16:03:30,927 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 16:03:30,928 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90838417-75223143, IP 118.9.94.131, Port 22 2025-08-19 16:03:30,983 - 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-08-19 16:03:31,070 - DEBUG - VM ctest-TestRoutersBasic-90838417-75223143 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-19 16:03:36,071 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 16:03:36,071 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90838417-75223143, IP 118.9.94.131, Port 22 2025-08-19 16:03:36,241 - DEBUG - VM ctest-TestRoutersBasic-90838417-75223143 is ready for SSH connections 2025-08-19 16:03:36,241 - INFO - Waiting for VM ctest-TestRoutersBasic-90838417-64623926 to be up.. 2025-08-19 16:03:36,305 - DEBUG - VM is in ACTIVE state now 2025-08-19 16:03:36,305 - INFO - VM name : ctest-TestRoutersBasic-90838417-64623926 2025-08-19 16:03:36,364 - DEBUG - VM ctest-TestRoutersBasic-90838417-64623926 ID is 3d97309b-7aea-43dc-994d-cabb947dadf9 2025-08-19 16:03:36,364 - DEBUG - VM ctest-TestRoutersBasic-90838417-64623926 launched on Node cn-jenkins-deploy-platform-ansible-os-3887-1 2025-08-19 16:03:36,423 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3d97309b-7aea-43dc-994d-cabb947dadf9 2025-08-19 16:03:36,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/96ab33f0-dc90-457e-9e6b-1ccfa09bb5e0 2025-08-19 16:03:37,661 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.305 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.305/1.994/3.683/1.689 ms') 2025-08-19 16:03:37,661 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90838417-64623926 passed 2025-08-19 16:03:37,815 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 16:03:37,816 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90838417-64623926, IP 196.47.200.67, Port 22 2025-08-19 16:03:37,967 - DEBUG - VM ctest-TestRoutersBasic-90838417-64623926 is ready for SSH connections 2025-08-19 16:03:37,967 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 16:03:37,967 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.47.200.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-19 16:03:37,967 - DEBUG - ping -s 56 -c 3 -W 1 196.47.200.67 2025-08-19 16:03:41,910 - DEBUG - PING 196.47.200.67 (196.47.200.67): 56 data bytes 64 bytes from 196.47.200.67: seq=0 ttl=62 time=5.242 ms 64 bytes from 196.47.200.67: seq=1 ttl=62 time=0.771 ms 64 bytes from 196.47.200.67: seq=2 ttl=62 time=0.895 ms --- 196.47.200.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.771/2.302/5.242 ms 2025-08-19 16:03:41,910 - INFO - Ping to IP 196.47.200.67 from VM ctest-TestRoutersBasic-90838417-75223143 passed 2025-08-19 16:03:41,910 - INFO - Deleting interface with subnet_id eb3b87c3-4711-4128-8bcf-ff0e47d44b91, port_id None from router 169001ff-08c2-4c11-ba88-16295d923d23 2025-08-19 16:03:42,085 - INFO - Deleting VM ctest-TestRoutersBasic-90838417-64623926 2025-08-19 16:03:42,160 - INFO - Deleting VM ctest-TestRoutersBasic-90838417-75223143 2025-08-19 16:03:42,243 - INFO - Deleting VN ctest-ext_vn-97262398 2025-08-19 16:03:42,309 - DEBUG - VN 0ad7a111-5c5a-489b-9224-fc47db616d58 still in use: Unable to complete operation on network 0ad7a111-5c5a-489b-9224-fc47db616d58. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9bc26d2a-4b6c-4815-9fac-319831330579'] 2025-08-19 16:03:42,309 - WARNING - Deleting VN ctest-ext_vn-97262398 failed..Will retry 2025-08-19 16:03:44,431 - DEBUG - Response for deleting network () 2025-08-19 16:03:44,431 - INFO - Deleting VN ctest-vn-96013440 2025-08-19 16:03:44,558 - DEBUG - Response for deleting network () 2025-08-19 16:03:44,815 - DEBUG - No XMPP flaps were noticed during the test 2025-08-19 16:03:44,816 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2025-08-19 16:03:44,816 - INFO - -------------------------------------------------------------------------------- 2025-08-19 16:03:45,508 - INFO - Deleted project: ctest-TestRoutersBasic-90838417, ID : 5e44cd05-95e9-4e29-beca-1a6ed51a4b74