this is to avoid the 20s timeout we hit in a failed cluster sometimes.
Change-Id: I4e3850a460e107f2e76365fe655dacfae1f5da22
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Get Model Dump
[Arguments] ${controller_ip}
[Documentation] Will output a list of mdsal models using ${data_models} list
- Create Session model_dump_session http://${controller_ip}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
+ # while feature request in bug 7892 is not done, we will quickly timeout and not retry the model dump get
+ # request. This is because when it's done in a failed cluster state, it could take 20s for the reesponse to
+ # to come back as the internal clustering times out waiting for a leader which will not come. When bug 7892
+ # is resolved, we can remove the timeout=1 and max_retries=0, but likely have to modify the request itself to
+ # pass a timeout to restconf
+ Create Session model_dump_session http://${controller_ip}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} timeout=1 max_retries=0
: FOR ${model} IN @{data_models}
\ ${resp}= RequestsLibrary.Get Request model_dump_session restconf/${model}
\ Log ${resp.status_code}
Run Keyword If 2 < ${NUM_OS_SYSTEM} Get DumpFlows And Ovsconfig ${OS_COMPUTE_2_IP}
Get Test Teardown Debugs
- [Arguments] ${test_name}=${TEST_NAME}
- Get OvsDebugInfo
- Get Model Dump ${HA_PROXY_IP}
- Get Karaf Log Events From Test Start ${test_name}
-
-Get Test Teardown Debugs Allow Model Dump Failures
[Arguments] ${test_name}=${TEST_NAME}
Get OvsDebugInfo
Run Keyword And Ignore Error Get Model Dump ${HA_PROXY_IP}
Bring Up ODL1
[Documentation] Bring up ODL1 again
ClusterManagement.Start Single Member 1
- [Teardown] Get Test Teardown Debugs Allow Model Dump Failures
Create Bridge Manually and Verify After Recover
[Documentation] Create bridge with OVS command and verify it gets applied from all instances.
Bring Up ODL2
[Documentation] Bring up ODL2 again
ClusterManagement.Start Single Member 2
- [Teardown] Get Test Teardown Debugs Allow Model Dump Failures
Ping Vm Instance1 In l2_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
- [Teardown] Get Test Teardown Debugs Allow Model Dump Failures
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}
- [Teardown] Get Test Teardown Debugs Allow Model Dump Failures
Delete Vm Instance
[Documentation] Delete Vm instances using instance names.