2025-01-13 20:03:21,472 - INFO - Domain Default found not creating 2025-01-13 20:03:21,673 - INFO - Project ctest-TestRoutersBasic-27792413 not found, creating it 2025-01-13 20:03:22,227 - INFO - Created Project:ctest-TestRoutersBasic-27792413, ID : 960b54c5-a21f-4b2b-a58c-734a139ef0bf 2025-01-13 20:03:23,831 - INFO - ================================================================================ 2025-01-13 20:03:23,831 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-13 20:03:23,831 - 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 2025-01-13 20:03:24,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with 2025-01-13 20:03:24,093 - INFO - Initial checks done. Running the testcase now 2025-01-13 20:03:24,093 - INFO - 2025-01-13 20:03:24,848 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27792413 2025-01-13 20:03:24,953 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27792413 2025-01-13 20:03:25,296 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27792413', 'default']} 2025-01-13 20:03:25,657 - DEBUG - Response for create_network : {'network': {'id': 'bf38437d-3336-43cf-8393-fa3707cd6000', 'name': 'ctest-vn-02837159', 'tenant_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'project_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27792413', 'ctest-vn-02837159'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 20:03:25,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '40c7618e-3099-407a-b603-c7b7d0e088b3', 'name': '', 'tenant_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'network_id': 'bf38437d-3336-43cf-8393-fa3707cd6000', 'ip_version': 4, 'cidr': '92.208.248.64/26', 'allocation_pools': [{'start': '92.208.248.66', 'end': '92.208.248.126'}], 'gateway_ip': '92.208.248.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.208.248.66', 'tags': [], 'project_id': '960b54c5a21f4b2ba58c734a139ef0bf'}} 2025-01-13 20:03:25,931 - INFO - Created VN ctest-vn-02837159 2025-01-13 20:03:25,996 - DEBUG - VN ctest-vn-02837159 UUID is bf38437d-3336-43cf-8393-fa3707cd6000 2025-01-13 20:03:26,363 - DEBUG - Response for create_network : {'network': {'id': '07b0e20b-ca0c-45ee-a7c1-c2323704ccdf', 'name': 'ctest-ext_vn-12203504', 'tenant_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'project_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27792413', 'ctest-ext_vn-12203504'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 20:03:26,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '74e75014-4f81-4ab7-98bf-bf99d54414e9', 'name': '', 'tenant_id': '960b54c5a21f4b2ba58c734a139ef0bf', 'network_id': '07b0e20b-ca0c-45ee-a7c1-c2323704ccdf', 'ip_version': 4, 'cidr': '100.198.183.128/26', 'allocation_pools': [{'start': '100.198.183.130', 'end': '100.198.183.190'}], 'gateway_ip': '100.198.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.198.183.130', 'tags': [], 'project_id': '960b54c5a21f4b2ba58c734a139ef0bf'}} 2025-01-13 20:03:26,616 - INFO - Created VN ctest-ext_vn-12203504 2025-01-13 20:03:26,668 - DEBUG - VN ctest-ext_vn-12203504 UUID is 07b0e20b-ca0c-45ee-a7c1-c2323704ccdf 2025-01-13 20:03:26,873 - DEBUG - Services list from nova: [, , ] 2025-01-13 20:03:27,971 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2617-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2617-1) 2025-01-13 20:03:29,267 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2617-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2617-1) 2025-01-13 20:03:29,378 - INFO - Setting gateway for router 3158e314-71bb-4804-8c6c-5f83bc3f44d9 to network 07b0e20b-ca0c-45ee-a7c1-c2323704ccdf 2025-01-13 20:03:29,456 - INFO - Adding interface with subnet_id 40c7618e-3099-407a-b603-c7b7d0e088b3, port_id None to router 3158e314-71bb-4804-8c6c-5f83bc3f44d9 2025-01-13 20:03:30,180 - INFO - Waiting for VM ctest-TestRoutersBasic-27792413-55410665 to be up.. 2025-01-13 20:03:30,384 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 20:03:35,465 - DEBUG - VM is in ACTIVE state now 2025-01-13 20:03:35,465 - INFO - VM name : ctest-TestRoutersBasic-27792413-55410665 2025-01-13 20:03:35,542 - DEBUG - VM ctest-TestRoutersBasic-27792413-55410665 ID is fed3709a-b380-44a9-99b3-ae7bd0d458fd 2025-01-13 20:03:35,562 - DEBUG - VM ctest-TestRoutersBasic-27792413-55410665 launched on Node cn-jenkins-deploy-platform-ansible-os-2617-1 2025-01-13 20:03:35,651 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/fed3709a-b380-44a9-99b3-ae7bd0d458fd 2025-01-13 20:03:35,942 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/fed3709a-b380-44a9-99b3-ae7bd0d458fd 2025-01-13 20:03:35,979 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/e0c10103-d0c3-41e1-9506-1b1fc7c9f947 2025-01-13 20:03:39,237 - 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 1007ms') 2025-01-13 20:03:39,237 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27792413-55410665 failed! 2025-01-13 20:03:39,292 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27792413:ctest-vn-02837159 is 92.208.248.65 and allocation pool is NOT set 2025-01-13 20:03:41,366 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.99 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 = 1.986/2.938/3.890/0.952 ms') 2025-01-13 20:03:41,366 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27792413-55410665 passed 2025-01-13 20:03:41,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 20:03:41,521 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27792413-55410665, IP 92.208.248.67, Port 22 2025-01-13 20:03:41,675 - DEBUG - VM ctest-TestRoutersBasic-27792413-55410665 is ready for SSH connections 2025-01-13 20:03:41,675 - INFO - Waiting for VM ctest-TestRoutersBasic-27792413-04460183 to be up.. 2025-01-13 20:03:41,756 - DEBUG - VM is in ACTIVE state now 2025-01-13 20:03:41,756 - INFO - VM name : ctest-TestRoutersBasic-27792413-04460183 2025-01-13 20:03:41,836 - DEBUG - VM ctest-TestRoutersBasic-27792413-04460183 ID is 1aba0820-c1d7-41e8-bd3c-2212dbf1096b 2025-01-13 20:03:41,836 - DEBUG - VM ctest-TestRoutersBasic-27792413-04460183 launched on Node cn-jenkins-deploy-platform-ansible-os-2617-1 2025-01-13 20:03:41,910 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/1aba0820-c1d7-41e8-bd3c-2212dbf1096b 2025-01-13 20:03:41,919 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/4a87751f-4f70-46af-a9e2-3f9c935358b7 2025-01-13 20:03:43,166 - 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.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.477 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 = 0.477/1.971/3.466/1.494 ms') 2025-01-13 20:03:43,166 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27792413-04460183 passed 2025-01-13 20:03:43,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 20:03:43,320 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27792413-04460183, IP 100.198.183.131, Port 22 2025-01-13 20:03:43,476 - DEBUG - VM ctest-TestRoutersBasic-27792413-04460183 is ready for SSH connections 2025-01-13 20:03:43,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 20:03:43,476 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.198.183.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-01-13 20:03:43,476 - DEBUG - ping -s 56 -c 3 -W 1 100.198.183.131 2025-01-13 20:03:47,243 - DEBUG - PING 100.198.183.131 (100.198.183.131): 56 data bytes 64 bytes from 100.198.183.131: seq=0 ttl=62 time=7.245 ms 64 bytes from 100.198.183.131: seq=1 ttl=62 time=1.029 ms 64 bytes from 100.198.183.131: seq=2 ttl=62 time=0.863 ms --- 100.198.183.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/3.045/7.245 ms 2025-01-13 20:03:47,243 - INFO - Ping to IP 100.198.183.131 from VM ctest-TestRoutersBasic-27792413-55410665 passed 2025-01-13 20:03:47,243 - INFO - Deleting interface with subnet_id 40c7618e-3099-407a-b603-c7b7d0e088b3, port_id None from router 3158e314-71bb-4804-8c6c-5f83bc3f44d9 2025-01-13 20:03:47,781 - INFO - Deleting VM ctest-TestRoutersBasic-27792413-04460183 2025-01-13 20:03:47,866 - INFO - Deleting VM ctest-TestRoutersBasic-27792413-55410665 2025-01-13 20:03:47,949 - INFO - Deleting VN ctest-ext_vn-12203504 2025-01-13 20:03:48,139 - DEBUG - VN 07b0e20b-ca0c-45ee-a7c1-c2323704ccdf still in use: Unable to complete operation on network 07b0e20b-ca0c-45ee-a7c1-c2323704ccdf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5d7552b4-4ae0-4cc8-ac2c-e818114e47c8'] 2025-01-13 20:03:48,139 - WARNING - Deleting VN ctest-ext_vn-12203504 failed..Will retry 2025-01-13 20:03:50,249 - DEBUG - Response for deleting network () 2025-01-13 20:03:50,249 - INFO - Deleting VN ctest-vn-02837159 2025-01-13 20:03:50,350 - DEBUG - Response for deleting network () 2025-01-13 20:03:50,611 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 20:03:50,611 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-01-13 20:03:50,611 - INFO - -------------------------------------------------------------------------------- 2025-01-13 20:03:51,459 - INFO - Deleted project: ctest-TestRoutersBasic-27792413, ID : 960b54c5-a21f-4b2b-a58c-734a139ef0bf