*** Settings ***
Documentation Test suite to check connectivity in L3 using routers.
Suite Setup OpenStackOperations.OpenStack Suite Setup
-Suite Teardown Close All Connections
+Suite Teardown OpenStackOperations.OpenStack Suite Teardown
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown OpenStackOperations.Get Test Teardown Debugs
Library SSHLibrary
Create Networks
[Documentation] Create Network with neutron request.
- : FOR ${NetworkElement} IN @{NETWORKS}
- \ OpenStackOperations.Create Network ${NetworkElement}
+ FOR ${NetworkElement} IN @{NETWORKS}
+ OpenStackOperations.Create Network ${NetworkElement}
+ END
Create Subnets For net_1
[Documentation] Create Sub Nets for the Networks with neutron request.
Add Interfaces To Router
[Documentation] Add Interfaces
- : FOR ${interface} IN @{SUBNETS}
- \ OpenStackOperations.Add Router Interface @{ROUTERS}[2] ${interface}
+ FOR ${interface} IN @{SUBNETS}
+ OpenStackOperations.Add Router Interface @{ROUTERS}[2] ${interface}
+ END
Verify Created Routers
[Documentation] Check created routers using northbound rest calls
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
OpenStackOperations.Ping Vm From DHCP Namespace @{NETWORKS}[1] @{NET_1_L3_VM_IPS}[2]
+Connectivity Tests From Vm Instance1 In net_1 In Healthy Cluster
+ [Documentation] ssh to the VM instance and test operations.
+ ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
+ OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[0] ${dst_list}
+ [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
+
+Connectivity Tests From Vm Instance2 In net_1 In Healthy Cluster
+ [Documentation] ssh to the VM instance and test operations.
+ ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
+ OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[1] ${dst_list}
+ [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
+
+Connectivity Tests From Vm Instance3 In net_1 In Healthy Cluster
+ [Documentation] ssh to the VM instance and test operations.
+ ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
+ OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[2] ${dst_list}
+ [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
+
Take Down ODL1 and ODL2
[Documentation] Stop the karaf in First and Second Controller
ClusterManagement.Stop Single Member 1 msg=up: ODL1, ODL2, ODL3, down=none
ClusterManagement.Stop Single Member 2 msg=up: ODL2, ODL3, down=ODL1
[Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
-Connectivity Tests From Vm Instance1 In net_1
+Connectivity Tests From Vm Instance1 In net_1 With Two ODLs Down
[Documentation] ssh to the VM instance and test operations.
${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[0] ${dst_list}
[Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
-Connectivity Tests From Vm Instance2 In net_1
+Connectivity Tests From Vm Instance2 In net_1 With Two ODLs Down
[Documentation] ssh to the VM instance and test operations.
${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[1] ${dst_list}
[Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False
-Connectivity Tests From Vm Instance3 In net_1
+Connectivity Tests From Vm Instance3 In net_1 With Two ODLs Down
[Documentation] ssh to the VM instance and test operations.
${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS}
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[2] ${dst_list}
Delete Vm Instances In net_1
[Documentation] Delete Vm instances using instance names in net_1.
- : FOR ${vm} IN @{NET_1_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
+ FOR ${vm} IN @{NET_1_VMS}
+ OpenStackOperations.Delete Vm Instance ${vm}
+ END
Delete Vm Instances In net_2
[Documentation] Delete Vm instances using instance names in net_2.
- : FOR ${vm} IN @{NET_2_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
+ FOR ${vm} IN @{NET_2_VMS}
+ OpenStackOperations.Delete Vm Instance ${vm}
+ END
Delete Router Interfaces
[Documentation] Remove Interface to the subnets.
- : FOR ${interface} IN @{SUBNETS}
- \ OpenStackOperations.Remove Interface @{ROUTERS}[2] ${interface}
+ FOR ${interface} IN @{SUBNETS}
+ OpenStackOperations.Remove Interface @{ROUTERS}[2] ${interface}
+ END
Delete Routers
[Documentation] Delete Router and Interface to the subnets.
Delete Networks
[Documentation] Delete Networks with neutron request.
- : FOR ${network} IN @{NETWORKS}
- \ OpenStackOperations.Delete Network ${network}
+ FOR ${network} IN @{NETWORKS}
+ OpenStackOperations.Delete Network ${network}
+ END
Delete Security Group
[Documentation] Delete security groups with neutron request