Cannot execute cinder commands with OS_TOKEN

Bug #2061349 reported by Tatsuya Hayashino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
In Progress
Undecided
Unassigned

Bug Description

When executing cinder commands using OS_TOKEN, the following error occurs:

> $ cinder list
> ERROR: argument --os-token: conflicting option string: --os-token

This issue seems to occur for the following reason:

Here, os_token is added to the parser by keystoneauth1.loading.
https://github.com/openstack/python-cinderclient/blob/4e71afe6ab4fdca495e42c01fd6ec7e4f2136b36/cinderclient/shell.py#L255-L256

Furthermore, these lines attempt to add os_token in cinderclient as well, causing an argparse error.
https://github.com/openstack/python-cinderclient/blob/4e71afe6ab4fdca495e42c01fd6ec7e4f2136b36/cinderclient/shell.py#L334-L337

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)
Changed in python-cinderclient:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.