Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 706817

Summary: [vdsm] [Storage] Corrupted template from RAW preallocated disk.
Product: Red Hat Enterprise Linux 6 Reporter: David Naori <dnaori>
Component: vdsmAssignee: Igor Lvovsky <ilvovsky>
Status: CLOSED ERRATA QA Contact: David Naori <dnaori>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, dnaori, hateya, iheim, ilvovsky, jlibosva, lpeer, mgoldboi, pstehlik, ykaul
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: vdsm-4.9-72.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:19:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 705856    
Attachments:
Description Flags
full vdsm log none

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