2025-10-23 20:59:05,279 - INFO - Domain Default found not creating 2025-10-23 20:59:05,572 - INFO - Project ctest-TestRoutersBasic-77692834 not found, creating it 2025-10-23 20:59:06,037 - INFO - Created Project:ctest-TestRoutersBasic-77692834, ID : dd274a70-4794-43df-a5ff-9cdcc11ae91d 2025-10-23 20:59:07,635 - INFO - ================================================================================ 2025-10-23 20:59:07,635 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-23 20:59:07,635 - 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-10-23 20:59:07,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.17': '0'}} with 2025-10-23 20:59:07,892 - INFO - Initial checks done. Running the testcase now 2025-10-23 20:59:07,892 - INFO - 2025-10-23 20:59:08,674 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-77692834 2025-10-23 20:59:08,774 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-77692834 2025-10-23 20:59:09,103 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77692834', 'default']} 2025-10-23 20:59:09,448 - DEBUG - Response for create_network : {'network': {'id': '929f376e-c1ae-482e-b146-e1760725e899', 'name': 'ctest-vn-30295578', 'tenant_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'project_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77692834', 'ctest-vn-30295578'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:09,675 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ae9cf44-876d-4107-b91d-69e7c4b9a59c', 'name': '', 'tenant_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'network_id': '929f376e-c1ae-482e-b146-e1760725e899', 'ip_version': 4, 'cidr': '181.78.172.128/26', 'allocation_pools': [{'start': '181.78.172.130', 'end': '181.78.172.190'}], 'gateway_ip': '181.78.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.78.172.130', 'tags': [], 'project_id': 'dd274a70479443dfa5ff9cdcc11ae91d'}} 2025-10-23 20:59:09,692 - INFO - Created VN ctest-vn-30295578 2025-10-23 20:59:09,742 - DEBUG - VN ctest-vn-30295578 UUID is 929f376e-c1ae-482e-b146-e1760725e899 2025-10-23 20:59:10,073 - DEBUG - Response for create_network : {'network': {'id': '9be684e5-5b09-45be-aa57-7b55336b72bf', 'name': 'ctest-ext_vn-87139252', 'tenant_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'project_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77692834', 'ctest-ext_vn-87139252'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:10,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '46258ba7-3673-4327-b86b-2fbbc4ff6c08', 'name': '', 'tenant_id': 'dd274a70479443dfa5ff9cdcc11ae91d', 'network_id': '9be684e5-5b09-45be-aa57-7b55336b72bf', 'ip_version': 4, 'cidr': '159.38.89.192/26', 'allocation_pools': [{'start': '159.38.89.194', 'end': '159.38.89.254'}], 'gateway_ip': '159.38.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.38.89.194', 'tags': [], 'project_id': 'dd274a70479443dfa5ff9cdcc11ae91d'}} 2025-10-23 20:59:10,268 - INFO - Created VN ctest-ext_vn-87139252 2025-10-23 20:59:10,322 - DEBUG - VN ctest-ext_vn-87139252 UUID is 9be684e5-5b09-45be-aa57-7b55336b72bf 2025-10-23 20:59:10,529 - DEBUG - Services list from nova: [, , ] 2025-10-23 20:59:11,607 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4467-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4467-1) 2025-10-23 20:59:12,876 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4467-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4467-1) 2025-10-23 20:59:12,942 - INFO - Setting gateway for router bec877d2-13e8-4987-9a3e-e8f0e36606b1 to network 9be684e5-5b09-45be-aa57-7b55336b72bf 2025-10-23 20:59:13,005 - INFO - Adding interface with subnet_id 4ae9cf44-876d-4107-b91d-69e7c4b9a59c, port_id None to router bec877d2-13e8-4987-9a3e-e8f0e36606b1 2025-10-23 20:59:13,408 - INFO - Waiting for VM ctest-TestRoutersBasic-77692834-49435848 to be up.. 2025-10-23 20:59:13,582 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-23 20:59:18,659 - DEBUG - VM is in ACTIVE state now 2025-10-23 20:59:18,659 - INFO - VM name : ctest-TestRoutersBasic-77692834-49435848 2025-10-23 20:59:18,741 - DEBUG - VM ctest-TestRoutersBasic-77692834-49435848 ID is 48ba52b5-f2fe-46f1-8cca-54ea0938a83a 2025-10-23 20:59:18,765 - DEBUG - VM ctest-TestRoutersBasic-77692834-49435848 launched on Node cn-jenkins-deploy-platform-ansible-os-4467-1 2025-10-23 20:59:18,851 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/48ba52b5-f2fe-46f1-8cca-54ea0938a83a 2025-10-23 20:59:19,189 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/48ba52b5-f2fe-46f1-8cca-54ea0938a83a 2025-10-23 20:59:19,222 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/40ac1e7a-8543-468a-8fc2-3be7797990fc 2025-10-23 20:59:22,488 - 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 1029ms') 2025-10-23 20:59:22,489 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77692834-49435848 failed! 2025-10-23 20:59:22,546 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-77692834:ctest-vn-30295578 is 181.78.172.129 and allocation pool is NOT set 2025-10-23 20:59:24,613 - 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.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.477 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.477/1.985/3.493/1.508 ms') 2025-10-23 20:59:24,613 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77692834-49435848 passed 2025-10-23 20:59:24,766 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 20:59:24,766 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77692834-49435848, IP 181.78.172.131, Port 22 2025-10-23 20:59:24,922 - DEBUG - VM ctest-TestRoutersBasic-77692834-49435848 is ready for SSH connections 2025-10-23 20:59:24,922 - INFO - Waiting for VM ctest-TestRoutersBasic-77692834-49377912 to be up.. 2025-10-23 20:59:25,008 - DEBUG - VM is in ACTIVE state now 2025-10-23 20:59:25,008 - INFO - VM name : ctest-TestRoutersBasic-77692834-49377912 2025-10-23 20:59:25,093 - DEBUG - VM ctest-TestRoutersBasic-77692834-49377912 ID is 8ca47d47-ed57-4c16-9869-d3cd6d7cccc0 2025-10-23 20:59:25,093 - DEBUG - VM ctest-TestRoutersBasic-77692834-49377912 launched on Node cn-jenkins-deploy-platform-ansible-os-4467-1 2025-10-23 20:59:25,175 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/8ca47d47-ed57-4c16-9869-d3cd6d7cccc0 2025-10-23 20:59:25,183 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/64e95cc9-8331-417b-b979-8e475b188cd1 2025-10-23 20:59:26,430 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.693 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.693/2.226/3.759/1.533 ms') 2025-10-23 20:59:26,431 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-77692834-49377912 passed 2025-10-23 20:59:26,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 20:59:26,578 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77692834-49377912, IP 159.38.89.195, Port 22 2025-10-23 20:59:26,737 - DEBUG - VM ctest-TestRoutersBasic-77692834-49377912 is ready for SSH connections 2025-10-23 20:59:26,737 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 20:59:26,737 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.38.89.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-10-23 20:59:26,737 - DEBUG - ping -s 56 -c 3 -W 1 159.38.89.195 2025-10-23 20:59:30,499 - DEBUG - PING 159.38.89.195 (159.38.89.195): 56 data bytes 64 bytes from 159.38.89.195: seq=0 ttl=62 time=7.947 ms 64 bytes from 159.38.89.195: seq=1 ttl=62 time=1.247 ms 64 bytes from 159.38.89.195: seq=2 ttl=62 time=1.677 ms --- 159.38.89.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.247/3.623/7.947 ms 2025-10-23 20:59:30,499 - INFO - Ping to IP 159.38.89.195 from VM ctest-TestRoutersBasic-77692834-49435848 passed 2025-10-23 20:59:30,499 - INFO - Deleting interface with subnet_id 4ae9cf44-876d-4107-b91d-69e7c4b9a59c, port_id None from router bec877d2-13e8-4987-9a3e-e8f0e36606b1 2025-10-23 20:59:30,715 - INFO - Deleting VM ctest-TestRoutersBasic-77692834-49377912 2025-10-23 20:59:30,797 - INFO - Deleting VM ctest-TestRoutersBasic-77692834-49435848 2025-10-23 20:59:30,882 - INFO - Deleting VN ctest-ext_vn-87139252 2025-10-23 20:59:30,961 - DEBUG - VN 9be684e5-5b09-45be-aa57-7b55336b72bf still in use: Unable to complete operation on network 9be684e5-5b09-45be-aa57-7b55336b72bf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b016f268-1257-414f-92ba-bf5fc8c7d8fa'] 2025-10-23 20:59:30,961 - WARNING - Deleting VN ctest-ext_vn-87139252 failed..Will retry 2025-10-23 20:59:33,068 - DEBUG - Response for deleting network () 2025-10-23 20:59:33,068 - INFO - Deleting VN ctest-vn-30295578 2025-10-23 20:59:33,177 - DEBUG - Response for deleting network () 2025-10-23 20:59:33,435 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 20:59:33,435 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-10-23 20:59:33,435 - INFO - -------------------------------------------------------------------------------- 2025-10-23 20:59:34,176 - INFO - Deleted project: ctest-TestRoutersBasic-77692834, ID : dd274a70-4794-43df-a5ff-9cdcc11ae91d