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.
Description of problem:
Beyond the removal of the x- debug prefix, there are several API changes being worked on upstream that should be backported to qemu-kvm-rhev under RHEL7:
1. The addition of the "persistent" bit exposed via query-block
2/3. The addition of the "busy" and "recording" bits exposed via query-block, which replace the @status enum
4. The addition of the "inconsistent" or "corrupted" bit for bitmaps which allows the removal/resetting of bitmaps involved in a crash incident
5. QAPI documentation fixes and cleanups for 4.0
The corresponding features work as follows:
#1: Any bitmap set to be persistent should report via query-block that it is persistent, so users gain the ability to check that bitmaps will eventually be written out to disk on close (they do not get written out immediately, currently.)
#2: The "busy" bit replaces the status=FROZEN and status=LOCKED statuses. It should be set when the bitmap is being used for a backup operation OR when it is being used for an NBD export operation. Locked bitmaps cannot be used for any QMP operations, including: clear, remove, merge, enable, disable, blockdev-backup, drive-backup, or NBD exports.
#3: The "recording" bit generally replaces status=ACTIVE but it can be true concurrently with busy=true. recording means that the bitmap is enabled, and it should be true after block-dirty-bitmap-enable and it should be false after block-dirty-bitmap-disable.
#4: The inconsistent bit is set when a persistent bitmap is not properly written back to qcow2 file. Upon re-loading QEMU, this bitmap should have inconsistent=true and cannot be used for most QMP operations, including: merge, enable, disable, blockdev-backup, drive-backup, or NBD exports. The bitmap should appear as recording=false and busy=false.
Inconsistent bitmaps can be deleted with block_dirty_bitmap_remove, which should also delete it from the qcow2 file.
Inconsistent bitmaps can be cleared with block_dirty_bitmap_clear, which should set inconsistent=false but obviously the bitmap data is lost.
This can be tested by creating a dirty bitmap and simulating an unclean shutdown by using kill -9.
#5: No functional tests needed to verify.
Comment 2Miroslav Rezanina
2019-04-25 03:52:20 UTC
Verified on qemu-kvm-rhev-2.12.0-27.el7.x86_64, except issue in comment 7 and in bug 1703916, others works ok.
After comment7 confirmed, will set the bug's status to "Verified" and track the left issue by the new reported bugs.
Ah... I realize that I went out of my way to document that the anonymous bitmaps would not be user-visible, but it's actually not true. They *can* be visible... It's just that you cannot address them with any of the bitmap commands because they do not have a name.
It is probably too late to hide this from the user (as this has been the case for some time), so I will change the documentation to say that anonymous bitmaps MIGHT be visible.
I would say that this is unintentional, but not a bug, and not harmful except that it may serve to confuse.
Thank you,
--John
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://access.redhat.com/errata/RHSA-2019:2553