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.
Created attachment 924231[details]
Reproducer
Description of problem:
When using the virDomainBlockJobInfo command to check the status of an ongoing block commit operation involving the active layer, the type is reported as
VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT when it should be VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT.
Version-Release number of selected component (if applicable):
libvirt-daemon-kvm-1.2.7
How reproducible: Always
Steps to Reproduce: See reproducer shell script in attachment
Actual results: type is reported as VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT
Expected results: type is reported as VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT
In POST, since rebase to 1.2.8 will pick up this patch:
commit e8cc973041e7ac4ddeefe343af751863c76687fe
Author: Eric Blake <eblake>
Date: Tue Aug 5 08:49:32 2014 -0600
blockjob: correctly report active commit for job info
Commit 232a31b munged job info to report 'active commit' instead of
'commit' when generating events, but forgot to also munge the polling
variant of the command.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Adjust type as
needed.
Signed-off-by: Eric Blake <eblake>
Test stpes as below:
with libvirt-1.2.8-5.el7
1. Prepare a running guest
# virsh list
Id Name State
----------------------------------------------------
2 rhel6.5 running
2. Create four external disk snapshot
# for i in $(seq 1 5);do virsh snapshot-create-as rhel6.5 s$i --disk-only;done
Domain snapshot s1 created
Domain snapshot s2 created
Domain snapshot s3 created
Domain snapshot s4 created
Domain snapshot s5 created
3. Do active block commit, check blockjob info in another terminal at same time
# virsh blockcommit rhel6.5 vda --active 1
Block Commit started
in another terminal:
# while true;do virsh blockjob rhel6.5 vda --info;done
..
Active Block Commit: [ 76 %] Bandwidth limit: 1 MiB/s
..
Active Block Commit: [100 %] Bandwidth limit: 1 MiB/s
4. Do inactive block commit, check blockjob info in another terminal at same time (clean env, repeat step 1,2)
#virsh blockcommit rhel6.5 vda --top vda[1] --base vda[5]
Block Commit started
in another terminal:
# while true;do virsh blockjob rhel6.5 vda --info;done
..
Block Commit: [ 82 %]
Block Commit: [ 82 %]
..
Block Commit: [100 %]
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.
https://rhn.redhat.com/errata/RHSA-2015-0323.html
Created attachment 924231 [details] Reproducer Description of problem: When using the virDomainBlockJobInfo command to check the status of an ongoing block commit operation involving the active layer, the type is reported as VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT when it should be VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT. Version-Release number of selected component (if applicable): libvirt-daemon-kvm-1.2.7 How reproducible: Always Steps to Reproduce: See reproducer shell script in attachment Actual results: type is reported as VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT Expected results: type is reported as VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT