Re: Can a Bosh deployment be aborted when drain script returns non-zero exit code?
Dmitriy Kalinin
currently bosh only relies on stdout of the script to determine success. given this historic behaviour its a bit hard to migrate to exit code paradigm (similar to our other scripts) without unintentionally breaking a few drain scripts. its definitely something we want to get done at some point though.
Sent from my iPhone
toggle quoted message
Show quoted text
Sent from my iPhone
On Oct 19, 2017, at 8:33 AM, Carol Morneau <carol.morneau(a)solace.com> wrote:
Hi Everybody,
Can someone explain what bosh does when a drain-script returns a non-zero exit code? From my testing, it appears to carry-on with the deployment no matter what the exit code is.
Here's a drain-script I'd hope would abort a deployment:
#!/bin/bash
echo 0
exit 1
I would like to be able to abort a deployment when the drain-script returns a non-zero code. Is there a way I could achieve that?
Thanks for you help,
Carol