Skip to content

Fix ironic instance rebuild with API >=2.93 - cherry-pick from 2025.1#212

Open
Alex-Welsh wants to merge 1 commit into
stackhpc/2026.1from
2026.1-cherries
Open

Fix ironic instance rebuild with API >=2.93 - cherry-pick from 2025.1#212
Alex-Welsh wants to merge 1 commit into
stackhpc/2026.1from
2026.1-cherries

Conversation

@Alex-Welsh

Copy link
Copy Markdown
Member

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

Assisted-By: Github Copilot Free
(cherry picked from commit 2c8f0e0b3a9c42260e86b894c4e5344a16b187bc) (cherry picked from commit d81aad7)

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)
(cherry picked from commit d81aad7)
@Alex-Welsh Alex-Welsh requested a review from a team as a code owner June 12, 2026 14:22
@Alex-Welsh

Copy link
Copy Markdown
Member Author

DNM until we decide if we want to use zuul

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.

2 participants