2025-04-22 13:39:35,051 - INFO - Domain Default found not creating 2025-04-22 13:39:35,180 - INFO - Project ctest-TestRoutersBasic-37313506 not found, creating it 2025-04-22 13:39:35,603 - INFO - Created Project:ctest-TestRoutersBasic-37313506, ID : cc542070-bb75-4b9f-b9a9-b9111a0b5141 2025-04-22 13:39:36,910 - INFO - ================================================================================ 2025-04-22 13:39:36,910 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 13:39:36,910 - 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-04-22 13:39:37,169 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-04-22 13:39:37,169 - INFO - Initial checks done. Running the testcase now 2025-04-22 13:39:37,169 - INFO - 2025-04-22 13:39:37,851 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-37313506 2025-04-22 13:39:37,948 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-37313506 2025-04-22 13:39:38,272 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37313506', 'default']} 2025-04-22 13:39:38,539 - DEBUG - Response for create_network : {'network': {'id': '8e933662-6eae-4879-a843-e2d19352db92', 'name': 'ctest-vn-08836279', 'tenant_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'project_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37313506', 'ctest-vn-08836279'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 13:39:38,736 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cff15327-30e1-4dfa-8745-20fe383876e2', 'name': '', 'tenant_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'network_id': '8e933662-6eae-4879-a843-e2d19352db92', 'ip_version': 4, 'cidr': '109.214.44.192/26', 'allocation_pools': [{'start': '109.214.44.194', 'end': '109.214.44.254'}], 'gateway_ip': '109.214.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.214.44.194', 'tags': [], 'project_id': 'cc542070bb754b9fb9a9b9111a0b5141'}} 2025-04-22 13:39:38,750 - INFO - Created VN ctest-vn-08836279 2025-04-22 13:39:38,800 - DEBUG - VN ctest-vn-08836279 UUID is 8e933662-6eae-4879-a843-e2d19352db92 2025-04-22 13:39:39,117 - DEBUG - Response for create_network : {'network': {'id': '9d65695f-c3de-42c8-b50f-6d529d0d4e36', 'name': 'ctest-ext_vn-18845152', 'tenant_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'project_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37313506', 'ctest-ext_vn-18845152'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 13:39:39,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f732738-916c-4fc6-9f86-b00a6ec98a1f', 'name': '', 'tenant_id': 'cc542070bb754b9fb9a9b9111a0b5141', 'network_id': '9d65695f-c3de-42c8-b50f-6d529d0d4e36', 'ip_version': 4, 'cidr': '103.248.22.128/26', 'allocation_pools': [{'start': '103.248.22.130', 'end': '103.248.22.190'}], 'gateway_ip': '103.248.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.248.22.130', 'tags': [], 'project_id': 'cc542070bb754b9fb9a9b9111a0b5141'}} 2025-04-22 13:39:39,292 - INFO - Created VN ctest-ext_vn-18845152 2025-04-22 13:39:39,344 - DEBUG - VN ctest-ext_vn-18845152 UUID is 9d65695f-c3de-42c8-b50f-6d529d0d4e36 2025-04-22 13:39:39,524 - DEBUG - Services list from nova: [, , ] 2025-04-22 13:39:40,450 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3162-1) 2025-04-22 13:39:41,492 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3162-1) 2025-04-22 13:39:41,561 - INFO - Setting gateway for router 3bcb6e28-8962-4810-ac36-72eb691b1ca0 to network 9d65695f-c3de-42c8-b50f-6d529d0d4e36 2025-04-22 13:39:41,612 - INFO - Adding interface with subnet_id cff15327-30e1-4dfa-8745-20fe383876e2, port_id None to router 3bcb6e28-8962-4810-ac36-72eb691b1ca0 2025-04-22 13:39:41,976 - INFO - Waiting for VM ctest-TestRoutersBasic-37313506-84037808 to be up.. 2025-04-22 13:39:42,168 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 13:39:47,245 - DEBUG - VM is in ACTIVE state now 2025-04-22 13:39:47,245 - INFO - VM name : ctest-TestRoutersBasic-37313506-84037808 2025-04-22 13:39:47,318 - DEBUG - VM ctest-TestRoutersBasic-37313506-84037808 ID is 2ef3a07e-7558-474c-beca-f63794ed3964 2025-04-22 13:39:47,343 - DEBUG - VM ctest-TestRoutersBasic-37313506-84037808 launched on Node cn-jenkins-deploy-platform-ansible-os-3162-1 2025-04-22 13:39:47,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2ef3a07e-7558-474c-beca-f63794ed3964 2025-04-22 13:39:47,704 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2ef3a07e-7558-474c-beca-f63794ed3964 2025-04-22 13:39:47,733 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3aa09c61-9dde-48af-a48c-d80382a5269c 2025-04-22 13:39:50,996 - 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=2 ttl=63 time=7.83 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 7.834/7.834/7.834/0.000 ms') 2025-04-22 13:39:50,996 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37313506-84037808 passed 2025-04-22 13:39:51,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 13:39:51,148 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37313506-84037808, IP 109.214.44.195, Port 22 2025-04-22 13:39:51,308 - DEBUG - VM ctest-TestRoutersBasic-37313506-84037808 is ready for SSH connections 2025-04-22 13:39:51,308 - INFO - Waiting for VM ctest-TestRoutersBasic-37313506-12079474 to be up.. 2025-04-22 13:39:51,373 - DEBUG - VM is in ACTIVE state now 2025-04-22 13:39:51,373 - INFO - VM name : ctest-TestRoutersBasic-37313506-12079474 2025-04-22 13:39:51,436 - DEBUG - VM ctest-TestRoutersBasic-37313506-12079474 ID is e4575257-3eb8-4849-96d3-27010e35040b 2025-04-22 13:39:51,436 - DEBUG - VM ctest-TestRoutersBasic-37313506-12079474 launched on Node cn-jenkins-deploy-platform-ansible-os-3162-1 2025-04-22 13:39:51,499 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/e4575257-3eb8-4849-96d3-27010e35040b 2025-04-22 13:39:51,506 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/849efa8b-dc33-40ee-be01-5a4fd8f3d12c 2025-04-22 13:39:52,740 - 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.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.80 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.800/2.210/2.620/0.410 ms') 2025-04-22 13:39:52,740 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-37313506-12079474 passed 2025-04-22 13:39:52,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 13:39:52,892 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37313506-12079474, IP 103.248.22.131, Port 22 2025-04-22 13:39:53,051 - DEBUG - VM ctest-TestRoutersBasic-37313506-12079474 is ready for SSH connections 2025-04-22 13:39:53,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 13:39:53,051 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.248.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-04-22 13:39:53,052 - DEBUG - ping -s 56 -c 3 -W 1 103.248.22.131 2025-04-22 13:39:56,723 - DEBUG - PING 103.248.22.131 (103.248.22.131): 56 data bytes 64 bytes from 103.248.22.131: seq=0 ttl=62 time=4.251 ms 64 bytes from 103.248.22.131: seq=1 ttl=62 time=0.753 ms 64 bytes from 103.248.22.131: seq=2 ttl=62 time=0.748 ms --- 103.248.22.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.748/1.917/4.251 ms 2025-04-22 13:39:56,723 - INFO - Ping to IP 103.248.22.131 from VM ctest-TestRoutersBasic-37313506-84037808 passed 2025-04-22 13:39:56,724 - INFO - Deleting interface with subnet_id cff15327-30e1-4dfa-8745-20fe383876e2, port_id None from router 3bcb6e28-8962-4810-ac36-72eb691b1ca0 2025-04-22 13:39:56,907 - INFO - Deleting VM ctest-TestRoutersBasic-37313506-12079474 2025-04-22 13:39:56,970 - INFO - Deleting VM ctest-TestRoutersBasic-37313506-84037808 2025-04-22 13:39:57,038 - INFO - Deleting VN ctest-ext_vn-18845152 2025-04-22 13:39:57,094 - DEBUG - VN 9d65695f-c3de-42c8-b50f-6d529d0d4e36 still in use: Unable to complete operation on network 9d65695f-c3de-42c8-b50f-6d529d0d4e36. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-734d8056-db39-424a-8e14-91410c291426'] 2025-04-22 13:39:57,095 - WARNING - Deleting VN ctest-ext_vn-18845152 failed..Will retry 2025-04-22 13:39:59,189 - DEBUG - Response for deleting network () 2025-04-22 13:39:59,189 - INFO - Deleting VN ctest-vn-08836279 2025-04-22 13:39:59,281 - DEBUG - Response for deleting network () 2025-04-22 13:39:59,544 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 13:39:59,544 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:23] 2025-04-22 13:39:59,544 - INFO - -------------------------------------------------------------------------------- 2025-04-22 13:40:00,187 - INFO - Deleted project: ctest-TestRoutersBasic-37313506, ID : cc542070-bb75-4b9f-b9a9-b9111a0b5141