Bug 1311610 - Live storage migration fails due to unassigned disk profile
Summary: Live storage migration fails due to unassigned disk profile
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 3.6.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Daniel Erez
QA Contact: Aharon Canan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-24 15:19 UTC by Eyal Shenitzky
Modified: 2016-05-08 07:31 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-08 07:31:42 UTC
oVirt Team: SLA
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
vdsm logs (11.55 MB, text/plain)
2016-02-24 15:19 UTC, Eyal Shenitzky
no flags Details
engine logs (2.51 MB, text/plain)
2016-02-24 15:20 UTC, Eyal Shenitzky
no flags Details

Description Eyal Shenitzky 2016-02-24 15:19:51 UTC
Created attachment 1130242 [details]
vdsm logs

Description of problem:

When performing live migration of VM disk to storage-domain with different type
(block -> file and vice-versa) the action fails due to unassigned disk profile error.
The VM created from template as thin.
The template created from thin VM who created from template from glance.
  

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

engine - vdsm-4.17.21-0.el7ev.noarch
vdsm - 4.17.21-0.el7ev.noarch


How reproducible:
100%

Steps to Reproduce:
1. import image from glance as template to domain A. 
2. create vm from the template in step (1) as thin copy on domain A
3. create template from the vm in step (2) on domain A
4. copy the disk of the template in step (3) to domain B that the disk
   should migrate to (different from the source storage domain). 
5. create VM from the template in step (4) as thin copy on domain A
6. move the VM disk to domain B.


Actual results:
Live storage migration fails.

Expected results:
Live storage migration should performed successfully.

Additional info:
Logs of vdsm and engine attached

Comment 1 Eyal Shenitzky 2016-02-24 15:20:32 UTC
Created attachment 1130243 [details]
engine logs

Comment 2 Roy Golan 2016-02-25 12:51:27 UTC
2016-02-24 15:18:44,595 WARN  [org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand] (ajp-/127.0.0.1:8702-7) [disks_syncAction_9f8b4406-52f3-41ff] CanDoAction of action 'LiveMigrateVmDisks' failed for user admin@internal. Reasons: VAR__ACTION__MOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_DISK_PROFILE_NOT_MATCH_STORAGE_DOMAIN,$diskProfile nfs_2,$diskProfileId 37401b5c-40b1-49bd-8fc2-dfed415fd0f0,$storageDomain iscsi_0
2016-02-24 15:18:44,595 INFO  [org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand] (ajp-/127.0.0.1:8702-7) [disks_syncAction_9f8b4406-52f3-41ff] Lock freed to object 'EngineLock:{exclusiveLocks='[1b91e250-901b-499c-814d-c7fed7e26f61=<DISK, ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED$DiskName live_storage_migration_mixed_iscsi_Disk1>]', sharedLocks='[38251a73-7a90-443f-bad0-07740a48a67a=<VM, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'
2016-02-24 15:18:44,598 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-7) [] Operation Failed: [Cannot move Virtual Machine Disk. Disk Profile nfs_2 with id 37401b5c-40b1-49bd-8fc2-dfed415fd0f0 is not assigned to Storage Domain iscsi_0.]

probably can be reproduce without live storage migration. just move a disk to other domain.

Comment 5 Roy Golan 2016-05-08 07:31:42 UTC
Thanks Eyal.


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