From d0b1ef8d87d486787c777763ce9e73a38e49db54 Mon Sep 17 00:00:00 2001 From: Ivan Hrasko Date: Tue, 13 Nov 2018 14:55:57 +0100 Subject: [PATCH] SXP: Wait for RPC registration - SXP has RPC services registered on owner node only, after owner change it can take some time for them to be registered on new owner Change-Id: I28316461d38bd1bfc78a3851794017aa3f36372c Signed-off-by: Ivan Hrasko --- csit/libraries/SxpClusterLib.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csit/libraries/SxpClusterLib.robot b/csit/libraries/SxpClusterLib.robot index f88e2116a0..ca593bdff2 100644 --- a/csit/libraries/SxpClusterLib.robot +++ b/csit/libraries/SxpClusterLib.robot @@ -65,7 +65,7 @@ Setup SXP Cluster Clean SXP Cluster [Documentation] Disconnect SXP cluster topology SxpLib.Delete Node ${DEVICE_NODE_ID} session=${DEVICE_SESSION} - SxpLib.Delete Node ${INADDR_ANY} session=${CONTROLLER_SESSION} + BuiltIn.Wait Until Keyword Succeeds 3x 10s SxpLib.Delete Node ${INADDR_ANY} session=${CONTROLLER_SESSION} Check Cluster Node started [Arguments] ${node} ${port}=64999 ${ip}=${node} @@ -107,7 +107,7 @@ Check Cluster is Connected Get Owner Controller [Arguments] ${running_member}=1 [Documentation] Find cluster controller that is marked as cluster owner by requesting ownership data from ${running_member} node of the cluster - ${owner} ${candidates} = BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device org.opendaylight.sxp.controller.boot.SxpControllerInstance + ${owner} ${candidates} = BuiltIn.Wait Until Keyword Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device org.opendaylight.sxp.controller.boot.SxpControllerInstance ... Sxp ${running_member} [Return] ${owner} -- 2.36.6