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 1063559 - VHDX: journal log should not be replayed by default, but rather via qemu-img check -r all
Summary: VHDX: journal log should not be replayed by default, but rather via qemu-img ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1006159
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-11 03:11 UTC by Sibiao Luo
Modified: 2014-10-14 06:55 UTC (History)
9 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.431.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 1035001
Environment:
Last Closed: 2014-10-14 06:55:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1490 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2014-10-14 01:28:27 UTC

Comment 1 Sibiao Luo 2014-02-11 03:12:29 UTC
host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-425.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.420.el6.x86_64

# qemu-img check tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not supported

# qemu-img check -r all tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not supported

Best Regards,
sluo

Comment 3 Jeff Cody 2014-06-22 22:46:04 UTC
Reopening, to go along with BZ 1006159

Comment 5 Miroslav Rezanina 2014-07-23 10:34:57 UTC
Fix included in qemu-kvm-0.12.1.2-2.431.el6

Comment 7 Sibiao Luo 2014-07-28 09:25:44 UTC
######Reproduced:
host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-493.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.428.el6.x86_64

Steps and Results:
1. If the image is opened r/o.
# qemu-img check -f vhdx tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not supported

2. If the image is opened r/w.
# qemu-img check -r all tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not supported

# qemu-img check -f vhdx tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not supported

######Verified:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-493.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.431.el6.x86_64

Steps and Results:
1. If the image is opened r/o, and has a dirty log, provide a helpful error message instructing the user to run qemu-img check -r all, to replay the image.
# qemu-img check -f vhdx tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
VHDX image file 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed.  To replay the log, execute:
 qemu-img check -r all 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx'
Could not open 'tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx': Operation not permitted

2. If the image is opened r/w, and has a dirty log, replay the log automatically as we currently do.
# qemu-img check -r all tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
The following inconsistencies were found and repaired:

    0 leaked clusters
    1 corruptions

Double checking the fixed image now...
No errors were found on the image.

# qemu-img check -f vhdx tests_qemu-iotests_sample_images_iotest-dirtylog-10G-4M.vhdx
No errors were found on the image.

Base on above, this issue has been fixed correctly, move to VERIFIED status, please correct me if any mistake, thanks in advance.

Best Regards,
sluo

Comment 8 errata-xmlrpc 2014-10-14 06:55:33 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/RHBA-2014-1490.html


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