Bug 969789 - engine: can't live migrate a disk if the vm also has an inactive disk attached on a domain which is in maintenance
engine: can't live migrate a disk if the vm also has an inactive disk attache...
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
x86_64 Linux
unspecified Severity high
: ---
: 3.4.0
Assigned To: Daniel Erez
Depends On:
Blocks: rhev3.4beta 1142926
  Show dependency treegraph
Reported: 2013-06-02 07:32 EDT by Dafna Ron
Modified: 2016-02-10 12:35 EST (History)
11 users (show)

See Also:
Fixed In Version: ovirt-3.4.0-beta3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
log (53.59 KB, application/x-xz)
2013-06-02 07:32 EDT, Dafna Ron
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 24075 None None None Never
oVirt gerrit 24228 None None None Never

  None (edit)
Description Dafna Ron 2013-06-02 07:32:06 EDT
Created attachment 755859 [details]

Description of problem:

create snapshot fails in CanDoAction (in engine log only) if we try to live migrate a disk which is attached to a vm that has a second inactive disk on a domain in maintenance. 

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


How reproducible:


Steps to Reproduce:
1. in iscsi storage with multiple domains, create a vm with one disk and run it
2. create a floating disk on a second domain 
3. after the floating disk is created put its domain in maintenance.
4. when domain is in maintenance, attach the floating disk to the vm as inactive (do not hotplug). 
5. try to live storage migrate the active disk 

Actual results:

1. we fail to create a snapshot with CanDoAction 
2. log shows a CanDoAction but there is no CanDoAction shown to the user 

Expected results:

1.we should succeed to live storage migrate the active disk and disregard the inactive disk and its maintenance domain when creating the snapshot. 
2. if this operation is blocked we need to show the user the CanDoAction dialogue. 

Additional info: log

2013-06-02 14:22:30,640 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (pool-4-thread-46) [7562beef] CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL
Comment 2 Elad 2014-02-19 04:37:17 EST
It's possible to perform live storage migration to a disk that attached to VM which has an inactive (unplugged) disk located on an inactive SD attach to it.

Verified according to steps in the bug description.

Checked on RHEV-3.4:
Comment 3 Sandro Bonazzola 2014-02-19 07:27:33 EST
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA
Comment 5 Itamar Heim 2014-06-12 10:07:12 EDT
Closing as part of 3.4.0

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