Allow download of system vm templates#6750
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
|
Thanks for the PR - can you explain the use case as the systemvmtemplate aren't for public/general consumption for users? The systemvmtemplates are also publicly available so if anybody wants they can register using such links. |
|
@rohityadavcloud |
Codecov Report
@@ Coverage Diff @@
## main #6750 +/- ##
=========================================
Coverage 10.42% 10.42%
- Complexity 6701 6705 +4
=========================================
Files 2458 2458
Lines 243246 243244 -2
Branches 38067 38066 -1
=========================================
+ Hits 25358 25366 +8
+ Misses 214714 214703 -11
- Partials 3174 3175 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@DaanHoogland a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4223 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4939)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good and I'm fine with it functionaly
is this a 👎 , @rohityadavcloud ? |
|
@DaanHoogland no just a question, really trying to understand why we're making this public? (historically this has been private/hidden to users, or at least the download button isn't it?) |
|
@rohityadavcloud it is a valid question but I think @GaOrtiga 's argument makes sense. Do we merge? |
SadiJr
left a comment
There was a problem hiding this comment.
CLGTM, and I agree with @DaanHoogland and @GaOrtiga arguments
|
@rohityadavcloud I need to test but i think that the system vm template will not be visible to the normal user so no download button either. Only root admins should be able to download it this way. (not sure about the API) |
|
@DaanHoogland you are correct, the download button will not be visible in the UI as shown below: Furthermore, even through CloudMonkey download will only be available to Root Admins, as shown below: Running the command with a user-level account: With this being said, I still do not understand why allowing operators to download said templates is a concern. These images are publicly available, and operators are the ones registering them in ACS. Therefore, it makes sense to allow them to download directly from ACS if they wish so. |
|
Makes sense, LGTM, let's merge this. |











Description
Currently, ACS does not allow the user to download System VM Templates, even though it may be usefull as it can speed up the registration process of the template for production once the homologation is done beforehand. This PR changes this, allowing the user to download said VM Templates
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I built the code with the respective changes in a local lab. After that, I copied the Uuid from one of the System VM templates. Then, using CloudMonkey, I utilized the command 'extract template' with the copied Uuid. CloudMonkey then generated a link for the download of the template, confirming that the alteration was successful.