bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Improve error handling for "bosh errands"

Open sklevenz opened this issue 11 years ago • 5 comments

In case of a deployment did not run successfully the deployment manifest is not uploaded correctly. While all other bosh command work as expected the command "bosh errand" prints out "HTTP: 500".

In our use case a CF deployment fails sometimes (because of statsd which expects to connect to riemann which is temporarily not available). A Jenkins job which runs smoke tests as errand in parallel results in a mysterious HTTP 500.

sklevenz avatar Dec 01 '15 15:12 sklevenz

We are planning to save the manifest regardless of the successful deploy or not in future; however, I'm not sure how you are able to run errand and a deploy in parallel since there is an exclusive lock on a deployment.

cppforlife avatar Dec 03 '15 01:12 cppforlife

+1 for saving the manifest always

"Parallel" is not correct. The Jenkin job runs independently and is time triggered. If a deployment runs in parallel then of course it is blocked by the lock. But after a failed deployment the run errand reports HTTP 500.

sklevenz avatar Dec 03 '15 08:12 sklevenz

What behavior would you expect given that deployment was not successfully deployed? running old versions of errand?

cppforlife avatar Dec 03 '15 18:12 cppforlife

The errand can fail to run but should report a more meaningful error message.

I was thinking about to add a flag like run-force but honestly I don't have a use case for that. If the root cause for a non running errand is a failed deployment then the deployment needs to be fixed to get the errand run.

My proposal is just to improve the error message.

sklevenz avatar Dec 04 '15 08:12 sklevenz

The bosh team has done significant work on the errands implementation since this issue was opened. I don't believe it should still be an issue. If it is, please reopen this github issue.

mfine30 avatar Aug 07 '18 19:08 mfine30