2025-05-21 15:56:59,203 - INFO - Domain Default found not creating 2025-05-21 15:56:59,353 - INFO - Project ctest-TestRoutersBasic-10002742 not found, creating it 2025-05-21 15:56:59,842 - INFO - Created Project:ctest-TestRoutersBasic-10002742, ID : 786b8ef8-1910-448b-a8a1-0738794eeb8c 2025-05-21 15:57:01,402 - INFO - ================================================================================ 2025-05-21 15:57:01,402 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-21 15:57:01,402 - 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-05-21 15:57:01,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-05-21 15:57:01,657 - INFO - Initial checks done. Running the testcase now 2025-05-21 15:57:01,657 - INFO - 2025-05-21 15:57:02,487 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-10002742 2025-05-21 15:57:02,586 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-10002742 2025-05-21 15:57:02,918 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10002742', 'default']} 2025-05-21 15:57:03,236 - DEBUG - Response for create_network : {'network': {'id': '096579f5-e04e-46a9-b93f-c6f8669a00ed', 'name': 'ctest-vn-40557166', 'tenant_id': '786b8ef81910448ba8a10738794eeb8c', 'project_id': '786b8ef81910448ba8a10738794eeb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10002742', 'ctest-vn-40557166'], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:03,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ea237c1-2354-4111-909b-1cc6bb11c188', 'name': '', 'tenant_id': '786b8ef81910448ba8a10738794eeb8c', 'network_id': '096579f5-e04e-46a9-b93f-c6f8669a00ed', 'ip_version': 4, 'cidr': '21.198.25.192/26', 'allocation_pools': [{'start': '21.198.25.194', 'end': '21.198.25.254'}], 'gateway_ip': '21.198.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.198.25.194', 'tags': [], 'project_id': '786b8ef81910448ba8a10738794eeb8c'}} 2025-05-21 15:57:03,464 - INFO - Created VN ctest-vn-40557166 2025-05-21 15:57:03,518 - DEBUG - VN ctest-vn-40557166 UUID is 096579f5-e04e-46a9-b93f-c6f8669a00ed 2025-05-21 15:57:03,853 - DEBUG - Response for create_network : {'network': {'id': 'c44be01d-a4ac-43c2-ad0f-dbe573d13338', 'name': 'ctest-ext_vn-56140449', 'tenant_id': '786b8ef81910448ba8a10738794eeb8c', 'project_id': '786b8ef81910448ba8a10738794eeb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10002742', 'ctest-ext_vn-56140449'], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:04,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '9626d77f-63a2-46a2-8763-a8e4d55cc53a', 'name': '', 'tenant_id': '786b8ef81910448ba8a10738794eeb8c', 'network_id': 'c44be01d-a4ac-43c2-ad0f-dbe573d13338', 'ip_version': 4, 'cidr': '69.178.252.0/26', 'allocation_pools': [{'start': '69.178.252.2', 'end': '69.178.252.62'}], 'gateway_ip': '69.178.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.178.252.2', 'tags': [], 'project_id': '786b8ef81910448ba8a10738794eeb8c'}} 2025-05-21 15:57:04,077 - INFO - Created VN ctest-ext_vn-56140449 2025-05-21 15:57:04,134 - DEBUG - VN ctest-ext_vn-56140449 UUID is c44be01d-a4ac-43c2-ad0f-dbe573d13338 2025-05-21 15:57:04,309 - DEBUG - Services list from nova: [, , ] 2025-05-21 15:57:05,432 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3328-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3328-1) 2025-05-21 15:57:06,631 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3328-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3328-1) 2025-05-21 15:57:06,732 - INFO - Setting gateway for router 256e52ac-c64c-41a1-95be-f379001d0584 to network c44be01d-a4ac-43c2-ad0f-dbe573d13338 2025-05-21 15:57:06,790 - INFO - Adding interface with subnet_id 3ea237c1-2354-4111-909b-1cc6bb11c188, port_id None to router 256e52ac-c64c-41a1-95be-f379001d0584 2025-05-21 15:57:07,315 - INFO - Waiting for VM ctest-TestRoutersBasic-10002742-92813761 to be up.. 2025-05-21 15:57:07,468 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-21 15:57:12,561 - DEBUG - VM is in ACTIVE state now 2025-05-21 15:57:12,561 - INFO - VM name : ctest-TestRoutersBasic-10002742-92813761 2025-05-21 15:57:12,644 - DEBUG - VM ctest-TestRoutersBasic-10002742-92813761 ID is 226cbbd3-c4ba-46f7-9c0a-7414abe815d3 2025-05-21 15:57:12,665 - DEBUG - VM ctest-TestRoutersBasic-10002742-92813761 launched on Node cn-jenkins-deploy-platform-ansible-os-3328-1 2025-05-21 15:57:12,749 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/226cbbd3-c4ba-46f7-9c0a-7414abe815d3 2025-05-21 15:57:13,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/226cbbd3-c4ba-46f7-9c0a-7414abe815d3 2025-05-21 15:57:13,132 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/cb44b278-a98f-4920-bb34-57c775f6da1c 2025-05-21 15:57:16,402 - 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 1016ms') 2025-05-21 15:57:16,402 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10002742-92813761 failed! 2025-05-21 15:57:16,462 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-10002742:ctest-vn-40557166 is 21.198.25.193 and allocation pool is NOT set 2025-05-21 15:57:18,527 - 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=4.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.480 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.480/2.366/4.252/1.886 ms') 2025-05-21 15:57:18,527 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10002742-92813761 passed 2025-05-21 15:57:18,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:57:18,686 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10002742-92813761, IP 21.198.25.195, Port 22 2025-05-21 15:57:18,842 - DEBUG - VM ctest-TestRoutersBasic-10002742-92813761 is ready for SSH connections 2025-05-21 15:57:18,842 - INFO - Waiting for VM ctest-TestRoutersBasic-10002742-37326457 to be up.. 2025-05-21 15:57:18,926 - DEBUG - VM is in ACTIVE state now 2025-05-21 15:57:18,926 - INFO - VM name : ctest-TestRoutersBasic-10002742-37326457 2025-05-21 15:57:19,012 - DEBUG - VM ctest-TestRoutersBasic-10002742-37326457 ID is 5a23d455-2698-4042-b625-0079b61db332 2025-05-21 15:57:19,013 - DEBUG - VM ctest-TestRoutersBasic-10002742-37326457 launched on Node cn-jenkins-deploy-platform-ansible-os-3328-1 2025-05-21 15:57:19,106 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/5a23d455-2698-4042-b625-0079b61db332 2025-05-21 15:57:19,116 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/0da25cc9-bd5d-49aa-b5b6-28a280a3f972 2025-05-21 15:57:20,375 - 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.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.545 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.545/1.936/3.328/1.391 ms') 2025-05-21 15:57:20,375 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-10002742-37326457 passed 2025-05-21 15:57:20,530 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:57:20,531 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10002742-37326457, IP 69.178.252.3, Port 22 2025-05-21 15:57:20,690 - DEBUG - VM ctest-TestRoutersBasic-10002742-37326457 is ready for SSH connections 2025-05-21 15:57:20,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:57:20,690 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 69.178.252.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-21 15:57:20,691 - DEBUG - ping -s 56 -c 3 -W 1 69.178.252.3 2025-05-21 15:57:24,414 - DEBUG - PING 69.178.252.3 (69.178.252.3): 56 data bytes 64 bytes from 69.178.252.3: seq=0 ttl=62 time=6.643 ms 64 bytes from 69.178.252.3: seq=1 ttl=62 time=0.931 ms 64 bytes from 69.178.252.3: seq=2 ttl=62 time=0.966 ms --- 69.178.252.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.846/6.643 ms 2025-05-21 15:57:24,415 - INFO - Ping to IP 69.178.252.3 from VM ctest-TestRoutersBasic-10002742-92813761 passed 2025-05-21 15:57:24,415 - INFO - Deleting interface with subnet_id 3ea237c1-2354-4111-909b-1cc6bb11c188, port_id None from router 256e52ac-c64c-41a1-95be-f379001d0584 2025-05-21 15:57:24,626 - INFO - Deleting VM ctest-TestRoutersBasic-10002742-37326457 2025-05-21 15:57:24,696 - INFO - Deleting VM ctest-TestRoutersBasic-10002742-92813761 2025-05-21 15:57:24,783 - INFO - Deleting VN ctest-ext_vn-56140449 2025-05-21 15:57:24,865 - DEBUG - VN c44be01d-a4ac-43c2-ad0f-dbe573d13338 still in use: Unable to complete operation on network c44be01d-a4ac-43c2-ad0f-dbe573d13338. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad507de7-7a9b-4baa-bd61-1f649ff9e796'] 2025-05-21 15:57:24,866 - WARNING - Deleting VN ctest-ext_vn-56140449 failed..Will retry 2025-05-21 15:57:26,987 - DEBUG - Response for deleting network () 2025-05-21 15:57:26,987 - INFO - Deleting VN ctest-vn-40557166 2025-05-21 15:57:27,102 - DEBUG - Response for deleting network () 2025-05-21 15:57:27,357 - DEBUG - No XMPP flaps were noticed during the test 2025-05-21 15:57:27,357 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-05-21 15:57:27,357 - INFO - -------------------------------------------------------------------------------- 2025-05-21 15:57:28,088 - INFO - Deleted project: ctest-TestRoutersBasic-10002742, ID : 786b8ef8-1910-448b-a8a1-0738794eeb8c