linstor: disconnect-disk also search for resource name in Linstor#9035
Conversation
disconnectPhysicalDisk(String, KVMStoragePool) seems to calls the plugin with the resource name instead of the device path, so we also have to search for resource names, while cleaning up.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #9035 +/- ##
==========================================
Coverage 12.24% 12.24%
- Complexity 9291 9292 +1
==========================================
Files 4698 4698
Lines 414259 414259
Branches 52267 51817 -450
==========================================
+ Hits 50707 50716 +9
+ Misses 357251 357241 -10
- Partials 6301 6302 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@rp- , isn't this obfuscating a bug where the path should have been stored instead of the name? |
Good point, but I store the disk uuid as path and reference for Linstor and it only gets translated to the real device path in the So yes, the name volumePath might be misleading here, because in Linstor case it is actually part of the resource name. |
|
@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 9527 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10161)
|
* 4.18: linstor: disconnect-disk also search for resource name in Linstor (#9035)
…ache#9035) disconnectPhysicalDisk(String, KVMStoragePool) seems to calls the plugin with the resource name instead of the device path, so we also have to search for resource names, while cleaning up.
…ache#9035) disconnectPhysicalDisk(String, KVMStoragePool) seems to calls the plugin with the resource name instead of the device path, so we also have to search for resource names, while cleaning up.
* 4.18: linstor: disconnect-disk also search for resource name in Linstor (apache#9035)
* 4.19: linstor: disconnect-disk also search for resource name in Linstor (apache#9035) ui: add support to change Account role for admins (apache#9012) Use parameter dcId as wrapper to prevent NPE (apache#8986)
Description
disconnectPhysicalDisk(String, KVMStoragePool) seems to calls the plugin with the resource name instead of the device path, so we also have to search for resource names, while cleaning up.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
6 Node CloudStack cluster, non hyperconverged.
How did you try to break this feature and the system with this change?