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 864962 - mirroring starts anyway with "existing" mode and a non-existing target
Summary: mirroring starts anyway with "existing" mode and a non-existing target
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 861905 (view as bug list)
Depends On: 814102
Blocks: 844627
TreeView+ depends on / blocked
 
Reported: 2012-10-10 13:47 UTC by RHEL Program Management
Modified: 2013-01-10 01:10 UTC (History)
16 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.295.el6_3.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-01 09:26:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1420 0 normal SHIPPED_LIVE new packages: qemu-kvm-rhev, qemu-kvm-rhev-tools, qemu-img-rhev 2012-11-01 13:23:48 UTC

Description RHEL Program Management 2012-10-10 13:47:09 UTC
This bug has been copied from bug #814102 and has been proposed
to be backported to 6.3 z-stream (EUS).

Comment 4 Jiri Pallich 2012-10-10 13:48:34 UTC
*** Bug 861905 has been marked as a duplicate of this bug. ***

Comment 7 Paolo Bonzini 2012-10-10 17:02:52 UTC
Note that the patch was already acked for 6.3.z when it was first posted.

Comment 10 juzhang 2012-10-19 08:58:40 UTC
Reproduced on qemu-kvm-0.12.1.2-2.295.el6_3.2.

Steps:
1. { "execute" : "__com.redhat_drive-mirror", "arguments" : { "device" : "drive-virtio-disk0", "target" : "/root/sn1", "format": "qcow2", "mode": "existing", "full" : false } }
{"error": {"class": "OpenFileFailed", "desc": "Could not open '/root/sn1'", "data": {"filename": "/root/sn1"}}}
2. in hmp
(qemu) info block-jobs 
Type mirror, device drive-virtio-disk0: Completed 0 of 0 bytes, speed limit 0 bytes/s

3.{ "execute": "transaction", "arguments": {'actions': [ { 'type': 'blockdev-snapshot-sync', 'data' : { 'device': 'drive-virtio-disk0', 'snapshot-file': '/root/sn1' } }] } }
{"error": {"class": "DeviceInUse", "desc": "Device 'drive-virtio-disk0' is in use", "data": {"device": "drive-virtio-disk0"}}}


Results:
1.(qemu) info block-jobs 
Type mirror, device drive-virtio-disk0: Completed 0 of 0 bytes, speed limit 0 bytes/s
2.{"error": {"class": "DeviceInUse", "desc": "Device 'drive-virtio-disk0' is in use", "data": {"device": "drive-virtio-disk0"}}}


Verify on qemu-kvm-rhev-0.12.1.2-2.295.el6_3.4.x86_64.

Steps:
1.  { "execute" : "__com.redhat_drive-mirror", "arguments" : { "device" : "drive-virtio-disk0", "target" : "/root/sn1", "format": "qcow2", "mode": "existing", "full" : false } }
{"error": {"class": "OpenFileFailed", "desc": "Could not open '/root/sn1'", "data": {"filename": "/root/sn1"}}}
2. { "execute": "transaction", "arguments": {'actions': [ { 'type': 'blockdev-snapshot-sync', 'data' : { 'device': 'drive-virtio-disk0', 'snapshot-file': '/root/sn1' } }] } }
{"return": {}}

Results:
after step1
(qemu) info block-jobs 
No active jobs
after step2
(qemu) info block
drive-virtio-disk0: removable=0 io-status=ok file=/root/sn1 backing_file=/root/blockcopy/rhel6.4.qcow ro=0 drv=qcow2 encrypted=0

Comment 13 errata-xmlrpc 2012-11-01 09:26:01 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-2012-1420.html


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