Skip to content

Backport Make AutoDetectDeploy act more consistently - #28

Draft
TBExtent wants to merge 1 commit into
stackhpc/2025.1from
backport-autodetect-clean-fix
Draft

TBExtent wants to merge 1 commit into
stackhpc/2025.1from
backport-autodetect-clean-fix

Conversation

@TBExtent

@TBExtent TBExtent commented Oct 9, 2026

Copy link
Copy Markdown

When autodetect deploy interface is asked to perform a step-based-flow, such as cleaning, before it's performed a successful deployment, it hasn't delegated to a functional deploy interface yet and silently noops the action.

Instead, we now explicitly ensure we are switching to a concrete interface before running step-based-flows, and also we have enhanced the autodetect deploy interface to fail loudly if any of it's non-existent concrete method implementations are called.

Additionally, we explicitly unset original_deploy_interface when an API call comes in explicitly changing deploy interface. Before, we would silently switch back to the original deploy interface (likely autodetect) if a node had it's deploy interface changed via API while ACTIVE (and some other states, too).

Backport of 1000074: Make AutoDetectDeploy act more consistently | https://review.opendev.org/c/openstack/ironic/+/1000074

@TBExtent

TBExtent commented Oct 9, 2026

Copy link
Copy Markdown
Author

Needs proper testing to make sure this is backported correctly

When autodetect deploy interface is asked to perform a step-based-flow,
such as cleaning, before it's performed a successful deployment, it
hasn't delegated to a functional deploy interface yet and silently noops
the action.

Instead, we now explicitly ensure we are switching to a concrete
interface before running step-based-flows, and also we have enhanced the
autodetect deploy interface to fail loudly if any of it's non-existent
concrete method implementations are called.

Additionally, we explicitly unset original_deploy_interface when an API
call comes in explicitly changing deploy interface. Before, we would
silently switch back to the original deploy interface (likely
autodetect) if a node had it's deploy interface changed via API while
ACTIVE (and some other states, too).

Assisted-by: Claude Code (Opus)
Closes-Bug: #2163017
Change-Id: Id96e9e04ca9024e3e1b82139de66439c62e7a861
Signed-off-by: Jed Preist <jed@stackhpc.com>
Signed-off-by: Jay Faulkner <jay@jvf.cc>
(cherry picked from commit 3df2664)
@TBExtent
TBExtent force-pushed the backport-autodetect-clean-fix branch from 78fa8bd to 6b50a66 Compare October 9, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant