From 87c02fc984e3d3fe7866c58dd66eabd1f8f88908 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 27 Jun 2025 15:04:09 +0200 Subject: [PATCH] Fix keyword Halt Server to use --auto-approve flag This change fixes the keyword Halt Server, used in tests heal02 and heal04, to set VMs in error state before healing them. The issue appeared with the new version of python-openstackclient, introduced when the pip dependencies were upgraded. Change-Id: Iabb76ac89c65bc1738dcbe9f0a01c765776e69be Signed-off-by: garciadeblas --- robot-systest/lib/openstack_lib.resource | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot-systest/lib/openstack_lib.resource b/robot-systest/lib/openstack_lib.resource index add717a..b1c0875 100644 --- a/robot-systest/lib/openstack_lib.resource +++ b/robot-systest/lib/openstack_lib.resource @@ -160,7 +160,7 @@ Halt Server [Documentation] Reset a server [Arguments] ${server_id} Should Not Be Empty ${server_id} - ${rc} ${stdout}= Run And Return Rc And Output openstack server set --state error ${server_id} + ${rc} ${stdout}= Run And Return Rc And Output openstack server set --auto-approve --state error ${server_id} Log ${stdout} Should Be Equal As Integers ${rc} ${SUCCESS_RETURN_CODE} RETURN ${stdout} -- 2.25.1