2025-11-17 13:38:32,309 - INFO - Domain Default found not creating 2025-11-17 13:38:32,462 - INFO - Project ctest-TestRoutersBasic-71792546 not found, creating it 2025-11-17 13:38:32,908 - INFO - Created Project:ctest-TestRoutersBasic-71792546, ID : cceedc07-e864-460e-a7a2-482e844abea8 2025-11-17 13:38:34,395 - INFO - ================================================================================ 2025-11-17 13:38:34,395 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-17 13:38:34,395 - 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-11-17 13:38:34,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-17 13:38:34,651 - INFO - Initial checks done. Running the testcase now 2025-11-17 13:38:34,651 - INFO - 2025-11-17 13:38:35,400 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-71792546 2025-11-17 13:38:35,494 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-71792546 2025-11-17 13:38:35,810 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71792546', 'default']} 2025-11-17 13:38:36,085 - DEBUG - Response for create_network : {'network': {'id': '43befa46-0ef8-48db-9946-33c39fd91dce', 'name': 'ctest-vn-35915972', 'tenant_id': 'cceedc07e864460ea7a2482e844abea8', 'project_id': 'cceedc07e864460ea7a2482e844abea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71792546', 'ctest-vn-35915972'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 13:38:36,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '4164056b-5c2c-4546-9ab8-97800b7c714f', 'name': '', 'tenant_id': 'cceedc07e864460ea7a2482e844abea8', 'network_id': '43befa46-0ef8-48db-9946-33c39fd91dce', 'ip_version': 4, 'cidr': '29.84.47.128/26', 'allocation_pools': [{'start': '29.84.47.130', 'end': '29.84.47.190'}], 'gateway_ip': '29.84.47.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.84.47.130', 'tags': [], 'project_id': 'cceedc07e864460ea7a2482e844abea8'}} 2025-11-17 13:38:36,326 - INFO - Created VN ctest-vn-35915972 2025-11-17 13:38:36,378 - DEBUG - VN ctest-vn-35915972 UUID is 43befa46-0ef8-48db-9946-33c39fd91dce 2025-11-17 13:38:36,724 - DEBUG - Response for create_network : {'network': {'id': '9bc7a80a-5aa2-48f4-9320-fac92e58111c', 'name': 'ctest-ext_vn-86485671', 'tenant_id': 'cceedc07e864460ea7a2482e844abea8', 'project_id': 'cceedc07e864460ea7a2482e844abea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-71792546', 'ctest-ext_vn-86485671'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 13:38:36,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd859fb7-14bf-435c-9672-93f8e82a2bab', 'name': '', 'tenant_id': 'cceedc07e864460ea7a2482e844abea8', 'network_id': '9bc7a80a-5aa2-48f4-9320-fac92e58111c', 'ip_version': 4, 'cidr': '149.30.2.64/26', 'allocation_pools': [{'start': '149.30.2.66', 'end': '149.30.2.126'}], 'gateway_ip': '149.30.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.30.2.66', 'tags': [], 'project_id': 'cceedc07e864460ea7a2482e844abea8'}} 2025-11-17 13:38:36,919 - INFO - Created VN ctest-ext_vn-86485671 2025-11-17 13:38:36,970 - DEBUG - VN ctest-ext_vn-86485671 UUID is 9bc7a80a-5aa2-48f4-9320-fac92e58111c 2025-11-17 13:38:37,164 - DEBUG - Services list from nova: [, , ] 2025-11-17 13:38:38,189 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4741-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4741-1) 2025-11-17 13:38:39,368 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4741-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4741-1) 2025-11-17 13:38:39,442 - INFO - Setting gateway for router d79d442e-716a-4444-b6e0-451b39aa1751 to network 9bc7a80a-5aa2-48f4-9320-fac92e58111c 2025-11-17 13:38:39,494 - INFO - Adding interface with subnet_id 4164056b-5c2c-4546-9ab8-97800b7c714f, port_id None to router d79d442e-716a-4444-b6e0-451b39aa1751 2025-11-17 13:38:39,777 - INFO - Waiting for VM ctest-TestRoutersBasic-71792546-76173307 to be up.. 2025-11-17 13:38:39,899 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-17 13:38:44,974 - DEBUG - VM is in ACTIVE state now 2025-11-17 13:38:44,974 - INFO - VM name : ctest-TestRoutersBasic-71792546-76173307 2025-11-17 13:38:45,051 - DEBUG - VM ctest-TestRoutersBasic-71792546-76173307 ID is 965fa3e6-e1d9-4a30-ae33-e512354936ea 2025-11-17 13:38:45,070 - DEBUG - VM ctest-TestRoutersBasic-71792546-76173307 launched on Node cn-jenkins-deploy-platform-ansible-os-4741-1 2025-11-17 13:38:45,144 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/965fa3e6-e1d9-4a30-ae33-e512354936ea 2025-11-17 13:38:45,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/965fa3e6-e1d9-4a30-ae33-e512354936ea 2025-11-17 13:38:45,590 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/39cf854d-f339-4001-8cea-e2d2d847d448 2025-11-17 13:38:48,861 - 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=9.21 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1031ms\r\nrtt min/avg/max/mdev = 9.210/9.210/9.210/0.000 ms') 2025-11-17 13:38:48,861 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-71792546-76173307 passed 2025-11-17 13:38:49,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 13:38:49,018 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71792546-76173307, IP 29.84.47.131, Port 22 2025-11-17 13:38:49,177 - DEBUG - VM ctest-TestRoutersBasic-71792546-76173307 is ready for SSH connections 2025-11-17 13:38:49,177 - INFO - Waiting for VM ctest-TestRoutersBasic-71792546-14444754 to be up.. 2025-11-17 13:38:49,249 - DEBUG - VM is in ACTIVE state now 2025-11-17 13:38:49,250 - INFO - VM name : ctest-TestRoutersBasic-71792546-14444754 2025-11-17 13:38:49,319 - DEBUG - VM ctest-TestRoutersBasic-71792546-14444754 ID is 427f9eec-c9ad-4963-b57e-6f1ab2f7b734 2025-11-17 13:38:49,319 - DEBUG - VM ctest-TestRoutersBasic-71792546-14444754 launched on Node cn-jenkins-deploy-platform-ansible-os-4741-1 2025-11-17 13:38:49,388 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/427f9eec-c9ad-4963-b57e-6f1ab2f7b734 2025-11-17 13:38:49,396 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d46b7418-8337-4c4f-b318-de6ae8ffab6d 2025-11-17 13:38:50,631 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.598 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.598/1.978/3.359/1.380 ms') 2025-11-17 13:38:50,631 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-71792546-14444754 passed 2025-11-17 13:38:50,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 13:38:50,782 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-71792546-14444754, IP 149.30.2.67, Port 22 2025-11-17 13:38:50,938 - DEBUG - VM ctest-TestRoutersBasic-71792546-14444754 is ready for SSH connections 2025-11-17 13:38:50,938 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 13:38:50,938 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 149.30.2.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-17 13:38:50,938 - DEBUG - ping -s 56 -c 3 -W 1 149.30.2.67 2025-11-17 13:38:54,555 - DEBUG - PING 149.30.2.67 (149.30.2.67): 56 data bytes 64 bytes from 149.30.2.67: seq=0 ttl=62 time=5.818 ms 64 bytes from 149.30.2.67: seq=1 ttl=62 time=1.038 ms 64 bytes from 149.30.2.67: seq=2 ttl=62 time=0.862 ms --- 149.30.2.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/2.572/5.818 ms 2025-11-17 13:38:54,555 - INFO - Ping to IP 149.30.2.67 from VM ctest-TestRoutersBasic-71792546-76173307 passed 2025-11-17 13:38:54,555 - INFO - Deleting interface with subnet_id 4164056b-5c2c-4546-9ab8-97800b7c714f, port_id None from router d79d442e-716a-4444-b6e0-451b39aa1751 2025-11-17 13:38:54,724 - INFO - Deleting VM ctest-TestRoutersBasic-71792546-14444754 2025-11-17 13:38:54,791 - INFO - Deleting VM ctest-TestRoutersBasic-71792546-76173307 2025-11-17 13:38:54,873 - INFO - Deleting VN ctest-ext_vn-86485671 2025-11-17 13:38:54,941 - DEBUG - VN 9bc7a80a-5aa2-48f4-9320-fac92e58111c still in use: Unable to complete operation on network 9bc7a80a-5aa2-48f4-9320-fac92e58111c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a6ee8dfa-67a1-45ae-bfdf-a6de5b55a047'] 2025-11-17 13:38:54,941 - WARNING - Deleting VN ctest-ext_vn-86485671 failed..Will retry 2025-11-17 13:38:57,030 - DEBUG - Response for deleting network () 2025-11-17 13:38:57,030 - INFO - Deleting VN ctest-vn-35915972 2025-11-17 13:38:57,112 - DEBUG - Response for deleting network () 2025-11-17 13:38:57,366 - DEBUG - No XMPP flaps were noticed during the test 2025-11-17 13:38:57,367 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:23] 2025-11-17 13:38:57,367 - INFO - -------------------------------------------------------------------------------- 2025-11-17 13:38:58,061 - INFO - Deleted project: ctest-TestRoutersBasic-71792546, ID : cceedc07-e864-460e-a7a2-482e844abea8