List templates and ISOs by domain#11179
Conversation
|
@DaanHoogland @shwstppr @sureshanaparti targeting this PR to the 4.19 branch because the #10392 milestone is set to |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #11179 +/- ##
============================================
- Coverage 15.18% 15.18% -0.01%
Complexity 11365 11365
============================================
Files 5415 5415
Lines 475868 475877 +9
Branches 58092 58094 +2
============================================
Hits 72252 72252
- Misses 395531 395540 +9
Partials 8085 8085
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:
|
|
@blueorangutan package |
|
@bernardodemarco 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 14132 |
DaanHoogland
left a comment
There was a problem hiding this comment.
one grumpy old man remark, otherwise lgtm.
|
@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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14172 |
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13776)
|
|
@bernardodemarco I tested this in a lab env but still view the default template and system template when browsing from the (child)domain. Anything I might have missed? |
@DaanHoogland, thanks for testing! Have you defined the |
I would expect those to be set by the UI when browsing from the domain page, no? |
@DaanHoogland, yes, for sure. I assumed you were performing the API calls directly from CloudMonkey Can you share the API request the UI is performing (through the browser's inspect tab)? Also, could you verify the URL the UI is redirecting the calling user to? It should be something like this
|
All is good @bernardodemarco , I learned two things:
I am not sure if this second point is worth an issue. In any case we are good to go with this PR. |

Description
Currently, it is not possible to list the templates and ISOs of a specific domain. When executing the
listTemplatesandlistIsosAPIs only specifying adomainid, all templates/ISOs that the caller has access to are listed; thedomainidparameter is completely ignored.Therefore, this PR proposes to add support for listing templates and ISOs by domain. To achieve that, the
listTemplatesandlistIsosAPIs should be called defining thetemplatefilterandisofilterparameters to eitherselforselfexecutable. Furthermore, theisrecursiveparameter can be used, to list templates and ISOs recursively by domain.Fixes #10392, #10393
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
templatefilterandisofilterparameters to eitherselforselfexecutableisrecursiveparameter is specified as true