Commit 8b2b353
authored
fix(vmop): prevent Maintenance mode from getting stuck during restore (#2144)
* fix(vmop): prevent Maintenance mode from getting stuck during restore
Return reconcile.Result instead of nil to properly complete the reconciliation
loop when snapshot steps exit early (exit maintenance step, waiting disk ready step).
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
* fix(vmop): set maintenance condition to false instead of early return
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
---------
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>1 parent d0a067b commit 8b2b353
2 files changed
Lines changed: 3 additions & 1 deletion
File tree
- images/virtualization-artifact/pkg/controller/vmop/snapshot/internal/step
images/virtualization-artifact/pkg/controller/vmop/snapshot/internal/step/exit_maintenance_step.go
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments