2025-06-16 12:53:33,429 - INFO - Domain Default found not creating 2025-06-16 12:53:33,581 - INFO - Project ctest-TestRoutersBasic-38527707 not found, creating it 2025-06-16 12:53:34,061 - INFO - Created Project:ctest-TestRoutersBasic-38527707, ID : 0caa33e4-c79c-4321-ad85-a9f16289b4c2 2025-06-16 12:53:35,662 - INFO - ================================================================================ 2025-06-16 12:53:35,662 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-16 12:53:35,662 - 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-06-16 12:53:35,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-16 12:53:35,929 - INFO - Initial checks done. Running the testcase now 2025-06-16 12:53:35,929 - INFO - 2025-06-16 12:53:36,726 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38527707 2025-06-16 12:53:36,821 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38527707 2025-06-16 12:53:37,296 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38527707', 'default']} 2025-06-16 12:53:37,652 - DEBUG - Response for create_network : {'network': {'id': 'de528535-3e02-45e5-bc01-f84a791f1417', 'name': 'ctest-vn-79017514', 'tenant_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'project_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38527707', 'ctest-vn-79017514'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:53:37,825 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9e342a6-c3fe-4623-a1de-dee76ae4a8a0', 'name': '', 'tenant_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'network_id': 'de528535-3e02-45e5-bc01-f84a791f1417', 'ip_version': 4, 'cidr': '67.98.199.64/26', 'allocation_pools': [{'start': '67.98.199.66', 'end': '67.98.199.126'}], 'gateway_ip': '67.98.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.98.199.66', 'tags': [], 'project_id': '0caa33e4c79c4321ad85a9f16289b4c2'}} 2025-06-16 12:53:37,853 - INFO - Created VN ctest-vn-79017514 2025-06-16 12:53:37,908 - DEBUG - VN ctest-vn-79017514 UUID is de528535-3e02-45e5-bc01-f84a791f1417 2025-06-16 12:53:38,293 - DEBUG - Response for create_network : {'network': {'id': '2068ac1d-6c3c-4434-bcc1-34337d724fe2', 'name': 'ctest-ext_vn-67061414', 'tenant_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'project_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38527707', 'ctest-ext_vn-67061414'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:53:38,496 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ace9464f-965f-4520-ba6e-551f9e37e399', 'name': '', 'tenant_id': '0caa33e4c79c4321ad85a9f16289b4c2', 'network_id': '2068ac1d-6c3c-4434-bcc1-34337d724fe2', 'ip_version': 4, 'cidr': '8.254.9.128/26', 'allocation_pools': [{'start': '8.254.9.130', 'end': '8.254.9.190'}], 'gateway_ip': '8.254.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.254.9.130', 'tags': [], 'project_id': '0caa33e4c79c4321ad85a9f16289b4c2'}} 2025-06-16 12:53:38,515 - INFO - Created VN ctest-ext_vn-67061414 2025-06-16 12:53:38,568 - DEBUG - VN ctest-ext_vn-67061414 UUID is 2068ac1d-6c3c-4434-bcc1-34337d724fe2 2025-06-16 12:53:38,744 - DEBUG - Services list from nova: [, , ] 2025-06-16 12:53:39,885 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3456-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3456-1) 2025-06-16 12:53:41,190 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3456-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3456-1) 2025-06-16 12:53:41,280 - INFO - Setting gateway for router 6cf9e549-d392-4c04-86da-9ee32001fc97 to network 2068ac1d-6c3c-4434-bcc1-34337d724fe2 2025-06-16 12:53:41,363 - INFO - Adding interface with subnet_id a9e342a6-c3fe-4623-a1de-dee76ae4a8a0, port_id None to router 6cf9e549-d392-4c04-86da-9ee32001fc97 2025-06-16 12:53:41,955 - INFO - Waiting for VM ctest-TestRoutersBasic-38527707-62818612 to be up.. 2025-06-16 12:53:42,132 - DEBUG - VM is in ACTIVE state now 2025-06-16 12:53:42,133 - INFO - VM name : ctest-TestRoutersBasic-38527707-62818612 2025-06-16 12:53:42,297 - DEBUG - VM ctest-TestRoutersBasic-38527707-62818612 ID is 305749fc-74ad-431e-ac1b-4dfb44c85cbf 2025-06-16 12:53:42,328 - DEBUG - VM ctest-TestRoutersBasic-38527707-62818612 launched on Node cn-jenkins-deploy-platform-ansible-os-3456-1 2025-06-16 12:53:42,499 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/305749fc-74ad-431e-ac1b-4dfb44c85cbf 2025-06-16 12:53:42,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/305749fc-74ad-431e-ac1b-4dfb44c85cbf 2025-06-16 12:53:42,938 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/970d1c29-d3c6-4b97-84ab-5a75fc816e6c 2025-06-16 12:53:46,265 - 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 1012ms') 2025-06-16 12:53:46,265 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38527707-62818612 failed! 2025-06-16 12:53:46,324 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38527707:ctest-vn-79017514 is 67.98.199.65 and allocation pool is NOT set 2025-06-16 12:53:50,399 - 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 1007ms') 2025-06-16 12:53:50,399 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38527707-62818612 failed! 2025-06-16 12:53:50,456 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38527707:ctest-vn-79017514 is 67.98.199.65 and allocation pool is NOT set 2025-06-16 12:53:52,513 - 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=3.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.836 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 = 0.836/2.178/3.520/1.342 ms') 2025-06-16 12:53:52,513 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38527707-62818612 passed 2025-06-16 12:53:52,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:53:52,668 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38527707-62818612, IP 67.98.199.67, Port 22 2025-06-16 12:53:52,824 - DEBUG - VM ctest-TestRoutersBasic-38527707-62818612 is ready for SSH connections 2025-06-16 12:53:52,824 - INFO - Waiting for VM ctest-TestRoutersBasic-38527707-10153154 to be up.. 2025-06-16 12:53:52,904 - DEBUG - VM is in ACTIVE state now 2025-06-16 12:53:52,904 - INFO - VM name : ctest-TestRoutersBasic-38527707-10153154 2025-06-16 12:53:52,976 - DEBUG - VM ctest-TestRoutersBasic-38527707-10153154 ID is a01b9fda-6946-4084-a7ae-d8e002226e7c 2025-06-16 12:53:52,976 - DEBUG - VM ctest-TestRoutersBasic-38527707-10153154 launched on Node cn-jenkins-deploy-platform-ansible-os-3456-1 2025-06-16 12:53:53,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a01b9fda-6946-4084-a7ae-d8e002226e7c 2025-06-16 12:53:53,070 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ada63389-2bef-419d-bd1f-77e4df5d3e85 2025-06-16 12:53:54,312 - 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=4.59 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.53 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 = 1.530/3.061/4.592/1.531 ms') 2025-06-16 12:53:54,312 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38527707-10153154 passed 2025-06-16 12:53:54,468 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:53:54,469 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38527707-10153154, IP 8.254.9.131, Port 22 2025-06-16 12:53:54,523 - 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-06-16 12:53:54,600 - DEBUG - VM ctest-TestRoutersBasic-38527707-10153154 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-16 12:53:59,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:53:59,602 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38527707-10153154, IP 8.254.9.131, Port 22 2025-06-16 12:53:59,770 - DEBUG - VM ctest-TestRoutersBasic-38527707-10153154 is ready for SSH connections 2025-06-16 12:53:59,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:53:59,771 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.254.9.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-16 12:53:59,771 - DEBUG - ping -s 56 -c 3 -W 1 8.254.9.131 2025-06-16 12:54:03,856 - DEBUG - PING 8.254.9.131 (8.254.9.131): 56 data bytes 64 bytes from 8.254.9.131: seq=0 ttl=62 time=6.070 ms 64 bytes from 8.254.9.131: seq=1 ttl=62 time=1.072 ms 64 bytes from 8.254.9.131: seq=2 ttl=62 time=0.898 ms --- 8.254.9.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.680/6.070 ms 2025-06-16 12:54:03,856 - INFO - Ping to IP 8.254.9.131 from VM ctest-TestRoutersBasic-38527707-62818612 passed 2025-06-16 12:54:03,856 - INFO - Deleting interface with subnet_id a9e342a6-c3fe-4623-a1de-dee76ae4a8a0, port_id None from router 6cf9e549-d392-4c04-86da-9ee32001fc97 2025-06-16 12:54:04,053 - INFO - Deleting VM ctest-TestRoutersBasic-38527707-10153154 2025-06-16 12:54:04,126 - INFO - Deleting VM ctest-TestRoutersBasic-38527707-62818612 2025-06-16 12:54:04,208 - INFO - Deleting VN ctest-ext_vn-67061414 2025-06-16 12:54:04,281 - DEBUG - VN 2068ac1d-6c3c-4434-bcc1-34337d724fe2 still in use: Unable to complete operation on network 2068ac1d-6c3c-4434-bcc1-34337d724fe2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5c58aefa-0e82-45f4-a093-d99a8be5c0f7'] 2025-06-16 12:54:04,282 - WARNING - Deleting VN ctest-ext_vn-67061414 failed..Will retry 2025-06-16 12:54:06,420 - DEBUG - Response for deleting network () 2025-06-16 12:54:06,420 - INFO - Deleting VN ctest-vn-79017514 2025-06-16 12:54:06,522 - DEBUG - Response for deleting network () 2025-06-16 12:54:06,783 - DEBUG - No XMPP flaps were noticed during the test
2025-06-16 12:54:06,783 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-06-16 12:54:06,783 - INFO - -------------------------------------------------------------------------------- 2025-06-16 12:54:07,521 - INFO - Deleted project: ctest-TestRoutersBasic-38527707, ID : 0caa33e4-c79c-4321-ad85-a9f16289b4c2