2024-09-11 16:16:23,160 - INFO - Domain Default found not creating 2024-09-11 16:16:23,402 - INFO - Project ctest-TestRoutersBasic-90177109 not found, creating it 2024-09-11 16:16:24,032 - INFO - Created Project:ctest-TestRoutersBasic-90177109, ID : 1efbec6c-931b-487d-8588-e4a541168719 2024-09-11 16:16:26,185 - INFO - ================================================================================ 2024-09-11 16:16:26,185 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 16:16:26,185 - 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-09-11 16:16:26,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.17': '0'}} with 2024-09-11 16:16:26,469 - INFO - Initial checks done. Running the testcase now 2024-09-11 16:16:26,469 - INFO - 2024-09-11 16:16:27,380 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90177109 2024-09-11 16:16:27,485 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90177109 2024-09-11 16:16:27,839 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90177109', 'default']} 2024-09-11 16:16:28,257 - DEBUG - Response for create_network : {'network': {'id': '4cedfe2f-3bd8-4cd3-9e65-9b56d50eefa2', 'name': 'ctest-vn-10737576', 'tenant_id': '1efbec6c931b487d8588e4a541168719', 'project_id': '1efbec6c931b487d8588e4a541168719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90177109', 'ctest-vn-10737576'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:16:28,539 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e8f0ad6-14ea-4798-9357-da8f9693720d', 'name': '', 'tenant_id': '1efbec6c931b487d8588e4a541168719', 'network_id': '4cedfe2f-3bd8-4cd3-9e65-9b56d50eefa2', 'ip_version': 4, 'cidr': '5.34.48.192/26', 'allocation_pools': [{'start': '5.34.48.194', 'end': '5.34.48.254'}], 'gateway_ip': '5.34.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.34.48.194', 'tags': [], 'project_id': '1efbec6c931b487d8588e4a541168719'}} 2024-09-11 16:16:28,576 - INFO - Created VN ctest-vn-10737576 2024-09-11 16:16:28,635 - DEBUG - VN ctest-vn-10737576 UUID is 4cedfe2f-3bd8-4cd3-9e65-9b56d50eefa2 2024-09-11 16:16:29,117 - DEBUG - Response for create_network : {'network': {'id': '0ceb4a73-0461-4932-a5e7-a226dff6dcb0', 'name': 'ctest-ext_vn-55801246', 'tenant_id': '1efbec6c931b487d8588e4a541168719', 'project_id': '1efbec6c931b487d8588e4a541168719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90177109', 'ctest-ext_vn-55801246'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:16:29,406 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2942103-6385-43b8-be9b-7651419429d2', 'name': '', 'tenant_id': '1efbec6c931b487d8588e4a541168719', 'network_id': '0ceb4a73-0461-4932-a5e7-a226dff6dcb0', 'ip_version': 4, 'cidr': '75.148.0.192/26', 'allocation_pools': [{'start': '75.148.0.194', 'end': '75.148.0.254'}], 'gateway_ip': '75.148.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.148.0.194', 'tags': [], 'project_id': '1efbec6c931b487d8588e4a541168719'}} 2024-09-11 16:16:29,435 - INFO - Created VN ctest-ext_vn-55801246 2024-09-11 16:16:29,491 - DEBUG - VN ctest-ext_vn-55801246 UUID is 0ceb4a73-0461-4932-a5e7-a226dff6dcb0 2024-09-11 16:16:29,734 - DEBUG - Services list from nova: [, , ] 2024-09-11 16:16:31,043 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1899-1) 2024-09-11 16:16:32,633 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1899-1) 2024-09-11 16:16:32,766 - INFO - Setting gateway for router e47d1d66-7cbd-4e34-8908-88dc7cc5275d to network 0ceb4a73-0461-4932-a5e7-a226dff6dcb0 2024-09-11 16:16:32,868 - INFO - Adding interface with subnet_id 3e8f0ad6-14ea-4798-9357-da8f9693720d, port_id None to router e47d1d66-7cbd-4e34-8908-88dc7cc5275d 2024-09-11 16:16:33,391 - INFO - Waiting for VM ctest-TestRoutersBasic-90177109-23590962 to be up.. 2024-09-11 16:16:33,622 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 16:16:38,755 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:16:38,755 - INFO - VM name : ctest-TestRoutersBasic-90177109-23590962 2024-09-11 16:16:38,861 - DEBUG - VM ctest-TestRoutersBasic-90177109-23590962 ID is e39750b1-a1c3-4e3c-8cab-f51829b2c57e 2024-09-11 16:16:38,885 - DEBUG - VM ctest-TestRoutersBasic-90177109-23590962 launched on Node cn-jenkins-deploy-platform-ansible-os-1899-1 2024-09-11 16:16:38,991 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e39750b1-a1c3-4e3c-8cab-f51829b2c57e 2024-09-11 16:16:39,366 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e39750b1-a1c3-4e3c-8cab-f51829b2c57e 2024-09-11 16:16:39,416 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/21c16054-7270-4944-93af-d7719bc01242 2024-09-11 16:16:42,685 - 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 1002ms') 2024-09-11 16:16:42,686 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90177109-23590962 failed! 2024-09-11 16:16:42,743 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90177109:ctest-vn-10737576 is 5.34.48.193 and allocation pool is NOT set 2024-09-11 16:16:44,812 - 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.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.04 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 = 3.042/4.390/5.739/1.348 ms') 2024-09-11 16:16:44,812 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90177109-23590962 passed 2024-09-11 16:16:44,967 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:16:44,967 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90177109-23590962, IP 5.34.48.195, Port 22 2024-09-11 16:16:45,035 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-11 16:16:45,183 - DEBUG - VM ctest-TestRoutersBasic-90177109-23590962 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 16:16:50,184 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:16:50,184 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90177109-23590962, IP 5.34.48.195, Port 22 2024-09-11 16:16:50,354 - DEBUG - VM ctest-TestRoutersBasic-90177109-23590962 is ready for SSH connections 2024-09-11 16:16:50,354 - INFO - Waiting for VM ctest-TestRoutersBasic-90177109-89055796 to be up.. 2024-09-11 16:16:50,470 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:16:50,471 - INFO - VM name : ctest-TestRoutersBasic-90177109-89055796 2024-09-11 16:16:50,571 - DEBUG - VM ctest-TestRoutersBasic-90177109-89055796 ID is 1c5f1139-6c9a-46d5-9e6a-efa6c6b1ddd4 2024-09-11 16:16:50,571 - DEBUG - VM ctest-TestRoutersBasic-90177109-89055796 launched on Node cn-jenkins-deploy-platform-ansible-os-1899-1 2024-09-11 16:16:50,697 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/1c5f1139-6c9a-46d5-9e6a-efa6c6b1ddd4 2024-09-11 16:16:50,711 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/7c37b5f7-c1cb-45be-8f49-21f89c86cd23 2024-09-11 16:16:51,967 - 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=3.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.509 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.509/2.017/3.525/1.508 ms') 2024-09-11 16:16:51,967 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90177109-89055796 passed 2024-09-11 16:16:52,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:16:52,123 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90177109-89055796, IP 75.148.0.195, Port 22 2024-09-11 16:16:52,293 - DEBUG - VM ctest-TestRoutersBasic-90177109-89055796 is ready for SSH connections 2024-09-11 16:16:52,294 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:16:52,294 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.148.0.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-11 16:16:52,294 - DEBUG - ping -s 56 -c 3 -W 1 75.148.0.195 2024-09-11 16:16:56,193 - DEBUG - PING 75.148.0.195 (75.148.0.195): 56 data bytes 64 bytes from 75.148.0.195: seq=0 ttl=62 time=8.316 ms 64 bytes from 75.148.0.195: seq=1 ttl=62 time=0.952 ms 64 bytes from 75.148.0.195: seq=2 ttl=62 time=1.137 ms --- 75.148.0.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.952/3.468/8.316 ms 2024-09-11 16:16:56,194 - INFO - Ping to IP 75.148.0.195 from VM ctest-TestRoutersBasic-90177109-23590962 passed 2024-09-11 16:16:56,194 - INFO - Deleting interface with subnet_id 3e8f0ad6-14ea-4798-9357-da8f9693720d, port_id None from router e47d1d66-7cbd-4e34-8908-88dc7cc5275d 2024-09-11 16:16:56,483 - INFO - Deleting VM ctest-TestRoutersBasic-90177109-89055796 2024-09-11 16:16:56,578 - INFO - Deleting VM ctest-TestRoutersBasic-90177109-23590962 2024-09-11 16:16:56,680 - INFO - Deleting VN ctest-ext_vn-55801246 2024-09-11 16:16:56,805 - DEBUG - VN 0ceb4a73-0461-4932-a5e7-a226dff6dcb0 still in use: Unable to complete operation on network 0ceb4a73-0461-4932-a5e7-a226dff6dcb0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-18645d30-54ba-4eb0-ae8c-aa7bdaa5834d'] 2024-09-11 16:16:56,805 - WARNING - Deleting VN ctest-ext_vn-55801246 failed..Will retry 2024-09-11 16:16:58,965 - DEBUG - Response for deleting network () 2024-09-11 16:16:58,965 - INFO - Deleting VN ctest-vn-10737576 2024-09-11 16:16:59,109 - DEBUG - Response for deleting network () 2024-09-11 16:16:59,381 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 16:16:59,381 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-09-11 16:16:59,381 - INFO - -------------------------------------------------------------------------------- 2024-09-11 16:17:00,230 - INFO - Deleted project: ctest-TestRoutersBasic-90177109, ID : 1efbec6c-931b-487d-8588-e4a541168719