Fix Failure to launch vtn coordinator
authorgvrangan <venkatrangang@hcl.com>
Tue, 23 Jun 2015 04:38:51 +0000 (13:38 +0900)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 2 Jul 2015 18:33:14 +0000 (18:33 +0000)
     * Excluded all cases other than add/remove controller
     * Fixed the installation of VTN coordinator

Change-Id: I76745303f3cb5847d5d55cb710cd89814b4115e6
Signed-off-by: gvrangan <venkatrangang@hcl.com>
test/csit/libraries/VtnCoKeywords.txt
test/csit/suites/vtn/VTN_C_OF10/020__vtn_coordinator.robot
test/csit/suites/vtn/VTN_C_OF10/030__vtn_coordinator.robot
test/csit/suites/vtn/VTN_C_OF10/040__vtn_coordinator.robot
test/csit/suites/vtn/VTN_C_OF13/020__vtn_coordinator.robot
test/csit/suites/vtn/VTN_C_OF13/030__vtn_coordinator.robot
test/csit/suites/vtn/VTN_C_OF13/040__vtn_coordinator.robot

index e2529159bc6aafa73238cd68642080a5c33c8393..aaa3530346d88ca03b6a7ea0074d99ced632331c 100644 (file)
@@ -10,20 +10,18 @@ Library           XML
 Variables         ../variables/Variables.py
 Resource          ./Utils.txt
 
-*** Variables ***
-${VTNC_FILENAME}    'distribution.vtn-coordinator'
-
 *** Keywords ***
 Get VtnCo
     [Documentation]    Download the VTN Coordinator from Controller VM
     Log    Download the VTN Coordinator bz2 file
     SSHLibrary.Open_Connection    ${CONTROLLER}
     SSHLibrary.Login_With_Public_Key    ${CONTROLLER_USER}    ${USER_HOME}/.ssh/id_rsa    any
