Bug 1319491 - Changing vm's configuration while in state up, and the shutting down to apply changes result with loss of the updated configuration
Summary: Changing vm's configuration while in state up, and the shutting down to apply...
Keywords:
Status: CLOSED DUPLICATE of bug 1313369
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 3.6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Michal Skrivanek
QA Contact: meital avital
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-20 16:46 UTC by sefi litmanovich
Modified: 2016-03-21 07:59 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-21 07:59:46 UTC
oVirt Team: Virt
Embargoed:
slitmano: planning_ack?
slitmano: devel_ack?
slitmano: testing_ack?


Attachments (Terms of Use)

Description sefi litmanovich 2016-03-20 16:46:33 UTC
Some of the vm's configurations require re starting the vm for them to take place. This invokes a message to re boot the vm after applying changes in web admin + there is an indication appearing next to the vm's icon.
Once I shut down or poweroff the vm after such change the configuration is changed back to it's previous state, losing the change I wanted to apply.
I attempted this with TZ change, and CPU change, in both cases got the same behaviour.
Also tried to update with API instead of webadmin, still the same. 

Version-Release number of selected component (if applicable):

rhevm-3.6.4-0.1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Start a vm.
2. While vm is up, change time zone.
3. After getting the message about changes applying after re boot, shut down the vm.
4. Start the vm

Actual results:
at 3. Vm is down, timezone configuration is back to the previous state and changes did not apply.
at 4. Changed time zone did not apply.

Expected results:
at 3. Vm is down, timezone configuration change is applied and affects next vm run.
at 4. Changes applied.

Additional info:

From engine.log - > this is the full snippet of log from the update to the poweroff.

