itm-direct-tunnels issue in 3 node csit 31/74131/3
authorFaseela K <faseela.k@ericsson.com>
Tue, 17 Jul 2018 15:29:52 +0000 (20:59 +0530)
committerFaseela K <faseela.k@ericsson.com>
Tue, 17 Jul 2018 17:06:58 +0000 (17:06 +0000)
The suite was setting the config flag only on one
node, and not on other nodes, which was making
the TCs randomly fail in some of the runs.

Change-Id: I16b8cbd7f30a122a906d0db5e69b2910dbfeadcd
Signed-off-by: Faseela K <faseela.k@ericsson.com>
csit/libraries/Genius.robot

index ed97f4507f3c3385afafa09d583ae3a1da1b96ef..dca2e853287afe72701a113792cbcdbd76e2e37b 100644 (file)
@@ -169,12 +169,14 @@ ITM Direct Tunnels Start Suite
     [Documentation]    start suite for itm scalability
     ClusterManagement.ClusterManagement_Setup
     ClusterManagement.Stop_Members_From_List_Or_All
-    Run Command On Remote System And Log    ${ODL_SYSTEM_IP}    sed -i -- 's/<itm-direct-tunnels>false/<itm-direct-tunnels>true/g' ${GENIUS_IFM_CONFIG_FLAG}
+    : FOR    ${i}    IN RANGE    ${NUM_ODL_SYSTEM}
+    \    Run Command On Remote System And Log    ${ODL_SYSTEM_${i+1}_IP}    sed -i -- 's/<itm-direct-tunnels>false/<itm-direct-tunnels>true/g' ${GENIUS_IFM_CONFIG_FLAG}
     ClusterManagement.Start_Members_From_List_Or_All
     Genius Suite Setup
 
 ITM Direct Tunnels Stop Suite
-    Run Command On Remote System And Log    ${ODL_SYSTEM_IP}    sed -i -- 's/<itm-direct-tunnels>true/<itm-direct-tunnels>false/g' ${GENIUS_IFM_CONFIG_FLAG}
+    : FOR    ${i}    IN RANGE    ${NUM_ODL_SYSTEM}
+    \    Run Command On Remote System And Log    ${ODL_SYSTEM_${i+1}_IP}    sed -i -- 's/<itm-direct-tunnels>true/<itm-direct-tunnels>false/g' ${GENIUS_IFM_CONFIG_FLAG}
     Genius Suite Teardown
 
 Verify Tunnel Monitoring is on