-    SSHLibrary.Get_File    ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/*vtn-coordinator*-bin.tar.bz2    ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2
+    ${VTNC_FILENAME}=    Catenate    SEPARATOR=/    ${WORKSPACE}    vtn_coordinator.tar.bz2
+    SSHLibrary.Get_File    ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/*vtn-coordinator*-bin.tar.bz2    ${VTNC_FILENAME}
     SSHLibrary.Close_Connection
     SSHLibrary.Open_Connection    ${MININET}
     SSHLibrary.Login_With_Public_Key    ${MININET_USER}    ${USER_HOME}/.ssh/id_rsa    any
-    SSHLibrary.Put_File    ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2    ${WORKSPACE}
+    SSHLibrary.Put_File    ${VTNC_FILENAME}    /tmp
     SSHLibrary.Close_Connection
 
 Start SuiteVtnCo
@@ -33,7 +31,8 @@ Start SuiteVtnCo
     ${vtnc_conn_id}=    Open Connection    ${MININET}    prompt=${LINUX_PROMPT}    timeout=30s
     Set Suite Variable    ${vtnc_conn_id}
     Login With Public Key    ${MININET_USER}    ${USER_HOME}/.ssh/id_rsa    any
-    Execute Command    tar -C/ -jxvf ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2
+    ${VTNC_FILENAME}=    Catenate    SEPARATOR=/    ${WORKSPACE}    vtn_coordinator.tar.bz2
+    Execute Command    tar -C/ -jxvf ${VTNC_FILENAME}
     Execute Command    /usr/local/vtn/sbin/db_setup
     Execute Command    /usr/local/vtn/bin/vtn_start
     Execute Command    /usr/local/vtn/bin/unc_dmctl status
@@ -48,7 +47,7 @@ Stop SuiteVtnCo
 
 Start SuiteVtnCoTest
     [Documentation]    Start the VTNCo Test
-    Create Session    session    http://${VTNC}:8083    headers=${VTNC_HEADERS}
+    Create Session    session    http://${MININET}:8083    headers=${VTNC_HEADERS}
 
 Stop SuiteVtnCoTest
     [Documentation]    Exit the VtnCo Test
@@ -137,7 +136,7 @@ Define Portmap for VBRIF
 Test Ping
     [Arguments]    ${host1}    ${host2}
     [Documentation]    Ping hosts to check connectivity
-    Write    ${host1} ping -c 5 ${host2}
+    Write    ${host1} ping -c 10 ${host2}
     ${result}    Read Until    mininet>
     Should Contain    ${result}    64 bytes
 
index 9e39845b4e648266e8d09905cd15ad057c16fe40..4a2fef5fcfc5f468ce62fa1b5e5d7bbaf77246ab 100644 (file)
@@ -11,38 +11,47 @@ Add a ODL Controller
 
 Verify the Controller Status is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    30s    2s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Add a Vtn Tenant1
     [Documentation]    Create Vtn Tenant1
-    Wait Until Keyword Succeeds    10s    5s    Add a VTN    Tenant1    VTN_TEST
+    [Tags]    exclude
+    Add a VTN    Tenant1    VTN_TEST
 
 Create VBR in VTN Tenant1
     [Documentation]    Create a VBR in Tenant1 as Vbridge1
+    [Tags]    exclude
     Create VBR in VTN    Tenant1    Vbridge1    odc_test
 
 Create VBRIF in VBRIDGE Vbridge1 Interface1
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
 
 Create VBRIF in VBRIDGE Vbridge1 Interface2
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
 
 Define Portmap for Interface1
     [Documentation]    Map Interface1 to a logical port
+    [Tags]    exclude
     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
 
 Define Portmap for Interface2
     [Documentation]    Map Interface2 to a logical port
+    [Tags]    exclude
     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
 
 Test Ping for Configuration1
     [Documentation]    ping between hosts in mininet
+    [Tags]    exclude
     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h3
 
 Delete a VTN Tenant1
     [Documentation]    Delete Vtn Tenant1
+    [Tags]    exclude
     Delete a VTN    Tenant1
 
 Delete a Controller odc1
index 29689defb55c7921534a3b9c25cf3ca42d00057e..572f2946d95b00de66cc3c140d3e95675dd7ee0f 100644 (file)
@@ -7,7 +7,6 @@ Resource          ../../../libraries/VtnCoKeywords.txt
 *** Test Cases ***
 Add a ODL Controller
     [Documentation]    Add a Controller odc1
-    [Tags]    exclude
     Add a Controller    odc_test    ${CONTROLLER}
 
 Verify the Controller Status is up
@@ -47,5 +46,4 @@ Verify switchPort switch3
 
 Delete a Controller
     [Documentation]    Delete Controller odc1
-    [Tags]    exclude
     Remove Controller    odc_test
index b322e2a5dd982179ba659eec954db25155454278..57184e79a2a4d049c9438c75dde41199a9efad5b 100644 (file)
@@ -11,55 +11,67 @@ Add a ODL Controller
 
 Verify the Controller Status is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    30s    2s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Add a Vtn Tenant1
     [Documentation]    Create Vtn Tenant1
-    Wait Until Keyword Succeeds    10s    5s    Add a VTN    Tenant1    VTN_TEST
+    [Tags]    exclude
+    Add a VTN    Tenant1    VTN_TEST
 
 Create VBR in VTN Tenant1
     [Documentation]    Create a VBR in Tenant1 as Vbridge1
+    [Tags]    exclude
     Create VBR in VTN    Tenant1    Vbridge1    odc_test
 
 Update controller ip invalid
     [Documentation]    Update Controller ip to invalid
+    [Tags]    exclude
     Update Controller    odc_test    10.0.0.1    invalid_IP
 
 Verify the Controller State is down
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    30s    5s    Check Controller Status    odc_test    down
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    40s    5s    Check Controller Status    odc_test    down
 
 Create VBRIF in VBRIDGE Vbridge1 Interface1
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    202
 
 Create VBRIF in VBRIDGE Vbridge1 Interface2
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    202
 
 Update controller ip valid
     [Documentation]    Update Controller ip to valid
+    [Tags]    exclude
     Update Controller    odc_test    ${CONTROLLER}    valid_IP
 
 Verify the Controller State is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    40s    2s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Define Portmap for Interface1
     [Documentation]    Map Interface1 to a logical port
-    Wait Until Keyword Succeeds    10s    5s    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1
-    ...    PP-OF:openflow:2-s2-eth1
+    [Tags]    exclude
+    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1     PP-OF:openflow:2-s2-eth1
 
 Define Portmap for Interface2
     [Documentation]    Map Interface2 to a logical port
+    [Tags]    exclude
     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth2
 
 Test Ping for Configuration1
     [Documentation]    ping between hosts in mininet
+    [Tags]    exclude
     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h2
 
 Delete a VTN Tenant1
     [Documentation]    Delete Vtn Tenant1
+    [Tags]    exclude
     Delete a VTN    Tenant1
 
 Delete a Controller odc1
index 52c97df5c61b00d78068ff97d30832b8b691a956..4a2fef5fcfc5f468ce62fa1b5e5d7bbaf77246ab 100644 (file)
@@ -11,38 +11,47 @@ Add a ODL Controller
 
 Verify the Controller Status is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    30s    5s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Add a Vtn Tenant1
     [Documentation]    Create Vtn Tenant1
-    Wait Until Keyword Succeeds    10s    5s    Add a VTN    Tenant1    VTN_TEST
+    [Tags]    exclude
+    Add a VTN    Tenant1    VTN_TEST
 
 Create VBR in VTN Tenant1
     [Documentation]    Create a VBR in Tenant1 as Vbridge1
+    [Tags]    exclude
     Create VBR in VTN    Tenant1    Vbridge1    odc_test
 
 Create VBRIF in VBRIDGE Vbridge1 Interface1
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
 
 Create VBRIF in VBRIDGE Vbridge1 Interface2
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
 
 Define Portmap for Interface1
     [Documentation]    Map Interface1 to a logical port
+    [Tags]    exclude
     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
 
 Define Portmap for Interface2
     [Documentation]    Map Interface2 to a logical port
+    [Tags]    exclude
     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
 
 Test Ping for Configuration1
     [Documentation]    ping between hosts in mininet
+    [Tags]    exclude
     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h3
 
 Delete a VTN Tenant1
     [Documentation]    Delete Vtn Tenant1
+    [Tags]    exclude
     Delete a VTN    Tenant1
 
 Delete a Controller odc1
index 0b34dea91e3de858fb7e0dbd1c9975016128298a..572f2946d95b00de66cc3c140d3e95675dd7ee0f 100644 (file)
@@ -7,7 +7,6 @@ Resource          ../../../libraries/VtnCoKeywords.txt
 *** Test Cases ***
 Add a ODL Controller
     [Documentation]    Add a Controller odc1
-    [Tags]    exclude
     Add a Controller    odc_test    ${CONTROLLER}
 
 Verify the Controller Status is up
@@ -18,34 +17,33 @@ Verify the Controller Status is up
 Verify switch1
     [Documentation]    Get switch1
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    00:00:00:00:00:00:00:01
+    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    openflow:1
 
 Verify switch2
     [Documentation]    Get switch2
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    00:00:00:00:00:00:00:02
+    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    openflow:2
 
 Verify switch3
     [Documentation]    Get switch3
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    00:00:00:00:00:00:00:03
+    Wait Until Keyword Succeeds    30s    2s    Verify Switch    odc_test    openflow:3
 
 Verify switchPort switch1
     [Documentation]    Get switchport/switch1
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify SwitchPort    odc_test    00:00:00:00:00:00:00:01
+    Wait Until Keyword Succeeds    16s    2s    Verify SwitchPort    odc_test    openflow:1
 
 Verify switchPort switch2
     [Documentation]    Get switchport/switch2
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify SwitchPort    odc_test    00:00:00:00:00:00:00:02
+    Wait Until Keyword Succeeds    16s    2s    Verify SwitchPort    odc_test    openflow:2
 
 Verify switchPort switch3
     [Documentation]    Get switchport/switch3
     [Tags]    exclude
-    Wait Until Keyword Succeeds    30s    2s    Verify SwitchPort    odc_test    00:00:00:00:00:00:00:03
+    Wait Until Keyword Succeeds    16s    2s    Verify SwitchPort    odc_test    openflow:3
 
 Delete a Controller
     [Documentation]    Delete Controller odc1
-    [Tags]    exclude
     Remove Controller    odc_test
index 16fcc7f20817ed2b96930a67c4d4cdf2593d2377..57184e79a2a4d049c9438c75dde41199a9efad5b 100644 (file)
@@ -11,56 +11,67 @@ Add a ODL Controller
 
 Verify the Controller Status is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    10s    5s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Add a Vtn Tenant1
     [Documentation]    Create Vtn Tenant1
+    [Tags]    exclude
     Add a VTN    Tenant1    VTN_TEST
 
 Create VBR in VTN Tenant1
     [Documentation]    Create a VBR in Tenant1 as Vbridge1
+    [Tags]    exclude
     Create VBR in VTN    Tenant1    Vbridge1    odc_test
 
 Update controller ip invalid
     [Documentation]    Update Controller ip to invalid
+    [Tags]    exclude
     Update Controller    odc_test    10.0.0.1    invalid_IP
 
 Verify the Controller State is down
     [Documentation]    Check Controller status
+    [Tags]    exclude
     Wait Until Keyword Succeeds    40s    5s    Check Controller Status    odc_test    down
 
 Create VBRIF in VBRIDGE Vbridge1 Interface1
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    202
 
 Create VBRIF in VBRIDGE Vbridge1 Interface2
     [Documentation]    Create an interface to Vbridge1
+    [Tags]    exclude
     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    202
 
 Update controller ip valid
     [Documentation]    Update Controller ip to valid
+    [Tags]    exclude
     Update Controller    odc_test    ${CONTROLLER}    valid_IP
 
 Verify the Controller State is up
     [Documentation]    Check Controller status
-    Wait Until Keyword Succeeds    40s    2s    Check Controller Status    odc_test    up
+    [Tags]    exclude
+    Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
 
 Define Portmap for Interface1
     [Documentation]    Map Interface1 to a logical port
-    Wait Until Keyword Succeeds    10s    5s    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1
-    ...    PP-OF:openflow:2-s2-eth1
+    [Tags]    exclude
+    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1     PP-OF:openflow:2-s2-eth1
 
 Define Portmap for Interface2
     [Documentation]    Map Interface2 to a logical port
-    Wait Until Keyword Succeeds    10s    5s    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2
-    ...    PP-OF:openflow:2-s2-eth2
+    [Tags]    exclude
+    Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth2
 
 Test Ping for Configuration1
     [Documentation]    ping between hosts in mininet
+    [Tags]    exclude
     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h2
 
 Delete a VTN Tenant1
     [Documentation]    Delete Vtn Tenant1
+    [Tags]    exclude
     Delete a VTN    Tenant1
 
 Delete a Controller odc1