Use vm instance names for Show Debugs
[integration/test.git] / csit / suites / openstack / clustering / 02_l3_tests.robot
index c8b8fb693739c5f7beb49dfe0e868498c5d5e128..88c9835d9f5d517cfd80963a32eb147712d65042 100644 (file)
@@ -2,7 +2,9 @@
 Documentation     Test suite to check connectivity in L3 using routers.
 Suite Setup       Devstack Suite Setup Tests    source_pwd=yes
 Suite Teardown    Close All Connections
-Test Setup        Log Testcase Start To Controller Karaf
+Test Teardown     Run Keywords    Show Debugs    ${NET_1_VM_INSTANCES}
+...               AND    Show Debugs    ${NET_2_VM_INSTANCES}
+...               AND    Get OvsDebugInfo
 Library           SSHLibrary
 Library           OperatingSystem
 Library           RequestsLibrary
@@ -48,8 +50,7 @@ Take Down ODL1
 
 Create Vm Instances For l3_net_1
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
-    OpenStackOperations.Create Vm Instances    l3_net_1    ${NET_1_VM_INSTANCES}
-    [Teardown]    OpenStackOperations.Show Debugs    ${NET_1_VM_INSTANCES}
+    OpenStackOperations.Create Vm Instances    l3_net_1    ${NET_1_VM_INSTANCES}     sg=csit
 
 Bring Up ODL1
     [Documentation]    Bring up ODL1 again
@@ -61,8 +62,7 @@ Take Down ODL2
 
 Create Vm Instances For l3_net_2
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
-    OpenStackOperations.Create Vm Instances    l3_net_2    ${NET_2_VM_INSTANCES}
-    [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
+    OpenStackOperations.Create Vm Instances    l3_net_2    ${NET_2_VM_INSTANCES}     sg=csit
 
 Bring Up ODL2
     [Documentation]    Bring up ODL2 again
@@ -72,9 +72,13 @@ Take Down ODL3
     [Documentation]    Kill the karaf in Third Controller
     ClusterManagement.Kill Single Member    3
 
-Create Routers
-    [Documentation]    Create Router and Add Interface to the subnets.
+Create Router router_2
+    [Documentation]    Create Router and Add Interface to the subnets. this fails sometimes.
     OpenStackOperations.Create Router    router_2
+    [Teardown]    Report_Failure_Due_To_Bug     6117
+
+Create Router router_3
+    [Documentation]    Create Router and Add Interface to the subnets.
     OpenStackOperations.Create Router    router_3
 
 Add Interfaces To Router
@@ -94,26 +98,32 @@ Bring Up ODL3
 
 Ping Vm Instance1 In l3_net_2 From l3_net_1
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_1    @{NET_2_VM_IPS}[0]
 
 Ping Vm Instance2 In l3_net_2 From l3_net_1
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_1    @{NET_2_VM_IPS}[1]
 
 Ping Vm Instance3 In l3_net_2 From l3_net_1
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_1    @{NET_2_VM_IPS}[2]
 
 Ping Vm Instance1 In l3_net_1 From l3_net_2
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_2    @{NET_1_VM_IPS}[0]
 
 Ping Vm Instance2 In l3_net_1 From l3_net_2
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_2    @{NET_1_VM_IPS}[1]
 
 Ping Vm Instance3 In l3_net_1 From l3_net_2
     [Documentation]    Check reachability of vm instances by pinging to them after creating routers.
+    Get OvsDebugInfo
     OpenStackOperations.Ping Vm From DHCP Namespace    l3_net_2    @{NET_1_VM_IPS}[2]
 
 Take Down ODL1 and ODL2
@@ -126,6 +136,7 @@ Connectivity Tests From Vm Instance1 In l3_net_1
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]    @{NET_2_VM_IPS}[1]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l3_net_1
@@ -134,6 +145,7 @@ Connectivity Tests From Vm Instance2 In l3_net_1
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l3_net_1
@@ -142,6 +154,7 @@ Connectivity Tests From Vm Instance3 In l3_net_1
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Bring Up ODL1 and ODL2
@@ -158,6 +171,7 @@ Connectivity Tests From Vm Instance1 In l3_net_2
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l3_net_2
@@ -166,6 +180,7 @@ Connectivity Tests From Vm Instance2 In l3_net_2
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l3_net_2
@@ -174,6 +189,7 @@ Connectivity Tests From Vm Instance3 In l3_net_2
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
+    Get OvsDebugInfo
     OpenStackOperations.Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Bring Up ODL2 and ODL3