From: Jamo Luhrsen Date: Fri, 16 Nov 2018 06:40:35 +0000 (-0800) Subject: Wrap checks after deletes in a WUKS X-Git-Tag: pre-potassium~465 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=a5855e7099fa438598154f8ac2102247a2f8ce8d Wrap checks after deletes in a WUKS Example here shows that a delete was done but the uuid still showed up in the config store. In the example below, you can see the openstack CLI to delete the l2gw connection completed at timestamp 00:39. Looking in the 3 karaf logs (it's a cluster job) you can see the delete made it by 00:41 or 00:42 depending on which log you check. So, polling for up to 5 seconds should give a little time for that to propagate. example: https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/builder-copy-sandbox-logs/508/jamo-netvirt-csit-hwvtep-3node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-fluorine/14/robot-plugin/log_full.html.gz#s1-s1-s1-t20-k1-k4 Change-Id: I4e09db3a03a4851df14d47b5328abe7eba834052 Signed-off-by: Jamo Luhrsen --- diff --git a/csit/libraries/L2GatewayOperations.robot b/csit/libraries/L2GatewayOperations.robot index 5c01710e8b..ed9bcc2c61 100644 --- a/csit/libraries/L2GatewayOperations.robot +++ b/csit/libraries/L2GatewayOperations.robot @@ -92,7 +92,7 @@ Delete L2Gateway ${output}= Exec Command ${OS_CNTL_CONN_ID} ${L2GW_DELETE} ${gw_name} Log ${output} @{list_to_check}= Create List ${gw_name} - Utils.Check For Elements Not At URI ${L2GW_LIST_REST_URL} ${list_to_check} session + BuiltIn.Wait Until Keyword Succeeds 5s 1s Utils.Check For Elements Not At URI ${L2GW_LIST_REST_URL} ${list_to_check} session Create Verify L2Gateway Connection [Arguments] ${gw_name} ${net_name} @@ -122,9 +122,9 @@ Delete L2Gateway Connection [Documentation] Delete the L2 Gateway connection existing for Gateway ${gw_name} received in argument (Using Neutron CLI). ${l2gw_conn_id}= OpenStackOperations.Get L2gw Connection Id ${gw_name} ${output}= Exec Command ${OS_CNTL_CONN_ID} ${L2GW_CONN_DELETE} ${l2gw_conn_id} - @{list_to_check}= Create List ${l2gw_conn_id} - Utils.Check For Elements Not At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session Log ${output} + @{list_to_check}= Create List ${l2gw_conn_id} + BuiltIn.Wait Until Keyword Succeeds 5s 1s Utils.Check For Elements Not At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session Update Port For Hwvtep [Arguments] ${port_name}