-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Linstor backup snaphots #8067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linstor backup snaphots #8067
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8067 +/- ##
============================================
- Coverage 28.33% 28.20% -0.14%
+ Complexity 29966 29614 -352
============================================
Files 5181 5186 +5
Lines 365434 365752 +318
Branches 53449 53491 +42
============================================
- Hits 103550 103143 -407
- Misses 247552 248420 +868
+ Partials 14332 14189 -143
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 412 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks mostly good. licenses are needed!.
...storage/volume/linstor/src/main/java/com/cloud/api/storage/LinstorBackupSnapshotCommand.java
Show resolved
Hide resolved
...e/volume/linstor/src/main/java/com/cloud/api/storage/LinstorRevertBackupSnapshotCommand.java
Show resolved
Hide resolved
...main/java/com/cloud/hypervisor/kvm/resource/wrapper/LinstorBackupSnapshotCommandWrapper.java
Show resolved
Hide resolved
...main/java/com/cloud/hypervisor/kvm/resource/wrapper/LinstorBackupSnapshotCommandWrapper.java
Show resolved
Hide resolved
...ava/com/cloud/hypervisor/kvm/resource/wrapper/LinstorRevertBackupSnapshotCommandWrapper.java
Show resolved
Hide resolved
...ava/com/cloud/hypervisor/kvm/resource/wrapper/LinstorRevertBackupSnapshotCommandWrapper.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java
Show resolved
Hide resolved
.../src/main/java/org/apache/cloudstack/storage/datastore/util/LinstorConfigurationManager.java
Show resolved
Hide resolved
8c28e64 to
a99293d
Compare
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7339 |
|
@DaanHoogland I have another small feature, that depends on this merged. |
your choice @rp- , if it is reasonably risk free, I'd add it. else you could wait. |
|
I have added the commit, thanks |
...n/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java
Show resolved
Hide resolved
3429caa to
2b809cb
Compare
|
@DaanHoogland done, thanks for the review |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7355 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-7976) |
|
usually I test on ubuntu. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
51d914e to
6f21ce7
Compare
|
if you can't provide packages, could you check if |
@rp- sorry I could get time to upload packages publicly. |
|
@shwstppr where are the dependencies for agent should than probably have a dependency to the |
|
@rp- Adding dependency in |
@rp- , sounds like you need to add it in the cloud.spec files. but I already see a line there. Maybe something else is needed? for the non acs parts of linstore? |
|
@rp- like Daan has advised, you could configure mvn/pom.xml rule to exclude the specific dependency you don't it to shade but ensure it copies the dependency in the lib directory (in the debian and rpm/spec build config file). |
This makes it easier to apply patches, if the linstor library needs to be updated outside of cloudstack releases.
Create the template image resource before the host gets the copy command. This allowes to tag(set property) in linstor to which template this resource belongs to and we can maybe in future reduce the linstor managing code in the storagepoolAdaptor class.
6f21ce7 to
ec5ab15
Compare
|
@shwstppr I think I got it right now |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7672 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-8271)
|
|
Tests look good now. One failure is unrelated. GH failures are codecov related. Thanks @rp- for fixing. Merging this. |
This PR adds an config option for the Linstor primary storage driver, that allows you to automatically backup volume snapshots to the secondary storage. Additionally it will not mangle the need java-linstor dependency into the client.jar, but instead just copy the java-linstor.jar into lib. Config option is called: lin.backup.snapshots and is default false The scope of this change should be limited, as it only touches the Linstor driver and a part of copyAsync was implemented with 2 new Linstor specific commands.
Description
This PR adds an config option for the Linstor primary storage driver, that allows you to automatically backup
volume snapshots to the secondary storage.
Additionally it will not mangle the need
java-linstordependency into the client.jar, but instead just copythe
java-linstor.jarintolib.Config option is called:
lin.backup.snapshotsand is defaultfalseThe scope of this change should be limited, as it only touches the Linstor driver and a part of
copyAsyncwas implemented with 2 new Linstor specific commands.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
Tested on 2 different Linstor clusters, one running LVM the other ZFS.
Additionally send this PR to a PoC tester, who requested this feature.
How did you try to break this feature and the system with this change?