Fix for VTN CSIT Job Failures 36/37636/5
authorgvrangan <venkatrangang@hcl.com>
Thu, 14 Apr 2016 22:46:36 +0000 (22:46 +0000)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 20 Apr 2016 00:15:19 +0000 (00:15 +0000)
* Temporory fix to install vlan package in Mininet
* Will be reverted once the Infra moves to Private Cloud

Change-Id: Ie1d46d92f0bd3566bf21f19949712e5d8bbbc308
Signed-off-by: gvrangan <venkatrangang@hcl.com>
csit/libraries/Utils.robot
csit/libraries/VtnCoKeywords.robot
csit/libraries/VtnMaKeywords.robot

index 7afb4781cd18392cc2b65626435b082ad6cae01e..4d57d466f90a3c4c43c4c78adba50f7a8419e135 100644 (file)
@@ -488,3 +488,13 @@ Write Commands Until Expected Prompt
     SSHLibrary.Write    ${cmd}
     ${output}=    SSHLibrary.Read Until    ${prompt}
     [Return]    ${output}
+
+Install Package On Ubuntu System
+    [Arguments]    ${package_name}    ${system}=${TOOLS_SYSTEM_IP}     ${user}=${TOOLS_SYSTEM_USER}    ${password}=${TOOLS_SYSTEM_PASSWORD}    ${prompt}=${DEFAULT_LINUX_PROMPT}
+    ...    ${prompt_timeout}=30s
+    [Documentation]    Keyword to install packages for testing to Ubuntu Mininet VM
+    Log    Keyword to install package to Mininet Ubuntu VM
+    Open Connection    ${system}    prompt=${prompt}    timeout=${prompt_timeout}
+    Flexible Mininet Login    user=${user}    password=${password}
+    Write    sudo apt-get install -y ${package_name}
+    Read Until     ${prompt}
index 6d4c01dcb431ba1677bc4f535fa7d11af358711a..b967b3b50aea5fdd7a738f2e531748fc0011c1e4 100644 (file)
@@ -256,6 +256,7 @@ Create VLANMAP in VBRIDGE
 
 Start vlan_topo
     [Documentation]    This will start mininet with custom topology on both the Virtual Machines
+    Install Package On Ubuntu System      vlan
     Start Mininet    ${TOOLS_SYSTEM_IP}    ${vlan_topo}    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
 
 Delete a FLOWLIST
index f1a5f8d90b5b2ccbcfe16d33c4fffc2136f9b80d..af77af30539bca71b303a76c4bacdc919c739a5f 100644 (file)
@@ -219,15 +219,9 @@ Mininet Ping Should Not Succeed
 Start vlan_topo
     [Arguments]    ${OF}
     [Documentation]    Create custom topology for vlan functionality
-    Clean Mininet System
-    ${mininet_conn_id1}=    Open Connection    ${TOOLS_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}    timeout=30s
-    Set Suite Variable    ${mininet_conn_id1}
-    Login With Public Key    ${TOOLS_SYSTEM_USER}    ${USER_HOME}/.ssh/${SSH_KEY}    any
-    Execute Command    sudo ovs-vsctl set-manager ptcp:6644
-    Put File    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
-    Run Keyword If    '${OF}' == 'OF13'    Write    ${vlan_topo_13}
-    ...    ELSE IF    '${OF}' == 'OF10'    Write    ${vlan_topo_10}
-    ${result}    Read Until    mininet>
+    Install Package On Ubuntu System     vlan
+    Run Keyword If    '${OF}' == 'OF13'    Start Mininet    ${TOOLS_SYSTEM_IP}    ${vlan_topo_13}    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
+    ...    ELSE IF    '${OF}' == 'OF10'    Start Mininet    ${TOOLS_SYSTEM_IP}    ${vlan_topo_10}    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
 
 Get flow
     [Arguments]    ${vtn_name}