`bosh -d <deployment-name> releases` shows releases from all deployments and ignores the -d flag
Describe the bug
When I run bosh -d <deployment-name> releases I expect to get the releases being used by the deployment specified in the flag. Instead I see all the releases for all the deployments.
To Reproduce Steps to reproduce the behavior (example):
- Deploy a director anywhere.
- Create 2 deployments
deployment1anddeployment2that use different releases. - Run
bosh -d deployment1 releases. - Observe that all of the releases are displayed.
Expected behavior I expect to get the releases being used by the deployment specified in the flag.
Versions (please complete the following information):
- Infrastructure: bosh-lite
- BOSH version 263.12.0
- BOSH CLI version 5.1.2
- Stemcell version ubuntu-trusty/3586.36
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/159968440
The labels on this github issue will be updated when the story is started.
Hi @APShirley
The command bosh releases does not need the deployment in order to list all releases. The command's intention is to show you all releases bosh knows about, which could be applicable to one or more deployments (or none at all).
Reference for more information: Bosh Director API: https://bosh.io/docs/director-api-v1/#list-releases Bosh CLI: https://bosh.io/docs/cli-v2/#release-mgmt
This is a bit more UX-related. As @h4xnoodle mentions, releases is a general director command, not deployment-specific (despite the CLI having the --deployment flag for all commands... not all commands actually use it). I suppose the releases help message could be more explicit about that, if you think that would help?
In terms of suggesting a workaround... you might be interested in the bosh deployment command. It provides a releases (and stemcells) column for the specific deployment you're looking at. Something like bosh -d deployment1 deployment --column='Release(s)' might be functionally equivalent for you.