Bug 1315083

Summary: Can't use the nova cli when passing --os-auth-token and --os-auth-url on the command line
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: python-novaclientAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED WORKSFORME QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: berrange, dasmith, eglynn, jruzicka, kchamart, rdopiera, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-05 20:17:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
script to obtain a keystone token none

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...