More heplful error message for the default role
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Julie Pichon | ||
Folsom |
Fix Released
|
Undecided
|
Julie Pichon |
Bug Description
Horizon requires a default keystone role to be defined in the settings. Depending on the installation guide they follow, users can easily end up with no "Member" group defined (the current default) and not be aware of the issue except for a few admin functions not working.
When the default group doesn't exist and an admin user tries to e.g. edit a project, the message on the web UI will read:
"Error: An error occurred. Please try again."
And in the logs: "AttributeError: 'NoneType' object has no attribute 'id'", e.g.
[Wed Jan 16 01:15:29 2013] [error] extra_context = {"form": self.action,
[Wed Jan 16 01:15:29 2013] [error] File "/opt/stack/
[Wed Jan 16 01:15:29 2013] [error] context)
[Wed Jan 16 01:15:29 2013] [error] File "/opt/stack/
[Wed Jan 16 01:15:29 2013] [error] redirect=
[Wed Jan 16 01:15:29 2013] [error] File "/opt/stack/
[Wed Jan 16 01:15:29 2013] [error] default_role = api.keystone.
[Wed Jan 16 01:15:29 2013] [error] AttributeError: 'NoneType' object has no attribute 'id'
(see also bug #1084119).
Horizon should provide a more specific and helpful error message, such as "Could not find default role %s in Keystone" in the logs and ideally on the UI as well.
Steps to reproduce:
1. Change the OPENSTACK_
2. Restart the webserver
3. As an admin, go to the Admin Project tabs and click on Modify users
Changed in horizon: | |
assignee: | nobody → Julie Pichon (jpichon) |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | grizzly-3 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/21647
Review: https:/