Commit 8550e5a
committed
KVM NAS backup: resume VM and exit on backup failure
Fix three bugs in nasbackup.sh that caused VMs to remain paused
indefinitely when backup jobs fail (e.g. storage full):
1. Add exit after cleanup on Failed backup job status to prevent
infinite polling loop in backup_running_vm()
2. Add exit after cleanup on qemu-img convert failure in
backup_stopped_vm() to stop processing subsequent disks
3. Add VM state check and virsh resume to cleanup() so paused VMs
are automatically resumed after backup failure
Fixes apache#128211 parent e93ae1a commit 8550e5a
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
224 | 240 | | |
225 | 241 | | |
226 | 242 | | |
| |||
0 commit comments