From: Sanjib Mohapatra Date: Tue, 12 Apr 2016 15:16:32 +0000 (+0530) Subject: Added test suites for cluster HA data recovery leader follower failover X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=5e709583bf7105aed09ee2ffda7a17e6b7b82aaa;hp=e638785f57c0ada81a289415465f581f388f0392;p=integration%2Ftest.git Added test suites for cluster HA data recovery leader follower failover 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 --- diff --git a/csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot b/csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot index 965cc944ab..1d0f7ae6ff 100644 --- a/csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot +++ b/csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot @@ -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