Storage plugin support to check if volume on datastore requires access for migration#8655
Conversation
…/revoke volume access if requires
|
@blueorangutan package |
|
@sureshanaparti 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. |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
code LGTM. As I can see this is currently enabled only for powerflex storage
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #8655 +/- ##
============================================
- Coverage 13.16% 13.16% -0.01%
Complexity 9203 9203
============================================
Files 2724 2724
Lines 258120 258128 +8
Branches 40231 40233 +2
============================================
Hits 33989 33989
- Misses 219823 219831 +8
Partials 4308 4308 ☔ View full report in Codecov by Sentry. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8661 |
|
general question @sureshanaparti : the word Access used in this PR seems to me to mean Authorisation (or Authorization depending on your continent). Does this make sense? I think we should rename it to avoid confusion. Access is always needed and it seems that we are checking if we need access to a store instead of checking if we need authentication/authorisation to get access. ??? |
@DaanHoogland It's about making the volume/disk available in the host, and can be accessed at certain path. In managed storages eg. powerflex, disk is not available directly unless it is mapped to a particular host/client through their proprietary API/cmd). Will keep it the same for now, as there are other methods with similar names (we can do a name refactor later, in a separate PR), Is that Ok? |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
JoaoJandre
left a comment
There was a problem hiding this comment.
CLGTM, didn't test it as I don't have an environment with Powerflex.
…in PrimaryDataStoreDriver
|
@blueorangutan package |
|
@sureshanaparti 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 8682 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9235)
|
|
[SF] Trillian test result (tid-9251)
|
|
@blueorangutan package |
|
@sureshanaparti 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 8721 |
|
@blueorangutan test |
|
@rohityadavcloud a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9312)
|
I've rerun the tests and it passed |
|
cc @DaanHoogland @sureshanaparti could you help fwd-merge 4.18-4.19 and 4.19-> main branch, thanks. |
…s for migration (apache#8655) * Check if volume on datastore requires access for migration, and grant/revoke volume access if requires * Updated default implementation for requiresAccessForMigration method in PrimaryDataStoreDriver
* 4.18: Storage plugin support to check if volume on datastore requires access for migration (apache#8655) CKS: fix /opt/bin/deploy-cloudstack-secret in CKS control nodes (apache#8697)
Description
This PR adds storage plugin support to check if volume on datastore requires access for migration, and grant/revoke volume access if requires.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?
Tested VM migration with volumes of NFS & PowerFlex storages.