Tolerate karaf console refusal 40/56940/4
authorVratko Polak <vrpolak@cisco.com>
Fri, 12 May 2017 11:04:36 +0000 (13:04 +0200)
committerJamo Luhrsen <jluhrsen@redhat.com>
Fri, 12 May 2017 22:21:19 +0000 (22:21 +0000)
Sometimes a suite breaks ODL so hard it starts rejecting SSH connections
to karaf console. We need this for a suite to reset ODL.

Change-Id: Ib81653aaaa058f91204f22e2ccd35732e4d6fbd8
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
csit/libraries/KarafKeywords.robot

index e60a517cebc6dff2830feb32e0b4709f439e1e75..e9260d0e844c754ae75f87450176e7801c302f1c 100644 (file)
@@ -19,7 +19,7 @@ Setup_Karaf_Keywords
     ClusterManagement.ClusterManagement_Setup    http_timeout=${http_timeout}
     BuiltIn.Comment    First connections to Karaf console may fail, so WUKS is used. TODO: Track as a Bug.
     : FOR    ${index}    IN    @{ClusterManagement__member_index_list}
-    \    BuiltIn.Wait_Until_Keyword_Succeeds    10x    0.2s    Open_Controller_Karaf_Console_On_Background    member_index=${index}
+    \    BuiltIn.Run_Keyword_And_Ignore_Error    BuiltIn.Wait_Until_Keyword_Succeeds    3s    1s    Open_Controller_Karaf_Console_On_Background    member_index=${index}
 
 Verify_Feature_Is_Installed
     [Arguments]    ${feature_name}    ${controller}=${ODL_SYSTEM_IP}    ${karaf_port}=${KARAF_SHELL_PORT}