← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1421999] Re: Create & Edit Project is Broken

 

*** This bug is a duplicate of bug 1421616 ***
    https://bugs.launchpad.net/bugs/1421616

** This bug has been marked a duplicate of bug 1421616
   Cannot create project using Horizon - Could not find default role "_member_"

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

Title:
  Create & Edit Project is Broken

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Goto Identity -> Projects and the click on "create Project". It gives
  an error "An Error occured. Please try again later.".

  This is happening because code is not able to find the "_member_" user
  in the keystone.

  [Sat Feb 14 18:18:54.223434 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
  [Sat Feb 14 18:18:54.223572 2015] [:error] [pid 8690:tid 140651877480192]     return node.render(context)
  [Sat Feb 14 18:18:54.223697 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 196, in render
  [Sat Feb 14 18:18:54.223837 2015] [:error] [pid 8690:tid 140651877480192]     nodelist.append(node.render(context))
  [Sat Feb 14 18:18:54.224005 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 298, in render
  [Sat Feb 14 18:18:54.224158 2015] [:error] [pid 8690:tid 140651877480192]     match = condition.eval(context)
  [Sat Feb 14 18:18:54.224330 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 867, in eval
  [Sat Feb 14 18:18:54.224517 2015] [:error] [pid 8690:tid 140651877480192]     return self.value.resolve(context, ignore_failures=True)
  [Sat Feb 14 18:18:54.225774 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
  [Sat Feb 14 18:18:54.226659 2015] [:error] [pid 8690:tid 140651877480192]     obj = self.var.resolve(context)
  [Sat Feb 14 18:18:54.226931 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
  [Sat Feb 14 18:18:54.227073 2015] [:error] [pid 8690:tid 140651877480192]     value = self._resolve_lookup(context)
  [Sat Feb 14 18:18:54.227153 2015] [:error] [pid 8690:tid 140651877480192]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
  [Sat Feb 14 18:18:54.227271 2015] [:error] [pid 8690:tid 140651877480192]     current = current()
  [Sat Feb 14 18:18:54.227349 2015] [:error] [pid 8690:tid 140651877480192]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/workflows/base.py", line 439, in has_required_fields
  [Sat Feb 14 18:18:54.227433 2015] [:error] [pid 8690:tid 140651877480192]     return any(field.required for field in self.action.fields.values())
  [Sat Feb 14 18:18:54.227516 2015] [:error] [pid 8690:tid 140651877480192]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/workflows/base.py", line 368, in action
  [Sat Feb 14 18:18:54.227599 2015] [:error] [pid 8690:tid 140651877480192]     context)
  [Sat Feb 14 18:18:54.227673 2015] [:error] [pid 8690:tid 140651877480192]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 204, in __init__
  [Sat Feb 14 18:18:54.227758 2015] [:error] [pid 8690:tid 140651877480192]     redirect=reverse(INDEX_URL))
  [Sat Feb 14 18:18:54.227848 2015] [:error] [pid 8690:tid 140651877480192]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py", line 364, in handle
  [Sat Feb 14 18:18:54.227978 2015] [:error] [pid 8690:tid 140651877480192]     six.reraise(exc_type, exc_value, exc_traceback)
  [Sat Feb 14 18:18:54.228069 2015] [:error] [pid 8690:tid 140651877480192]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 200, in __init__
  [Sat Feb 14 18:18:54.228155 2015] [:error] [pid 8690:tid 140651877480192]     raise exceptions.NotFound(msg)
  [Sat Feb 14 18:18:54.228230 2015] [:error] [pid 8690:tid 140651877480192] NotFound: Could not find default role "_member_" in Keystone

  
  And when i queried Keystone api for the role-list, the _member_  was missing.

  stack@ubuntu:~/devstack$ keystone role-list
  +----------------------------------+-----------------+
  |                id                |       name      |
  +----------------------------------+-----------------+
  | beb167e318c24a91a03b35ceb727691b |      Member     |
  | 0e89a82771144ac4997dfd5a3348bbb6 |  ResellerAdmin  |
  | 8b4e346d05164038a17b750c6ea8e5ed |      admin      |
  | 2f096118163e4914bb91fd63283accd5 |   anotherrole   |
  | 20126fa129714525b759b82c0ee1b558 | heat_stack_user |
  | 19b00836ac9d441b811baaafa06b49be |     service     |
  +----------------------------------+-----------------+

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


References