Red Hat Bugzilla – Bug 1478315
Empty quotaID for HE VM causes VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
Last modified: 2018-01-31 04:16:50 EST
Description of problem:
Once the new quota is created in the HE env the HE VM is not editable anymore
2017-07-18 11:20:51,213+03 WARN [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-26) [d9a41128-3fdb-4d22-b446-9a0290f8eaa5] Validation of action 'UpdateVm' failed for user firstname.lastname@example.org. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
2017-07-25 09:52:44,272Z INFO [stdout] (default task-9) isHostedEngineFieldUpdatable Argument: dbGeneration
2017-07-25 09:52:44,341Z INFO [stdout] (default task-9) isHostedEngineFieldUpdatable Argument: interfaces
2017-07-25 09:52:44,342Z INFO [stdout] (default task-9) isHostedEngineFieldUpdatable Argument: quotaEnforcementType
2017-07-25 09:52:44,342Z INFO [stdout] (default task-9) isHostedEngineFieldUpdatable Argument: quotaId
So once the quota is created is not reflected to the HE VM
/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "SELECT quota_id from vms where vm_guid in (SELECT vm_guid FROM vm_static where vm_name = 'HostedEngine');"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create quota
2. try to edit the HE VM
HostedEngine: There was an attempt to change Hosted Engine VM values that are locked.
Add the quotaID to the HE VM
In general we do not limit HE since it's already confined by its own SD and its run time resources are important to keep it running.
What we need here is ti ensure we skip the quota tests for the HE VM and properly document this.
Verified on rhevm-126.96.36.199-0.1.el7.noarch
1) Deploy HE on 3 hosts
2) Add master storage domain
3) Change quota mode to audit and create new quota
4) Edit HE VM description
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.