Can a Bosh deployment be aborted when drain script returns non-zero exit code?

Carol Morneau
 

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

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.