Introduce new native backup provider (KNIB)#12758
Open
JoaoJandre wants to merge 2 commits intoapache:mainfrom
Open
Introduce new native backup provider (KNIB)#12758JoaoJandre wants to merge 2 commits intoapache:mainfrom
JoaoJandre wants to merge 2 commits intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12758 +/- ##
============================================
- Coverage 17.93% 17.84% -0.09%
- Complexity 16159 16208 +49
============================================
Files 5939 5991 +52
Lines 533147 537115 +3968
Branches 65237 65588 +351
============================================
+ Hits 95603 95837 +234
- Misses 426803 430509 +3706
- Partials 10741 10769 +28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new native incremental backup provider for KVM. The design document which goes into details of the implementation can be found on https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=406622120.
The validation process which is detailed in the design document will be added to this PR soon.
The file extraction process will be added in a later PR.
This PR adds a few new APIs:
The
createNativeBackupOfferingAPI has the following parameters:namecompressfalsevalidatefalseallowQuickRestorefalseallowExtractFilefalsebackupchainsizecompressionlibraryzstdThe
deleteNativeBackupOfferingAPI has the following parameter:idA native backup offering can only be removed if it is not currently imported.
The
listNativeBackupOfferingsAPI has the following parameters:idcompressvalidateallowQuickRestoreallowExtractFileshowRemovedfalseThe
listBackupCompressionJobshas the following parametersidbackupidhostidexecutingparameter is implicitzoneidtypeStartingorFinalizingexecutingscheduledBy default, lists all offerings that have not been removed.
It also adds parameters to the following APIs:
isolatedparameter was added to thecreateBackupandcreateBackupScheduleAPIsquickRestoreparameter was added to therestoreBackup,restoreVolumeFromBackupAndAttachToVMandcreateVMFromBackupAPIshostIdparameter was added to therestoreBackupandrestoreVolumeFromBackupAndAttachToVMAPIs, which can only be used by root admins and only when quick restore is true.New settings were also added:
backup.chain.sizeknib.timeoutbackup.compression.task.enabledtruebackup.compression.max.concurrent.compressions.per.host5backup.compression.max.job.retries2backup.compression.retry.interval60backup.compression.timeout28800backup.compression.minimum.free.storage1backup.compression.coroutines1backup.compression.rate.limit0Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tests related to disk-only VM snapshots
Basic tests with backup
Using
backup.chain.size=3Interactions with other functionalities
I created a new VM with a root disk and a data disk for the tests below.
Configuration Tests
Compression Tests
Tests performed with an offer that provides compressed backups support
Tests with
restoreVolumeFromBackupAndAttachToVMTests with
restoreBackup