Skip to content

Commit f5ce385

Browse files
authored
Merge pull request #1369 from stackhpc/ironic-allow-admins-to-list-bms
Allow admins to list all baremetal nodes
2 parents fc5dc49 + d49856b commit f5ce385

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Retrieve multiple Node records
2+
# GET /nodes
3+
# GET /nodes/detail
4+
# Intended scope(s): system, project
5+
# Overridden: added role:admin
6+
"baremetal:node:list_all": "role:admin or (role:reader and system_scope:all) or (role:service and system_scope:all) or rule:service_role"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
features:
3+
- |
4+
Added a custom policy to Ironic that allows users with the `admin` role to
5+
list all baremetal nodes. This is required at sites where baremetal
6+
provisioning targets a specific node, as we need to look up the node's uuid
7+
to pass as the hypervisor hostname.

0 commit comments

Comments
 (0)