Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1437383

Summary: base volume format may not be preserved when moving disk between block/file domains
Product: [oVirt] ovirt-engine Reporter: Liron Aravot <laravot>
Component: BLL.StorageAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Eyal Shenitzky <eshenitz>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.1CC: amureini, bugs, laravot, lveyde, mlipchuk
Target Milestone: ovirt-4.1.2Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-23 08:18:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Liron Aravot 2017-03-30 08:40:43 UTC
Description of problem:
When creating a collapsed image the destination format is determined according to the target domain and the last volume in the chain.
The same format was used when moving a image without performing collapse when using the new spdm flows (4.1 data center) for each of the volumes instead of preserving the original format of each of them.


How reproducible:
Always

Steps to Reproduce:
1. Have a 4.1 data center with one iscsi domain and one nfs domain
2. Create a VM with one disk on the nfs domain.
3. Create a snapshot of the vm that includes the disk.
4. Move the disk to a block domain.

Actual results:
Both the base volume and the snapshot volume are created as COW volumes.


Expected results:
The base volume should be created as RAW while the snapshot volume should be created in the COW format.

Additional info:

Comment 1 Maor 2017-03-30 09:04:19 UTC
I think that it will be a good idea to indicate in the doc text or/and in the wiki that also the volume type will be changed based on the volume format change.

Comment 2 Eyal Shenitzky 2017-05-01 04:36:19 UTC
Liron can you pls focus what should be checked here,
Should I check the disk format after the creation or after the move operation?

Comment 3 Liron Aravot 2017-05-03 22:36:44 UTC
Eyal, please check the destination image volumes.

Comment 4 Eyal Shenitzky 2017-05-07 05:39:41 UTC
 Verified with the following code:
----------------------------------
VDSM - 4.19.12-1.el7ev.x86_64
RHEVM - 4.1.2.1-0.1.el7

Steps to reproduce:
-------------------
1. Have a 4.1 data center with one iscsi domain and one nfs domain
2. Create a VM with one disk on the nfs domain.
3. Create a snapshot of the vm that includes the disk.
4. Move the disk to a block domain.

Moving to VERIFIED