-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Linstor: encryption support #10126
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: encryption support #10126
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10126 +/- ##
============================================
- Coverage 15.14% 15.13% -0.01%
- Complexity 11283 11290 +7
============================================
Files 5408 5408
Lines 473823 474321 +498
Branches 57824 57848 +24
============================================
+ Hits 71764 71804 +40
- Misses 394037 394486 +449
- Partials 8022 8031 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
02eacd0 to
f6bdea0
Compare
|
@blueorangutan package |
|
@rp- 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11857 |
|
[SF] Trillian test result (tid-11960)
|
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
f6bdea0 to
7830856
Compare
|
@slavkap, can you please have a quick look at this? It does not seem too exiting from a generic storage point of view, but I'd like to be sure. |
...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
slavkap
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.
code LGTM, but I cannot test it in the coming days
This introduces a new encryption mode, instead of a simple bool. Now also storage driver can just provide encrypted volumes to CloudStack.
7830856 to
ce3c93c
Compare
|
@blueorangutan package |
|
@DaanHoogland 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12239 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12214)
|
|
I am not sure how we can test this further . @rg9975 @slavkap , can you spend a regression on your storage solutions? |
|
@DaanHoogland, if it's not late I'll try to test it on Monday |
@slavkap it is never too late of course, but for 19.2 we would need another RC. We can of course decide to have that if you storage people think your fixes are needed. cc @rp- @rg9975 |
|
@slavkap , you have tested? |
|
sorry, @DaanHoogland, still not. I'm experiencing some problems with the setup and trying to find out what's happening |
slavkap
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.
@DaanHoogland, all looks good with the main StorPool functionality
|
@rg9975 you want to test as well? |
rg9975
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.
Approved
This introduces a new encryption mode, instead of a simple bool. Now also storage driver can just provide encrypted volumes to CloudStack.
Description
This PR main purpose is adding encryption support for Linstor, as Linstor handles the encryption layer (LUKS)
to allow DRBD running on top of it, we needed a new mode for encryption in CloudStack.
So that CloudStack knows the volume is encrypted, but the encryption/deencryption is handled by the primary storage.
So qemu only gets the final block device path and opening/closing is handled by Linstor.
Additionally there are a few commits for cleanups and a few unittests for Linstor code.
For this to work at least Linstor 1.30.x is needed, as the new cloning code is needed.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Linstor cluster with encrypted disk offering.
How did you try to break this feature and the system with this change?