2025-06-18 14:24:09,749 - INFO - Domain Default found not creating 2025-06-18 14:24:09,910 - INFO - Project ctest-TestRoutersBasic-64428336 not found, creating it 2025-06-18 14:24:10,381 - INFO - Created Project:ctest-TestRoutersBasic-64428336, ID : a40784d5-f769-47c1-976d-60c1bed79ac4 2025-06-18 14:24:11,872 - INFO - ================================================================================ 2025-06-18 14:24:11,873 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-18 14:24:11,873 - 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-06-18 14:24:12,133 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-18 14:24:12,133 - INFO - Initial checks done. Running the testcase now 2025-06-18 14:24:12,133 - INFO - 2025-06-18 14:24:12,860 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64428336 2025-06-18 14:24:12,959 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64428336 2025-06-18 14:24:13,287 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64428336', 'default']} 2025-06-18 14:24:13,601 - DEBUG - Response for create_network : {'network': {'id': 'a67ef6aa-db01-4956-8e0a-54b070181c44', 'name': 'ctest-vn-71988372', 'tenant_id': 'a40784d5f76947c1976d60c1bed79ac4', 'project_id': 'a40784d5f76947c1976d60c1bed79ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64428336', 'ctest-vn-71988372'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 14:24:13,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '516526f9-b532-4feb-86c8-150c76526988', 'name': '', 'tenant_id': 'a40784d5f76947c1976d60c1bed79ac4', 'network_id': 'a67ef6aa-db01-4956-8e0a-54b070181c44', 'ip_version': 4, 'cidr': '185.2.104.128/26', 'allocation_pools': [{'start': '185.2.104.130', 'end': '185.2.104.190'}], 'gateway_ip': '185.2.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.2.104.130', 'tags': [], 'project_id': 'a40784d5f76947c1976d60c1bed79ac4'}} 2025-06-18 14:24:13,839 - INFO - Created VN ctest-vn-71988372 2025-06-18 14:24:13,895 - DEBUG - VN ctest-vn-71988372 UUID is a67ef6aa-db01-4956-8e0a-54b070181c44 2025-06-18 14:24:14,247 - DEBUG - Response for create_network : {'network': {'id': '1c0f9976-d13d-46f1-ad8b-32397c0479ab', 'name': 'ctest-ext_vn-92875053', 'tenant_id': 'a40784d5f76947c1976d60c1bed79ac4', 'project_id': 'a40784d5f76947c1976d60c1bed79ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64428336', 'ctest-ext_vn-92875053'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 14:24:14,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ffe05cf-21da-4bfd-8595-da7be2a142e9', 'name': '', 'tenant_id': 'a40784d5f76947c1976d60c1bed79ac4', 'network_id': '1c0f9976-d13d-46f1-ad8b-32397c0479ab', 'ip_version': 4, 'cidr': '146.146.153.128/26', 'allocation_pools': [{'start': '146.146.153.130', 'end': '146.146.153.190'}], 'gateway_ip': '146.146.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.146.153.130', 'tags': [], 'project_id': 'a40784d5f76947c1976d60c1bed79ac4'}} 2025-06-18 14:24:14,499 - INFO - Created VN ctest-ext_vn-92875053 2025-06-18 14:24:14,551 - DEBUG - VN ctest-ext_vn-92875053 UUID is 1c0f9976-d13d-46f1-ad8b-32397c0479ab 2025-06-18 14:24:14,724 - DEBUG - Services list from nova: [, , ] 2025-06-18 14:24:15,771 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3475-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3475-1) 2025-06-18 14:24:16,974 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3475-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3475-1) 2025-06-18 14:24:17,075 - INFO - Setting gateway for router d6237ee4-6c3b-4da6-9820-c9071ec6ea65 to network 1c0f9976-d13d-46f1-ad8b-32397c0479ab 2025-06-18 14:24:17,163 - INFO - Adding interface with subnet_id 516526f9-b532-4feb-86c8-150c76526988, port_id None to router d6237ee4-6c3b-4da6-9820-c9071ec6ea65 2025-06-18 14:24:17,888 - INFO - Waiting for VM ctest-TestRoutersBasic-64428336-96954567 to be up.. 2025-06-18 14:24:18,109 - DEBUG - VM is in ACTIVE state now 2025-06-18 14:24:18,109 - INFO - VM name : ctest-TestRoutersBasic-64428336-96954567 2025-06-18 14:24:18,306 - DEBUG - VM ctest-TestRoutersBasic-64428336-96954567 ID is a582ca44-a079-46d9-a0ec-c8bddd5742ac 2025-06-18 14:24:18,352 - DEBUG - VM ctest-TestRoutersBasic-64428336-96954567 launched on Node cn-jenkins-deploy-platform-ansible-os-3475-1 2025-06-18 14:24:18,526 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a582ca44-a079-46d9-a0ec-c8bddd5742ac 2025-06-18 14:24:18,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a582ca44-a079-46d9-a0ec-c8bddd5742ac 2025-06-18 14:24:18,926 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f0b2dbc4-9c4f-435c-b1c9-84d7ef8c5d9c 2025-06-18 14:24:22,217 - 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 1033ms') 2025-06-18 14:24:22,218 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64428336-96954567 failed! 2025-06-18 14:24:22,284 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64428336:ctest-vn-71988372 is 185.2.104.129 and allocation pool is NOT set 2025-06-18 14:24:26,380 - 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 1035ms') 2025-06-18 14:24:26,380 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64428336-96954567 failed! 2025-06-18 14:24:26,435 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64428336:ctest-vn-71988372 is 185.2.104.129 and allocation pool is NOT set 2025-06-18 14:24:28,495 - 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=5.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.424 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.424/2.853/5.282/2.429 ms') 2025-06-18 14:24:28,495 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64428336-96954567 passed 2025-06-18 14:24:28,647 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 14:24:28,647 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64428336-96954567, IP 185.2.104.131, Port 22 2025-06-18 14:24:28,817 - DEBUG - VM ctest-TestRoutersBasic-64428336-96954567 is ready for SSH connections 2025-06-18 14:24:28,817 - INFO - Waiting for VM ctest-TestRoutersBasic-64428336-12262817 to be up.. 2025-06-18 14:24:29,030 - DEBUG - VM is in ACTIVE state now 2025-06-18 14:24:29,031 - INFO - VM name : ctest-TestRoutersBasic-64428336-12262817 2025-06-18 14:24:29,127 - DEBUG - VM ctest-TestRoutersBasic-64428336-12262817 ID is 6ddcf26f-2d6e-4087-bb9f-146b13773159 2025-06-18 14:24:29,127 - DEBUG - VM ctest-TestRoutersBasic-64428336-12262817 launched on Node cn-jenkins-deploy-platform-ansible-os-3475-1 2025-06-18 14:24:29,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/6ddcf26f-2d6e-4087-bb9f-146b13773159 2025-06-18 14:24:29,219 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/138ada9b-dcf7-4120-a851-e9351e9fff6e 2025-06-18 14:24:30,464 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.479 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.479/1.641/2.803/1.162 ms') 2025-06-18 14:24:30,464 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64428336-12262817 passed 2025-06-18 14:24:30,619 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 14:24:30,619 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64428336-12262817, IP 146.146.153.131, Port 22 2025-06-18 14:24:30,774 - DEBUG - VM ctest-TestRoutersBasic-64428336-12262817 is ready for SSH connections 2025-06-18 14:24:30,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 14:24:30,775 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.146.153.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-18 14:24:30,775 - DEBUG - ping -s 56 -c 3 -W 1 146.146.153.131 2025-06-18 14:24:34,439 - DEBUG - PING 146.146.153.131 (146.146.153.131): 56 data bytes 64 bytes from 146.146.153.131: seq=0 ttl=62 time=8.125 ms 64 bytes from 146.146.153.131: seq=1 ttl=62 time=0.999 ms 64 bytes from 146.146.153.131: seq=2 ttl=62 time=1.028 ms --- 146.146.153.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.999/3.384/8.125 ms 2025-06-18 14:24:34,439 - INFO - Ping to IP 146.146.153.131 from VM ctest-TestRoutersBasic-64428336-96954567 passed 2025-06-18 14:24:34,439 - INFO - Deleting interface with subnet_id 516526f9-b532-4feb-86c8-150c76526988, port_id None from router d6237ee4-6c3b-4da6-9820-c9071ec6ea65 2025-06-18 14:24:34,702 - INFO - Deleting VM ctest-TestRoutersBasic-64428336-12262817 2025-06-18 14:24:34,778 - INFO - Deleting VM ctest-TestRoutersBasic-64428336-96954567 2025-06-18 14:24:34,866 - INFO - Deleting VN ctest-ext_vn-92875053 2025-06-18 14:24:34,931 - DEBUG - VN 1c0f9976-d13d-46f1-ad8b-32397c0479ab still in use: Unable to complete operation on network 1c0f9976-d13d-46f1-ad8b-32397c0479ab. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-631cabe3-1050-4068-931c-996b2f63af17'] 2025-06-18 14:24:34,931 - WARNING - Deleting VN ctest-ext_vn-92875053 failed..Will retry 2025-06-18 14:24:37,048 - DEBUG - Response for deleting network () 2025-06-18 14:24:37,048 - INFO - Deleting VN ctest-vn-71988372 2025-06-18 14:24:37,159 - DEBUG - Response for deleting network () 2025-06-18 14:24:37,417 - DEBUG - No XMPP flaps were noticed during the test 2025-06-18 14:24:37,417 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-06-18 14:24:37,417 - INFO - -------------------------------------------------------------------------------- 2025-06-18 14:24:38,114 - INFO - Deleted project: ctest-TestRoutersBasic-64428336, ID : a40784d5-f769-47c1-976d-60c1bed79ac4