From f620e8a9379e8d926d4e66861adfefe334426e3c Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Mon, 15 Apr 2019 13:05:01 -0400 Subject: Add wait for plugin upload Issue-ID: DCAEGEN2-1436 Change-Id: Icb781ebf5320034b884a0d7357b4dcac5775e3f9 Signed-off-by: Jack Lucas --- k8s-bootstrap-container/bootstrap.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'k8s-bootstrap-container/bootstrap.sh') diff --git a/k8s-bootstrap-container/bootstrap.sh b/k8s-bootstrap-container/bootstrap.sh index 257775d..838e1e0 100755 --- a/k8s-bootstrap-container/bootstrap.sh +++ b/k8s-bootstrap-container/bootstrap.sh @@ -186,6 +186,16 @@ do install_plugin ${wagon} done +# In some oversubscribed cloud environments, we have +# observed that even though the plugin installations appear +# to have completed, there are background installation tasks +# that might still be running. So we check for running system workflows +while cm_hasany "executions?is_system_workflow=true&status=pending&status=started&status=queued&status=scheduled" +do + echo "Waiting for running system workflows to complete" + sleep 15 +done + # After this point, failures should not stop the script or block later commands trap - ERR set +e -- cgit 1.2.3-korg