2025-07-13 02:08:49,267 - INFO - Domain Default found not creating 2025-07-13 02:08:49,400 - INFO - Project ctest-TestRoutersBasic-39737540 not found, creating it 2025-07-13 02:08:49,837 - INFO - Created Project:ctest-TestRoutersBasic-39737540, ID : 0dc489bb-7d72-43f2-8dec-fa286adce276 2025-07-13 02:08:51,188 - INFO - ================================================================================ 2025-07-13 02:08:51,188 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-13 02:08:51,188 - 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-07-13 02:08:51,451 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-13 02:08:51,451 - INFO - Initial checks done. Running the testcase now 2025-07-13 02:08:51,451 - INFO - 2025-07-13 02:08:52,136 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39737540 2025-07-13 02:08:52,232 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39737540 2025-07-13 02:08:52,552 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39737540', 'default']} 2025-07-13 02:08:52,835 - DEBUG - Response for create_network : {'network': {'id': '36a63b66-51a2-4e27-8405-bbbcd9fecc86', 'name': 'ctest-vn-53466326', 'tenant_id': '0dc489bb7d7243f28decfa286adce276', 'project_id': '0dc489bb7d7243f28decfa286adce276', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39737540', 'ctest-vn-53466326'], 'port_security_enabled': True, 'description': ''}} 2025-07-13 02:08:53,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '41041b49-0a08-4582-834a-bd5e1963a6f1', 'name': '', 'tenant_id': '0dc489bb7d7243f28decfa286adce276', 'network_id': '36a63b66-51a2-4e27-8405-bbbcd9fecc86', 'ip_version': 4, 'cidr': '154.252.186.0/26', 'allocation_pools': [{'start': '154.252.186.2', 'end': '154.252.186.62'}], 'gateway_ip': '154.252.186.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.252.186.2', 'tags': [], 'project_id': '0dc489bb7d7243f28decfa286adce276'}} 2025-07-13 02:08:53,020 - INFO - Created VN ctest-vn-53466326 2025-07-13 02:08:53,072 - DEBUG - VN ctest-vn-53466326 UUID is 36a63b66-51a2-4e27-8405-bbbcd9fecc86 2025-07-13 02:08:53,423 - DEBUG - Response for create_network : {'network': {'id': '2f13a8ce-0fec-46a8-b7cc-05c40bead058', 'name': 'ctest-ext_vn-14825561', 'tenant_id': '0dc489bb7d7243f28decfa286adce276', 'project_id': '0dc489bb7d7243f28decfa286adce276', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39737540', 'ctest-ext_vn-14825561'], 'port_security_enabled': True, 'description': ''}} 2025-07-13 02:08:53,613 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6a7aa5d-5e1e-419f-baec-734bf134bcac', 'name': '', 'tenant_id': '0dc489bb7d7243f28decfa286adce276', 'network_id': '2f13a8ce-0fec-46a8-b7cc-05c40bead058', 'ip_version': 4, 'cidr': '179.148.122.128/26', 'allocation_pools': [{'start': '179.148.122.130', 'end': '179.148.122.190'}], 'gateway_ip': '179.148.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.148.122.130', 'tags': [], 'project_id': '0dc489bb7d7243f28decfa286adce276'}} 2025-07-13 02:08:53,628 - INFO - Created VN ctest-ext_vn-14825561 2025-07-13 02:08:53,679 - DEBUG - VN ctest-ext_vn-14825561 UUID is 2f13a8ce-0fec-46a8-b7cc-05c40bead058 2025-07-13 02:08:53,874 - DEBUG - Services list from nova: [, , ] 2025-07-13 02:08:54,854 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3633-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3633-1) 2025-07-13 02:08:56,088 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3633-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3633-1) 2025-07-13 02:08:56,172 - INFO - Setting gateway for router 08626fa8-0851-4aa7-a943-efaceaa75eb5 to network 2f13a8ce-0fec-46a8-b7cc-05c40bead058 2025-07-13 02:08:56,218 - INFO - Adding interface with subnet_id 41041b49-0a08-4582-834a-bd5e1963a6f1, port_id None to router 08626fa8-0851-4aa7-a943-efaceaa75eb5 2025-07-13 02:08:56,817 - INFO - Waiting for VM ctest-TestRoutersBasic-39737540-47867038 to be up.. 2025-07-13 02:08:56,952 - DEBUG - VM is in ACTIVE state now 2025-07-13 02:08:56,952 - INFO - VM name : ctest-TestRoutersBasic-39737540-47867038 2025-07-13 02:08:57,079 - DEBUG - VM ctest-TestRoutersBasic-39737540-47867038 ID is 6f628950-8d03-4bfd-aff6-e6324a4dc0c8 2025-07-13 02:08:57,102 - DEBUG - VM ctest-TestRoutersBasic-39737540-47867038 launched on Node cn-jenkins-deploy-platform-ansible-os-3633-1 2025-07-13 02:08:57,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/6f628950-8d03-4bfd-aff6-e6324a4dc0c8 2025-07-13 02:08:57,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/6f628950-8d03-4bfd-aff6-e6324a4dc0c8 2025-07-13 02:08:57,545 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/67334af1-5409-446c-8f21-7153649d60a0 2025-07-13 02:09:00,825 - 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 1036ms') 2025-07-13 02:09:00,825 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39737540-47867038 failed! 2025-07-13 02:09:00,880 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-39737540:ctest-vn-53466326 is 154.252.186.1 and allocation pool is NOT set 2025-07-13 02:09:04,947 - 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 1006ms') 2025-07-13 02:09:04,947 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39737540-47867038 failed! 2025-07-13 02:09:05,000 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-39737540:ctest-vn-53466326 is 154.252.186.1 and allocation pool is NOT set 2025-07-13 02:09:07,060 - 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=2.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.406 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.406/1.519/2.632/1.113 ms') 2025-07-13 02:09:07,060 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39737540-47867038 passed 2025-07-13 02:09:07,216 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-13 02:09:07,216 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39737540-47867038, IP 154.252.186.3, Port 22 2025-07-13 02:09:07,368 - DEBUG - VM ctest-TestRoutersBasic-39737540-47867038 is ready for SSH connections 2025-07-13 02:09:07,368 - INFO - Waiting for VM ctest-TestRoutersBasic-39737540-86633163 to be up.. 2025-07-13 02:09:07,441 - DEBUG - VM is in ACTIVE state now 2025-07-13 02:09:07,441 - INFO - VM name : ctest-TestRoutersBasic-39737540-86633163 2025-07-13 02:09:07,509 - DEBUG - VM ctest-TestRoutersBasic-39737540-86633163 ID is 66828f19-dbac-4b90-b527-de1a031ad7fb 2025-07-13 02:09:07,509 - DEBUG - VM ctest-TestRoutersBasic-39737540-86633163 launched on Node cn-jenkins-deploy-platform-ansible-os-3633-1 2025-07-13 02:09:07,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/66828f19-dbac-4b90-b527-de1a031ad7fb 2025-07-13 02:09:07,581 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d4943e4f-3d03-4937-ba02-94fc7e7b0be9 2025-07-13 02:09:08,818 - 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=2.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.439 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.439/1.574/2.709/1.135 ms') 2025-07-13 02:09:08,818 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39737540-86633163 passed 2025-07-13 02:09:08,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-13 02:09:08,964 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39737540-86633163, IP 179.148.122.131, Port 22 2025-07-13 02:09:09,123 - DEBUG - VM ctest-TestRoutersBasic-39737540-86633163 is ready for SSH connections 2025-07-13 02:09:09,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-13 02:09:09,123 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.148.122.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-13 02:09:09,124 - DEBUG - ping -s 56 -c 3 -W 1 179.148.122.131 2025-07-13 02:09:12,838 - DEBUG - PING 179.148.122.131 (179.148.122.131): 56 data bytes 64 bytes from 179.148.122.131: seq=0 ttl=62 time=5.235 ms 64 bytes from 179.148.122.131: seq=1 ttl=62 time=1.078 ms 64 bytes from 179.148.122.131: seq=2 ttl=62 time=0.856 ms --- 179.148.122.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.856/2.389/5.235 ms 2025-07-13 02:09:12,838 - INFO - Ping to IP 179.148.122.131 from VM ctest-TestRoutersBasic-39737540-47867038 passed 2025-07-13 02:09:12,838 - INFO - Deleting interface with subnet_id 41041b49-0a08-4582-834a-bd5e1963a6f1, port_id None from router 08626fa8-0851-4aa7-a943-efaceaa75eb5 2025-07-13 02:09:13,022 - INFO - Deleting VM ctest-TestRoutersBasic-39737540-86633163 2025-07-13 02:09:13,090 - INFO - Deleting VM ctest-TestRoutersBasic-39737540-47867038 2025-07-13 02:09:13,161 - INFO - Deleting VN ctest-ext_vn-14825561 2025-07-13 02:09:13,246 - DEBUG - VN 2f13a8ce-0fec-46a8-b7cc-05c40bead058 still in use: Unable to complete operation on network 2f13a8ce-0fec-46a8-b7cc-05c40bead058. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-00095409-14d8-489f-bea5-d6ac210d8d8f'] 2025-07-13 02:09:13,247 - WARNING - Deleting VN ctest-ext_vn-14825561 failed..Will retry 2025-07-13 02:09:15,343 - DEBUG - Response for deleting network () 2025-07-13 02:09:15,343 - INFO - Deleting VN ctest-vn-53466326 2025-07-13 02:09:15,435 - DEBUG - Response for deleting network () 2025-07-13 02:09:15,693 - DEBUG - No XMPP flaps were noticed during the test 2025-07-13 02:09:15,693 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2025-07-13 02:09:15,693 - INFO - -------------------------------------------------------------------------------- 2025-07-13 02:09:16,351 - INFO - Deleted project: ctest-TestRoutersBasic-39737540, ID : 0dc489bb-7d72-43f2-8dec-fa286adce276