From: Jamo Luhrsen Date: Tue, 24 Mar 2020 23:42:59 +0000 (-0700) Subject: Increase connection wait time to 5m X-Git-Tag: pre-potassium~230 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=c77570559ab763e168180594f7fcbfa4736969d1;hp=21690a4d26c4f3ef419b384b07bb8e55993f3757;p=integration%2Ftest.git Increase connection wait time to 5m Sodium takes longer for that initial schema compilation and now that we are using a large juniper based schema, 2m is not long enough. In the worst case scenario where it would never connect, then 5m is the max as the first device would fail and the rest of the test will bail. Signed-off-by: Jamo Luhrsen Change-Id: I1e57bd7301b3c5f44d267489a1f8ce1c5e64531f Signed-off-by: Jamo Luhrsen --- diff --git a/csit/suites/netconf/scale/max_devices.robot b/csit/suites/netconf/scale/max_devices.robot index e9cdca111d..1abaf35381 100644 --- a/csit/suites/netconf/scale/max_devices.robot +++ b/csit/suites/netconf/scale/max_devices.robot @@ -32,6 +32,7 @@ ${DEVICE_TYPE} full-uri-device ${BASE_PORT} 17830 ${NUM_WORKERS} 10 ${TIMEOUT_FACTOR} 2 +${MIN_CONNECT_TIMEOUT} 300 ${DEVICES_RESULT_FILE} devices.csv ${INSTALL_TESTTOOL} True ${TESTTOOL_EXECUTABLE} ${EMPTY} @@ -50,6 +51,7 @@ Find Max Netconf Devices Run Keyword And Ignore Error CheckJVMResource.Get JVM Memory FOR ${devices} IN RANGE ${start} ${stop+1} ${increment} ${timeout} = BuiltIn.Evaluate ${devices}*${TIMEOUT_FACTOR} + ${timeout} = Set Variable If ${timeout} > ${MIN_CONNECT_TIMEOUT} ${timeout} ${MIN_CONNECT_TIMEOUT} Log To Console Starting Iteration with ${devices} devices Run Keyword If "${INSTALL_TESTTOOL}"=="True" NetconfKeywords.Install_And_Start_Testtool debug=false schemas=${schema_dir} device-count=${devices} ... ELSE NetconfKeywords.Start_Testtool ${TESTTOOL_EXECUTABLE} debug=false schemas=${schema_dir} device-count=${devices} @@ -124,7 +126,7 @@ Wait_Connected [Arguments] ${current_name} ${log_response}=True [Documentation] Operation for waiting until the device is connected. KarafKeywords.Log_Message_To_Controller_Karaf Waiting for device ${current_name} to connect - NetconfKeywords.Wait_Device_Connected ${current_name} period=0.5s timeout=120s log_response=${log_response} + NetconfKeywords.Wait_Device_Connected ${current_name} period=0.5s timeout=300s log_response=${log_response} KarafKeywords.Log_Message_To_Controller_Karaf Device ${current_name} connected Read_Python_Tool_Operation_Result