yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35773
[Bug 1478143] [NEW] project param on user_create now default_project
Public bug reported:
with keystone v3 when creating a user, the argument 'project' is no
longer honored as it's been replaced by 'default_project'. Without
changing the name parameter, this error is encountered:
create takes at most 1 positional argument (2 given)
Internal Server Error: /identity/users/create/
Traceback (most recent call last):
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 52, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/views.py", line 138, in dispatch
return super(CreateView, self).dispatch(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 173, in post
return self.form_valid(form)
File "/home/david-lyle/horizon/horizon/forms/views.py", line 173, in form_valid
exceptions.handle(self.request)
File "/home/david-lyle/horizon/horizon/exceptions.py", line 361, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/home/david-lyle/horizon/horizon/forms/views.py", line 170, in form_valid
handled = form.handle(self.request, form.cleaned_data)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/decorators/debug.py", line 36, in sensitive_variables_wrapper
return func(*func_args, **func_kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/forms.py", line 182, in handle
exceptions.handle(request, _('Unable to create user.'))
File "/home/david-lyle/horizon/horizon/exceptions.py", line 361, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/forms.py", line 157, in handle
domain=domain.id)
File "/home/david-lyle/horizon/openstack_dashboard/api/keystone.py", line 324, in user_create
domain=domain, description=description)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/v3/users.py", line 75, in create
log=not bool(password))
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 151, in _create
return self._post(url, body, response_key, return_raw, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 165, in _post
resp, body = self.client.post(url, body=body, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 206, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
return self.session.request(url, method, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/session.py", line 397, in request
raise exceptions.from_response(resp, method, url)
BadRequest: Invalid input for field 'default_project_id'. The value is ''. (HTTP 400) (Request-ID: req-6e6fc9f8-e723-4ad3-8d1f-c0c8b1a38218)
[24/Jul/2015 20:05:09] "POST /identity/users/create/ HTTP/1.1" 500 46297
** Affects: horizon
Importance: High
Assignee: David Lyle (david-lyle)
Status: In Progress
** Tags: keystone
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1478143
Title:
project param on user_create now default_project
Status in OpenStack Dashboard (Horizon):
In Progress
Bug description:
with keystone v3 when creating a user, the argument 'project' is no
longer honored as it's been replaced by 'default_project'. Without
changing the name parameter, this error is encountered:
create takes at most 1 positional argument (2 given)
Internal Server Error: /identity/users/create/
Traceback (most recent call last):
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 52, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/views.py", line 138, in dispatch
return super(CreateView, self).dispatch(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 173, in post
return self.form_valid(form)
File "/home/david-lyle/horizon/horizon/forms/views.py", line 173, in form_valid
exceptions.handle(self.request)
File "/home/david-lyle/horizon/horizon/exceptions.py", line 361, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/home/david-lyle/horizon/horizon/forms/views.py", line 170, in form_valid
handled = form.handle(self.request, form.cleaned_data)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/django/views/decorators/debug.py", line 36, in sensitive_variables_wrapper
return func(*func_args, **func_kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/forms.py", line 182, in handle
exceptions.handle(request, _('Unable to create user.'))
File "/home/david-lyle/horizon/horizon/exceptions.py", line 361, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/identity/users/forms.py", line 157, in handle
domain=domain.id)
File "/home/david-lyle/horizon/openstack_dashboard/api/keystone.py", line 324, in user_create
domain=domain, description=description)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/v3/users.py", line 75, in create
log=not bool(password))
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 151, in _create
return self._post(url, body, response_key, return_raw, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 165, in _post
resp, body = self.client.post(url, body=body, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 206, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
return self.session.request(url, method, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/session.py", line 397, in request
raise exceptions.from_response(resp, method, url)
BadRequest: Invalid input for field 'default_project_id'. The value is ''. (HTTP 400) (Request-ID: req-6e6fc9f8-e723-4ad3-8d1f-c0c8b1a38218)
[24/Jul/2015 20:05:09] "POST /identity/users/create/ HTTP/1.1" 500 46297
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1478143/+subscriptions
Follow ups