bosh icon indicating copy to clipboard operation
bosh copied to clipboard

`bosh -d <deployment-name> releases` shows releases from all deployments and ignores the -d flag

Open APShirley opened this issue 8 years ago • 3 comments

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):

  1. Deploy a director anywhere.
  2. Create 2 deployments deployment1 and deployment2 that use different releases.
  3. Run bosh -d deployment1 releases.
  4. 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

APShirley avatar Aug 22 '18 18:08 APShirley

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.

cf-gitbot avatar Aug 22 '18 18:08 cf-gitbot

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

h4xnoodle avatar Aug 22 '18 18:08 h4xnoodle

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.

dpb587-pivotal avatar Aug 22 '18 20:08 dpb587-pivotal