From: Alfredo Deza Date: Thu, 28 Jan 2016 16:01:44 +0000 (-0500) Subject: pass an option to delay the deletion of the node X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69652c176e91688ae6a2620f582b180ba90374e5;p=ceph-build.git pass an option to delay the deletion of the node Signed-off-by: Alfredo Deza --- diff --git a/ceph-ansible-pull-requests/build/teardown b/ceph-ansible-pull-requests/build/teardown index aa44f44c8..aa20b4cac 100644 --- a/ceph-ansible-pull-requests/build/teardown +++ b/ceph-ansible-pull-requests/build/teardown @@ -1,4 +1,6 @@ #!/bin/bash NODE=$(echo $NODE_NAME | awk -F'__' '{print $2}') -curl -k -X POST https://mita.ceph.com/api/nodes/${NODE}/delete/ +# The "delay" means that mita will wait these many seconds before proceeding +# with the deletion of the node +curl -k -d '{"delay": 5}' -X POST https://mita.ceph.com/api/nodes/${NODE}/delete/