Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunstone: No way for update VM configuration if it have restricted vector atributes. #1790

Closed
8 of 33 tasks
kvaps opened this issue Feb 26, 2018 · 2 comments
Closed
8 of 33 tasks

Comments

@kvaps
Copy link
Contributor

kvaps commented Feb 26, 2018

Bug Report

Version of OpenNebula

  • 5.2.2
  • 5.4.0
  • 5.4.1
  • 5.4.2
  • 5.4.3
  • 5.4.4
  • 5.4.5
  • 5.4.6
  • 5.4.7
  • Development build

Component

  • Authorization (LDAP, x509 certs...)
  • Command Line Interface (CLI)
  • Contextualization
  • Documentation
  • Federation and HA
  • Host, Clusters and Monitorization
  • KVM
  • Networking
  • Orchestration (OpenNebula Flow)
  • Packages
  • Scheduler
  • Storage & Images
  • Sunstone
  • Upgrades
  • User, Groups, VDCs and ACL
  • vCenter

Description

If you have VM_RESTRICTED_ATTR with some variables inside vector attributes it can refuse you for changing another allowed parameters.

How to reproduce

Let's say you want to refuse users for change graphic console options, but allow changes on input methods.

  • Define in oned.conf:
VM_RESTRICTED_ATTR = "GRAPHICS/LISTEN"
VM_RESTRICTED_ATTR = "GRAPHICS/PASSWD"
VM_RESTRICTED_ATTR = "GRAPHICS/PORT"
VM_RESTRICTED_ATTR = "GRAPHICS/TYPE"
  • Restart opennebula service
  • Create new VM from template with enabled graphic console
  • Open sunstone and go to the any VM as user
  • On "Conf" tab click "Update configuration button"
  • Go to the "Input/Output" tab
  • Try to add tablet pointer device

Actual Behavior

You will see this error:

[one.vm.updateconf] User [356] : Template includes a restricted attribute LISTEN.

Expected Behavior

Sunstone should allow for change INPUT parameters because they are allowed.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@kvaps
Copy link
Contributor Author

kvaps commented Feb 26, 2018

Same problem with RAW parameter if VM have seted RAW parameter which restricted by VM_RESTRICTED_ATTR in oned.conf
You will recive error even you try to update any other parameter.

@abelCoronado93
Copy link
Contributor

Same in CLI

updateconf sends all the conf attributes and the core interprets that everything has changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants