Fix keyword Halt Server to use --auto-approve flag 63/15263/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 27 Jun 2025 13:04:09 +0000 (15:04 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 27 Jun 2025 13:04:10 +0000 (15:04 +0200)
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 <gerardo.garciadeblas@telefonica.com>
robot-systest/lib/openstack_lib.resource

index add717a..b1c0875 100644 (file)
@@ -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}