Files
ironic-python-agent/releasenotes/notes/hwmgr-init-8f9c9b6205f64966.yaml
Dmitry Tantsur 9426df9ab3 Split hardware manager initialize out of evaluate_hardware_support
The current code in GenericHardware.evaluate_hardware_support ends up
using hardware manager calls, which then use partly initialized hardware
manager list and can even cause a recursion.

This change introduces a new optional call initialize() which is
guaranteed to run:
1) After all hardware managers have been evaluated
2) After the hardware manager cache is populated
3) In the order of the support level of hardware managers

Change-Id: I068d3d73483c161062aa3b48f3154a2d99941382
Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
2025-07-04 16:30:40 +02:00

10 lines
471 B
YAML

---
deprecations:
- |
Some hardware managers include complex initialization logic in their
``evaluate_hardware_support`` calls. This behavior could cause various
issues (such as recursion on attempt to invoke other hardware manager
calls) and is now deprecated. Please move the initialization login into
the new ``initialize`` call, which is guaranteed to run after all
hardware managers have been cached and only for enabled hardware managers.