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 997878 - Kill -SIGUSR1 `pidof qemu-img convert` can not get progress of qemu-img
Summary: Kill -SIGUSR1 `pidof qemu-img convert` can not get progress of qemu-img
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-16 11:07 UTC by juzhang
Modified: 2014-06-18 03:34 UTC (History)
6 users (show)

Fixed In Version: qemu-kvm-1.5.3-47.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:02:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description juzhang 2013-08-16 11:07:02 UTC
Description of problem:
Kill -SIGUSR1 `pidof qemu-img convert` can not get progress of qemu-img 

Version-Release number of selected component (if applicable):
qemu-img-1.5.2-3.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Convert image format from qcow2 to qcow2/qcow2_v3
qemu-img convert -p /home/rhel7cp1.qcow2 -f qcow2 -O qcow2 -o compat=1.1 test.qcow2_v3
2. Issue "kill -SIGUSR1 `pidof qemu-img`" during the rebase

Actual results:
can not get progress of qemu-img 

Expected results:
Be able to get progress of qemu-img like the following image
#qemu-img convert /home/win7.qcow2 -f qcow2 -O qcow2 test.qcow2
    (2.01/100%)
    (8.02/100%)
    (10.03/100%)
    (12.03/100%)
    (14.04/100%)
    (16.04/100%)
    (18.05/100%)
    (24.06/100%)
    (26.07/100%)
    (28.07/100%)
    (30.08/100%)
    (74.19/100%)

Additional info:
1. I tried rhel6.5 qemu-img, can get the get progress of qemu-img
2. I checked the history bug and found that we supported this feature from https://bugzilla.redhat.com/show_bug.cgi?id=621482#c25

Comment 3 Miroslav Rezanina 2014-02-12 12:02:35 UTC
Fix included in qemu-kvm-1.5.3-47.el7

Comment 5 Sibiao Luo 2014-02-14 03:04:10 UTC
Still hit it with qemu-kvm-1.5.3-47.el7.x86_64, it fail to fix, re-assign again.

host info:
# uname -r && rpm -q qemu-kvm
3.10.0-86.el7.x86_64
qemu-kvm-1.5.3-47.el7.x86_64

# qemu-img info /home/win2008r2-64-virtio.qcow2
image: /home/win2008r2-64-virtio.qcow2
file format: qcow2
virtual size: 30G (32212254720 bytes)
disk size: 7.1G
cluster_size: 65536
Format specific information:
    compat: 0.10

# qemu-img convert -p /home/win2008r2-64-virtio.qcow2 -f qcow2 -O qcow2 -o compat=1.1 test.qcow2
^C  (20.70/100%)

Best Regards,
sluo

Comment 6 Kevin Wolf 2014-02-14 10:43:45 UTC
Three things are confusing me about your failed test case:

1. You don't mention any command to even send SIGUSR1
2. The output you pasted does contain a percentage
3. Why do you use -p for testing SIGUSR1 handling? SIGUSR1 doesnt' have any
   effect with -p because -p always prints the progress, even without a signal.

Can you clarify, please?


Locally, I confirmed once more that the bug is indeed fixed for me:

Terminal 1:
$ qemu-img convert -O qcow2 ~/images/f18.qcow2 /tmp/out.qcow2
    (25.59/100%)
    (29.63/100%)
    (32.65/100%)
    (46.55/100%)

Terminal 2:
$ killall -SIGUSR1 qemu-img
$ killall -SIGUSR1 qemu-img
$ killall -SIGUSR1 qemu-img
$ killall -SIGUSR1 qemu-img

Comment 7 Sibiao Luo 2014-02-17 02:51:20 UTC
(In reply to Kevin Wolf from comment #6)
> Three things are confusing me about your failed test case:
> 
> 1. You don't mention any command to even send SIGUSR1
> 2. The output you pasted does contain a percentage
> 3. Why do you use -p for testing SIGUSR1 handling? SIGUSR1 doesnt' have any
>    effect with -p because -p always prints the progress, even without a
> signal.
> 
> Can you clarify, please?
> 
OK, thanks for your point it out.
> Locally, I confirmed once more that the bug is indeed fixed for me:
> 
> Terminal 1:
> $ qemu-img convert -O qcow2 ~/images/f18.qcow2 /tmp/out.qcow2
>     (25.59/100%)
>     (29.63/100%)
>     (32.65/100%)
>     (46.55/100%)
> 
> Terminal 2:
> $ killall -SIGUSR1 qemu-img
> $ killall -SIGUSR1 qemu-img
> $ killall -SIGUSR1 qemu-img
> $ killall -SIGUSR1 qemu-img

Verified it with your instruction with qemu-kvm-1.5.3-47.el7.x86_64.
host info:
3.10.0-86.el7.x86_64
qemu-kvm-1.5.3-47.el7.x86_64

- Terminal 1:
# qemu-img convert /home/win2008r2-64-virtio.qcow2 -f qcow2 -O qcow2 -o compat=1.1 test.qcow2
    (8.70/100%)
    (10.70/100%)
    (12.71/100%)
    (16.72/100%)
    (20.73/100%)

- Terminal 2:
# kill -SIGUSR1 `pidof qemu-img`
# kill -SIGUSR1 `pidof qemu-img`
# kill -SIGUSR1 `pidof qemu-img`
# kill -SIGUSR1 `pidof qemu-img`
# kill -SIGUSR1 `pidof qemu-img`

Be able to get progress of qemu-img when kill -SIGUSR1 `pidof qemu-img convert`.

Base on above, this issue has been fixed correctly, move to VERIFIED status.

Best Regards,
sluo

Comment 9 Ludek Smid 2014-06-13 11:02:41 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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