From c0c2a40db28a768612bcbd447ec503100448277d Mon Sep 17 00:00:00 2001 From: "Lemus Contreras, Cristopher J" Date: Tue, 10 Mar 2020 09:33:21 -0700 Subject: [PATCH] Fix test cases related to lock/unlock of compute and storage nodes This commit will prevent errors when trying to do the lock/unlock on compute and storage nodes. Right now, operation fails for compute-0 and oftenly on storage-0 because ceph monitor is not on sync. This commit will change the Test Cases to be executed only for compute-1 and storage-1. It'll also avoid increasing the execution time. Change-Id: If5c72b1cfd6bec2f74bfeae7dfcfd91324ef16a6 Signed-off-by: George Postolache --- .../Sanity-Platform/02-Host-Management.robot | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/automated-robot-suite/Tests/Sanity-Test/Sanity-Platform/02-Host-Management.robot b/automated-robot-suite/Tests/Sanity-Test/Sanity-Platform/02-Host-Management.robot index 23de0a3..9ad2437 100644 --- a/automated-robot-suite/Tests/Sanity-Test/Sanity-Platform/02-Host-Management.robot +++ b/automated-robot-suite/Tests/Sanity-Test/Sanity-Platform/02-Host-Management.robot @@ -15,6 +15,8 @@ Suite TearDown Run Keywords *** Variables *** ${controller_0} controller-0 ${controller_1} controller-1 +${compute_1} compute-1 +${storage_1} storage-1 ${add_error_msg} Host-add Rejected: Adding a host on a simplex system ... is not allowed. ${swact_error_msg} Swact action not allowed for a simplex system. @@ -62,20 +64,14 @@ Lock Unlock Standby Controller Lock Node ${standby_controller} Unlock Controller ${standby_controller} -Lock Unlock Compute Hosts +Lock Unlock Compute Host [Tags] MN-Local MN-External - [Documentation] Perform a lock/unlock to the compute nodes - ${computes} = Get Compute Nodes - Sort List ${computes} - : FOR ${compute} IN @{computes} - \ Lock Node ${compute} - \ Unlock Compute ${compute} + [Documentation] Perform a lock/unlock to the compute node + Lock Node ${compute_1} + Unlock Compute ${compute_1} -Lock Unlock Storage Hosts +Lock Unlock Storage Host [Tags] MN-External - [Documentation] Perform a lock/unlock to the storage nodes - ${storages} = Get Storage Nodes - Sort List ${storages} - : FOR ${storage} IN @{storages} - \ Lock Node ${storage} - \ Unlock Storage ${storage} + [Documentation] Perform a lock/unlock to the storage node + Lock Node ${storage_1} + Unlock Storage ${storage_1}