Bug 1002616 - Can not change any properties in running Linux VMs imported from RHEV 2.2
Summary: Can not change any properties in running Linux VMs imported from RHEV 2.2
Keywords:
Status: CLOSED DUPLICATE of bug 988259
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-29 14:46 UTC by Julio Entrena Perez
Modified: 2018-12-03 19:49 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-30 06:52:31 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1000034 0 unspecified CLOSED [Admin Portal] Cannot update VM properties - Field timeZone can not be updated when status is Up 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 465813 0 None None None Never

Internal Links: 1000034

Description Julio Entrena Perez 2013-08-29 14:46:06 UTC
Description of problem:
Any attempt to change any property of a running Linux VM which has been imported from RHEV 2.2 fails with "Failed updating the properties of the VM.".

/var/log/ovirt-engine/engine.log shows the following:
ERROR [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-15) [de80ed8] Field timeZone can not be updated when status is Up
WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-15) [de80ed8] ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'timeZone' was updated
WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-15) [de80ed8] CanDoAction of action UpdateVm failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_ILLEGAL_FIELD

Version-Release number of selected component (if applicable):
rhevm-backend-3.2.1-0.39.el6ev

How reproducible:
Always

Steps to Reproduce:
1. Export a Linux VM from RHEV 2.2.
2. Import that Linux VM in RHEV 3.2.
3. In webadmin portal go to "Virtual Machines", select the VM and click "Edit".
4. Try to change any property and click OK.

Actual results:
<vm_name>:

    Failed updating the properties of the VM. This may be caused either by:
    1. The values selected are not appropriate for the VM; or
    2. Its values cannot be updated while the VM is in UP state (Please shut down the VM in order to modify properties such as CPU or cluster).

Also /var/log/ovirt-engine/engine.log shows the following:
ERROR [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-15) [de80ed8] Field timeZone can not be updated when status is Up
WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-15) [de80ed8] ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'timeZone' was updated
WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-15) [de80ed8] CanDoAction of action UpdateVm failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_ILLEGAL_FIELD

Expected results:
Properties are updated successfully.

Additional info:
.OVF files created by RHEV 2.2 in export domain during export contain a value for the Windows domain field:

$ xmllint --format 0a559483-5c1f-42b3-a895-ee8250a7f6e4.ovf | egrep -i "domain|timezone"
    <Domain>MYDOMAIN</Domain>
    <TimeZone/>

RHEV 3.2 should disregard Windows domain for Linux VMs.

Workaround is to stop engine service, update the database by ensuring that Windows domain and timezone properties are set to NULL and start engine service back:

engine=# update vm_static set domain=NULL, time_zone=NULL where vm_name='<vm_name>';

This might be a duplicate of Bugzilla 1000034 .

Comment 2 Itamar Heim 2013-08-30 06:52:31 UTC

*** This bug has been marked as a duplicate of bug 988259 ***


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