Bug 1315083 - Can't use the nova cli when passing --os-auth-token and --os-auth-url on the command line
Summary: Can't use the nova cli when passing --os-auth-token and --os-auth-url on the ...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Radomir Dopieralski
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-06 13:55 UTC by Udi Kalifon
Modified: 2020-12-21 19:38 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-05 20:17:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
script to obtain a keystone token (1.21 KB, text/plain)
2016-03-06 13:56 UTC, Udi Kalifon
no flags Details

Description Udi Kalifon 2016-03-06 13:55:59 UTC
Description of problem:
If you have an already issued token and want to use it for a "nova list" command, for example, you need to run the following command **without** sourcing stackrc or overcloudrc:

nova --os-auth-token $OS_TOKEN --os-auth-url $OS_AUTH_URL list

If you try, then you get this error:
ERROR (TypeError): __init__() got an unexpected keyword argument 'username'


Version-Release number of selected component (if applicable):
python-novaclient-2.23.0-2.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Don't source any rc file
2. Get a keystone token (a sample bash script to get a token is attached to the bug - you just need to edit the first few lines in it according to your environment)
3. Run the following command (replace the params with the real values): nova --os-auth-token $OS_TOKEN --os-auth-url $OS_AUTH_URL list


Actual results:
ERROR (TypeError): __init__() got an unexpected keyword argument 'username'


Expected results:
The nova command should support using an already-issued token

Comment 2 Udi Kalifon 2016-03-06 13:56:51 UTC
Created attachment 1133500 [details]
script to obtain a keystone token

Comment 3 Radomir Dopieralski 2016-03-29 13:11:41 UTC
Sorry for the long delay, but I tried several different installations, and I wasn't able to reproduce this error. I'm using the latest osp8 build from 2016-03-29.1. But that comes with python-novaclient-3.1.0-2.el7ost.noarch...


Note You need to log in before you can comment on or make changes to this bug.