2025-03-31 02:36:47,143 - INFO - Domain Default found not creating 2025-03-31 02:36:47,289 - INFO - Project ctest-TestRoutersBasic-16956187 not found, creating it 2025-03-31 02:36:47,777 - INFO - Created Project:ctest-TestRoutersBasic-16956187, ID : 9bfc979a-dc52-444a-9694-78b5afb82b4b 2025-03-31 02:36:49,205 - INFO - ================================================================================ 2025-03-31 02:36:49,205 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-31 02:36:49,205 - 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-31 02:36:49,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.23': '0'}} with 2025-03-31 02:36:49,459 - INFO - Initial checks done. Running the testcase now 2025-03-31 02:36:49,459 - INFO - 2025-03-31 02:36:50,166 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16956187 2025-03-31 02:36:50,262 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16956187 2025-03-31 02:36:50,590 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16956187', 'default']} 2025-03-31 02:36:50,899 - DEBUG - Response for create_network : {'network': {'id': '5e7bf5f9-a182-403b-b45b-cc67424ac87f', 'name': 'ctest-vn-81460209', 'tenant_id': '9bfc979adc52444a969478b5afb82b4b', 'project_id': '9bfc979adc52444a969478b5afb82b4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16956187', 'ctest-vn-81460209'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:36:51,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '1562870a-baa4-4822-8495-1f05bd4b37e4', 'name': '', 'tenant_id': '9bfc979adc52444a969478b5afb82b4b', 'network_id': '5e7bf5f9-a182-403b-b45b-cc67424ac87f', 'ip_version': 4, 'cidr': '139.16.120.128/26', 'allocation_pools': [{'start': '139.16.120.130', 'end': '139.16.120.190'}], 'gateway_ip': '139.16.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.16.120.130', 'tags': [], 'project_id': '9bfc979adc52444a969478b5afb82b4b'}} 2025-03-31 02:36:51,255 - INFO - Created VN ctest-vn-81460209 2025-03-31 02:36:51,306 - DEBUG - VN ctest-vn-81460209 UUID is 5e7bf5f9-a182-403b-b45b-cc67424ac87f 2025-03-31 02:36:51,665 - DEBUG - Response for create_network : {'network': {'id': '3bc30a42-4fba-41da-a3de-6c996498de94', 'name': 'ctest-ext_vn-30769498', 'tenant_id': '9bfc979adc52444a969478b5afb82b4b', 'project_id': '9bfc979adc52444a969478b5afb82b4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16956187', 'ctest-ext_vn-30769498'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:36:51,870 - DEBUG - Response for create_subnet : {'subnet': {'id': '671343db-67a9-42b3-94d5-8a27b1984622', 'name': '', 'tenant_id': '9bfc979adc52444a969478b5afb82b4b', 'network_id': '3bc30a42-4fba-41da-a3de-6c996498de94', 'ip_version': 4, 'cidr': '63.37.160.128/26', 'allocation_pools': [{'start': '63.37.160.130', 'end': '63.37.160.190'}], 'gateway_ip': '63.37.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.37.160.130', 'tags': [], 'project_id': '9bfc979adc52444a969478b5afb82b4b'}} 2025-03-31 02:36:51,886 - INFO - Created VN ctest-ext_vn-30769498 2025-03-31 02:36:51,938 - DEBUG - VN ctest-ext_vn-30769498 UUID is 3bc30a42-4fba-41da-a3de-6c996498de94 2025-03-31 02:36:52,138 - DEBUG - Services list from nova: [, , ] 2025-03-31 02:36:53,132 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3014-1) 2025-03-31 02:36:54,244 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3014-1) 2025-03-31 02:36:54,329 - INFO - Setting gateway for router 49919207-2b0e-4b08-bdc9-2195b942f1c6 to network 3bc30a42-4fba-41da-a3de-6c996498de94 2025-03-31 02:36:54,405 - INFO - Adding interface with subnet_id 1562870a-baa4-4822-8495-1f05bd4b37e4, port_id None to router 49919207-2b0e-4b08-bdc9-2195b942f1c6 2025-03-31 02:36:54,832 - INFO - Waiting for VM ctest-TestRoutersBasic-16956187-91968562 to be up.. 2025-03-31 02:36:54,962 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 02:37:00,047 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:37:00,047 - INFO - VM name : ctest-TestRoutersBasic-16956187-91968562 2025-03-31 02:37:00,139 - DEBUG - VM ctest-TestRoutersBasic-16956187-91968562 ID is c922284d-91e8-484d-afca-02694b23f61d 2025-03-31 02:37:00,158 - DEBUG - VM ctest-TestRoutersBasic-16956187-91968562 launched on Node cn-jenkins-deploy-platform-ansible-os-3014-1 2025-03-31 02:37:00,234 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c922284d-91e8-484d-afca-02694b23f61d 2025-03-31 02:37:00,531 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c922284d-91e8-484d-afca-02694b23f61d 2025-03-31 02:37:00,561 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/5d8e0f9b-a128-4b37-a5c4-a7b802f3fbca 2025-03-31 02:37:03,827 - 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 1015ms') 2025-03-31 02:37:03,827 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16956187-91968562 failed! 2025-03-31 02:37:03,886 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16956187:ctest-vn-81460209 is 139.16.120.129 and allocation pool is NOT set 2025-03-31 02:37:05,950 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.310 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.310/1.499/2.689/1.189 ms') 2025-03-31 02:37:05,950 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16956187-91968562 passed 2025-03-31 02:37:06,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:06,098 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16956187-91968562, IP 139.16.120.131, Port 22 2025-03-31 02:37:06,266 - DEBUG - VM ctest-TestRoutersBasic-16956187-91968562 is ready for SSH connections 2025-03-31 02:37:06,266 - INFO - Waiting for VM ctest-TestRoutersBasic-16956187-79192164 to be up.. 2025-03-31 02:37:06,345 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:37:06,346 - INFO - VM name : ctest-TestRoutersBasic-16956187-79192164 2025-03-31 02:37:06,420 - DEBUG - VM ctest-TestRoutersBasic-16956187-79192164 ID is beba4ff1-9635-4982-90df-b832a3c7886e 2025-03-31 02:37:06,420 - DEBUG - VM ctest-TestRoutersBasic-16956187-79192164 launched on Node cn-jenkins-deploy-platform-ansible-os-3014-1 2025-03-31 02:37:06,492 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/beba4ff1-9635-4982-90df-b832a3c7886e 2025-03-31 02:37:06,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/c8a73879-2ceb-443b-942b-2049cc8a2571 2025-03-31 02:37:07,749 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.10 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.103/3.500/4.897/1.397 ms') 2025-03-31 02:37:07,749 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16956187-79192164 passed 2025-03-31 02:37:07,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:07,906 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16956187-79192164, IP 63.37.160.131, Port 22 2025-03-31 02:37:08,069 - DEBUG - VM ctest-TestRoutersBasic-16956187-79192164 is ready for SSH connections 2025-03-31 02:37:08,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:08,070 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.37.160.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-31 02:37:08,070 - DEBUG - ping -s 56 -c 3 -W 1 63.37.160.131 2025-03-31 02:37:11,744 - DEBUG - PING 63.37.160.131 (63.37.160.131): 56 data bytes 64 bytes from 63.37.160.131: seq=0 ttl=62 time=7.589 ms 64 bytes from 63.37.160.131: seq=1 ttl=62 time=1.051 ms 64 bytes from 63.37.160.131: seq=2 ttl=62 time=1.211 ms --- 63.37.160.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.051/3.283/7.589 ms 2025-03-31 02:37:11,744 - INFO - Ping to IP 63.37.160.131 from VM ctest-TestRoutersBasic-16956187-91968562 passed 2025-03-31 02:37:11,744 - INFO - Deleting interface with subnet_id 1562870a-baa4-4822-8495-1f05bd4b37e4, port_id None from router 49919207-2b0e-4b08-bdc9-2195b942f1c6 2025-03-31 02:37:11,942 - INFO - Deleting VM ctest-TestRoutersBasic-16956187-79192164 2025-03-31 02:37:12,009 - INFO - Deleting VM ctest-TestRoutersBasic-16956187-91968562 2025-03-31 02:37:12,082 - INFO - Deleting VN ctest-ext_vn-30769498 2025-03-31 02:37:12,164 - DEBUG - VN 3bc30a42-4fba-41da-a3de-6c996498de94 still in use: Unable to complete operation on network 3bc30a42-4fba-41da-a3de-6c996498de94. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c9c31c16-13cd-4557-a275-4e0a49ef40cb'] 2025-03-31 02:37:12,164 - WARNING - Deleting VN ctest-ext_vn-30769498 failed..Will retry 2025-03-31 02:37:14,286 - DEBUG - Response for deleting network () 2025-03-31 02:37:14,286 - INFO - Deleting VN ctest-vn-81460209 2025-03-31 02:37:14,398 - DEBUG - Response for deleting network () 2025-03-31 02:37:14,651 - DEBUG - No XMPP flaps were noticed during the test 2025-03-31 02:37:14,652 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-31 02:37:14,652 - INFO - -------------------------------------------------------------------------------- 2025-03-31 02:37:15,319 - INFO - Deleted project: ctest-TestRoutersBasic-16956187, ID : 9bfc979a-dc52-444a-9694-78b5afb82b4b