linstor: deleteAsync fallback to volume UUID if path not set yet#9325
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #9325 +/- ##
==========================================
Coverage 12.24% 12.24%
- Complexity 9295 9296 +1
==========================================
Files 4699 4699
Lines 414347 414348 +1
Branches 50906 51267 +361
==========================================
+ Hits 50731 50738 +7
+ Misses 357311 357305 -6
Partials 6305 6305
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@rp- is this critical (or is there a work around)? cc @sureshanaparti |
|
@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. |
not critical, as it shouldn't happen in 95% of installs |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10231 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-10713) |
|
Changes in Linstor provider, Merging based on reviews & maintainer tests. |
* 4.18: linstor: deleteAsync fallback to volume UUID if path not set yet (apache#9325) linstor: do not use the same static ApiClient for all calls (apache#9326)
Description
If Linstor resource creation failed before
volume.setPath()was called/stored, path will be nulland cleanup attempt for that resource from CloudStack will fail (because there is no
cs-nullresource).This PR now fallback to the volume.uuid if path wasn't set yet.
Partially fixes an issue from #9321
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested deleting volumes on a fresh Linstor/CloudStack cluster.
How did you try to break this feature and the system with this change?