2025-03-27 14:34:21,626 - INFO - Domain Default found not creating 2025-03-27 14:34:21,769 - INFO - Project ctest-TestRoutersBasic-38900285 not found, creating it 2025-03-27 14:34:22,274 - INFO - Created Project:ctest-TestRoutersBasic-38900285, ID : 7f1f196a-abaf-4d35-add1-4db6f9ff451f 2025-03-27 14:34:23,749 - INFO - ================================================================================ 2025-03-27 14:34:23,749 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 14:34:23,749 - 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-27 14:34:24,009 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with 2025-03-27 14:34:24,010 - INFO - Initial checks done. Running the testcase now 2025-03-27 14:34:24,010 - INFO - 2025-03-27 14:34:24,708 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38900285 2025-03-27 14:34:24,808 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38900285 2025-03-27 14:34:25,144 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38900285', 'default']} 2025-03-27 14:34:25,442 - DEBUG - Response for create_network : {'network': {'id': 'afdb3807-592c-4284-9f99-daf8779548fd', 'name': 'ctest-vn-62623264', 'tenant_id': '7f1f196aabaf4d35add14db6f9ff451f', 'project_id': '7f1f196aabaf4d35add14db6f9ff451f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38900285', 'ctest-vn-62623264'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:34:25,622 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe5ef73f-a282-4fe8-96a6-46b88ed20d73', 'name': '', 'tenant_id': '7f1f196aabaf4d35add14db6f9ff451f', 'network_id': 'afdb3807-592c-4284-9f99-daf8779548fd', 'ip_version': 4, 'cidr': '157.95.65.0/26', 'allocation_pools': [{'start': '157.95.65.2', 'end': '157.95.65.62'}], 'gateway_ip': '157.95.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.95.65.2', 'tags': [], 'project_id': '7f1f196aabaf4d35add14db6f9ff451f'}} 2025-03-27 14:34:25,642 - INFO - Created VN ctest-vn-62623264 2025-03-27 14:34:25,696 - DEBUG - VN ctest-vn-62623264 UUID is afdb3807-592c-4284-9f99-daf8779548fd 2025-03-27 14:34:26,067 - DEBUG - Response for create_network : {'network': {'id': '2d5bd137-8478-4433-b00c-8181da7aca77', 'name': 'ctest-ext_vn-40964277', 'tenant_id': '7f1f196aabaf4d35add14db6f9ff451f', 'project_id': '7f1f196aabaf4d35add14db6f9ff451f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38900285', 'ctest-ext_vn-40964277'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:34:26,288 - DEBUG - Response for create_subnet : {'subnet': {'id': '200f5338-5acd-4101-baf6-53ba8db3dd66', 'name': '', 'tenant_id': '7f1f196aabaf4d35add14db6f9ff451f', 'network_id': '2d5bd137-8478-4433-b00c-8181da7aca77', 'ip_version': 4, 'cidr': '14.65.72.64/26', 'allocation_pools': [{'start': '14.65.72.66', 'end': '14.65.72.126'}], 'gateway_ip': '14.65.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.65.72.66', 'tags': [], 'project_id': '7f1f196aabaf4d35add14db6f9ff451f'}} 2025-03-27 14:34:26,309 - INFO - Created VN ctest-ext_vn-40964277 2025-03-27 14:34:26,364 - DEBUG - VN ctest-ext_vn-40964277 UUID is 2d5bd137-8478-4433-b00c-8181da7aca77 2025-03-27 14:34:26,530 - DEBUG - Services list from nova: [, , ] 2025-03-27 14:34:27,550 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2973-1) 2025-03-27 14:34:28,662 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2973-1) 2025-03-27 14:34:28,742 - INFO - Setting gateway for router a36cc586-f64b-475c-a82b-c6882b722ea6 to network 2d5bd137-8478-4433-b00c-8181da7aca77 2025-03-27 14:34:28,811 - INFO - Adding interface with subnet_id fe5ef73f-a282-4fe8-96a6-46b88ed20d73, port_id None to router a36cc586-f64b-475c-a82b-c6882b722ea6 2025-03-27 14:34:29,257 - INFO - Waiting for VM ctest-TestRoutersBasic-38900285-09416610 to be up.. 2025-03-27 14:34:29,431 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 14:34:34,616 - DEBUG - VM is in ACTIVE state now 2025-03-27 14:34:34,616 - INFO - VM name : ctest-TestRoutersBasic-38900285-09416610 2025-03-27 14:34:34,781 - DEBUG - VM ctest-TestRoutersBasic-38900285-09416610 ID is 5de0af79-6269-4d37-95f9-6de8df5c539e 2025-03-27 14:34:34,817 - DEBUG - VM ctest-TestRoutersBasic-38900285-09416610 launched on Node cn-jenkins-deploy-platform-ansible-os-2973-1 2025-03-27 14:34:34,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5de0af79-6269-4d37-95f9-6de8df5c539e 2025-03-27 14:34:35,225 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5de0af79-6269-4d37-95f9-6de8df5c539e 2025-03-27 14:34:35,256 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f2475705-a57e-4fbf-a8d3-5bf98ae0c38e 2025-03-27 14:34:38,522 - 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 1014ms') 2025-03-27 14:34:38,523 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38900285-09416610 failed! 2025-03-27 14:34:38,580 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38900285:ctest-vn-62623264 is 157.95.65.1 and allocation pool is NOT set 2025-03-27 14:34:40,639 - 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=2.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.290 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 = 0.290/1.630/2.970/1.340 ms') 2025-03-27 14:34:40,639 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38900285-09416610 passed 2025-03-27 14:34:40,793 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:34:40,793 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38900285-09416610, IP 157.95.65.3, Port 22 2025-03-27 14:34:40,955 - DEBUG - VM ctest-TestRoutersBasic-38900285-09416610 is ready for SSH connections 2025-03-27 14:34:40,955 - INFO - Waiting for VM ctest-TestRoutersBasic-38900285-44744494 to be up.. 2025-03-27 14:34:41,043 - DEBUG - VM is in ACTIVE state now 2025-03-27 14:34:41,043 - INFO - VM name : ctest-TestRoutersBasic-38900285-44744494 2025-03-27 14:34:41,121 - DEBUG - VM ctest-TestRoutersBasic-38900285-44744494 ID is 3939f9a7-fa3c-4f0d-867b-95821ffeb326 2025-03-27 14:34:41,121 - DEBUG - VM ctest-TestRoutersBasic-38900285-44744494 launched on Node cn-jenkins-deploy-platform-ansible-os-2973-1 2025-03-27 14:34:41,223 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/3939f9a7-fa3c-4f0d-867b-95821ffeb326 2025-03-27 14:34:41,232 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/990c12d6-8125-4390-98db-a7601126bb27 2025-03-27 14:34:42,500 - 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=2.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.557 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.557/1.682/2.807/1.125 ms') 2025-03-27 14:34:42,500 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38900285-44744494 passed 2025-03-27 14:34:42,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:34:42,652 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38900285-44744494, IP 14.65.72.67, Port 22 2025-03-27 14:34:42,811 - DEBUG - VM ctest-TestRoutersBasic-38900285-44744494 is ready for SSH connections 2025-03-27 14:34:42,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:34:42,811 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.65.72.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-27 14:34:42,811 - DEBUG - ping -s 56 -c 3 -W 1 14.65.72.67 2025-03-27 14:34:46,810 - DEBUG - PING 14.65.72.67 (14.65.72.67): 56 data bytes 64 bytes from 14.65.72.67: seq=0 ttl=62 time=7.040 ms 64 bytes from 14.65.72.67: seq=1 ttl=62 time=1.191 ms 64 bytes from 14.65.72.67: seq=2 ttl=62 time=0.852 ms --- 14.65.72.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.852/3.027/7.040 ms 2025-03-27 14:34:46,810 - INFO - Ping to IP 14.65.72.67 from VM ctest-TestRoutersBasic-38900285-09416610 passed 2025-03-27 14:34:46,810 - INFO - Deleting interface with subnet_id fe5ef73f-a282-4fe8-96a6-46b88ed20d73, port_id None from router a36cc586-f64b-475c-a82b-c6882b722ea6 2025-03-27 14:34:47,037 - INFO - Deleting VM ctest-TestRoutersBasic-38900285-44744494 2025-03-27 14:34:47,107 - INFO - Deleting VM ctest-TestRoutersBasic-38900285-09416610 2025-03-27 14:34:47,200 - INFO - Deleting VN ctest-ext_vn-40964277 2025-03-27 14:34:47,280 - DEBUG - VN 2d5bd137-8478-4433-b00c-8181da7aca77 still in use: Unable to complete operation on network 2d5bd137-8478-4433-b00c-8181da7aca77. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9159ee49-401b-4071-a831-fba6b12aceab'] 2025-03-27 14:34:47,281 - WARNING - Deleting VN ctest-ext_vn-40964277 failed..Will retry 2025-03-27 14:34:49,384 - DEBUG - Response for deleting network () 2025-03-27 14:34:49,384 - INFO - Deleting VN ctest-vn-62623264 2025-03-27 14:34:49,495 - DEBUG - Response for deleting network () 2025-03-27 14:34:49,754 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 14:34:49,754 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-27 14:34:49,754 - INFO - -------------------------------------------------------------------------------- 2025-03-27 14:34:50,401 - INFO - Deleted project: ctest-TestRoutersBasic-38900285, ID : 7f1f196a-abaf-4d35-add1-4db6f9ff451f