Bug 1478315 - Empty quotaID for HE VM causes VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
Unspecified Unspecified
high Severity high
: ovirt-4.1.6
: ---
Assigned To: Yanir Quinn
: Triaged, ZStream
Depends On:
  Show dependency treegraph
Reported: 2017-08-04 05:32 EDT by Jaroslav Spanko
Modified: 2018-01-31 04:16 EST (History)
12 users (show)

See Also:
Fixed In Version: ovirt-engine-
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-09-19 03:18:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: SLA
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3149771 None None None 2017-08-15 01:48 EDT
oVirt gerrit 80695 master POST webadmin: Disable quota selection for HE VM 2017-08-21 09:40 EDT
oVirt gerrit 81393 ovirt-engine-4.1 POST webadmin: Disable quota selection for HE VM 2017-09-04 03:59 EDT

  None (edit)
Description Jaroslav Spanko 2017-08-04 05:32:52 EDT
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 imalkin@idm01.srv.local. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD

byteman debug 
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):
RHV 4.x

How reproducible:

Steps to Reproduce:
1. create quota
2. try to edit the HE VM

Actual results:
HostedEngine: There was an attempt to change Hosted Engine VM values that are locked.

Expected results:
Add the quotaID to the HE VM

Additional info:
Comment 1 Doron Fediuck 2017-08-06 06:00:06 EDT
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.
Comment 4 Artyom 2017-09-07 08:48:36 EDT
Verified on rhevm-

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
Comment 6 errata-xmlrpc 2017-09-19 03:18:50 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.