Resource ../../../libraries/ClusterOvsdb.robot
Resource ../../../libraries/ClusterManagement.robot
Resource ../../../libraries/SetupUtils.robot
-Variables ../../../variables/Variables.py
+Resource ../../../variables/Variables.robot
+Resource ../../../variables/netvirt/Variables.robot
*** Variables ***
${SECURITY_GROUP} cl2_sg
*** Test Cases ***
Create All Controller Sessions
- [Documentation] Create sessions for all three contorllers.
+ [Documentation] Create sessions for all three controllers.
ClusterManagement.ClusterManagement Setup
Create Network net_1
Bring Up ODL1
[Documentation] Bring up ODL1 again
- ClusterManagement.Start Single Member 1
+ ClusterManagement.Start Single Member member=1 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Create Bridge Manually and Verify After Recover
[Documentation] Create bridge with OVS command and verify it gets applied from all instances.
Create Vm Instances For net_1
[Documentation] Create Vm instances using flavor and image names for a network.
- OpenStackOperations.Create Vm Instances @{NETWORKS}[0] ${NET_1_VMS} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[0] @{NET_1_VMS}[0] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[0] @{NET_1_VMS}[1] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[0] @{NET_1_VMS}[2] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP}
Create Vm Instances For net_2
[Documentation] Create Vm instances using flavor and image names for a network.
- OpenStackOperations.Create Vm Instances @{NETWORKS}[1] ${NET_2_VMS} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[1] @{NET_2_VMS}[0] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[1] @{NET_2_VMS}[1] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP}
+ OpenStackOperations.Create Vm Instance On Compute Node @{NETWORKS}[1] @{NET_2_VMS}[2] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP}
Check Vm Instances Have Ip Address
@{NET_1_VM_IPS} ${NET_1_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_1_VMS}
Bring Up ODL2
[Documentation] Bring up ODL2 again
- ClusterManagement.Start Single Member 2
+ ClusterManagement.Start Single Member member=2 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Ping Vm Instance1 In net_1
[Documentation] Check reachability of vm instances by pinging to them.
Bring Up ODL3
[Documentation] Bring up ODL3 again
- ClusterManagement.Start Single Member 3
+ ClusterManagement.Start Single Member member=3 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Take Down ODL1 and ODL2
[Documentation] Kill the karaf in First and Second Controller
Bring Up ODL1 and ODL2
[Documentation] Bring up ODL1 and ODL2 again.
- ClusterManagement.Start Members From List Or All ${CLUSTER_DOWN_LIST}
+ ClusterManagement.Start Members From List Or All member_index_list=${CLUSTER_DOWN_LIST} check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Delete Vm Instance
- [Documentation] Delete Vm instances using instance names.
+ [Documentation] Delete Vm instances using instance names. Also remove the VM from the
+ ... list so that later cleanup will not try to delete it.
OpenStackOperations.Delete Vm Instance @{NET_1_VMS}[0]
+ Remove From List ${NET_1_VMS} 0
No Ping For Deleted Vm
[Documentation] Check non reachability of deleted vm instances by pinging to them.