heat service list cannot be loaded if a project is not 'admin'
Bug #1624834 reported by
Akihiro Motoki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heat-dashboard |
New
|
Medium
|
Unassigned |
Bug Description
To load heat service list, a project should be 'admin'. If a project other than 'admin' is used, even when a user has 'admin' role, heat service list cannot be retrieved.
'info' panel in horizon Admin dashboard tries to load the orchestration service list when a user has 'admin' role. As a result, a user will get 'Unable to get Orchestration service list.'.
In DevStack environment, to reproduce this issue,
login as 'admin' user, select 'demo' project or 'alt_demo' project, and visit 'System Information' of 'Admin' dashboard.
(If 'admin' project is selected, the error message is not shown.)
Changed in horizon: | |
assignee: | nobody → zhangdetong (zhangdetong) |
Changed in horizon: | |
assignee: | zhangdetong (zhangdetong) → nobody |
tags: | removed: newton-rc-potential |
tags: | added: heat |
To post a comment you must log in.
The last policy.json in the heat repository is defined as follows:
"context_ is_admin" : "role:admin and is_admin_ project: True", is_admin" ,
"service:index": "rule:context_
This problem cannot be solved simply by copying policy.json from heat project.
is_admin_project attribute is defined by oslo_context in most project. 5c199bf1c389a9e 440a634bc6 in oslo_context repo).
(commit d3af1d06b4046c2
However, horizon (openstack_auth) has a different implementation.
"is_admin_project" support needs to be added.