bosh icon indicating copy to clipboard operation
bosh copied to clipboard

[Feature Request/Bug?] bosh recreate -n <non-existent-instance-group> should give the user an error instead of doing nothing.

Open Kaixiang opened this issue 9 years ago • 5 comments

Hi:

I try to use bosh recreate -n diego-cell in a script to recreate all the diego cells, it runs without an error (exit 0) but doing nothing.

It turns out the Ops manager is using diego_cell as instance group name instead of diego-cell like cf-deployment, and bosh just ignore it since instance group diego-cell doesn't exist.

I think it would make the user experience better if bosh gives an error like instance group diego-cell doesn't exist and exit with an error, instead of just running successfully and returns 0, so that way the user can know something goes wrong and fix the error in their script.

Thoughts?

Regards Kai

Kaixiang avatar Oct 23 '17 21:10 Kaixiang

Agreed for improved UX. If a hard error is undesired, could emit a warning as part of the task output. Something along the lines of "No instances matched the requested filter".

dpb587-pivotal avatar Oct 24 '17 22:10 dpb587-pivotal

Closing and reopening for story

mrosecrance avatar Jun 26 '20 23:06 mrosecrance

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/173543374

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Jun 26 '20 23:06 cf-gitbot

This issue was marked as Stale because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale label or comment below.

bosh-admin-bot avatar Jul 27 '21 15:07 bosh-admin-bot

This issue was closed because it has been labeled Stale for 7 days without subsequent activity. Feel free to re-open this issue at any time by commenting below.

bosh-admin-bot avatar Aug 03 '21 15:08 bosh-admin-bot