ironic/releasenotes/notes/fix-system-scope-triggered-clean-22ada9b920c08365.yaml
Julia Kreger c3074524da Fix system scoped manageable node network failure
Before this change, if a user requested a node to be cleaned
or "managed" with cleaning enabled when the user is in the
system scope, Ironic would attempt to user's token to
make the request to Neutron.

This, unfortunately, does not work, as the neutron client explicitly
requires a project ID to make the request to Neutron. As a result,
Ironic now falls back to it's internal credential configuration to make
the forward request, which matches the behavior if a node has been
unprovisioned and the cleaning has been started automatically.

Closes-Bug: 2048416
Change-Id: Id91ec6afcf89642fb3069918e768016b8b657a31
2024-01-08 10:22:04 -08:00

13 lines
577 B
YAML

---
fixes:
- |
Fixes an issue where a System Scoped user could not trigger a node into
a ``manageable`` state with cleaning enabled, as the Neutron client would
attempt to utilize their user's token to create the Neutron port for the
cleaning operation, as designed. This is because with requests made in the
``system`` scope, there is no associated project and the request fails.
Ironic now checks if the request has been made with a ``system`` scope,
and if so it utilizes the internal credential configuration to communicate
with Neutron.