Commit 3e2e144
committed
fix(nas-backup): address Copilot review on PR #13074
* nasbackup.sh: emit INCREMENTAL_FALLBACK= and BITMAP_CREATED= on stdout
(Script.executePipedCommands in LibvirtTakeBackupCommandWrapper reads
stdout only, not stderr — so these markers were never parsed). Fixes
stopped-VM fallback recording and bitmap persistence.
* nasbackup.sh: fix `2>&1 > /dev/null` → `> /dev/null 2>&1` (the original
ordering leaves stderr pointed at the now-redirected stdout, dropping
virsh error details).
* nasbackup.sh: capture qemu-agent thaw response correctly (was being
swallowed by `> /dev/null`).
* nasbackup.sh: usage text now reflects the implemented --parent-paths
(plural, comma-separated) flag instead of misleading --parent-path.
* NASBackupProvider: default nas.backup.incremental.enabled to false so
existing zones keep legacy full-only behavior on upgrade; opt in
per-zone when ready. Description updated to make this explicit.
* NASBackupProvider.composeParentBackupPaths: sort current VM volumes by
deviceId before positional comparison with parent's backed-up volumes,
and verify per-position UUID alignment. If any disk was detached and a
different one attached in its place, return null and force a full
instead of silently rebasing onto the wrong parent file.
* NASBackupChainKeys.TYPE: doc now explicitly notes the lowercase casing
difference from Backup.Status uppercase enum values.
* test_backup_recovery_nas.py: capture original zone-scoped
nas.backup.full.every via Configurations.list at the start of each
incremental test and restore that exact value in finally, instead of
hardcoding 10 (which leaked into shared environments).1 parent 5be1910 commit 3e2e144
4 files changed
Lines changed: 77 additions & 26 deletions
File tree
- plugins/backup/nas/src/main/java/org/apache/cloudstack/backup
- scripts/vm/hypervisor/kvm
- test/integration/smoke
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
Lines changed: 31 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
391 | 393 | | |
392 | 394 | | |
393 | 395 | | |
394 | | - | |
395 | | - | |
396 | | - | |
| 396 | + | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
403 | 413 | | |
404 | | - | |
405 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
406 | 421 | | |
407 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
408 | 428 | | |
409 | 429 | | |
410 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
| |||
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
| 411 | + | |
| 412 | + | |
407 | 413 | | |
408 | | - | |
| 414 | + | |
409 | 415 | | |
410 | 416 | | |
411 | 417 | | |
| |||
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
508 | | - | |
| 514 | + | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
512 | 518 | | |
513 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
514 | 522 | | |
515 | 523 | | |
516 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
284 | 296 | | |
285 | 297 | | |
286 | 298 | | |
| |||
292 | 304 | | |
293 | 305 | | |
294 | 306 | | |
| 307 | + | |
295 | 308 | | |
296 | 309 | | |
297 | 310 | | |
| |||
318 | 331 | | |
319 | 332 | | |
320 | 333 | | |
321 | | - | |
| 334 | + | |
322 | 335 | | |
323 | 336 | | |
324 | 337 | | |
| |||
328 | 341 | | |
329 | 342 | | |
330 | 343 | | |
| 344 | + | |
331 | 345 | | |
332 | 346 | | |
333 | 347 | | |
| |||
365 | 379 | | |
366 | 380 | | |
367 | 381 | | |
368 | | - | |
| 382 | + | |
369 | 383 | | |
370 | 384 | | |
371 | 385 | | |
| |||
376 | 390 | | |
377 | 391 | | |
378 | 392 | | |
| 393 | + | |
379 | 394 | | |
380 | 395 | | |
381 | 396 | | |
| |||
416 | 431 | | |
417 | 432 | | |
418 | 433 | | |
419 | | - | |
| 434 | + | |
420 | 435 | | |
421 | 436 | | |
422 | 437 | | |
| |||
426 | 441 | | |
427 | 442 | | |
428 | 443 | | |
| 444 | + | |
429 | 445 | | |
430 | 446 | | |
431 | 447 | | |
| |||
449 | 465 | | |
450 | 466 | | |
451 | 467 | | |
452 | | - | |
| 468 | + | |
453 | 469 | | |
454 | 470 | | |
455 | 471 | | |
| |||
460 | 476 | | |
461 | 477 | | |
462 | 478 | | |
| 479 | + | |
463 | 480 | | |
464 | 481 | | |
465 | 482 | | |
| |||
482 | 499 | | |
483 | 500 | | |
484 | 501 | | |
485 | | - | |
| 502 | + | |
486 | 503 | | |
0 commit comments