Add log messages to karaf.log 38/57338/2
authorPeter Gubka <pgubka@cisco.com>
Thu, 18 May 2017 10:10:51 +0000 (12:10 +0200)
committerVratko Polák <vrpolak@cisco.com>
Thu, 18 May 2017 10:56:32 +0000 (10:56 +0000)
Logged are events od node isolation/rejoin for cluster singleton
longevity job and leader movement for explicit leader movemnet
longevity job.

Change-Id: I076494363d6958629db434bbea9dcf9811289029
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/libraries/controller/DdbCommons.robot
csit/suites/controller/cluster_singleton/partition_and_heal_longevity.robot
csit/suites/controller/dom_data_broker/explicit_leader_movement_longevity.robot

index e9543725b6e6e78e6e3e34137637afd9b9009507..16da1110b14f343cf76bbe655560ed927903cb2a 100644 (file)
@@ -45,6 +45,7 @@ Explicit_Leader_Movement_Test_Templ
     [Documentation]    Implements explicit leader movement test scenario.
     ${idx_from}    ${idx_to}    ${idx_trans} =    Get_Node_Indexes_For_The_ELM_Test    ${leader_from}    ${leader_to}    ${shard_name}
     ...    ${shard_type}
+    KarafKeywords.Log_Message_To_Controller_Karaf    Starting leader movement from node${idx_from} to node${idx_to}, transaction producer at node${idx_trans}.
     ${ip_trans_as_list} =    BuiltIn.Create_List    ${ODL_SYSTEM_${idx_trans}_IP}
     ${idx_trans_as_list} =    BuiltIn.Create_List    ${idx_trans}
     MdsalLowlevelPy.Start_Write_Transactions_On_Nodes    ${ip_trans_as_list}    ${idx_trans_as_list}    ${ID_PREFIX}    ${DURATION_30S}    ${TRANSACTION_RATE_1K}    chained_flag=${CHAINED_TX}
index 51d7bd8613385408554db34d4aad39262c6f275c..18456c79063fa895767d1f81a6f4592949e2394d 100644 (file)
@@ -50,7 +50,9 @@ Test_Scenario
     ...    is done after the node isolation and after the node rejoin.
     ${owner}    ${candidates}=    CsCommon.Get_And_Save_Present_CsOwner_And_CsCandidates    1
     BuiltIn.Wait_Until_Keyword_Succeeds    6s    2s    CsCommon.Verify_Singleton_Constant_On_Nodes    ${cs_all_indices}    ${CS_CONSTANT_PREFIX}${owner}
+    KarafKeywords.Log_Message_To_Controller_Karaf    Isolating node${owner}.
     CsCommon.Isolate_Owner_And_Verify_Isolated
     WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${STABILITY_TIMEOUT_ISOLATED}    3s    CsCommon.Verify_Singleton_Constant_During_Isolation
+    KarafKeywords.Log_Message_To_Controller_Karaf    Rejoining node${owner}.
     CsCommon.Rejoin_Node_And_Verify_Rejoined
     WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${STABILITY_TIMEOUT_REJOINED}    3s    CsCommon.Verify_Singleton_Constant_On_Nodes    ${cs_all_indices}    ${CS_CONSTANT_PREFIX}${cs_owner}
index 4d7f1eac976fa13289d4045e4101a10ebd4520ca..e6be3738b112d08b20bf22c0fde81414501efad9 100644 (file)
@@ -34,5 +34,4 @@ Explicit_Leader_Movement_Test
 Test_Scenario
     [Documentation]    One leader movement scenario based on randomly chosen direction.
     ${node_from}    ${node_to}    BuiltIn.Evaluate    random.sample(${MOVEMENT_DIRECTION_LIST}, 2)    modules=random
-    KarafKeywords.Log_Message_To_Controller_Karaf    Starting ${node_from} to ${node_to} test.
     DdbCommons.Explicit_Leader_Movement_Test_Templ    ${node_from}    ${node_to}