Inject the template's download state in the secondary storage selectors#13025
Inject the template's download state in the secondary storage selectors#13025winterhazel wants to merge 2 commits into
Conversation
|
@blueorangutan package |
|
@winterhazel 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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.20 #13025 +/- ##
=========================================
Coverage 16.26% 16.26%
- Complexity 13433 13437 +4
=========================================
Files 5665 5666 +1
Lines 500530 500610 +80
Branches 60787 60793 +6
=========================================
+ Hits 81411 81432 +21
- Misses 410027 410068 +41
- Partials 9092 9110 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 17492 |
|
@blueorangutan package |
|
@winterhazel 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 17947 |
Description
This PR adds the following preset variables to the secondary storage selectors of
TEMPLATEresources:template.isPublictemplate.downloadDetailstemplate.downloadDetails[i].dataStoreIdtemplate.downloadDetails[i].downloadStateUsing them, it is possible to define heuristics to avoid the redownload/copy of public templates, for instance:
The selector above will direct the template to a secondary storage that the template is already present when it is marked as public and downloaded/downloading. Hence, it will not be duplicated to other secondary storages.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
In an environment with a single secondary storage,
sec-nfs-1:sec-nfs-1.sec-nfs-2, and verified that the existing public templates were not copied/downloaded tosec-nfs-2because the secondary storage selector was directing them tosec-nfs-1.