2024-08-21 03:22:52,780 - INFO - Domain Default found not creating 2024-08-21 03:22:52,965 - INFO - Project ctest-TestRoutersBasic-28135893 not found, creating it 2024-08-21 03:22:53,534 - INFO - Created Project:ctest-TestRoutersBasic-28135893, ID : f5a6aa82-facb-496f-9e2d-31634db3a0ae 2024-08-21 03:22:55,442 - INFO - ================================================================================ 2024-08-21 03:22:55,442 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 03:22:55,442 - 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 03:22:55,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.26': '0'}} with 2024-08-21 03:22:55,707 - INFO - Initial checks done. Running the testcase now 2024-08-21 03:22:55,707 - INFO - 2024-08-21 03:22:56,537 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28135893 2024-08-21 03:22:56,644 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28135893 2024-08-21 03:22:56,984 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28135893', 'default']} 2024-08-21 03:22:57,318 - DEBUG - Response for create_network : {'network': {'id': 'f3a4875a-f5bb-4943-85b2-26b52d9e59dd', 'name': 'ctest-vn-66975746', 'tenant_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'project_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28135893', 'ctest-vn-66975746'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:22:57,506 - DEBUG - Response for create_subnet : {'subnet': {'id': '49a0d171-cbd5-4dbb-9131-3a7ac267a86a', 'name': '', 'tenant_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'network_id': 'f3a4875a-f5bb-4943-85b2-26b52d9e59dd', 'ip_version': 4, 'cidr': '172.97.217.64/26', 'allocation_pools': [{'start': '172.97.217.66', 'end': '172.97.217.126'}], 'gateway_ip': '172.97.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.97.217.66', 'tags': [], 'project_id': 'f5a6aa82facb496f9e2d31634db3a0ae'}} 2024-08-21 03:22:57,531 - INFO - Created VN ctest-vn-66975746 2024-08-21 03:22:57,584 - DEBUG - VN ctest-vn-66975746 UUID is f3a4875a-f5bb-4943-85b2-26b52d9e59dd 2024-08-21 03:22:57,937 - DEBUG - Response for create_network : {'network': {'id': 'eea4bec5-6adb-4d67-9160-112c2707c7fb', 'name': 'ctest-ext_vn-75661622', 'tenant_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'project_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28135893', 'ctest-ext_vn-75661622'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:22:58,119 - DEBUG - Response for create_subnet : {'subnet': {'id': '19319c69-f390-4f05-bf82-929709fee565', 'name': '', 'tenant_id': 'f5a6aa82facb496f9e2d31634db3a0ae', 'network_id': 'eea4bec5-6adb-4d67-9160-112c2707c7fb', 'ip_version': 4, 'cidr': '106.145.15.128/26', 'allocation_pools': [{'start': '106.145.15.130', 'end': '106.145.15.190'}], 'gateway_ip': '106.145.15.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.145.15.130', 'tags': [], 'project_id': 'f5a6aa82facb496f9e2d31634db3a0ae'}} 2024-08-21 03:22:58,142 - INFO - Created VN ctest-ext_vn-75661622 2024-08-21 03:22:58,192 - DEBUG - VN ctest-ext_vn-75661622 UUID is eea4bec5-6adb-4d67-9160-112c2707c7fb 2024-08-21 03:22:58,444 - DEBUG - Services list from nova: [, , ] 2024-08-21 03:22:59,633 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1679-1) 2024-08-21 03:23:00,944 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1679-1) 2024-08-21 03:23:01,044 - INFO - Setting gateway for router 50627440-022e-42b6-93d7-bedb52ae7d71 to network eea4bec5-6adb-4d67-9160-112c2707c7fb 2024-08-21 03:23:01,119 - INFO - Adding interface with subnet_id 49a0d171-cbd5-4dbb-9131-3a7ac267a86a, port_id None to router 50627440-022e-42b6-93d7-bedb52ae7d71 2024-08-21 03:23:01,582 - INFO - Waiting for VM ctest-TestRoutersBasic-28135893-55276125 to be up.. 2024-08-21 03:23:01,767 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 03:23:06,855 - DEBUG - VM is in ACTIVE state now 2024-08-21 03:23:06,856 - INFO - VM name : ctest-TestRoutersBasic-28135893-55276125 2024-08-21 03:23:06,944 - DEBUG - VM ctest-TestRoutersBasic-28135893-55276125 ID is 88876e2a-2d93-4c44-8c1e-71ca4111eb95 2024-08-21 03:23:06,967 - DEBUG - VM ctest-TestRoutersBasic-28135893-55276125 launched on Node cn-jenkins-deploy-platform-ansible-os-1679-1 2024-08-21 03:23:07,057 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/88876e2a-2d93-4c44-8c1e-71ca4111eb95 2024-08-21 03:23:07,407 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/88876e2a-2d93-4c44-8c1e-71ca4111eb95 2024-08-21 03:23:07,448 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/6a0c5dd9-a5b5-4ae7-aa61-597369e72c28 2024-08-21 03:23:10,715 - 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 1018ms') 2024-08-21 03:23:10,715 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28135893-55276125 failed! 2024-08-21 03:23:10,772 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28135893:ctest-vn-66975746 is 172.97.217.65 and allocation pool is NOT set 2024-08-21 03:23:12,836 - 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=6.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.867 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.867/3.926/6.986/3.059 ms') 2024-08-21 03:23:12,836 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28135893-55276125 passed 2024-08-21 03:23:12,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:12,992 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28135893-55276125, IP 172.97.217.67, Port 22 2024-08-21 03:23:13,162 - DEBUG - VM ctest-TestRoutersBasic-28135893-55276125 is ready for SSH connections 2024-08-21 03:23:13,162 - INFO - Waiting for VM ctest-TestRoutersBasic-28135893-85332940 to be up.. 2024-08-21 03:23:13,278 - DEBUG - VM is in ACTIVE state now 2024-08-21 03:23:13,278 - INFO - VM name : ctest-TestRoutersBasic-28135893-85332940 2024-08-21 03:23:13,381 - DEBUG - VM ctest-TestRoutersBasic-28135893-85332940 ID is 586417d7-e37a-4e3d-877b-189aad6a0ca8 2024-08-21 03:23:13,381 - DEBUG - VM ctest-TestRoutersBasic-28135893-85332940 launched on Node cn-jenkins-deploy-platform-ansible-os-1679-1 2024-08-21 03:23:13,473 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/586417d7-e37a-4e3d-877b-189aad6a0ca8 2024-08-21 03:23:13,483 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/9124c628-3787-486a-86dc-16fde60f41a3 2024-08-21 03:23:14,742 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.12 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 = 1.119/3.803/6.487/2.684 ms') 2024-08-21 03:23:14,743 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28135893-85332940 passed 2024-08-21 03:23:14,900 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:14,900 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28135893-85332940, IP 106.145.15.131, Port 22 2024-08-21 03:23:15,079 - DEBUG - VM ctest-TestRoutersBasic-28135893-85332940 is ready for SSH connections 2024-08-21 03:23:15,079 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:15,079 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.145.15.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-21 03:23:15,079 - DEBUG - ping -s 56 -c 3 -W 1 106.145.15.131 2024-08-21 03:23:18,822 - DEBUG - PING 106.145.15.131 (106.145.15.131): 56 data bytes 64 bytes from 106.145.15.131: seq=0 ttl=62 time=6.176 ms 64 bytes from 106.145.15.131: seq=1 ttl=62 time=1.089 ms 64 bytes from 106.145.15.131: seq=2 ttl=62 time=1.119 ms --- 106.145.15.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.089/2.794/6.176 ms 2024-08-21 03:23:18,822 - INFO - Ping to IP 106.145.15.131 from VM ctest-TestRoutersBasic-28135893-55276125 passed 2024-08-21 03:23:18,823 - INFO - Deleting interface with subnet_id 49a0d171-cbd5-4dbb-9131-3a7ac267a86a, port_id None from router 50627440-022e-42b6-93d7-bedb52ae7d71 2024-08-21 03:23:19,062 - INFO - Deleting VM ctest-TestRoutersBasic-28135893-85332940 2024-08-21 03:23:19,139 - INFO - Deleting VM ctest-TestRoutersBasic-28135893-55276125 2024-08-21 03:23:19,228 - INFO - Deleting VN ctest-ext_vn-75661622 2024-08-21 03:23:19,318 - DEBUG - VN eea4bec5-6adb-4d67-9160-112c2707c7fb still in use: Unable to complete operation on network eea4bec5-6adb-4d67-9160-112c2707c7fb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-50e803a0-cd5e-4105-bf82-d26e1ff2d50f'] 2024-08-21 03:23:19,318 - WARNING - Deleting VN ctest-ext_vn-75661622 failed..Will retry 2024-08-21 03:23:21,439 - DEBUG - Response for deleting network () 2024-08-21 03:23:21,439 - INFO - Deleting VN ctest-vn-66975746 2024-08-21 03:23:21,566 - DEBUG - Response for deleting network () 2024-08-21 03:23:21,845 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 03:23:21,845 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-08-21 03:23:21,846 - INFO - -------------------------------------------------------------------------------- 2024-08-21 03:23:22,616 - INFO - Deleted project: ctest-TestRoutersBasic-28135893, ID : f5a6aa82-facb-496f-9e2d-31634db3a0ae