[Return] ${updated_index_list}
Start_Single_Member
- [Arguments] ${member} ${wait_for_sync}=True ${timeout}=300s
+ [Arguments] ${member} ${wait_for_sync}=True ${timeout}=300s ${check_system_status}=False @{service_list}=@{EMPTY}
[Documentation] Convenience keyword that starts the specified member of the cluster.
${index_list} = ClusterManagement__Build_List ${member}
- Start_Members_From_List_Or_All ${index_list} ${wait_for_sync} ${timeout}
+ Start_Members_From_List_Or_All ${index_list} ${wait_for_sync} ${timeout} check_system_status=${check_system_status} service_list=@{service_list}
Start_Members_From_List_Or_All
[Arguments] ${member_index_list}=${EMPTY} ${wait_for_sync}=True ${timeout}=300s ${karaf_home}=${EMPTY} ${export_java_home}=${EMPTY} ${gc_log_dir}=${EMPTY}
+ ... ${check_system_status}=False @{service_list}=@{EMPTY}
[Documentation] If the list is empty, start all cluster members. Otherwise, start members based on present indices.
... If ${wait_for_sync}, wait for cluster sync on listed members.
... Optionally karaf_home can be overriden. Optionally specific JAVA_HOME is used for starting.
Run_Bash_Command_On_List_Or_All command=${command} ${gc_options} member_index_list=${member_index_list}
BuiltIn.Return_From_Keyword_If not ${wait_for_sync}
BuiltIn.Wait_Until_Keyword_Succeeds ${timeout} 10s Check_Cluster_Is_In_Sync member_index_list=${member_index_list}
- # TODO: Do we also want to check Shard Leaders here?
+ BuiltIn.Return_From_Keyword_If not ${check_system_status}
+ CompareStream.Run_Keyword_If_At_Least_Oxygen Wait Until Keyword Succeeds 60 2 ClusterManagement.Check Status of Services @{service_list}
[Teardown] Run_Bash_Command_On_List_Or_All command=netstat -pnatu | grep 2550
Freeze_Single_Member
Resource ../../../libraries/ClusterManagement.robot
Resource ../../../libraries/SetupUtils.robot
Resource ../../../variables/Variables.robot
+Resource ../../../variables/netvirt/Variables.robot
*** Variables ***
${SECURITY_GROUP} cl2_sg
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.
Take Down ODL2
[Documentation] Kill the karaf in Second Controller
- ClusterManagement.Kill Single Member 2
+ ClusterManagement.Kill Single Member member=2 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Create Vm Instances For net_1
[Documentation] Create Vm instances using flavor and image names for a network.
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. Also remove the VM from the
Resource ../../../libraries/ClusterManagement.robot
Resource ../../../libraries/SetupUtils.robot
Resource ../../../variables/Variables.robot
+Resource ../../../variables/netvirt/Variables.robot
*** Variables ***
${SECURITY_GROUP} cl3_sg
Bring Up Leader Of Default Shard
[Documentation] Bring up on cluster leader
- ClusterManagement.Start Single Member ${cluster_leader}
+ ClusterManagement.Start Single Member member=${cluster_leader} check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Add Ssh Allow All Rule
[Documentation] Allow all TCP/UDP/ICMP packets for this suite
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}
Take Down ODL2
[Documentation] Kill the karaf in Second Controller
- ClusterManagement.Kill Single Member 2
+ ClusterManagement.Kill Single Member member=2 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Create Vm Instances For net_2
[Documentation] Create Vm instances using flavor and image names for a network.
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}
Take Down ODL3
[Documentation] Kill the karaf in Third Controller
- ClusterManagement.Kill Single Member 3
+ ClusterManagement.Kill Single Member member=3 check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Create Router router_2
[Documentation] Create Router and Add Interface to the subnets.
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}
Ping Vm Instance1 In net_2 From net_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
Bring Up ODL1 and ODL2
[Documentation] Bring up ODL1 and ODL2 again
- ClusterManagement.Start Members From List Or All ${ODL_1_AND_2_DOWN}
+ ClusterManagement.Start Members From List Or All member_index_list=${ODL_1_AND_2_DOWN} check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Take Down ODL2 and ODL3
[Documentation] Kill the karaf in First and Second Controller
Bring Up ODL2 and ODL3
[Documentation] Bring up ODL2 and ODL3 again.
- ClusterManagement.Start Members From List Or All ${ODL_2_AND_3_DOWN}
+ ClusterManagement.Start Members From List Or All member_index_list=${ODL_2_AND_3_DOWN} check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Take Down All Instances
[Documentation] Stop karaf on all controllers
Bring Up All Instances
[Documentation] Bring up all controllers
- ClusterManagement.Start Members From List Or All
+ ClusterManagement.Start Members From List Or All check_system_status=True service_list=@{NETVIRT_DIAG_SERVICES}
Connectivity Tests From Vm Instance2 In net_2 after recovering all nodes
[Documentation] ssh to the VM instance and test operations.
*** Variables ***
# Exceptions for which we will not create a failure
@{legacy_feature_list} odl-vtn-manager-neutron odl-ovsdb-openstack
+@{NETVIRT_DIAG_SERVICES} OPENFLOW IFM ITM DATASTORE ELAN OVSDB
${CIRROS_stable/ocata} cirros-0.3.4-x86_64-uec
${CIRROS_stable/pike} cirros-0.3.5-x86_64-disk
${CIRROS_stable/queens} cirros-0.3.5-x86_64-disk