X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fovsdb%2FSouthbound_Cluster%2F010__Ovsdb_Southbound_Cluster.robot;h=9ac8283945c7fca828de49a91acf476b6876e559;hb=6f361630171308131125ebcc3a99411fdd8285ad;hp=80ff923f254bf57c8fd58967b5407ca3a4df9da3;hpb=d883b8eb7f8831ced0ea7289045c7074fbd4ba43;p=integration%2Ftest.git diff --git a/csit/suites/ovsdb/Southbound_Cluster/010__Ovsdb_Southbound_Cluster.robot b/csit/suites/ovsdb/Southbound_Cluster/010__Ovsdb_Southbound_Cluster.robot index 80ff923f25..9ac8283945 100644 --- a/csit/suites/ovsdb/Southbound_Cluster/010__Ovsdb_Southbound_Cluster.robot +++ b/csit/suites/ovsdb/Southbound_Cluster/010__Ovsdb_Southbound_Cluster.robot @@ -1,77 +1,78 @@ *** Settings *** Documentation Test suite for Ovsdb Southbound Cluster - Owner failover and recover -Suite Setup Create Controller Sessions +Suite Setup ClusterManagement Setup Suite Teardown Delete All Sessions Library RequestsLibrary Resource ../../../libraries/ClusterOvsdb.robot -Resource ../../../libraries/ClusterKeywords.robot +Resource ../../../libraries/ClusterManagement.robot Variables ../../../variables/Variables.py *** Test Cases *** -Create Original Cluster List - [Documentation] Create original cluster list. - ${original_cluster_list} ClusterKeywords.Create Controller Index List - Set Suite Variable ${original_cluster_list} - Log ${original_cluster_list} - Check Shards Status Before Fail [Documentation] Check Status for all shards in Ovsdb application. - ClusterOvsdb.Check Ovsdb Shards Status ${original_cluster_list} + ClusterOvsdb.Check Ovsdb Shards Status Start OVS Multiple Connections [Documentation] Connect OVS to all cluster instances. - ${ovsdb_uuid} Ovsdb.Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list} + ${ovsdb_uuid} OVSDB.Add Multiple Managers to OVS Set Suite Variable ${ovsdb_uuid} Check Entity Owner Status And Find Owner and Candidate Before Fail [Documentation] Check Entity Owner Status and identify owner and candidate. - ${original_owner} ${original_candidates_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ${original_cluster_list} ovsdb://uuid/${ovsdb_uuid} - ${original_candidate}= Get From List ${original_candidates_list} 0 + ${original_owner} ${original_candidate_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ovsdb://uuid/${ovsdb_uuid} 1 + ${original_candidate}= Get From List ${original_candidate_list} 0 Set Suite Variable ${original_owner} + Set Suite Variable ${original_candidate_list} Set Suite Variable ${original_candidate} Create Bridge Manually and Verify Before Fail [Documentation] Create bridge with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge Manually And Verify ${original_cluster_list} + ClusterOvsdb.Create Sample Bridge Manually And Verify Add Port Manually and Verify Before Fail [Documentation] Add port with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify ${original_cluster_list} + ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify + +Create Tap Device Before Fail + [Documentation] Create tap devices to add to the bridge in ovs + ClusterOvsdb.Create Sample Tap Device + +Add Tap Device Manually and Verify Before Fail + [Documentation] Add tap devices to the bridge with OVS command and verify it gets applied from all instances. + ClusterOvsdb.Add Sample Tap Device To The Manual Bridge And Verify Delete the Bridge Manually and Verify Before Fail [Documentation] Delete bridge with OVS command and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge Manually And Verify ${original_cluster_list} + ClusterOvsdb.Delete Sample Bridge Manually And Verify Create Bridge In Owner and Verify Before Fail [Documentation] Create Bridge in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Create Sample Bridge And Verify ${original_owner} Create Port In Owner and Verify Before Fail [Documentation] Create Port in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Port And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Create Sample Port And Verify ${original_owner} Modify the destination IP of Port In Owner Before Fail [Documentation] Modify the dst ip of existing port in Owner. - ClusterOvsdb.Modify the destination IP of Sample Port ${original_cluster_list} ${original_owner} + ClusterOvsdb.Modify the destination IP of Sample Port ${original_owner} Verify Port Is Modified Before Fail [Documentation] Verify port is modified in all instances. - ClusterOvsdb.Verify Sample Port Is Modified ${original_cluster_list} + ClusterOvsdb.Verify Sample Port Is Modified Delete Port In Owner Before Fail [Documentation] Delete port in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Port And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Delete Sample Port And Verify ${original_owner} Delete Bridge In Owner And Verify Before Fail [Documentation] Delete bridge in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Delete Sample Bridge And Verify ${original_owner} Kill Owner Instance [Documentation] Kill Owner Instance and verify it is dead - ClusterKeywords.Kill Multiple Controllers ${original_owner} - ${new_cluster_list} ClusterKeywords.Create Controller Index List - Remove Values From List ${new_cluster_list} ${original_owner} - Set Suite Variable ${new_cluster_list} + ClusterManagement.Kill Single Member ${original_owner} + Set Suite Variable ${new_cluster_list} ${original_candidate_list} Check Shards Status After Fail [Documentation] Create original cluster list and check Status for all shards in Ovsdb application. @@ -79,36 +80,42 @@ Check Shards Status After Fail Check Entity Owner Status And Find Owner and Candidate After Fail [Documentation] Check Entity Owner Status and identify owner and candidate. - ${new_owner} ${new_candidates_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ${new_cluster_list} ovsdb://uuid/${ovsdb_uuid} - Run Keyword And Continue On Failure List Should Not Contain Value ${new_candidates_list} ${original_owner} Original owner ${original_owner} still in candidate list. - Remove Values From List ${new_candidates_list} ${original_owner} - ${new_candidate}= Get From List ${new_candidates_list} 0 + ${new_owner} ${new_candidate_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ovsdb://uuid/${ovsdb_uuid} ${original_candidate} ${new_cluster_list} + ${new_candidate}= Get From List ${new_candidate_list} 0 Set Suite Variable ${new_owner} Set Suite Variable ${new_candidate} Create Bridge Manually and Verify After Fail [Documentation] Create bridge with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge Manually And Verify ${new_cluster_list} + ClusterOvsdb.Create Sample Bridge Manually And Verify controller_index_list=${new_cluster_list} Add Port Manually and Verify After Fail [Documentation] Add port with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify ${new_cluster_list} + ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify controller_index_list=${new_cluster_list} + +Create Tap Device After Fail + [Documentation] Create tap devices to add to the bridge in ovs + ClusterOvsdb.Create Sample Tap Device + +Add Tap Device Manually and Verify After Fail + [Documentation] Add tap devices to the bridge with OVS command and verify it gets applied from all instances. + ClusterOvsdb.Add Sample Tap Device To The Manual Bridge And Verify controller_index_list=${new_cluster_list} Delete the Bridge Manually and Verify After Fail [Documentation] Delete bridge with OVS command and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge Manually And Verify ${new_cluster_list} + ClusterOvsdb.Delete Sample Bridge Manually And Verify controller_index_list=${new_cluster_list} Create Bridge In Owner and Verify After Fail [Documentation] Create Bridge in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge And Verify ${new_cluster_list} ${new_owner} + ClusterOvsdb.Create Sample Bridge And Verify ${new_owner} ${new_cluster_list} Create Port In Owner and Verify After Fail [Documentation] Create Port in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Port And Verify ${new_cluster_list} ${new_owner} + ClusterOvsdb.Create Sample Port And Verify ${new_owner} ${new_cluster_list} Modify the destination IP of Port In Owner After Fail [Documentation] Modify the dst ip of existing port in Owner. - ClusterOvsdb.Modify the destination IP of Sample Port ${new_cluster_list} ${new_owner} + ClusterOvsdb.Modify the destination IP of Sample Port ${new_owner} ${new_cluster_list} Verify Port Is Modified After Fail [Documentation] Verify port is modified in all instances. @@ -116,66 +123,73 @@ Verify Port Is Modified After Fail Start Old Owner Instance [Documentation] Start Owner Instance and verify it is active - ClusterKeywords.Start Multiple Controllers 300s ${original_owner} + ClusterManagement.Start Single Member ${original_owner} Check Shards Status After Recover [Documentation] Create original cluster list and check Status for all shards in Ovsdb application. - ClusterOvsdb.Check Ovsdb Shards Status After Cluster Event ${original_cluster_list} + ClusterOvsdb.Check Ovsdb Shards Status After Cluster Event Check Entity Owner Status After Recover [Documentation] Check Entity Owner Status and identify owner and candidate. - ${new_owner} ${new_candidates_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ${original_cluster_list} ovsdb://uuid/${ovsdb_uuid} + ${new_owner} ${new_candidate_list} ClusterOvsdb.Get Ovsdb Entity Owner Status For One Device ovsdb://uuid/${ovsdb_uuid} 1 Set Suite Variable ${new_owner} Create Bridge Manually and Verify After Recover [Documentation] Create bridge with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge Manually And Verify ${original_cluster_list} + ClusterOvsdb.Create Sample Bridge Manually And Verify Add Port Manually and Verify After Recover [Documentation] Add port with OVS command and verify it gets applied from all instances. - ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify ${original_cluster_list} + ClusterOvsdb.Add Sample Port To The Manual Bridge And Verify + +Create Tap Device After Recover + [Documentation] Create tap devices to add to the bridge in ovs + ClusterOvsdb.Create Sample Tap Device + +Add Tap Device Manually and Verify After Recover + [Documentation] Add tap devices to the bridge with OVS command and verify it gets applied from all instances. + ClusterOvsdb.Add Sample Tap Device To The Manual Bridge And Verify Delete the Bridge Manually and Verify After Recover [Documentation] Delete bridge with OVS command and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge Manually And Verify ${original_cluster_list} + ClusterOvsdb.Delete Sample Bridge Manually And Verify Verify Modified Port After Recover [Documentation] Verify modified port exists in all instances. - ClusterOvsdb.Verify Sample Port Is Modified ${original_cluster_list} + ClusterOvsdb.Verify Sample Port Is Modified Delete Port In New Owner After Recover [Documentation] Delete port in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Port And Verify ${original_cluster_list} ${new_owner} + ClusterOvsdb.Delete Sample Port And Verify ${new_owner} Delete Bridge In New Owner And Verify After Recover [Documentation] Delete bridge in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge And Verify ${original_cluster_list} ${new_owner} + ClusterOvsdb.Delete Sample Bridge And Verify ${new_owner} Create Bridge In Old Owner and Verify After Recover [Documentation] Create Bridge in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Bridge And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Create Sample Bridge And Verify ${original_owner} Create Port In Old Owner and Verify After Recover [Documentation] Create Port in Owner and verify it gets applied from all instances. - ClusterOvsdb.Create Sample Port And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Create Sample Port And Verify ${original_owner} Modify the destination IP of Port In Old Owner After Recover [Documentation] Modify the dst ip of existing port in Owner. - ClusterOvsdb.Modify the destination IP of Sample Port ${original_cluster_list} ${original_owner} + ClusterOvsdb.Modify the destination IP of Sample Port ${original_owner} Verify Port Is Modified After Recover [Documentation] Verify port is modified in all instances. - ClusterOvsdb.Verify Sample Port Is Modified ${original_cluster_list} + ClusterOvsdb.Verify Sample Port Is Modified Delete Port In Old Owner After Recover [Documentation] Delete port in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Port And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Delete Sample Port And Verify ${original_owner} Delete Bridge In Old Owner And Verify After Recover [Documentation] Delete bridge in Owner and verify it gets deleted from all instances. - ClusterOvsdb.Delete Sample Bridge And Verify ${original_cluster_list} ${original_owner} + ClusterOvsdb.Delete Sample Bridge And Verify ${original_owner} Cleans Up Test Environment For Next Suite [Documentation] Cleans up test environment, close existing sessions in teardown. - [Tags] exclude - ClusterOvsdb.Configure Exit OVSDB Connection ${original_cluster_list} + ClusterOvsdb.Configure Exit OVSDB Connection