2024-08-26 21:21:27,296 - INFO - Domain Default found not creating 2024-08-26 21:21:27,497 - INFO - Project ctest-TestRoutersBasic-11724825 not found, creating it 2024-08-26 21:21:27,978 - INFO - Created Project:ctest-TestRoutersBasic-11724825, ID : 09ea3f36-7e3b-49f3-b382-0d1233df0680 2024-08-26 21:21:29,676 - INFO - ================================================================================ 2024-08-26 21:21:29,676 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 21:21:29,677 - 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-26 21:21:29,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.20': '0'}} with 2024-08-26 21:21:29,935 - INFO - Initial checks done. Running the testcase now 2024-08-26 21:21:29,935 - INFO - 2024-08-26 21:21:30,791 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-11724825 2024-08-26 21:21:30,901 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-11724825 2024-08-26 21:21:31,229 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11724825', 'default']} 2024-08-26 21:21:32,258 - DEBUG - Response for create_network : {'network': {'id': '5303cc26-e3c9-4aed-a40a-50a3efe04844', 'name': 'ctest-vn-48177876', 'tenant_id': '09ea3f367e3b49f3b3820d1233df0680', 'project_id': '09ea3f367e3b49f3b3820d1233df0680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11724825', 'ctest-vn-48177876'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:21:32,435 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a8f8962-da24-4228-be80-c32ad7413a9d', 'name': '', 'tenant_id': '09ea3f367e3b49f3b3820d1233df0680', 'network_id': '5303cc26-e3c9-4aed-a40a-50a3efe04844', 'ip_version': 4, 'cidr': '222.59.12.64/26', 'allocation_pools': [{'start': '222.59.12.66', 'end': '222.59.12.126'}], 'gateway_ip': '222.59.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.59.12.66', 'tags': [], 'project_id': '09ea3f367e3b49f3b3820d1233df0680'}} 2024-08-26 21:21:32,459 - INFO - Created VN ctest-vn-48177876 2024-08-26 21:21:32,513 - DEBUG - VN ctest-vn-48177876 UUID is 5303cc26-e3c9-4aed-a40a-50a3efe04844 2024-08-26 21:21:33,473 - DEBUG - Response for create_network : {'network': {'id': '21aa33aa-7c7b-44a9-812f-13256e5d22be', 'name': 'ctest-ext_vn-96374251', 'tenant_id': '09ea3f367e3b49f3b3820d1233df0680', 'project_id': '09ea3f367e3b49f3b3820d1233df0680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11724825', 'ctest-ext_vn-96374251'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:21:33,621 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a14aec27-2c2c-4909-bd87-af4f6f5f8dd3', 'name': '', 'tenant_id': '09ea3f367e3b49f3b3820d1233df0680', 'network_id': '21aa33aa-7c7b-44a9-812f-13256e5d22be', 'ip_version': 4, 'cidr': '134.218.145.64/26', 'allocation_pools': [{'start': '134.218.145.66', 'end': '134.218.145.126'}], 'gateway_ip': '134.218.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.218.145.66', 'tags': [], 'project_id': '09ea3f367e3b49f3b3820d1233df0680'}} 2024-08-26 21:21:33,652 - INFO - Created VN ctest-ext_vn-96374251 2024-08-26 21:21:33,705 - DEBUG - VN ctest-ext_vn-96374251 UUID is 21aa33aa-7c7b-44a9-812f-13256e5d22be 2024-08-26 21:21:33,864 - DEBUG - Services list from nova: [, , ] 2024-08-26 21:21:34,865 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1774-1) 2024-08-26 21:21:35,993 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1774-1) 2024-08-26 21:21:36,087 - INFO - Setting gateway for router d7fb1c66-2e25-4e54-8fc9-5e3e5ea0a8c1 to network 21aa33aa-7c7b-44a9-812f-13256e5d22be 2024-08-26 21:21:36,139 - INFO - Adding interface with subnet_id 5a8f8962-da24-4228-be80-c32ad7413a9d, port_id None to router d7fb1c66-2e25-4e54-8fc9-5e3e5ea0a8c1 2024-08-26 21:21:36,441 - INFO - Waiting for VM ctest-TestRoutersBasic-11724825-56768215 to be up.. 2024-08-26 21:21:36,575 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 21:21:41,654 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:21:41,654 - INFO - VM name : ctest-TestRoutersBasic-11724825-56768215 2024-08-26 21:21:41,736 - DEBUG - VM ctest-TestRoutersBasic-11724825-56768215 ID is 2ff206c4-5920-4a94-aa3d-fcb01ada0672 2024-08-26 21:21:41,755 - DEBUG - VM ctest-TestRoutersBasic-11724825-56768215 launched on Node cn-jenkins-deploy-platform-ansible-os-1774-1 2024-08-26 21:21:41,837 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2ff206c4-5920-4a94-aa3d-fcb01ada0672 2024-08-26 21:21:42,144 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2ff206c4-5920-4a94-aa3d-fcb01ada0672 2024-08-26 21:21:42,183 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/6c38935d-a05c-4849-ad81-bd07584c13ab 2024-08-26 21:21:45,460 - 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') 2024-08-26 21:21:45,460 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11724825-56768215 failed! 2024-08-26 21:21:45,513 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-11724825:ctest-vn-48177876 is 222.59.12.65 and allocation pool is NOT set 2024-08-26 21:21:47,578 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.536 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.536/1.810/3.084/1.274 ms') 2024-08-26 21:21:47,578 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11724825-56768215 passed 2024-08-26 21:21:47,737 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:21:47,737 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11724825-56768215, IP 222.59.12.67, Port 22 2024-08-26 21:21:47,896 - DEBUG - VM ctest-TestRoutersBasic-11724825-56768215 is ready for SSH connections 2024-08-26 21:21:47,896 - INFO - Waiting for VM ctest-TestRoutersBasic-11724825-24955256 to be up.. 2024-08-26 21:21:47,976 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:21:47,976 - INFO - VM name : ctest-TestRoutersBasic-11724825-24955256 2024-08-26 21:21:48,061 - DEBUG - VM ctest-TestRoutersBasic-11724825-24955256 ID is b51436c4-8cd1-4815-bde6-1e6b475025d0 2024-08-26 21:21:48,061 - DEBUG - VM ctest-TestRoutersBasic-11724825-24955256 launched on Node cn-jenkins-deploy-platform-ansible-os-1774-1 2024-08-26 21:21:48,142 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b51436c4-8cd1-4815-bde6-1e6b475025d0 2024-08-26 21:21:48,151 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/e5a879c7-249f-4339-b0c4-968e66f20047 2024-08-26 21:21:49,399 - 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.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.34 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 = 1.342/2.751/4.161/1.409 ms') 2024-08-26 21:21:49,399 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-11724825-24955256 passed 2024-08-26 21:21:49,549 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:21:49,549 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11724825-24955256, IP 134.218.145.67, Port 22 2024-08-26 21:21:49,605 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-26 21:21:49,688 - DEBUG - VM ctest-TestRoutersBasic-11724825-24955256 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 21:21:54,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:21:54,689 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11724825-24955256, IP 134.218.145.67, Port 22 2024-08-26 21:21:54,840 - DEBUG - VM ctest-TestRoutersBasic-11724825-24955256 is ready for SSH connections 2024-08-26 21:21:54,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:21:54,840 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.218.145.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-26 21:21:54,841 - DEBUG - ping -s 56 -c 3 -W 1 134.218.145.67 2024-08-26 21:21:58,524 - DEBUG - PING 134.218.145.67 (134.218.145.67): 56 data bytes 64 bytes from 134.218.145.67: seq=0 ttl=62 time=8.056 ms 64 bytes from 134.218.145.67: seq=1 ttl=62 time=0.889 ms 64 bytes from 134.218.145.67: seq=2 ttl=62 time=1.011 ms --- 134.218.145.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.889/3.318/8.056 ms 2024-08-26 21:21:58,525 - INFO - Ping to IP 134.218.145.67 from VM ctest-TestRoutersBasic-11724825-56768215 passed 2024-08-26 21:21:58,525 - INFO - Deleting interface with subnet_id 5a8f8962-da24-4228-be80-c32ad7413a9d, port_id None from router d7fb1c66-2e25-4e54-8fc9-5e3e5ea0a8c1 2024-08-26 21:21:58,727 - INFO - Deleting VM ctest-TestRoutersBasic-11724825-24955256 2024-08-26 21:21:58,792 - INFO - Deleting VM ctest-TestRoutersBasic-11724825-56768215 2024-08-26 21:21:58,876 - INFO - Deleting VN ctest-ext_vn-96374251 2024-08-26 21:21:58,950 - DEBUG - VN 21aa33aa-7c7b-44a9-812f-13256e5d22be still in use: Unable to complete operation on network 21aa33aa-7c7b-44a9-812f-13256e5d22be. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b279dcc4-a0bd-48d0-85d6-1845ae9aae3c'] 2024-08-26 21:21:58,950 - WARNING - Deleting VN ctest-ext_vn-96374251 failed..Will retry 2024-08-26 21:22:01,061 - DEBUG - Response for deleting network () 2024-08-26 21:22:01,061 - INFO - Deleting VN ctest-vn-48177876 2024-08-26 21:22:01,162 - DEBUG - Response for deleting network () 2024-08-26 21:22:01,419 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 21:22:01,419 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-08-26 21:22:01,419 - INFO - -------------------------------------------------------------------------------- 2024-08-26 21:22:03,078 - INFO - Deleted project: ctest-TestRoutersBasic-11724825, ID : 09ea3f36-7e3b-49f3-b382-0d1233df0680