Bug 1373020

Summary: Wrong image size after live merge if disk extended
Product: [oVirt] ovirt-engine Reporter: Ala Hino <ahino>
Component: BLL.StorageAssignee: Ala Hino <ahino>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: medium Docs Contact: Ala Hino <ahino>
Priority: unspecified    
Version: 4.1.0CC: amureini, bugs, ratamir
Target Milestone: ovirt-4.1.0-alphaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
amureini: devel_ack+
ratamir: testing_ack+
Target Release: ---   
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-02-15 15:03:16 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:

Description Ala Hino 2016-09-04 20:13:03 UTC
Description of problem:
Image size (virtual size) is wrong if disk is extended before live merge

How reproducible:
100%

Steps to Reproduce:
1. create a VM
2. add a 1gb block disk
3. create a snapshot
4. extend the disk by 1gb
5. start the VM
6. Delete the snapshot

Actual results:
Virtual size is 1gb, actual size is 2gb

Expected results:
Virtual size is 2gb, actual size is 2gb

Comment 1 Sandro Bonazzola 2016-12-12 14:01:32 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 2 Natalie Gavrielov 2016-12-27 13:00:44 UTC
Verified, 
rhevm-4.1.0-0.3.beta2.el7.noarch
ovirt-engine-4.1.0-0.3.beta2.el7.noarch
vdsm-4.19.1-1.el7ev.x86_64

Note that when deleting snapshot I get Failed to GetVolumeInfoVDS errors that are related to another issue.

Comment 3 Ala Hino 2016-12-27 13:03:14 UTC
The exception related to GetVolumeInfoVDS is expected. It is printed after we try to verify that the volume was deleted.

We are planning to remove the exception trace from the log file.