From: garciadeblas Date: Fri, 27 Jun 2025 13:04:09 +0000 (+0200) Subject: Fix keyword Halt Server to use --auto-approve flag X-Git-Tag: v18.0.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F15263%2F1;p=osm%2Ftests.git 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 --- 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}