Don't make calls to Keystone for authN if insufficient args are present
Bug #1355838 reported by
Ajaya Agrawal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Low
|
Dean Troyer |
Bug Description
Almost all OSC commands will try to authN with Keystone first.
If they succeed or fail, i.e.: `openstack user list` (succeeds) or `openstack role add` and `openstack server create` (fails, insufficient args)
Alternatively, when using old clients, `keystone user-role-add` or `nova boot` it errors out right away, rather than trying to authN with Keystone.
If we can do some basic argument checking before the command, it would definitely lower the amount of incoming requests to Keystone.
Changed in python-openstackclient: | |
milestone: | none → m6 |
Changed in python-openstackclient: | |
assignee: | nobody → wanghong (w-wanghong) |
Changed in python-openstackclient: | |
assignee: | wanghong (w-wanghong) → nobody |
Changed in python-openstackclient: | |
assignee: | nobody → Dean Troyer (dtroyer) |
Changed in python-openstackclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
hmm, not sure what the problem is, can you give some more info, it's working as expected for me:
$ openstack role add table,value} ] [-c COLUMN]
[- -max-width <integer>] [--prefix PREFIX] --project
<project> --user <user>
<role>
usage: openstack role add [-h] [-f {shell,
openstack role add: error: too few arguments