Misc fixes around API permissions, global settings and template UX#3534
Conversation
This allows getUploadParamsForIso for all user role types, also fixes authorised field for getUploadParamsForTemplate API. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-203 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
anuragaw
left a comment
There was a problem hiding this comment.
Code LGTM. But a minor suggestion.
Will test and get back unless @andrijapanicsb or @borisstoyanov want to verify/review it ?
| static final ConfigKey<String> UserVMBlacklistedDetails = new ConfigKey<String>("Advanced", String.class, | ||
| "user.vm.blacklisted.details", "rootdisksize, cpuOvercommitRatio, memoryOvercommitRatio, Message.ReservedCapacityFreed.Flag", | ||
| "Determines whether users can view certain VM settings", true); | ||
| "Determines whether users can view certain VM settings. When set to empty, default value used is: rootdisksize, cpuOvercommitRatio, memoryOvercommitRatio, Message.ReservedCapacityFreed.Flag.", true); |
There was a problem hiding this comment.
Slight addition could be there optinally - "To allow all settings to be visible set this to none"?
There was a problem hiding this comment.
The main issue with setting to a fake value is that, what is the none is used as a valid detail (most likely that's never going to happen but for sanity-sake). Which is why I chose to simply state that behaviour.
|
These changes seem fine, there's one problem related to uploading template and iso from local, which I'm not sure if it will be fixed in this PR? |
|
I'll check/test @borisstoyanov |
|
Trillian test result (tid-247)
|
|
@borisstoyanov, @rhtyd - I also see a format not matching the selected format when I upload a local macchina qcow2 template on KVM based monkey box. Investigating bit more. |
|
For the upload iso/template fix, I'll send another PR Bobby. Thanks. |
authorised field for getUploadParamsForTemplate API.
Types of changes