Skip to content

Fork Sync: Update from parent repository - #99

Merged
kaovilai merged 1 commit into
kaovilai:masterfrom
openshift:master
Mar 27, 2023
Merged

kaovilai merged 1 commit into
kaovilai:masterfrom
openshift:master

Conversation

@kaovilai

Copy link
Copy Markdown
Owner

No description provided.

@kaovilai
kaovilai merged commit 73d09e1 into kaovilai:master Mar 27, 2023
kaovilai added a commit that referenced this pull request Aug 5, 2026
Closes the #99 "Restore from KDM CBT backup" gap, now unblocked by the
overridden kubevirt-datamover-controller image (migtools/kubevirt-datamover-
controller#124, DataDownload controller, issue #73 phase 3).

Per docs/design/kubevirt-datamover.md and the plugin's own README, restore
just needs a normal Velero Restore -- the VirtualMachine RestoreItemAction
plugin creates the DataDownload CR automatically from backup-recorded
annotations, and separately discards the restored VMB/VMBT so restore
doesn't re-trigger a backup. No manual CR driving needed, mirroring how
backup already works. Verifies success via the existing generic
lib.CreateRestoreFromBackup/IsRestoreDone/IsRestoreCompletedSuccessfully
helpers plus a new lib.GetDataDownloadForRestore (mirrors
GetDataUploadForBackup) confirming the DataDownload itself reached
status.phase=Completed -- proving the datamover path actually engaged,
not just that the restore completed some other way.

Extracted runKubevirtDMBackup (shared create+wait+verify-backup helper)
out of runSequenceBackup to avoid duplicating that logic a second time
for the restore test.

Also scaffolds two ginkgo.PIt (real, compiling, not run) for gaps
explicitly still open per kubevirt-datamover-controller#73's phased
plan: multi-disk restore (phase 4, not yet hardened -- new
cirros-test-multipvc-cbt.yaml template ready for when it lands) and
restore from an incremental (not full) backup (phase 5, not yet
e2e-validated upstream even though the chain-rebase logic may already
support it internally).

Not yet run against a real cluster.

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
kaovilai added a commit that referenced this pull request Aug 5, 2026
Closes the #99 "Restore from KDM CBT backup" gap, now unblocked by the
overridden kubevirt-datamover-controller image (migtools/kubevirt-datamover-
controller#124, DataDownload controller, issue #73 phase 3).

Per docs/design/kubevirt-datamover.md and the plugin's own README, restore
just needs a normal Velero Restore -- the VirtualMachine RestoreItemAction
plugin creates the DataDownload CR automatically from backup-recorded
annotations, and separately discards the restored VMB/VMBT so restore
doesn't re-trigger a backup. No manual CR driving needed, mirroring how
backup already works. Verifies success via the existing generic
lib.CreateRestoreFromBackup/IsRestoreDone/IsRestoreCompletedSuccessfully
helpers plus a new lib.GetDataDownloadForRestore (mirrors
GetDataUploadForBackup) confirming the DataDownload itself reached
status.phase=Completed -- proving the datamover path actually engaged,
not just that the restore completed some other way.

Extracted runKubevirtDMBackup (shared create+wait+verify-backup helper)
out of runSequenceBackup to avoid duplicating that logic a second time
for the restore test.

Also scaffolds two ginkgo.PIt (real, compiling, not run) for gaps
explicitly still open per kubevirt-datamover-controller#73's phased
plan: multi-disk restore (phase 4, not yet hardened -- new
cirros-test-multipvc-cbt.yaml template ready for when it lands) and
restore from an incremental (not full) backup (phase 5, not yet
e2e-validated upstream even though the chain-rebase logic may already
support it internally).

Not yet run against a real cluster.

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
kaovilai added a commit that referenced this pull request Aug 5, 2026
Closes the #99 "Restore from KDM CBT backup" gap, now unblocked by the
overridden kubevirt-datamover-controller image (migtools/kubevirt-datamover-
controller#124, DataDownload controller, issue #73 phase 3).

Per docs/design/kubevirt-datamover.md and the plugin's own README, restore
just needs a normal Velero Restore -- the VirtualMachine RestoreItemAction
plugin creates the DataDownload CR automatically from backup-recorded
annotations, and separately discards the restored VMB/VMBT so restore
doesn't re-trigger a backup. No manual CR driving needed, mirroring how
backup already works. Verifies success via the existing generic
lib.CreateRestoreFromBackup/IsRestoreDone/IsRestoreCompletedSuccessfully
helpers plus a new lib.GetDataDownloadForRestore (mirrors
GetDataUploadForBackup) confirming the DataDownload itself reached
status.phase=Completed -- proving the datamover path actually engaged,
not just that the restore completed some other way.

Extracted runKubevirtDMBackup (shared create+wait+verify-backup helper)
out of runSequenceBackup to avoid duplicating that logic a second time
for the restore test.

Also scaffolds two ginkgo.PIt (real, compiling, not run) for gaps
explicitly still open per kubevirt-datamover-controller#73's phased
plan: multi-disk restore (phase 4, not yet hardened -- new
cirros-test-multipvc-cbt.yaml template ready for when it lands) and
restore from an incremental (not full) backup (phase 5, not yet
e2e-validated upstream even though the chain-rebase logic may already
support it internally).

Not yet run against a real cluster.

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants