Commit bdbeb34
Cleanup old resize instances dir before resize
If there is a failed resize that also failed the cleanup
process performed by _cleanup_remote_migration() the retry
of the resize will fail because it cannot rename the current
instances directory to _resize.
This renames the _cleanup_failed_migration() that does the
same logic we want to _cleanup_failed_instance_base() and
uses it for both migration and resize cleanup of directory.
It then simply calls _cleanup_failed_instances_base() with
the resize dir path before trying a resize.
Closes-Bug: 1960230
Change-Id: I7412b16be310632da59a6139df9f0913281b5d77
(cherry picked from commit 9111b99)
(cherry picked from commit 31179f6)1 parent 33fa10f commit bdbeb34
File tree
3 files changed
+21
-7
lines changed- nova
- tests/unit/virt/libvirt
- virt/libvirt
- releasenotes/notes
3 files changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21471 | 21471 | | |
21472 | 21472 | | |
21473 | 21473 | | |
| 21474 | + | |
| 21475 | + | |
21474 | 21476 | | |
21475 | 21477 | | |
21476 | 21478 | | |
| |||
21487 | 21489 | | |
21488 | 21490 | | |
21489 | 21491 | | |
21490 | | - | |
| 21492 | + | |
21491 | 21493 | | |
21492 | 21494 | | |
21493 | 21495 | | |
| |||
21502 | 21504 | | |
21503 | 21505 | | |
21504 | 21506 | | |
| 21507 | + | |
| 21508 | + | |
21505 | 21509 | | |
21506 | 21510 | | |
21507 | 21511 | | |
| |||
21512 | 21516 | | |
21513 | 21517 | | |
21514 | 21518 | | |
| 21519 | + | |
21515 | 21520 | | |
21516 | 21521 | | |
21517 | 21522 | | |
| |||
22441 | 22446 | | |
22442 | 22447 | | |
22443 | 22448 | | |
22444 | | - | |
22445 | | - | |
| 22449 | + | |
| 22450 | + | |
22446 | 22451 | | |
22447 | 22452 | | |
22448 | 22453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10851 | 10851 | | |
10852 | 10852 | | |
10853 | 10853 | | |
| 10854 | + | |
| 10855 | + | |
| 10856 | + | |
10854 | 10857 | | |
10855 | 10858 | | |
10856 | 10859 | | |
| |||
11074 | 11077 | | |
11075 | 11078 | | |
11076 | 11079 | | |
11077 | | - | |
11078 | | - | |
11079 | | - | |
| 11080 | + | |
| 11081 | + | |
| 11082 | + | |
11080 | 11083 | | |
11081 | 11084 | | |
11082 | 11085 | | |
| |||
11132 | 11135 | | |
11133 | 11136 | | |
11134 | 11137 | | |
11135 | | - | |
| 11138 | + | |
11136 | 11139 | | |
11137 | 11140 | | |
11138 | 11141 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments