2024-08-21 20:25:16,988 - INFO - Domain Default found not creating 2024-08-21 20:25:17,212 - INFO - Project ctest-TestRoutersBasic-72025647 not found, creating it 2024-08-21 20:25:17,715 - INFO - Created Project:ctest-TestRoutersBasic-72025647, ID : 927d9e90-4cb3-4bbf-b04f-64359cf5420f 2024-08-21 20:25:20,145 - INFO - ================================================================================ 2024-08-21 20:25:20,145 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 20:25:20,145 - 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 2024-08-21 20:25:20,411 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with 2024-08-21 20:25:20,411 - INFO - Initial checks done. Running the testcase now 2024-08-21 20:25:20,411 - INFO - 2024-08-21 20:25:21,128 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-72025647 2024-08-21 20:25:21,229 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-72025647 2024-08-21 20:25:21,572 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72025647', 'default']} 2024-08-21 20:25:21,915 - DEBUG - Response for create_network : {'network': {'id': '73d4207c-c1d8-4eed-93b9-cf870b26f300', 'name': 'ctest-vn-58948161', 'tenant_id': '927d9e904cb34bbfb04f64359cf5420f', 'project_id': '927d9e904cb34bbfb04f64359cf5420f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72025647', 'ctest-vn-58948161'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:25:22,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a1e947a-7e60-497e-856d-70b1f4e88497', 'name': '', 'tenant_id': '927d9e904cb34bbfb04f64359cf5420f', 'network_id': '73d4207c-c1d8-4eed-93b9-cf870b26f300', 'ip_version': 4, 'cidr': '218.134.236.0/26', 'allocation_pools': [{'start': '218.134.236.2', 'end': '218.134.236.62'}], 'gateway_ip': '218.134.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.134.236.2', 'tags': [], 'project_id': '927d9e904cb34bbfb04f64359cf5420f'}} 2024-08-21 20:25:22,188 - INFO - Created VN ctest-vn-58948161 2024-08-21 20:25:22,245 - DEBUG - VN ctest-vn-58948161 UUID is 73d4207c-c1d8-4eed-93b9-cf870b26f300 2024-08-21 20:25:22,681 - DEBUG - Response for create_network : {'network': {'id': 'b4ad718b-5ec2-483f-9025-7a57521b7088', 'name': 'ctest-ext_vn-43525124', 'tenant_id': '927d9e904cb34bbfb04f64359cf5420f', 'project_id': '927d9e904cb34bbfb04f64359cf5420f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72025647', 'ctest-ext_vn-43525124'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:25:22,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f24b7d8-67dd-47c9-a660-327f7dfb99d0', 'name': '', 'tenant_id': '927d9e904cb34bbfb04f64359cf5420f', 'network_id': 'b4ad718b-5ec2-483f-9025-7a57521b7088', 'ip_version': 4, 'cidr': '208.190.226.128/26', 'allocation_pools': [{'start': '208.190.226.130', 'end': '208.190.226.190'}], 'gateway_ip': '208.190.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.190.226.130', 'tags': [], 'project_id': '927d9e904cb34bbfb04f64359cf5420f'}} 2024-08-21 20:25:22,978 - INFO - Created VN ctest-ext_vn-43525124 2024-08-21 20:25:23,033 - DEBUG - VN ctest-ext_vn-43525124 UUID is b4ad718b-5ec2-483f-9025-7a57521b7088 2024-08-21 20:25:23,232 - DEBUG - Services list from nova: [, , ] 2024-08-21 20:25:24,378 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1699-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1699-1) 2024-08-21 20:25:25,708 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1699-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1699-1) 2024-08-21 20:25:25,790 - INFO - Setting gateway for router dcdf4388-932f-481c-9e98-fd952d4d50d9 to network b4ad718b-5ec2-483f-9025-7a57521b7088 2024-08-21 20:25:25,873 - INFO - Adding interface with subnet_id 6a1e947a-7e60-497e-856d-70b1f4e88497, port_id None to router dcdf4388-932f-481c-9e98-fd952d4d50d9 2024-08-21 20:25:26,468 - INFO - Waiting for VM ctest-TestRoutersBasic-72025647-15060619 to be up.. 2024-08-21 20:25:26,659 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 20:25:31,777 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:25:31,778 - INFO - VM name : ctest-TestRoutersBasic-72025647-15060619 2024-08-21 20:25:31,892 - DEBUG - VM ctest-TestRoutersBasic-72025647-15060619 ID is 65c43bc4-f214-41b9-923d-7f01124de44b 2024-08-21 20:25:31,913 - DEBUG - VM ctest-TestRoutersBasic-72025647-15060619 launched on Node cn-jenkins-deploy-platform-ansible-os-1699-1 2024-08-21 20:25:32,034 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/65c43bc4-f214-41b9-923d-7f01124de44b 2024-08-21 20:25:32,342 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/65c43bc4-f214-41b9-923d-7f01124de44b 2024-08-21 20:25:32,388 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/f1ce24e8-a5c4-4ee3-8d79-40fa7939c4fe 2024-08-21 20:25:35,679 - 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 1027ms') 2024-08-21 20:25:35,679 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72025647-15060619 failed! 2024-08-21 20:25:35,741 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-72025647:ctest-vn-58948161 is 218.134.236.1 and allocation pool is NOT set 2024-08-21 20:25:37,801 - 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.02 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.441 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.441/2.729/5.017/2.288 ms') 2024-08-21 20:25:37,801 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72025647-15060619 passed 2024-08-21 20:25:37,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:25:37,965 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72025647-15060619, IP 218.134.236.3, Port 22 2024-08-21 20:25:38,145 - DEBUG - VM ctest-TestRoutersBasic-72025647-15060619 is ready for SSH connections 2024-08-21 20:25:38,145 - INFO - Waiting for VM ctest-TestRoutersBasic-72025647-35186012 to be up.. 2024-08-21 20:25:38,255 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:25:38,255 - INFO - VM name : ctest-TestRoutersBasic-72025647-35186012 2024-08-21 20:25:38,353 - DEBUG - VM ctest-TestRoutersBasic-72025647-35186012 ID is 8a7172a2-d2d0-44ca-99bb-11cd45e77d30 2024-08-21 20:25:38,354 - DEBUG - VM ctest-TestRoutersBasic-72025647-35186012 launched on Node cn-jenkins-deploy-platform-ansible-os-1699-1 2024-08-21 20:25:38,446 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/8a7172a2-d2d0-44ca-99bb-11cd45e77d30 2024-08-21 20:25:38,456 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/8f75ebd1-09b9-4b6e-852d-81cc73c6013c 2024-08-21 20:25:41,725 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1025ms') 2024-08-21 20:25:41,725 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-72025647-35186012 failed! 2024-08-21 20:25:41,785 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-72025647:ctest-ext_vn-43525124 is 208.190.226.129 and allocation pool is NOT set 2024-08-21 20:25:43,857 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.67 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.645/2.657/2.670/0.012 ms') 2024-08-21 20:25:43,857 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-72025647-35186012 passed 2024-08-21 20:25:44,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:25:44,021 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72025647-35186012, IP 208.190.226.131, Port 22 2024-08-21 20:25:44,189 - DEBUG - VM ctest-TestRoutersBasic-72025647-35186012 is ready for SSH connections 2024-08-21 20:25:44,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:25:44,189 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 208.190.226.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 20:25:44,189 - DEBUG - ping -s 56 -c 3 -W 1 208.190.226.131 2024-08-21 20:25:47,881 - DEBUG - PING 208.190.226.131 (208.190.226.131): 56 data bytes 64 bytes from 208.190.226.131: seq=0 ttl=62 time=4.499 ms 64 bytes from 208.190.226.131: seq=1 ttl=62 time=2.502 ms 64 bytes from 208.190.226.131: seq=2 ttl=62 time=1.055 ms --- 208.190.226.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.055/2.685/4.499 ms 2024-08-21 20:25:47,881 - INFO - Ping to IP 208.190.226.131 from VM ctest-TestRoutersBasic-72025647-15060619 passed 2024-08-21 20:25:47,881 - INFO - Deleting interface with subnet_id 6a1e947a-7e60-497e-856d-70b1f4e88497, port_id None from router dcdf4388-932f-481c-9e98-fd952d4d50d9 2024-08-21 20:25:48,107 - INFO - Deleting VM ctest-TestRoutersBasic-72025647-35186012 2024-08-21 20:25:48,181 - INFO - Deleting VM ctest-TestRoutersBasic-72025647-15060619 2024-08-21 20:25:48,288 - INFO - Deleting VN ctest-ext_vn-43525124 2024-08-21 20:25:48,400 - DEBUG - VN b4ad718b-5ec2-483f-9025-7a57521b7088 still in use: Unable to complete operation on network b4ad718b-5ec2-483f-9025-7a57521b7088. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9cdf0e5b-0341-48b1-ac98-fb29deae14f8'] 2024-08-21 20:25:48,400 - WARNING - Deleting VN ctest-ext_vn-43525124 failed..Will retry 2024-08-21 20:25:50,543 - DEBUG - Response for deleting network () 2024-08-21 20:25:50,543 - INFO - Deleting VN ctest-vn-58948161 2024-08-21 20:25:50,671 - DEBUG - Response for deleting network () 2024-08-21 20:25:50,936 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 20:25:50,936 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2024-08-21 20:25:50,936 - INFO - -------------------------------------------------------------------------------- 2024-08-21 20:25:51,645 - INFO - Deleted project: ctest-TestRoutersBasic-72025647, ID : 927d9e90-4cb3-4bbf-b04f-64359cf5420f