Added test suites for cluster HA data recovery leader follower failover 02/37502/2
authorSanjib Mohapatra <sanjib.mohapatra@ericsson.com>
Tue, 12 Apr 2016 15:16:32 +0000 (20:46 +0530)
committerLuis Gomez <ecelgp@gmail.com>
Fri, 15 Apr 2016 07:15:18 +0000 (07:15 +0000)
    Description: In a 3 node cluster initial inventory shard status is
    verified and following tests are performed.

    - Mininet switch is connected to a follower node and flow is added via
      another follower node. Disconnect the switch and restarts the Leader.
      Connect the switch again once Cluster is formed and verify flow is
      installed in the switch again

    - Disconnect the switch and restarts one of the follower node. Connect
      the switch and verify the flow is installed in the switch again.

    - Disconnect the switch and restarts the Cluster. Connect the switch
      again when Cluster is formed and verify the flow is installed
      successfully.

Change-Id: Ibd01664bc355a41bc95794930b1e40f3468ce858
Signed-off-by: Sanjib Mohapatra <sanjib.mohapatra@ericsson.com>
csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot

index 965cc944ab90b1df33b74ca7afea33fe145e23a1..1d0f7ae6ff1d77228b2cfed6c0203ecb7c9cd859 100644 (file)
@@ -30,6 +30,7 @@ Get inventory Leader Before Leader Restart
     ${inventory_leader}    ${inventory_followers}    ClusterOpenFlow.Get InventoryConfig Shard Status    ${original_cluster_list}
     ${follower_node_1}=    Get From List    ${inventory_followers}    0
     ${follower_node_2}=    Get From List    ${inventory_followers}    1
+    Set Suite Variable    ${inventory_leader_old}    ${inventory_leader}
     Set Suite Variable    ${follower_node_1}
     Set Suite Variable    ${follower_node_2}
     Set Suite Variable    ${inventory_leader}
@@ -62,16 +63,16 @@ Get inventory Follower After Leader Restart
     Set Suite Variable    ${follower_node_2}
     Set Suite Variable    ${inventory_leader}
 
-Start Mininet Connect To Follower Node2
-    [Documentation]    Start mininet with connection to cluster Follower Node2.
-    ${mininet_conn_id}=    MininetKeywords.Start Mininet Single Controller    ${TOOLS_SYSTEM_IP}    ${ODL_SYSTEM_${follower_node_2}_IP}
+Start Mininet Connect To Old Leader
+    [Documentation]    Start mininet with connection to cluster old leader.
+    ${mininet_conn_id}=    MininetKeywords.Start Mininet Single Controller    ${TOOLS_SYSTEM_IP}    ${ODL_SYSTEM_${inventory_leader_old}_IP}
     Set Suite Variable    ${mininet_conn_id}
 
 Verify Flows In Switch After Leader Restart
     [Documentation]    Verify flows are installed in switch after leader restart.
     MininetKeywords.Verify Aggregate Flow From Mininet Session    ${mininet_conn_id}    ${switch_count_per_node}    ${flow_count_per_switch}    ${operation_timeout}
 
-Stop Mininet Connected To Follower Node2 and Exit
+Stop Mininet Connected To Old Leader and Exit
     [Documentation]    Stop mininet and exit connection.
     MininetKeywords.Stop Mininet And Exit    ${mininet_conn_id}
     Utils.Clean Mininet System