Skip to content

Improve Ironic Horizon out of the box experience #1808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stackhpc/2025.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions etc/kayobe/kolla/config/horizon/_9999-custom-settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SYSTEM_SCOPE_SERVICES = ['ironic']
2 changes: 1 addition & 1 deletion etc/kayobe/kolla/config/ironic/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# GET /nodes/detail
# Intended scope(s): system, project
# Overridden: added role:admin
"baremetal:node:list_all": "role:admin or (role:reader and system_scope:all) or (role:service and system_scope:all) or rule:service_role"
"baremetal:node:list_all": "role:baremetal_node_list_all or (role:reader and system_scope:all) or (role:service and system_scope:all) or rule:service_role"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it mean that regular admin users now won't be able to list all baremetals from cli? - I think that was idea behind this policy override. also baremetal_node_list_all don't exist by default?

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
upgrade:
- |
Users with the admin role can can no longer list all baremetal nodes by
default. This broke horizon as it tries to collect data for any nodes
that it can see. Please add the baremetal_node_list_all role
to any users to want this capability; it is not recommened since
Horizon will remain broken for them.
fixes:
- |
Fixes Horizon Ironic integration which was broken by custom policy.
Loading