Commit 50314cf
Fix ironic instance rebuild with API >=2.93
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)1 parent b4fde79 commit 50314cf
2 files changed
Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
| 2279 | + | |
| 2280 | + | |
2280 | 2281 | | |
2281 | 2282 | | |
2282 | 2283 | | |
| |||
2300 | 2301 | | |
2301 | 2302 | | |
2302 | 2303 | | |
2303 | | - | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2304 | 2307 | | |
2305 | 2308 | | |
2306 | 2309 | | |
| |||
2339 | 2342 | | |
2340 | 2343 | | |
2341 | 2344 | | |
2342 | | - | |
| 2345 | + | |
2343 | 2346 | | |
2344 | 2347 | | |
2345 | 2348 | | |
2346 | 2349 | | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
2347 | 2364 | | |
2348 | 2365 | | |
2349 | 2366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
411 | 416 | | |
412 | 417 | | |
413 | 418 | | |
414 | 419 | | |
415 | | - | |
416 | | - | |
417 | | - | |
| 420 | + | |
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
| |||
1739 | 1742 | | |
1740 | 1743 | | |
1741 | 1744 | | |
1742 | | - | |
| 1745 | + | |
| 1746 | + | |
1743 | 1747 | | |
1744 | 1748 | | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1748 | 1754 | | |
1749 | 1755 | | |
1750 | 1756 | | |
| |||
0 commit comments