Bug 706817 - [vdsm] [Storage] Corrupted template from RAW preallocated disk.
Summary: [vdsm] [Storage] Corrupted template from RAW preallocated disk.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Igor Lvovsky
QA Contact: David Naori
URL:
Whiteboard: storage
: 709360 (view as bug list)
Depends On:
Blocks: 705856
TreeView+ depends on / blocked
 
Reported: 2011-05-23 06:31 UTC by David Naori
Modified: 2013-03-01 04:53 UTC (History)
11 users (show)

Fixed In Version: vdsm-4.9-72.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:19:00 UTC
Target Upstream Version:


Attachments (Terms of Use)
full vdsm log (1.32 MB, application/binary)
2011-05-23 06:31 UTC, David Naori
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

Description David Naori 2011-05-23 06:31:36 UTC
Created attachment 500339 [details]
full vdsm log

Description of problem:
Corrupted template is created when- copyImage from RAW-Preallocated to RAW-Preallocated (dd is used)

Steps:
1)Installed rhel6 on vm and created a template from it
2)Created vm from this template > boot fails.

Version-Release number of selected component (if applicable):
vdsm-4.9-68.el6.x86_64

c2c65859-37c0-401a-96ba-1ffc74ca1252::INFO::2011-05-22 19:06:08,347::image::657::Storage.Image::(copy) sdUUID=da26e8a5-40d3-4f78-84be-8f74db85a8b1 vmUUID=8d42fa12-bf6d-4223-8a1c
-0267a716eafa srcImgUUID=dd0a3653-9794-4cee-984c-c2be9ae3d1a6 srcVolUUID=6151ba00-ca92-4d3c-a212-1608783a446a dstImgUUID=207796ec-09ba-43af-8ff6-6d98d5b8da7c dstVolUUID=7bd88b25
-0551-4480-90f7-ae8c758232be dstSdUUID=da26e8a5-40d3-4f78-84be-8f74db85a8b1 volType=6 volFormat=RAW preallocate=PREALLOCATED force=False postZero=False


c2c65859-37c0-401a-96ba-1ffc74ca1252::DEBUG::2011-05-22 19:06:08,381::fileVolume::113::Storage.Misc.excCmd::(create) '/usr/bin/sudo -n /usr/bin/ionice -c2 -n7 /bin/su vdsm -s /bin/sh -c "/bin/dd if=/dev/zero of=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/207796ec-09ba-43af-8ff6-6d98d5b8da7c/7bd88b25-0551-4480-90f7-ae8c758232be bs=1048576 seek=0 skip=0 conv=notrunc count=10 oflag=direct"' (cwd None)

-tested copyImage with qemu-img convert and it works well.

How reproducible:
100%

*full vdsm log attached.

Comment 1 David Naori 2011-05-23 06:52:55 UTC
*Copied the wrong part of the log:

Here is the dd command:

c2c65859-37c0-401a-96ba-1ffc74ca1252::DEBUG::2011-05-22 19:06:08,643::volume::937::Storage.Misc.excCmd::(qemuConvert) '/usr/bin/sudo -n /usr/bin/ionice -c2 -n7 /bin/su vdsm -s 
/bin/sh -c "/bin/dd if=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/dd0a3653-9794-4cee-984c-c2be9ae3d1a6/6151ba00-ca92-4d3
c-a212-1608783a446a of=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/207796ec-09ba-43af-8ff6-6d98d5b8da7c/7bd88b25-0551-448
0-90f7-ae8c758232be bs=1048576 seek=0 skip=0 conv=notrunc count=10 oflag=direct"' (cwd None)

Comment 5 Igor Lvovsky 2011-05-31 12:17:46 UTC
http://gerrit.usersys.redhat.com/#change,499

Comment 6 Jakub Libosvar 2011-05-31 14:13:20 UTC
*** Bug 709360 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2011-12-06 07:19:00 UTC
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.

http://rhn.redhat.com/errata/RHEA-2011-1782.html


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