systemvm-registration: update seeded template_store_ref sizes#10317
systemvm-registration: update seeded template_store_ref sizes#10317DaanHoogland merged 1 commit intoapache:4.19from
Conversation
Pre-seeded template storages always had there pre initialized 0 sizes and would never be updated. This updates the sizes from the template.properties files on the validateIfSeeded check.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10317 +/- ##
=========================================
Coverage 15.16% 15.16%
- Complexity 11302 11303 +1
=========================================
Files 5408 5408
Lines 473931 473950 +19
Branches 57844 57845 +1
=========================================
+ Hits 71866 71869 +3
- Misses 394034 394048 +14
- Partials 8031 8033 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@rp- |
not directly, as the script only updates the There is this code here: Which does add the seeded entries, but at that time, no secondary storage is mounted, so you can't get the correct sizes. |
|
@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. |
thanks @rp- |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12323 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12295)
|
Hmm as far as I see the fail comes from a VM |
|
Description
Pre-seeded template storages always had there pre initialized 0 sizes and would never be updated.
This makes later problems, when the primary storage should pre-allocate the volume as it doesn't know the size
and would fail or maybe try to delay the allocation until the agent code knows the size.
This updates the sizes from the template.properties files on the validateIfSeeded check.
The issue was found while reviewing #10132
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Started a fresh KVM cluster with preseeded systemvm template from
cloud-install-sys-tmplton Linstor primary storage.How did you try to break this feature and the system with this change?