← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1518453] [NEW] Could not find default role "_member_" in Keystone

 

Public bug reported:


This exception is obtained  when one is trying to manage members of Projects.

Steps for replicating it in Horizon:

1. Login into Horizon as 'admin'
2. Go to the Identity tab
3. Click on 'Projects' link
4. From the Projects list, click on 'Manage Members' in the 'admin' project row.


Workaround:

1. Create the role _member_
2. Add 'admin' user to '_member_' role

Once I added admin user to this role, it works. I'm not sure if it should be added to documentation or if there's an issue in 
other place.


Exception trace:

Nov 20 20:20:11 clr keystone-wsgi-admin[1754]: GET http://127.0.0.1:35357/v3/roles
Nov 20 20:20:11 clr uwsgi[1730]: 2015-11-20 20:20:11.252 1754 INFO keystone.common.wsgi [req-d35f0fa2-f5fe-463a-bbde-e7a90f1f72e0 - - - - -] GET http://127.0.0.1:35357/v3/roles
Nov 20 20:20:11 clr uwsgi[1730]: [pid: 1754|app: 0|req: 91/324] 127.0.0.1 () {42 vars in 580 bytes} [Fri Nov 20 20:20:11 2015] GET /v3/roles => generated 392 bytes in 10 msecs (HTTP/1.1 200) 4 headers in 158 bytes (1 switches on core 0)
Nov 20 20:20:11 clr nginx[2883]: clr nginx: 127.0.0.1 - - [20/Nov/2015:20:20:11 +0000] "GET /v3/roles HTTP/1.1" 200 392 "-" "python-keystoneclient"
Nov 20 20:20:11 clr uwsgi[3970]: Recoverable error: Could not find default role "_member_" in Keystone
Nov 20 20:20:11 clr uwsgi[3970]: Problem instantiating action class.
Nov 20 20:20:11 clr uwsgi[3970]: Traceback (most recent call last):
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 370, in action
Nov 20 20:20:11 clr uwsgi[3970]: context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/share/httpd/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 208, in __init__
Nov 20 20:20:11 clr uwsgi[3970]: redirect=reverse(INDEX_URL))
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 368, in handle
Nov 20 20:20:11 clr uwsgi[3970]: log_method, log_entry, log_level)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 277, in handle_recoverable
Nov 20 20:20:11 clr uwsgi[3970]: raise Http302(redirect)
Nov 20 20:20:11 clr uwsgi[3970]: Http302
Nov 20 20:20:11 clr uwsgi[3970]: Internal Server Error: /identity/aaa6ed6cc2734ef29ee9b0373beedbdc/update/
Nov 20 20:20:11 clr uwsgi[3970]: Traceback (most recent call last):
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
Nov 20 20:20:11 clr uwsgi[3970]: response = response.render()
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/response.py", line 158, in render
Nov 20 20:20:11 clr uwsgi[3970]: self.content = self.rendered_content
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
Nov 20 20:20:11 clr uwsgi[3970]: content = template.render(context, self._request)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
Nov 20 20:20:11 clr uwsgi[3970]: return self.template.render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 210, in render
Nov 20 20:20:11 clr uwsgi[3970]: return self._render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
Nov 20 20:20:11 clr uwsgi[3970]: return self.nodelist.render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
Nov 20 20:20:11 clr uwsgi[3970]: bit = self.render_node(node, context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
Nov 20 20:20:11 clr uwsgi[3970]: return node.render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 576, in render
Nov 20 20:20:11 clr uwsgi[3970]: return self.nodelist.render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
Nov 20 20:20:11 clr uwsgi[3970]: bit = self.render_node(node, context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
Nov 20 20:20:11 clr uwsgi[3970]: return node.render(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 224, in render
Nov 20 20:20:11 clr uwsgi[3970]: nodelist.append(node.render(context))
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 322, in render
Nov 20 20:20:11 clr uwsgi[3970]: match = condition.eval(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 937, in eval
Nov 20 20:20:11 clr uwsgi[3970]: return self.value.resolve(context, ignore_failures=True)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 648, in resolve
Nov 20 20:20:11 clr uwsgi[3970]: obj = self.var.resolve(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in resolve
Nov 20 20:20:11 clr uwsgi[3970]: value = self._resolve_lookup(context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 849, in _resolve_lookup
Nov 20 20:20:11 clr uwsgi[3970]: current = current()
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 441, in has_required_fields
Nov 20 20:20:11 clr uwsgi[3970]: return any(field.required for field in self.action.fields.values())
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 370, in action
Nov 20 20:20:11 clr uwsgi[3970]: context)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/share/httpd/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 208, in __init__
Nov 20 20:20:11 clr uwsgi[3970]: redirect=reverse(INDEX_URL))
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 368, in handle
Nov 20 20:20:11 clr uwsgi[3970]: log_method, log_entry, log_level)
Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 277, in handle_recoverable
Nov 20 20:20:11 clr uwsgi[3970]: raise Http302(redirect)
Nov 20 20:20:11 clr uwsgi[3970]: Http302

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1518453

Title:
  Could not find default role "_member_" in Keystone

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  
  This exception is obtained  when one is trying to manage members of Projects.

  Steps for replicating it in Horizon:

  1. Login into Horizon as 'admin'
  2. Go to the Identity tab
  3. Click on 'Projects' link
  4. From the Projects list, click on 'Manage Members' in the 'admin' project row.

  
  Workaround:

  1. Create the role _member_
  2. Add 'admin' user to '_member_' role

  Once I added admin user to this role, it works. I'm not sure if it should be added to documentation or if there's an issue in 
  other place.

  
  Exception trace:

  Nov 20 20:20:11 clr keystone-wsgi-admin[1754]: GET http://127.0.0.1:35357/v3/roles
  Nov 20 20:20:11 clr uwsgi[1730]: 2015-11-20 20:20:11.252 1754 INFO keystone.common.wsgi [req-d35f0fa2-f5fe-463a-bbde-e7a90f1f72e0 - - - - -] GET http://127.0.0.1:35357/v3/roles
  Nov 20 20:20:11 clr uwsgi[1730]: [pid: 1754|app: 0|req: 91/324] 127.0.0.1 () {42 vars in 580 bytes} [Fri Nov 20 20:20:11 2015] GET /v3/roles => generated 392 bytes in 10 msecs (HTTP/1.1 200) 4 headers in 158 bytes (1 switches on core 0)
  Nov 20 20:20:11 clr nginx[2883]: clr nginx: 127.0.0.1 - - [20/Nov/2015:20:20:11 +0000] "GET /v3/roles HTTP/1.1" 200 392 "-" "python-keystoneclient"
  Nov 20 20:20:11 clr uwsgi[3970]: Recoverable error: Could not find default role "_member_" in Keystone
  Nov 20 20:20:11 clr uwsgi[3970]: Problem instantiating action class.
  Nov 20 20:20:11 clr uwsgi[3970]: Traceback (most recent call last):
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 370, in action
  Nov 20 20:20:11 clr uwsgi[3970]: context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/share/httpd/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 208, in __init__
  Nov 20 20:20:11 clr uwsgi[3970]: redirect=reverse(INDEX_URL))
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 368, in handle
  Nov 20 20:20:11 clr uwsgi[3970]: log_method, log_entry, log_level)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 277, in handle_recoverable
  Nov 20 20:20:11 clr uwsgi[3970]: raise Http302(redirect)
  Nov 20 20:20:11 clr uwsgi[3970]: Http302
  Nov 20 20:20:11 clr uwsgi[3970]: Internal Server Error: /identity/aaa6ed6cc2734ef29ee9b0373beedbdc/update/
  Nov 20 20:20:11 clr uwsgi[3970]: Traceback (most recent call last):
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
  Nov 20 20:20:11 clr uwsgi[3970]: response = response.render()
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/response.py", line 158, in render
  Nov 20 20:20:11 clr uwsgi[3970]: self.content = self.rendered_content
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
  Nov 20 20:20:11 clr uwsgi[3970]: content = template.render(context, self._request)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
  Nov 20 20:20:11 clr uwsgi[3970]: return self.template.render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 210, in render
  Nov 20 20:20:11 clr uwsgi[3970]: return self._render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
  Nov 20 20:20:11 clr uwsgi[3970]: return self.nodelist.render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
  Nov 20 20:20:11 clr uwsgi[3970]: bit = self.render_node(node, context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
  Nov 20 20:20:11 clr uwsgi[3970]: return node.render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 576, in render
  Nov 20 20:20:11 clr uwsgi[3970]: return self.nodelist.render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
  Nov 20 20:20:11 clr uwsgi[3970]: bit = self.render_node(node, context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
  Nov 20 20:20:11 clr uwsgi[3970]: return node.render(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 224, in render
  Nov 20 20:20:11 clr uwsgi[3970]: nodelist.append(node.render(context))
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 322, in render
  Nov 20 20:20:11 clr uwsgi[3970]: match = condition.eval(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 937, in eval
  Nov 20 20:20:11 clr uwsgi[3970]: return self.value.resolve(context, ignore_failures=True)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 648, in resolve
  Nov 20 20:20:11 clr uwsgi[3970]: obj = self.var.resolve(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in resolve
  Nov 20 20:20:11 clr uwsgi[3970]: value = self._resolve_lookup(context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/django/template/base.py", line 849, in _resolve_lookup
  Nov 20 20:20:11 clr uwsgi[3970]: current = current()
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 441, in has_required_fields
  Nov 20 20:20:11 clr uwsgi[3970]: return any(field.required for field in self.action.fields.values())
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 370, in action
  Nov 20 20:20:11 clr uwsgi[3970]: context)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/share/httpd/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 208, in __init__
  Nov 20 20:20:11 clr uwsgi[3970]: redirect=reverse(INDEX_URL))
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 368, in handle
  Nov 20 20:20:11 clr uwsgi[3970]: log_method, log_entry, log_level)
  Nov 20 20:20:11 clr uwsgi[3970]: File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 277, in handle_recoverable
  Nov 20 20:20:11 clr uwsgi[3970]: raise Http302(redirect)
  Nov 20 20:20:11 clr uwsgi[3970]: Http302

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1518453/+subscriptions


Follow ups