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:
The boom cache uses a reference count scheme to determine if a cache or backup image is in use: images are automatically removed once all entries that reference them have been deleted.
There are two related bugs in the reference counting in boom-1.1: foreign boot entries (e.g. system managed BLS entries) should not contribute to the use count, since they are outside of the boom image caching mechanism, and a side-effect of the original implementation of --backup in the boom.command module causes a spurious warning message to be emitted when backing up an image that is already used by another boot entry:
# boom create --backup --title "TEST" --rootlv rhel/root
WARNING - Uncaching path '/initramfs-4.18.0-167.el8.x86_64.img' used by 1 boot entries
WARNING - Uncaching path '/vmlinuz-4.18.0-167.el8.x86_64' used by 2 boot entries
Created entry with boot_id a3ca19c:
title TEST
machine-id b49e623f993c4fd7b200c5e350f9cacc
version 4.18.0-167.el8.x86_64
linux /vmlinuz-4.18.0-167.el8.x86_64.boom0
initrd /initramfs-4.18.0-167.el8.x86_64.img.boom0
options root=/dev/rhel/root ro rd.lvm.lv=rhel/root rhgb quiet
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel
The warning is seen whenever a system managed boot entry for the backup image exists (since these entries incorrectly contribute to the use count in boom-1.1).
Version-Release number of selected component (if applicable):
boom-1.1-2.el8
How reproducible:
100%
Steps to Reproduce:
1. boom create --backup --title test --rootlv ...
Actual results:
Warning message emitted.
Expected results:
No warnings.
Additional info:
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 (boom-boot bug fix and enhancement update), 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/RHBA-2020:4532