2025-03-25 17:27:16,762 - INFO - Domain Default found not creating 2025-03-25 17:27:16,941 - INFO - Project ctest-TestRoutersBasic-41071151 not found, creating it 2025-03-25 17:27:17,478 - INFO - Created Project:ctest-TestRoutersBasic-41071151, ID : d16e8136-5c2f-498e-82d0-4f5573e63025 2025-03-25 17:27:19,167 - INFO - ================================================================================ 2025-03-25 17:27:19,167 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-25 17:27:19,167 - 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-25 17:27:19,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with 2025-03-25 17:27:19,426 - INFO - Initial checks done. Running the testcase now 2025-03-25 17:27:19,426 - INFO - 2025-03-25 17:27:20,238 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41071151 2025-03-25 17:27:20,340 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41071151 2025-03-25 17:27:20,672 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41071151', 'default']} 2025-03-25 17:27:21,032 - DEBUG - Response for create_network : {'network': {'id': '5e14050a-4b75-4378-9b79-d706c35b90d3', 'name': 'ctest-vn-63113308', 'tenant_id': 'd16e81365c2f498e82d04f5573e63025', 'project_id': 'd16e81365c2f498e82d04f5573e63025', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41071151', 'ctest-vn-63113308'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:27:21,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '05a0a4ee-7566-44f1-96c1-359575b8de32', 'name': '', 'tenant_id': 'd16e81365c2f498e82d04f5573e63025', 'network_id': '5e14050a-4b75-4378-9b79-d706c35b90d3', 'ip_version': 4, 'cidr': '87.237.18.0/26', 'allocation_pools': [{'start': '87.237.18.2', 'end': '87.237.18.62'}], 'gateway_ip': '87.237.18.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.237.18.2', 'tags': [], 'project_id': 'd16e81365c2f498e82d04f5573e63025'}} 2025-03-25 17:27:21,330 - INFO - Created VN ctest-vn-63113308 2025-03-25 17:27:21,388 - DEBUG - VN ctest-vn-63113308 UUID is 5e14050a-4b75-4378-9b79-d706c35b90d3 2025-03-25 17:27:21,821 - DEBUG - Response for create_network : {'network': {'id': '63679ee2-fbd8-4beb-b1ff-cabfee78f0a6', 'name': 'ctest-ext_vn-67787703', 'tenant_id': 'd16e81365c2f498e82d04f5573e63025', 'project_id': 'd16e81365c2f498e82d04f5573e63025', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41071151', 'ctest-ext_vn-67787703'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:27:22,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b07eba9e-764e-4f16-86de-69f3ac7fcc82', 'name': '', 'tenant_id': 'd16e81365c2f498e82d04f5573e63025', 'network_id': '63679ee2-fbd8-4beb-b1ff-cabfee78f0a6', 'ip_version': 4, 'cidr': '201.174.107.128/26', 'allocation_pools': [{'start': '201.174.107.130', 'end': '201.174.107.190'}], 'gateway_ip': '201.174.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.174.107.130', 'tags': [], 'project_id': 'd16e81365c2f498e82d04f5573e63025'}} 2025-03-25 17:27:22,065 - INFO - Created VN ctest-ext_vn-67787703 2025-03-25 17:27:22,124 - DEBUG - VN ctest-ext_vn-67787703 UUID is 63679ee2-fbd8-4beb-b1ff-cabfee78f0a6 2025-03-25 17:27:22,324 - DEBUG - Services list from nova: [, , ] 2025-03-25 17:27:23,488 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2952-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2952-1) 2025-03-25 17:27:24,908 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2952-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2952-1) 2025-03-25 17:27:25,057 - INFO - Setting gateway for router 215f85c7-f143-43d8-84fb-77867f4bdf89 to network 63679ee2-fbd8-4beb-b1ff-cabfee78f0a6 2025-03-25 17:27:25,174 - INFO - Adding interface with subnet_id 05a0a4ee-7566-44f1-96c1-359575b8de32, port_id None to router 215f85c7-f143-43d8-84fb-77867f4bdf89 2025-03-25 17:27:25,655 - INFO - Waiting for VM ctest-TestRoutersBasic-41071151-01234798 to be up.. 2025-03-25 17:27:25,885 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 17:27:30,976 - DEBUG - VM is in ACTIVE state now 2025-03-25 17:27:30,976 - INFO - VM name : ctest-TestRoutersBasic-41071151-01234798 2025-03-25 17:27:31,065 - DEBUG - VM ctest-TestRoutersBasic-41071151-01234798 ID is 90bed8b1-8786-4a74-b5ab-c8c6fb665e25 2025-03-25 17:27:31,087 - DEBUG - VM ctest-TestRoutersBasic-41071151-01234798 launched on Node cn-jenkins-deploy-platform-ansible-os-2952-1 2025-03-25 17:27:31,180 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/90bed8b1-8786-4a74-b5ab-c8c6fb665e25 2025-03-25 17:27:31,526 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/90bed8b1-8786-4a74-b5ab-c8c6fb665e25 2025-03-25 17:27:31,567 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/c0c803e7-6687-467c-a0ff-ecb2b2b6f595 2025-03-25 17:27:34,842 - 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-03-25 17:27:34,842 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41071151-01234798 failed! 2025-03-25 17:27:34,908 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41071151:ctest-vn-63113308 is 87.237.18.1 and allocation pool is NOT set 2025-03-25 17:27:36,978 - 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.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.857 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.857/2.370/3.883/1.513 ms') 2025-03-25 17:27:36,978 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41071151-01234798 passed 2025-03-25 17:27:37,136 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:27:37,136 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41071151-01234798, IP 87.237.18.3, Port 22 2025-03-25 17:27:37,302 - DEBUG - VM ctest-TestRoutersBasic-41071151-01234798 is ready for SSH connections 2025-03-25 17:27:37,302 - INFO - Waiting for VM ctest-TestRoutersBasic-41071151-41668439 to be up.. 2025-03-25 17:27:37,386 - DEBUG - VM is in ACTIVE state now 2025-03-25 17:27:37,386 - INFO - VM name : ctest-TestRoutersBasic-41071151-41668439 2025-03-25 17:27:37,474 - DEBUG - VM ctest-TestRoutersBasic-41071151-41668439 ID is cfb5a44a-2c4e-4434-bf43-bf93b22914f0 2025-03-25 17:27:37,474 - DEBUG - VM ctest-TestRoutersBasic-41071151-41668439 launched on Node cn-jenkins-deploy-platform-ansible-os-2952-1 2025-03-25 17:27:37,563 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/cfb5a44a-2c4e-4434-bf43-bf93b22914f0 2025-03-25 17:27:37,574 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/2404097b-4bcc-43fc-9e2b-faec25733ea2 2025-03-25 17:27:38,832 - 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=6.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.54 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 = 2.542/4.489/6.436/1.947 ms') 2025-03-25 17:27:38,833 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41071151-41668439 passed 2025-03-25 17:27:38,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:27:38,992 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41071151-41668439, IP 201.174.107.131, Port 22 2025-03-25 17:27:39,148 - DEBUG - VM ctest-TestRoutersBasic-41071151-41668439 is ready for SSH connections 2025-03-25 17:27:39,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:27:39,148 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.174.107.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-25 17:27:39,149 - DEBUG - ping -s 56 -c 3 -W 1 201.174.107.131 2025-03-25 17:27:43,143 - DEBUG - PING 201.174.107.131 (201.174.107.131): 56 data bytes 64 bytes from 201.174.107.131: seq=0 ttl=62 time=6.400 ms 64 bytes from 201.174.107.131: seq=1 ttl=62 time=1.129 ms 64 bytes from 201.174.107.131: seq=2 ttl=62 time=1.001 ms --- 201.174.107.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.001/2.843/6.400 ms 2025-03-25 17:27:43,143 - INFO - Ping to IP 201.174.107.131 from VM ctest-TestRoutersBasic-41071151-01234798 passed 2025-03-25 17:27:43,143 - INFO - Deleting interface with subnet_id 05a0a4ee-7566-44f1-96c1-359575b8de32, port_id None from router 215f85c7-f143-43d8-84fb-77867f4bdf89 2025-03-25 17:27:43,441 - INFO - Deleting VM ctest-TestRoutersBasic-41071151-41668439 2025-03-25 17:27:43,550 - INFO - Deleting VM ctest-TestRoutersBasic-41071151-01234798 2025-03-25 17:27:43,666 - INFO - Deleting VN ctest-ext_vn-67787703 2025-03-25 17:27:43,831 - DEBUG - VN 63679ee2-fbd8-4beb-b1ff-cabfee78f0a6 still in use: Unable to complete operation on network 63679ee2-fbd8-4beb-b1ff-cabfee78f0a6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-09b3f5a8-d1fd-4fb1-925f-c151f873d61e'] 2025-03-25 17:27:43,831 - WARNING - Deleting VN ctest-ext_vn-67787703 failed..Will retry 2025-03-25 17:27:45,975 - DEBUG - Response for deleting network () 2025-03-25 17:27:45,975 - INFO - Deleting VN ctest-vn-63113308 2025-03-25 17:27:46,130 - DEBUG - Response for deleting network () 2025-03-25 17:27:46,390 - DEBUG - No XMPP flaps were noticed during the test 2025-03-25 17:27:46,390 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-03-25 17:27:46,390 - INFO - -------------------------------------------------------------------------------- 2025-03-25 17:27:47,146 - INFO - Deleted project: ctest-TestRoutersBasic-41071151, ID : d16e8136-5c2f-498e-82d0-4f5573e63025