2016-03-20 18:41:10,485 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'timeZone' can not be updated when status is 'Up'
2016-03-20 18:41:10,496 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'balloonEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:10,498 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'rngDevice' can not be updated when status is 'Up'
2016-03-20 18:41:10,503 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'soundDeviceEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:10,504 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'consoleEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:10,506 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'virtioScsiEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:10,510 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-8) [] Field 'graphicsDevices' can not be updated when status is 'Up'
2016-03-20 18:41:19,883 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-7) [4c152e7c] Lock Acquired to object 'EngineLock:{exclusiveLocks='[rhev35host=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'
2016-03-20 18:41:19,956 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-7) [4c152e7c] Running command: UpdateVmCommand internal: false. Entities affected :  ID: 56c9baa8-b7dd-4472-86a2-c76d54039b67 Type: VMAction group EDIT_VM_PROPERTIES with role type USER
2016-03-20 18:41:19,957 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'timeZone' can not be updated when status is 'Up'
2016-03-20 18:41:19,959 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'timeZone' was updated
2016-03-20 18:41:19,968 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'balloonEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:19,969 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'rngDevice' can not be updated when status is 'Up'
2016-03-20 18:41:19,970 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'soundDeviceEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:19,971 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'consoleEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:19,972 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'virtioScsiEnabled' can not be updated when status is 'Up'
2016-03-20 18:41:19,972 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-7) [4c152e7c] Field 'graphicsDevices' can not be updated when status is 'Up'
2016-03-20 18:41:20,030 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-7) [4c152e7c] Correlation ID: 4c152e7c, Job ID: 1b365372-58b3-4de4-8fe2-2a972047279f, Call Stack: null, Custom Event ID: -1, Message: VM rhev35host configuration was updated by admin@internal.
2016-03-20 18:41:20,037 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-7) [4c152e7c] Lock freed to object 'EngineLock:{exclusiveLocks='[rhev35host=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'
2016-03-20 18:41:21,703 INFO  [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (ajp-/127.0.0.1:8702-6) [6091e8f8] Lock Acquired to object 'EngineLock:{exclusiveLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM_DISK_BOOT, ACTION_TYPE_FAILED_OBJECT_LOCKED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'
2016-03-20 18:41:22,072 INFO  [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (ajp-/127.0.0.1:8702-6) [6091e8f8] Running command: UpdateVmDiskCommand internal: false. Entities affected :  ID: dcdca7a3-d1e2-4911-8c30-c6b71c223e29 Type: DiskAction group EDIT_DISK_PROPERTIES with role type USER
2016-03-20 18:41:22,143 INFO  [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (ajp-/127.0.0.1:8702-6) [6091e8f8] Lock freed to object 'EngineLock:{exclusiveLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM_DISK_BOOT, ACTION_TYPE_FAILED_OBJECT_LOCKED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'
2016-03-20 18:41:22,169 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-6) [6091e8f8] Correlation ID: 6091e8f8, Call Stack: null, Custom Event ID: -1, Message: VM rhev35host GlanceDisk-f4278ff disk was updated by admin@internal.
2016-03-20 18:41:37,417 INFO  [org.ovirt.engine.core.bll.StopVmCommand] (org.ovirt.thread.pool-6-thread-5) [59313857] Running command: StopVmCommand internal: false. Entities affected :  ID: 56c9baa8-b7dd-4472-86a2-c76d54039b67 Type: VMAction group STOP_VM with role type USER
2016-03-20 18:41:37,428 INFO  [org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand] (org.ovirt.thread.pool-6-thread-5) [59313857] START, DestroyVmVDSCommand( DestroyVmVDSCommandParameters:{runAsync='true', hostId='0400fdc4-b96a-43ba-98e1-73233dddddc3', vmId='56c9baa8-b7dd-4472-86a2-c76d54039b67', force='false', secondsToWait='0', gracefully='false', reason='', ignoreNoVm='false'}), log id: 5578bd40
2016-03-20 18:41:37,443 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (org.ovirt.thread.pool-6-thread-5) [59313857] START, DestroyVDSCommand(HostName = host_mixed_2, DestroyVmVDSCommandParameters:{runAsync='true', hostId='0400fdc4-b96a-43ba-98e1-73233dddddc3', vmId='56c9baa8-b7dd-4472-86a2-c76d54039b67', force='false', secondsToWait='0', gracefully='false', reason='', ignoreNoVm='false'}), log id: 1eab7818
2016-03-20 18:41:37,674 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (org.ovirt.thread.pool-6-thread-5) [59313857] FINISH, DestroyVDSCommand, log id: 1eab7818
2016-03-20 18:41:37,686 INFO  [org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand] (org.ovirt.thread.pool-6-thread-5) [59313857] FINISH, DestroyVmVDSCommand, return: PoweringDown, log id: 5578bd40
2016-03-20 18:41:37,711 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-5) [59313857] Correlation ID: 59313857, Job ID: 1d378a6e-2c51-452b-a899-93c265df6050, Call Stack: null, Custom Event ID: -1, Message: VM rhev35host powered off by admin@internal (Host: host_mixed_2) (Reason:  No reason was returned for this operation failure. See logs for further details.).
2016-03-20 18:41:39,686 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (ForkJoinPool-1-worker-1) [] START, DestroyVDSCommand(HostName = host_mixed_2, DestroyVmVDSCommandParameters:{runAsync='true', hostId='0400fdc4-b96a-43ba-98e1-73233dddddc3', vmId='56c9baa8-b7dd-4472-86a2-c76d54039b67', force='false', secondsToWait='0', gracefully='false', reason='', ignoreNoVm='true'}), log id: 74a07f17
2016-03-20 18:41:40,692 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (ForkJoinPool-1-worker-1) [] Failed to destroy VM '56c9baa8-b7dd-4472-86a2-c76d54039b67' because VM does not exist, ignoring
2016-03-20 18:41:40,696 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (ForkJoinPool-1-worker-1) [] FINISH, DestroyVDSCommand, log id: 74a07f17
2016-03-20 18:41:40,723 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-1) [] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: VM rhev35host is down. Exit message: Admin shut down from the engine
2016-03-20 18:41:40,728 INFO  [org.ovirt.engine.core.vdsbroker.VmAnalyzer] (ForkJoinPool-1-worker-1) [] VM '56c9baa8-b7dd-4472-86a2-c76d54039b67(rhev35host) is running in db and not running in VDS 'host_mixed_2'
2016-03-20 18:41:40,759 INFO  [org.ovirt.engine.core.bll.ProcessDownVmCommand] (org.ovirt.thread.pool-6-thread-1) [7841d733] Running command: ProcessDownVmCommand internal: true.
2016-03-20 18:41:41,219 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (org.ovirt.thread.pool-6-thread-1) [ea0082] Lock Acquired to object 'EngineLock:{exclusiveLocks='[rhev35host=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'
2016-03-20 18:41:41,220 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (org.ovirt.thread.pool-6-thread-1) [ea0082] Field 'clusterCompatibilityVersionOrigin' can not be updated when status is 'Down'
2016-03-20 18:41:41,220 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (org.ovirt.thread.pool-6-thread-1) [ea0082] ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'clusterCompatibilityVersionOrigin' was updated
2016-03-20 18:41:41,220 WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (org.ovirt.thread.pool-6-thread-1) [ea0082] CanDoAction of action 'UpdateVm' failed for user SYSTEM. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_ILLEGAL_FIELD
2016-03-20 18:41:41,220 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (org.ovirt.thread.pool-6-thread-1) [ea0082] Lock freed to object 'EngineLock:{exclusiveLocks='[rhev35host=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[56c9baa8-b7dd-4472-86a2-c76d54039b67=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'

Comment 1 Tomas Jelinek 2016-03-21 07:59:46 UTC

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


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