Error message expected, not traceback, when invoking user-role-add with missing parameter. tenant_id required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Medium
|
Dolph Mathews |
Bug Description
Steps to reproduce:
> (as admin user and tenant...)
> user-role-add --user [user_id] --role [role_id]
Expected:
Error message about tenant_id being required.
Actual:
Unable to communicate with identity service: Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
return app(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = request.
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = request.
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = request.
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = request.
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
resp = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/opt/stack/
result = method(context, **params)
File "/opt/stack/
raise Exception('User roles not supported: tenant_id required')
Exception: User roles not supported: tenant_id required
. (HTTP 500)
tags: | added: python-keystoneclient |
summary: |
- User roles not supported: tenant_id required + Error message expected, not traceback, when invoking user-role-add with + missing parameter. tenant_id required |
Changed in keystone: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: essex-rc-potential |
Changed in keystone: | |
assignee: | nobody → Dolph Mathews (dolph) |
milestone: | none → essex-rc1 |
status: | Confirmed → In Progress |
tags: | removed: essex-rc-potential |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-rc1 → 2012.1 |
affects: | keystone → python-keystoneclient |
Changed in python-keystoneclient: | |
milestone: | 2012.1 → none |
A user feeling his way through this command will probably hit this, if he is plugging in one arg at a time so as to get feedback from the cli.