Comment 7 for bug 1710713

Revision history for this message
Robert Ellis (bob-ellis42) wrote : Re: [Bug 1710713] Re: cinder list --group_id should be --group-id

Hey Rajat,

FYI, I wrote up a fix for this issue, but at the time the key code
reviewers didn't think it was worth fixing unless grouped with other
interface changes. That is why I dropped fixing it.

Bob

On Tue, Jul 24, 2018 at 5:56 AM Rajat Dhasmana <email address hidden>
wrote:

> Is anyone working on this,
> I would like to take this issue. Thanks
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1710713
>
> Title:
> cinder list --group_id should be --group-id
>
> Status in python-cinderclient:
> In Progress
>
> Bug description:
> cinder list takes a group id argument, but this argument is group_id
> and not group-id. As far as I can see, most options use - and not _.
>
> # cinder help list
> usage: cinder list [--group_id <group_id>] [--all-tenants [<0|1>]]
> [--name <name>] [--status <status>]
>
> # cinder help create
> usage: cinder create [--consisgroup-id <consistencygroup-id>]
> [--group-id <group-id>] [--snapshot-id
> <snapshot-id>]
> [--source-volid <source-volid>]
> [--source-replica <source-replica>]
> [--image-id <image-id>] [--image <image>] [--name
> <name>]
> [--description <description>]
> [--volume-type <volume-type>]
> [--availability-zone <availability-zone>]
> [--metadata [<key=value> [<key=value> ...]]]
> [--hint <key=value>] [--allow-multiattach] [--poll]
> [<size>]
>
> Creates a volume.
>
> Positional arguments:
> <size> Size of volume, in GiBs. (Required unless
> snapshot-id
> /source-volid is specified).
>
> Optional arguments:
> --consisgroup-id <consistencygroup-id>
> ID of a consistency group where the new volume
> belongs
> to. Default=None.
> --group-id <group-id>
> ID of a group where the new volume belongs to.
> Default=None. (Supported by API version 3.13 and
> later)
>
> # cinder help group-snapshot-list
> usage: cinder group-snapshot-list [--all-tenants [<0|1>]] [--status
> <status>]
> [--group-id <group_id>]
> [--filters [<key=value> [<key=value>
> ...]]]
>
> Lists all group snapshots.
>
> Optional arguments:
> --all-tenants [<0|1>]
> Shows details for all tenants. Admin only.
> --status <status> Filters results by a status. Default=None. This
> option
> is deprecated and will be removed in newer
> release.
> Please use '--filters' option which is introduced
> since 3.33 instead.
> --group-id <group_id>
> Filters results by a group ID. Default=None. This
> option is deprecated and will be removed in newer
> release. Please use '--filters' option which is
> introduced since 3.33 instead.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-cinderclient/+bug/1710713/+subscriptions
>