cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

User can see the setting tab of vms, and change the value of settings

Open ustcweizhou opened this issue 8 years ago • 7 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME

API/UI

CLOUDSTACK VERSION

4.11.2.0-RC6

CONFIGURATION

Advanced zone with security groups

OS / ENVIRONMENT

Management server and nodes are all Ubuntu 16.04

SUMMARY

The setting tab for vms is visible for all users. Users can change the value of all settings as well

STEPS TO REPRODUCE

go to instances -> Setting tab

EXPECTED RESULTS

Settings should be hidden for users We do not allow users to change the settings.

ACTUAL RESULTS

users can change the settings

ustcweizhou avatar Nov 22 '18 11:11 ustcweizhou

/cc @PaulAngus

yadvr avatar Nov 28 '18 16:11 yadvr

Ideally the tab should be always show, but when users try to edit settings and if VM is not stopped it should show an error like it does for reset password button etc

yadvr avatar Dec 06 '18 20:12 yadvr

@ustcweizhou can you also please include some snapshot of the UI?

anuragaw avatar Dec 19 '18 05:12 anuragaw

@rhtyd this control should be done in the server side, right? It is not just a UI problem, because if the USER uses the configurations API parameter, it seems that right now he/she would be able to change/override the overprovisioning configurations for his/her VMs.

rafaelweingartner avatar Dec 19 '18 11:12 rafaelweingartner

@rafaelweingartner The backend need to honour the display field of a detail and perhaps we can add a global setting to say which details (by key/name) are blacklisted. @anuragaw deploy a latest 4.11 based env, deploy a VM and then stop it, you should see a setting tab in the VM details view.

yadvr avatar Dec 19 '18 11:12 yadvr

@rhtyd that works. I also thought about adding a new parameter to that enum you created to indicate if the configuration can be changed/customized/overridden by the final user.

rafaelweingartner avatar Dec 19 '18 11:12 rafaelweingartner

With https://github.com/apache/cloudstack/pull/3244 the settings tab editing is not allowed when VM is running in the UI. However I don't think we should restrict users to not change the values, as it is allowed via API anyway. With https://github.com/apache/cloudstack/pull/3240 feature, users will know possible options they can pass. Wrt KVM, the number of allowed options/details are minimal.

yadvr avatar Jun 25 '19 16:06 yadvr