2024-08-29 18:06:25,201 - INFO - Domain Default found not creating 2024-08-29 18:06:25,431 - INFO - Project ctest-TestRoutersBasic-04038025 not found, creating it 2024-08-29 18:06:25,985 - INFO - Created Project:ctest-TestRoutersBasic-04038025, ID : 4738b856-aa4c-4a3a-a909-f92743676e1d 2024-08-29 18:06:28,061 - INFO - ================================================================================ 2024-08-29 18:06:28,061 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 18:06:28,062 - 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-29 18:06:28,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.10': '0'}} with 2024-08-29 18:06:28,351 - INFO - Initial checks done. Running the testcase now 2024-08-29 18:06:28,351 - INFO - 2024-08-29 18:06:29,131 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04038025 2024-08-29 18:06:29,233 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04038025 2024-08-29 18:06:29,580 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04038025', 'default']} 2024-08-29 18:06:29,946 - DEBUG - Response for create_network : {'network': {'id': '35052cfa-ddc4-4069-983d-8791889d7645', 'name': 'ctest-vn-56352367', 'tenant_id': '4738b856aa4c4a3aa909f92743676e1d', 'project_id': '4738b856aa4c4a3aa909f92743676e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04038025', 'ctest-vn-56352367'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:06:30,218 - DEBUG - Response for create_subnet : {'subnet': {'id': '731f646d-6e18-4834-ab9a-a30bd0ea7304', 'name': '', 'tenant_id': '4738b856aa4c4a3aa909f92743676e1d', 'network_id': '35052cfa-ddc4-4069-983d-8791889d7645', 'ip_version': 4, 'cidr': '94.169.5.0/26', 'allocation_pools': [{'start': '94.169.5.2', 'end': '94.169.5.62'}], 'gateway_ip': '94.169.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.169.5.2', 'tags': [], 'project_id': '4738b856aa4c4a3aa909f92743676e1d'}} 2024-08-29 18:06:30,246 - INFO - Created VN ctest-vn-56352367 2024-08-29 18:06:30,301 - DEBUG - VN ctest-vn-56352367 UUID is 35052cfa-ddc4-4069-983d-8791889d7645 2024-08-29 18:06:30,706 - DEBUG - Response for create_network : {'network': {'id': '1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8', 'name': 'ctest-ext_vn-77944196', 'tenant_id': '4738b856aa4c4a3aa909f92743676e1d', 'project_id': '4738b856aa4c4a3aa909f92743676e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04038025', 'ctest-ext_vn-77944196'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:06:30,897 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4526cf6-0f22-453c-849c-df13678fbb4b', 'name': '', 'tenant_id': '4738b856aa4c4a3aa909f92743676e1d', 'network_id': '1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8', 'ip_version': 4, 'cidr': '182.7.21.0/26', 'allocation_pools': [{'start': '182.7.21.2', 'end': '182.7.21.62'}], 'gateway_ip': '182.7.21.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.7.21.2', 'tags': [], 'project_id': '4738b856aa4c4a3aa909f92743676e1d'}} 2024-08-29 18:06:30,931 - INFO - Created VN ctest-ext_vn-77944196 2024-08-29 18:06:30,985 - DEBUG - VN ctest-ext_vn-77944196 UUID is 1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8 2024-08-29 18:06:31,188 - DEBUG - Services list from nova: [, , ] 2024-08-29 18:06:32,401 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1816-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1816-1) 2024-08-29 18:06:33,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1816-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1816-1) 2024-08-29 18:06:33,819 - INFO - Setting gateway for router a573272f-4fec-4006-850e-d115d9cea26f to network 1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8 2024-08-29 18:06:33,885 - INFO - Adding interface with subnet_id 731f646d-6e18-4834-ab9a-a30bd0ea7304, port_id None to router a573272f-4fec-4006-850e-d115d9cea26f 2024-08-29 18:06:34,363 - INFO - Waiting for VM ctest-TestRoutersBasic-04038025-47359434 to be up.. 2024-08-29 18:06:34,558 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 18:06:39,676 - DEBUG - VM is in ACTIVE state now 2024-08-29 18:06:39,676 - INFO - VM name : ctest-TestRoutersBasic-04038025-47359434 2024-08-29 18:06:39,785 - DEBUG - VM ctest-TestRoutersBasic-04038025-47359434 ID is 36c20e88-541e-45c0-8f1d-7bd421d630cf 2024-08-29 18:06:39,810 - DEBUG - VM ctest-TestRoutersBasic-04038025-47359434 launched on Node cn-jenkins-deploy-platform-ansible-os-1816-1 2024-08-29 18:06:39,908 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/36c20e88-541e-45c0-8f1d-7bd421d630cf 2024-08-29 18:06:40,211 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/36c20e88-541e-45c0-8f1d-7bd421d630cf 2024-08-29 18:06:40,258 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/b8fa2e8a-018c-4523-8bd2-4bd2c5f81510 2024-08-29 18:06:43,551 - 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-29 18:06:43,552 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04038025-47359434 failed! 2024-08-29 18:06:43,608 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04038025:ctest-vn-56352367 is 94.169.5.1 and allocation pool is NOT set 2024-08-29 18:06:45,672 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.611 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.611/2.209/3.807/1.598 ms') 2024-08-29 18:06:45,672 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04038025-47359434 passed 2024-08-29 18:06:45,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:06:45,837 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04038025-47359434, IP 94.169.5.3, Port 22 2024-08-29 18:06:46,008 - DEBUG - VM ctest-TestRoutersBasic-04038025-47359434 is ready for SSH connections 2024-08-29 18:06:46,008 - INFO - Waiting for VM ctest-TestRoutersBasic-04038025-79407444 to be up.. 2024-08-29 18:06:46,124 - DEBUG - VM is in ACTIVE state now 2024-08-29 18:06:46,124 - INFO - VM name : ctest-TestRoutersBasic-04038025-79407444 2024-08-29 18:06:46,228 - DEBUG - VM ctest-TestRoutersBasic-04038025-79407444 ID is f93f256f-64c9-4b18-b72e-c52d76f27a7b 2024-08-29 18:06:46,228 - DEBUG - VM ctest-TestRoutersBasic-04038025-79407444 launched on Node cn-jenkins-deploy-platform-ansible-os-1816-1 2024-08-29 18:06:46,330 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/f93f256f-64c9-4b18-b72e-c52d76f27a7b 2024-08-29 18:06:46,342 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/d1f8fb33-1159-4e6e-b491-c964dbcf1b8a 2024-08-29 18:06:47,618 - 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=5.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 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.065/3.350/5.636/2.285 ms') 2024-08-29 18:06:47,618 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04038025-79407444 passed 2024-08-29 18:06:47,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:06:47,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04038025-79407444, IP 182.7.21.3, Port 22 2024-08-29 18:06:47,933 - DEBUG - VM ctest-TestRoutersBasic-04038025-79407444 is ready for SSH connections 2024-08-29 18:06:47,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:06:47,934 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.7.21.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-29 18:06:47,934 - DEBUG - ping -s 56 -c 3 -W 1 182.7.21.3 2024-08-29 18:06:51,685 - DEBUG - PING 182.7.21.3 (182.7.21.3): 56 data bytes 64 bytes from 182.7.21.3: seq=0 ttl=62 time=6.451 ms 64 bytes from 182.7.21.3: seq=1 ttl=62 time=1.344 ms 64 bytes from 182.7.21.3: seq=2 ttl=62 time=1.359 ms --- 182.7.21.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.344/3.051/6.451 ms 2024-08-29 18:06:51,685 - INFO - Ping to IP 182.7.21.3 from VM ctest-TestRoutersBasic-04038025-47359434 passed 2024-08-29 18:06:51,685 - INFO - Deleting interface with subnet_id 731f646d-6e18-4834-ab9a-a30bd0ea7304, port_id None from router a573272f-4fec-4006-850e-d115d9cea26f 2024-08-29 18:06:51,948 - INFO - Deleting VM ctest-TestRoutersBasic-04038025-79407444 2024-08-29 18:06:52,038 - INFO - Deleting VM ctest-TestRoutersBasic-04038025-47359434 2024-08-29 18:06:52,140 - INFO - Deleting VN ctest-ext_vn-77944196 2024-08-29 18:06:52,251 - DEBUG - VN 1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8 still in use: Unable to complete operation on network 1e689a08-8f0e-4c8f-81d1-4e2a3bd5fee8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2b6e5ffc-5737-4121-9e39-fdf3d3a9b937'] 2024-08-29 18:06:52,251 - WARNING - Deleting VN ctest-ext_vn-77944196 failed..Will retry 2024-08-29 18:06:54,369 - DEBUG - Response for deleting network () 2024-08-29 18:06:54,369 - INFO - Deleting VN ctest-vn-56352367 2024-08-29 18:06:54,502 - DEBUG - Response for deleting network () 2024-08-29 18:06:54,772 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 18:06:54,772 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-29 18:06:54,772 - INFO - -------------------------------------------------------------------------------- 2024-08-29 18:06:55,504 - INFO - Deleted project: ctest-TestRoutersBasic-04038025, ID : 4738b856-aa4c-4a3a-a909-f92743676e1d