From: Tomas Jamrisko Date: Fri, 20 Apr 2018 11:58:31 +0000 (+0200) Subject: Allow connection to karaf port during suite setup X-Git-Tag: pre-potassium~828 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=9ad74ef944ead125f6e03a265cb2ce1d344c579b;p=integration%2Ftest.git Allow connection to karaf port during suite setup Typical tripleo deployment doesn't allow external connections to karaf consoles. As a result the setup and thus all the other tests fail. Change-Id: I7c3a87d7d3e0a54741f60f2a84671ff55a48d8b8 Signed-off-by: Tomas Jamrisko --- diff --git a/csit/libraries/KarafKeywords.robot b/csit/libraries/KarafKeywords.robot index 49e8c3e3c6..e172b5dd9b 100644 --- a/csit/libraries/KarafKeywords.robot +++ b/csit/libraries/KarafKeywords.robot @@ -20,6 +20,7 @@ Setup_Karaf_Keywords [Arguments] ${http_timeout}=${DEFAULT_TIMEOUT_HTTP} [Documentation] Initialize ClusterManagement. Open ssh karaf connections to each ODL. ClusterManagement.ClusterManagement_Setup http_timeout=${http_timeout} + ClusterManagement.Run_Bash_Command_On_List_Or_All iptables -I INPUT -p tcp --dport ${KARAF_SHELL_PORT} -j ACCEPT; iptables-save 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.Run_Keyword_And_Ignore_Error BuiltIn.Wait_Until_Keyword_Succeeds 3s 1s Open_Controller_Karaf_Console_On_Background member_index=${index}