X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FCoe.robot;h=c0ab41652dccd002c26ab2a4ae329b3b7d87c44b;hb=69c34cf13db1d6db66ba7a05ad1ce8d08c4be8b4;hp=ac812ae1c52d22718b6b84339dceba0ac4c1d820;hpb=5856b0886f8024dd1b6cabdddfd1a68d73a42bd7;p=integration%2Ftest.git diff --git a/csit/libraries/Coe.robot b/csit/libraries/Coe.robot index ac812ae1c5..c0ab41652d 100644 --- a/csit/libraries/Coe.robot +++ b/csit/libraries/Coe.robot @@ -74,7 +74,7 @@ Configuration Playbook SSHKeywords.Copy_File_To_Remote_System ${K8s_MASTER_IP} ${WATCHER_COE} ${USER_HOME} OperatingSystem.Copy File ${PLAYBOOK_FILE} ${USER_HOME} ${branch_ref_spec} = BuiltIn.Catenate SEPARATOR= refs/heads/ ${GERRIT_BRANCH} - ${gerrit_ref_spec} = BuiltIn.Set Variable If '${GERRIT_PROJECT_ROOT}' != 'coe' ${branch_ref_spec} ${GERRIT_REFSPEC} + ${gerrit_ref_spec} = BuiltIn.Set Variable If '${GERRIT_PROJECT}' != 'coe' ${branch_ref_spec} ${GERRIT_REFSPEC} Run Coe Playbook ${gerrit_ref_spec} Run Coe Playbook @@ -172,6 +172,7 @@ Delete Pods \ ${pod_name} = BuiltIn.Should Match Regexp ${status} ^\\w+-\\w+ \ Utils.Run Command On Remote System ${K8s_MASTER_IP} kubectl delete pods ${pod_name} BuiltIn.Wait Until Keyword Succeeds 60s 3s Coe.Check If Pods Are Terminated + Coe.Check For Stale veth Ports Check If Pods Are Terminated [Documentation] Checks if the pods created have been terminated.The keyword is repeated until the pods are deleted @@ -274,3 +275,9 @@ Extract current suite name ${suite line} ${current_suite} = BuiltIn.Run Keyword If ${num_suites} > ${1} Should Match Regexp ${SUITE_NAME} .txt.(\\w.*) ... ELSE BuiltIn.Set Variable @{suite_names_updated}[0] @{suite_names_updated}[0] [Return] ${current_suite} ${suite_names_updated} + +Check For Stale veth Ports + [Documentation] Check on switches(except master) where pods were created and deleted to ensure there are no stale veth ports left behind. + : FOR ${minion_index} IN RANGE 2 ${NUM_TOOLS_SYSTEM}+1 + \ ${switch output} = Utils.Run Command On Remote System And Log ${TOOLS_SYSTEM_${minion_index}_IP} sudo ovs-vsctl show + \ BuiltIn.Should Not Contain ${switch output} veth