2025-10-30 09:53:17,564 - INFO - Domain Default found not creating 2025-10-30 09:53:17,718 - INFO - Project ctest-TestRoutersBasic-21543615 not found, creating it 2025-10-30 09:53:18,189 - INFO - Created Project:ctest-TestRoutersBasic-21543615, ID : 72b1f7dd-6283-4e05-951c-44b243285a6d 2025-10-30 09:53:19,756 - INFO - ================================================================================ 2025-10-30 09:53:19,756 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-30 09:53:19,756 - 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-30 09:53:20,012 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-30 09:53:20,012 - INFO - Initial checks done. Running the testcase now 2025-10-30 09:53:20,012 - INFO - 2025-10-30 09:53:20,818 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21543615 2025-10-30 09:53:20,915 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21543615 2025-10-30 09:53:21,234 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21543615', 'default']} 2025-10-30 09:53:21,530 - DEBUG - Response for create_network : {'network': {'id': '6faedfdb-f7be-45a5-a591-0bf350b76e3f', 'name': 'ctest-vn-31722884', 'tenant_id': '72b1f7dd62834e05951c44b243285a6d', 'project_id': '72b1f7dd62834e05951c44b243285a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21543615', 'ctest-vn-31722884'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:53:21,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '53b2a7ae-fa4a-4296-8d77-ee1ebce1aab2', 'name': '', 'tenant_id': '72b1f7dd62834e05951c44b243285a6d', 'network_id': '6faedfdb-f7be-45a5-a591-0bf350b76e3f', 'ip_version': 4, 'cidr': '130.63.73.128/26', 'allocation_pools': [{'start': '130.63.73.130', 'end': '130.63.73.190'}], 'gateway_ip': '130.63.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.63.73.130', 'tags': [], 'project_id': '72b1f7dd62834e05951c44b243285a6d'}} 2025-10-30 09:53:21,784 - INFO - Created VN ctest-vn-31722884 2025-10-30 09:53:21,839 - DEBUG - VN ctest-vn-31722884 UUID is 6faedfdb-f7be-45a5-a591-0bf350b76e3f 2025-10-30 09:53:22,186 - DEBUG - Response for create_network : {'network': {'id': '34b8f5b2-a50b-48ba-bc16-eec99a176232', 'name': 'ctest-ext_vn-70366868', 'tenant_id': '72b1f7dd62834e05951c44b243285a6d', 'project_id': '72b1f7dd62834e05951c44b243285a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21543615', 'ctest-ext_vn-70366868'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:53:22,376 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd19ff130-4135-408e-b473-4fc5f4f6e5a0', 'name': '', 'tenant_id': '72b1f7dd62834e05951c44b243285a6d', 'network_id': '34b8f5b2-a50b-48ba-bc16-eec99a176232', 'ip_version': 4, 'cidr': '193.146.23.64/26', 'allocation_pools': [{'start': '193.146.23.66', 'end': '193.146.23.126'}], 'gateway_ip': '193.146.23.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.146.23.66', 'tags': [], 'project_id': '72b1f7dd62834e05951c44b243285a6d'}} 2025-10-30 09:53:22,393 - INFO - Created VN ctest-ext_vn-70366868 2025-10-30 09:53:22,447 - DEBUG - VN ctest-ext_vn-70366868 UUID is 34b8f5b2-a50b-48ba-bc16-eec99a176232 2025-10-30 09:53:22,651 - DEBUG - Services list from nova: [, , ] 2025-10-30 09:53:23,720 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4540-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4540-1) 2025-10-30 09:53:25,036 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4540-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4540-1) 2025-10-30 09:53:25,127 - INFO - Setting gateway for router a8ae55f4-3208-4991-88ee-79c66265485c to network 34b8f5b2-a50b-48ba-bc16-eec99a176232 2025-10-30 09:53:25,220 - INFO - Adding interface with subnet_id 53b2a7ae-fa4a-4296-8d77-ee1ebce1aab2, port_id None to router a8ae55f4-3208-4991-88ee-79c66265485c 2025-10-30 09:53:25,674 - INFO - Waiting for VM ctest-TestRoutersBasic-21543615-07208098 to be up.. 2025-10-30 09:53:25,840 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-30 09:53:30,920 - DEBUG - VM is in ACTIVE state now 2025-10-30 09:53:30,920 - INFO - VM name : ctest-TestRoutersBasic-21543615-07208098 2025-10-30 09:53:31,001 - DEBUG - VM ctest-TestRoutersBasic-21543615-07208098 ID is 1b9d9bcf-6a47-431b-a908-267e132256f3 2025-10-30 09:53:31,023 - DEBUG - VM ctest-TestRoutersBasic-21543615-07208098 launched on Node cn-jenkins-deploy-platform-ansible-os-4540-1 2025-10-30 09:53:31,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1b9d9bcf-6a47-431b-a908-267e132256f3 2025-10-30 09:53:31,441 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1b9d9bcf-6a47-431b-a908-267e132256f3 2025-10-30 09:53:31,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5acbab45-659f-45fe-935f-5de8f07a4f05 2025-10-30 09:53:34,756 - 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 1026ms') 2025-10-30 09:53:34,756 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21543615-07208098 failed! 2025-10-30 09:53:34,811 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21543615:ctest-vn-31722884 is 130.63.73.129 and allocation pool is NOT set 2025-10-30 09:53:36,878 - 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=5.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.91 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.906/3.457/5.009/1.551 ms') 2025-10-30 09:53:36,878 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21543615-07208098 passed 2025-10-30 09:53:37,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 09:53:37,027 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21543615-07208098, IP 130.63.73.131, Port 22 2025-10-30 09:53:37,093 - 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-30 09:53:37,177 - DEBUG - VM ctest-TestRoutersBasic-21543615-07208098 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 09:53:42,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 09:53:42,178 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21543615-07208098, IP 130.63.73.131, Port 22 2025-10-30 09:53:42,339 - DEBUG - VM ctest-TestRoutersBasic-21543615-07208098 is ready for SSH connections 2025-10-30 09:53:42,339 - INFO - Waiting for VM ctest-TestRoutersBasic-21543615-90321711 to be up.. 2025-10-30 09:53:42,415 - DEBUG - VM is in ACTIVE state now 2025-10-30 09:53:42,415 - INFO - VM name : ctest-TestRoutersBasic-21543615-90321711 2025-10-30 09:53:42,486 - DEBUG - VM ctest-TestRoutersBasic-21543615-90321711 ID is f52a1a29-811f-4c9c-9492-4355e81e92a5 2025-10-30 09:53:42,486 - DEBUG - VM ctest-TestRoutersBasic-21543615-90321711 launched on Node cn-jenkins-deploy-platform-ansible-os-4540-1 2025-10-30 09:53:42,556 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f52a1a29-811f-4c9c-9492-4355e81e92a5 2025-10-30 09:53:42,565 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f1ef60ac-a431-45ce-a357-7aceafe485c4 2025-10-30 09:53:43,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=3.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.373 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.373/2.180/3.988/1.807 ms') 2025-10-30 09:53:43,800 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21543615-90321711 passed 2025-10-30 09:53:43,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 09:53:43,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21543615-90321711, IP 193.146.23.67, Port 22 2025-10-30 09:53:44,115 - DEBUG - VM ctest-TestRoutersBasic-21543615-90321711 is ready for SSH connections 2025-10-30 09:53:44,115 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 09:53:44,115 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.146.23.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-10-30 09:53:44,115 - DEBUG - ping -s 56 -c 3 -W 1 193.146.23.67 2025-10-30 09:53:47,909 - DEBUG - PING 193.146.23.67 (193.146.23.67): 56 data bytes 64 bytes from 193.146.23.67: seq=0 ttl=62 time=7.355 ms 64 bytes from 193.146.23.67: seq=1 ttl=62 time=0.934 ms 64 bytes from 193.146.23.67: seq=2 ttl=62 time=0.986 ms --- 193.146.23.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.934/3.091/7.355 ms 2025-10-30 09:53:47,909 - INFO - Ping to IP 193.146.23.67 from VM ctest-TestRoutersBasic-21543615-07208098 passed 2025-10-30 09:53:47,910 - INFO - Deleting interface with subnet_id 53b2a7ae-fa4a-4296-8d77-ee1ebce1aab2, port_id None from router a8ae55f4-3208-4991-88ee-79c66265485c 2025-10-30 09:53:48,093 - INFO - Deleting VM ctest-TestRoutersBasic-21543615-90321711 2025-10-30 09:53:48,167 - INFO - Deleting VM ctest-TestRoutersBasic-21543615-07208098 2025-10-30 09:53:48,253 - INFO - Deleting VN ctest-ext_vn-70366868 2025-10-30 09:53:48,312 - DEBUG - VN 34b8f5b2-a50b-48ba-bc16-eec99a176232 still in use: Unable to complete operation on network 34b8f5b2-a50b-48ba-bc16-eec99a176232. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-067e1bab-7f0a-4f7e-a166-ec91c6de3538'] 2025-10-30 09:53:48,312 - WARNING - Deleting VN ctest-ext_vn-70366868 failed..Will retry 2025-10-30 09:53:50,428 - DEBUG - Response for deleting network () 2025-10-30 09:53:50,428 - INFO - Deleting VN ctest-vn-31722884 2025-10-30 09:53:50,541 - DEBUG - Response for deleting network () 2025-10-30 09:53:50,805 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 09:53:50,805 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-10-30 09:53:50,805 - INFO - -------------------------------------------------------------------------------- 2025-10-30 09:53:51,537 - INFO - Deleted project: ctest-TestRoutersBasic-21543615, ID : 72b1f7dd-6283-4e05-951c-44b243285a6d