2025-03-20 02:21:19,924 - INFO - Domain Default found not creating 2025-03-20 02:21:20,092 - INFO - Project ctest-TestRoutersBasic-22951247 not found, creating it 2025-03-20 02:21:20,738 - INFO - Created Project:ctest-TestRoutersBasic-22951247, ID : f6c77dca-68cd-4f96-8919-198a4fa27555 2025-03-20 02:21:22,295 - INFO - ================================================================================ 2025-03-20 02:21:22,295 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-20 02:21:22,295 - 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-03-20 02:21:23,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.5': '0', '10.20.0.23': '0'}, '10.0.0.53': {'10.20.0.11': '0', '10.20.0.5': '0'}} with 2025-03-20 02:21:23,607 - INFO - Initial checks done. Running the testcase now 2025-03-20 02:21:23,607 - INFO - 2025-03-20 02:21:24,367 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-22951247 2025-03-20 02:21:24,430 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-22951247 2025-03-20 02:21:24,766 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22951247', 'default']} 2025-03-20 02:21:25,294 - DEBUG - Response for create_network : {'network': {'id': '185fa232-b47d-464f-94c7-a4f8dd12c2b5', 'name': 'ctest-vn-48715222', 'tenant_id': 'f6c77dca68cd4f968919198a4fa27555', 'project_id': 'f6c77dca68cd4f968919198a4fa27555', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22951247', 'ctest-vn-48715222'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:25,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '74293c0a-3b64-47bf-a310-c2db6a488e27', 'name': '', 'tenant_id': 'f6c77dca68cd4f968919198a4fa27555', 'network_id': '185fa232-b47d-464f-94c7-a4f8dd12c2b5', 'ip_version': 4, 'cidr': '184.195.23.128/26', 'allocation_pools': [{'start': '184.195.23.130', 'end': '184.195.23.190'}], 'gateway_ip': '184.195.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.195.23.130', 'tags': [], 'project_id': 'f6c77dca68cd4f968919198a4fa27555'}} 2025-03-20 02:21:25,675 - INFO - Created VN ctest-vn-48715222 2025-03-20 02:21:25,691 - DEBUG - VN ctest-vn-48715222 UUID is 185fa232-b47d-464f-94c7-a4f8dd12c2b5 2025-03-20 02:21:26,290 - DEBUG - Response for create_network : {'network': {'id': 'cab6f01e-ac05-4784-b5d5-37338265fa6c', 'name': 'ctest-ext_vn-75741494', 'tenant_id': 'f6c77dca68cd4f968919198a4fa27555', 'project_id': 'f6c77dca68cd4f968919198a4fa27555', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22951247', 'ctest-ext_vn-75741494'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:21:26,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '38796c11-8abb-4572-b916-040fa277ee25', 'name': '', 'tenant_id': 'f6c77dca68cd4f968919198a4fa27555', 'network_id': 'cab6f01e-ac05-4784-b5d5-37338265fa6c', 'ip_version': 4, 'cidr': '31.130.169.192/26', 'allocation_pools': [{'start': '31.130.169.194', 'end': '31.130.169.254'}], 'gateway_ip': '31.130.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.130.169.194', 'tags': [], 'project_id': 'f6c77dca68cd4f968919198a4fa27555'}} 2025-03-20 02:21:26,619 - INFO - Created VN ctest-ext_vn-75741494 2025-03-20 02:21:26,634 - DEBUG - VN ctest-ext_vn-75741494 UUID is cab6f01e-ac05-4784-b5d5-37338265fa6c 2025-03-20 02:21:26,778 - DEBUG - Services list from nova: [, , , ] 2025-03-20 02:21:28,000 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2923-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2923-1) 2025-03-20 02:21:29,649 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2923-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2923-2) 2025-03-20 02:21:29,822 - INFO - Setting gateway for router 8ed5f7bd-9160-4f74-bcdd-6baa030dada2 to network cab6f01e-ac05-4784-b5d5-37338265fa6c 2025-03-20 02:21:29,963 - INFO - Adding interface with subnet_id 74293c0a-3b64-47bf-a310-c2db6a488e27, port_id None to router 8ed5f7bd-9160-4f74-bcdd-6baa030dada2 2025-03-20 02:21:30,829 - INFO - Waiting for VM ctest-TestRoutersBasic-22951247-64890338 to be up.. 2025-03-20 02:21:31,041 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:21:31,041 - INFO - VM name : ctest-TestRoutersBasic-22951247-64890338 2025-03-20 02:21:31,227 - DEBUG - VM ctest-TestRoutersBasic-22951247-64890338 ID is 4790a680-bbe3-4d9d-92ad-ef492e336aa7 2025-03-20 02:21:31,303 - DEBUG - VM ctest-TestRoutersBasic-22951247-64890338 launched on Node an-jenkins-deploy-platform-ansible-os-2923-1 2025-03-20 02:21:31,566 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/4790a680-bbe3-4d9d-92ad-ef492e336aa7 2025-03-20 02:21:32,083 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/4790a680-bbe3-4d9d-92ad-ef492e336aa7 2025-03-20 02:21:32,157 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/f3e9ef5a-1128-4eb5-968e-465ab654900a 2025-03-20 02:21:35,415 - 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 1009ms') 2025-03-20 02:21:35,415 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22951247-64890338 failed! 2025-03-20 02:21:35,431 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22951247:ctest-vn-48715222 is 184.195.23.129 and allocation pool is NOT set 2025-03-20 02:21:39,503 - 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 1010ms') 2025-03-20 02:21:39,503 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22951247-64890338 failed! 2025-03-20 02:21:39,520 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22951247:ctest-vn-48715222 is 184.195.23.129 and allocation pool is NOT set 2025-03-20 02:21:41,587 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.761 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.761/2.695/4.629/1.934 ms') 2025-03-20 02:21:41,587 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22951247-64890338 passed 2025-03-20 02:21:41,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:41,705 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22951247-64890338, IP 184.195.23.131, Port 22 2025-03-20 02:21:41,884 - DEBUG - VM ctest-TestRoutersBasic-22951247-64890338 is ready for SSH connections 2025-03-20 02:21:41,884 - INFO - Waiting for VM ctest-TestRoutersBasic-22951247-84044573 to be up.. 2025-03-20 02:21:41,981 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:21:41,981 - INFO - VM name : ctest-TestRoutersBasic-22951247-84044573 2025-03-20 02:21:42,090 - DEBUG - VM ctest-TestRoutersBasic-22951247-84044573 ID is e99d3d78-85d3-483b-a271-d542c5382be4 2025-03-20 02:21:42,090 - DEBUG - VM ctest-TestRoutersBasic-22951247-84044573 launched on Node an-jenkins-deploy-platform-ansible-os-2923-2 2025-03-20 02:21:42,180 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/e99d3d78-85d3-483b-a271-d542c5382be4 2025-03-20 02:21:42,192 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/93f975f8-13f0-480f-8812-6ba01374b620 2025-03-20 02:21:43,408 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.17 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 = 2.167/3.670/5.173/1.503 ms') 2025-03-20 02:21:43,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22951247-84044573 passed 2025-03-20 02:21:43,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:43,528 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22951247-84044573, IP 31.130.169.195, Port 22 2025-03-20 02:21:43,685 - DEBUG - VM ctest-TestRoutersBasic-22951247-84044573 is ready for SSH connections 2025-03-20 02:21:43,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:43,685 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.130.169.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-20 02:21:43,685 - DEBUG - ping -s 56 -c 3 -W 1 31.130.169.195 2025-03-20 02:21:47,430 - DEBUG - PING 31.130.169.195 (31.130.169.195): 56 data bytes 64 bytes from 31.130.169.195: seq=0 ttl=62 time=9.028 ms 64 bytes from 31.130.169.195: seq=1 ttl=62 time=1.371 ms 64 bytes from 31.130.169.195: seq=2 ttl=62 time=1.641 ms --- 31.130.169.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.371/4.013/9.028 ms 2025-03-20 02:21:47,430 - INFO - Ping to IP 31.130.169.195 from VM ctest-TestRoutersBasic-22951247-64890338 passed 2025-03-20 02:21:47,430 - INFO - Deleting interface with subnet_id 74293c0a-3b64-47bf-a310-c2db6a488e27, port_id None from router 8ed5f7bd-9160-4f74-bcdd-6baa030dada2 2025-03-20 02:21:48,009 - INFO - Deleting VM ctest-TestRoutersBasic-22951247-84044573 2025-03-20 02:21:48,096 - INFO - Deleting VM ctest-TestRoutersBasic-22951247-64890338 2025-03-20 02:21:48,239 - INFO - Deleting VN ctest-ext_vn-75741494 2025-03-20 02:21:48,425 - DEBUG - VN cab6f01e-ac05-4784-b5d5-37338265fa6c still in use: Unable to complete operation on network cab6f01e-ac05-4784-b5d5-37338265fa6c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0f21f4d2-e309-4fcd-9587-8eac8bc2e8b4'] 2025-03-20 02:21:48,425 - WARNING - Deleting VN ctest-ext_vn-75741494 failed..Will retry 2025-03-20 02:21:50,624 - DEBUG - Response for deleting network () 2025-03-20 02:21:50,624 - INFO - Deleting VN ctest-vn-48715222 2025-03-20 02:21:50,882 - DEBUG - Response for deleting network () 2025-03-20 02:21:52,169 - DEBUG - No XMPP flaps were noticed during the test 2025-03-20 02:21:52,169 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-03-20 02:21:52,169 - INFO - -------------------------------------------------------------------------------- 2025-03-20 02:21:53,020 - INFO - Deleted project: ctest-TestRoutersBasic-22951247, ID : f6c77dca-68cd-4f96-8919-198a4fa27555