Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1396108 - [z-stream clone - 4.0.6] Migration of HE Disk ends up in Locked State
[z-stream clone - 4.0.6] Migration of HE Disk ends up in Locked State
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.0.4
x86_64 Linux
unspecified Severity high
: ovirt-4.0.6
: ---
Assigned To: Tal Nisan
Raz Tamir
: Regression, ZStream
Depends On: 1394114
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-17 07:58 EST by rhev-integ
Modified: 2017-01-10 12:00 EST (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1394114
Environment:
Last Closed: 2017-01-10 12:00:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
engine log (12.11 KB, text/plain)
2016-11-23 10:53 EST, Raz Tamir
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 66716 None None None 2016-11-17 07:59 EST
oVirt gerrit 67002 None None None 2016-11-17 09:18 EST
oVirt gerrit 67006 None None None 2016-11-17 09:18 EST
Red Hat Product Errata RHBA-2017:0043 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0.6 2017-01-10 16:52:43 EST

  None (edit)
Comment 1 rhev-integ 2016-11-17 07:58:50 EST
Description of problem:

The Administration Portal allows a user to try to migrate the HE VM Disk. It fails on Validation, as expected, but the Disk remains in Locked State and now the VM cannot be Migrated anymore.

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

How reproducible:
100%

Steps to Reproduce:
1. Click on Hosted-Engine VM
2. Click on Disks Tab
3. Select Disk
4. Click Move
5. Select Destination, Click OK
6. Fails (Expected and Correct)
7. Disk Remains in Locked State
8. Click Migrate -> Fails
8. VM cannot migrate, it's stuck:
Cannot migrate VM: The following disks are locked: virtio-disk0. Please try again in a few minutes.

Actual results:
It fails when Validating (as expected), but should not leave the Disk in Locked State

Expected results:
Fails or Blocked. Disk in OK state.

This comment was originaly posted by gveitmic@redhat.com
Comment 3 rhev-integ 2016-11-17 07:58:56 EST
Please attach Engine logs.
Also, which validation is failing that is expected to fail?

This comment was originaly posted by tnisan@redhat.com
Comment 4 rhev-integ 2016-11-17 07:59:02 EST
Hi Tal,

The image is left locked at the end of the process.

engine=# select imagestatus from images where image_group_id = '55e10183-51d7-4f74-8cef-8fe21cd4f5ed';
 imagestatus 
-------------
           2
(1 row)

* Validation: the validation step for executing the disk move (snapshot for live migration), in the engine.

2016-11-13 22:03:42,779 WARN  [org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand] (org.ovirt.thread.pool-6-thread-41) [31ed43b8] Validation of action 'CreateAllSnapshotsFromVm' failed for user admin@internal-authz. Reasons: VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_CANNOT_RUN_ACTION_ON_NON_MANAGED_VM

For logs, look at the end of the file I'm attaching.

This comment was originaly posted by gveitmic@redhat.com
Comment 6 Raz Tamir 2016-11-23 10:53:17 EST
Verification failed:
The HostedEngine VM's disk wasn't migrated and remain in locked state

from engine.log:
2016-11-23 10:46:25,444 INFO  [org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand] (default task-32) [d18c5a1] Running command: MoveDisksCommand internal: false. Entities affected :  ID: 7361b89b-d614-4294-9f8c-cfb6c8be8c74 Type: DiskAction group CONFIGURE_DISK_STORAGE with role type USER
2016-11-23 10:46:25,572 INFO  [org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand] (default task-32) [d18c5a1] Lock Acquired to object 'EngineLock:{exclusiveLocks='[7361b89b-d614-4294-9f8c-cfb6c8be8c74=<DISK, ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED$DiskName virtio-disk0>]', sharedLocks='[2230569e-9357-4ab2-915a-767fa5532db1=<VM, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'
2016-11-23 10:46:25,872 INFO  [org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand] (org.ovirt.thread.pool-6-thread-35) [d18c5a1] Running command: LiveMigrateVmDisksCommand internal: false. Entities affected :  ID: 7361b89b-d614-4294-9f8c-cfb6c8be8c74 Type: DiskAction group DISK_LIVE_STORAGE_MIGRATION with role type USER
2016-11-23 10:46:26,127 WARN  [org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand] (org.ovirt.thread.pool-6-thread-35) [6f3710c] Validation of action 'CreateAllSnapshotsFromVm' failed for user admin@internal-authz. Reasons: VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_CANNOT_RUN_ACTION_ON_NON_MANAGED_VM
2016-11-23 10:46:26,415 INFO  [org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback] (DefaultQuartzScheduler6) [6f3710c] Command 'LiveMigrateVmDisks' id: 'a9dad97f-61da-40cd-a42f-587f1177ba3b' child commands '[31c37cc5-aada-471f-9b3e-c335ff4dc52a]' executions were completed, status 'FAILED'
2016-11-23 10:46:27,518 ERROR [org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand] (DefaultQuartzScheduler1) [6f3710c] Ending command 'org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand' with failure.
2016-11-23 10:46:27,519 INFO  [org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand] (DefaultQuartzScheduler1) [6f3710c] Lock freed to object 'EngineLock:{exclusiveLocks='[7361b89b-d614-4294-9f8c-cfb6c8be8c74=<DISK, ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED$DiskName virtio-disk0>]', sharedLocks='[2230569e-9357-4ab2-915a-767fa5532db1=<VM, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'

logs attached
Comment 7 Raz Tamir 2016-11-23 10:53 EST
Created attachment 1223327 [details]
engine log
Comment 8 Tal Nisan 2016-11-28 05:35:03 EST
Raz, which Engine build did you run it on?
Comment 9 Raz Tamir 2016-11-28 08:17:40 EST
4.0.6.1-0.1.el7ev
Comment 10 Raz Tamir 2016-11-29 09:12:00 EST
Every LSM operation fails with:
"Error while executing action: User is not logged in."
Comment 12 Raz Tamir 2016-12-11 11:01:03 EST
Verified on 4.0.6.3-0.1.el7ev
Comment 14 errata-xmlrpc 2017-01-10 12:00:49 EST
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.

https://rhn.redhat.com/errata/RHBA-2017-0043.html

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