Skip to content

Comments

Fix ironic instance rebuild with API >=2.93#167

Merged
jovial merged 1 commit intostackhpc/2025.1from
bugfix/2025.1/ironic-rebuild
Feb 20, 2026
Merged

Fix ironic instance rebuild with API >=2.93#167
jovial merged 1 commit intostackhpc/2025.1from
bugfix/2025.1/ironic-rebuild

Conversation

@jovial
Copy link

@jovial jovial commented Feb 19, 2026

When you attempt to rebuild an Ironic instance, using the CLI, it will pick the latest micversion, which triggers sending to the ironic driver:
reimage_boot_volume = true

The ironic driver then raises an exception, saying it is unable to rebuild a volume backed instance. This happens even when the instance is not volume backed, and rebuild would be fine.

This patch ensures we only raise the "can't rebuild" exception when the instance is volume backed.

Closes-Bug: #2127017

Change-Id: Ibb8e83a1d36506df34a324ca0da9e2f129a38cfa

(cherry picked from commit 2c8f0e0b3a9c42260e86b894c4e5344a16b187bc)

Copy link
Member

@dougszumski dougszumski left a comment

Choose a reason for hiding this comment

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

thanks!

@priteau priteau closed this Feb 20, 2026
@priteau priteau reopened this Feb 20, 2026
@priteau priteau requested a review from a team as a code owner February 20, 2026 09:22
@jovial jovial closed this Feb 20, 2026
@jovial jovial reopened this Feb 20, 2026
When you attempt to rebuild an Ironic instance, using the CLI,
it will pick the latest micversion, which triggers sending
to the ironic driver:
reimage_boot_volume = true

The ironic driver then raises an exception, saying it is unable
to rebuild a volume backed instance. This happens even when
the instance is not volume backed, and rebuild would be fine.

This patch ensures we only raise the "can't rebuild"
exception when the instance is volume backed.

Closes-Bug: #2127017

Change-Id: Ibb8e83a1d36506df34a324ca0da9e2f129a38cfa
Signed-off-by: John Garbutt <john.garbutt@stackhpc.com>
Assisted-By: Github Copilot Free
(cherry picked from commit 2c8f0e0b3a9c42260e86b894c4e5344a16b187bc)
@dougszumski dougszumski force-pushed the bugfix/2025.1/ironic-rebuild branch from 50314cf to d81aad7 Compare February 20, 2026 09:25
@jovial jovial enabled auto-merge February 20, 2026 09:33
@jovial jovial merged commit 4bfcb8e into stackhpc/2025.1 Feb 20, 2026
4 checks passed
@jovial jovial deleted the bugfix/2025.1/ironic-rebuild branch February 20, 2026 09:38
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.

4 participants