Bug 1410431

Summary: HE VM update via webadmin does not work
Product: [oVirt] ovirt-engine Reporter: Artyom <alukiano>
Component: Frontend.WebAdminAssignee: Phillip Bailey <phbailey>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: high    
Version: 4.1.0CC: bugs, dfediuck, phbailey
Target Milestone: ovirt-4.1.0-betaKeywords: Regression, Triaged
Target Release: 4.1.0.2Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
rule-engine: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Fields that are not editable for the hosted engine VM were not being cloned during the update process. Consequence: The HE VM update failed validation even when the only fields that were updated were valid fields. Fix: Add the missing fields to the cloner. Result: The HE VM now updates properly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:50:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artyom 2017-01-05 13:28:40 UTC
Description of problem:
Update the HE VM number of CPU or amount of the memory show me:
Error while executing action: 

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

Version-Release number of selected component (if applicable):
rhevm-4.1.0-0.3.beta2.el7.noarch

2017-01-05 08:27:36,746-05 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-27) [40aeb9bd-9c4e-4248-b4f6-54b348f7abd6] Lock Acquired to object 'EngineLock:{exclusiveLocks='[HostedEngine=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[2f08cbe0-eff3-414f-a162-1ed6a2c21f12=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'
2017-01-05 08:27:36,747-05 WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-27) [40aeb9bd-9c4e-4248-b4f6-54b348f7abd6] Validation of action 'UpdateVm' failed for user admin@internal-authz. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
2017-01-05 08:27:36,747-05 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-27) [40aeb9bd-9c4e-4248-b4f6-54b348f7abd6] Lock freed to object 'EngineLock:{exclusiveLocks='[HostedEngine=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[2f08cbe0-eff3-414f-a162-1ed6a2c21f12=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}

How reproducible:
Always

Steps to Reproduce:
1. Deploy HE on the host
2. Add storage domain to the engine to initialize the auto-import operation
3. Try to edit the HE VM memory or CPU.

Actual results:
Error while executing action: 

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

Expected results:
Update succeed

Additional info:
Update via REST works fine
# engine-config -g AllowEditingHostedEngine
AllowEditingHostedEngine: true version: general

Comment 1 Red Hat Bugzilla Rules Engine 2017-01-05 15:57:51 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Artyom 2017-01-24 11:31:46 UTC
Verified on rhevm-4.1.0.2-0.1.el7.noarch