Bug 2046433 - "Entry does not exist" when attempting to delete a listed boom entry
Summary: "Entry does not exist" when attempting to delete a listed boom entry
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: boom-boot
Version: 9.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Bryn M. Reeves
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-26 16:46 UTC by Corey Marthaler
Modified: 2023-08-10 15:39 UTC (History)
4 users (show)

Fixed In Version: boom-boot-1.5.1-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6679 0 None None None 2023-05-15 17:16:25 UTC
Red Hat Issue Tracker RHELPLAN-109887 0 None None None 2022-01-26 17:14:43 UTC

Description Corey Marthaler 2022-01-26 16:46:01 UTC
Description of problem:
[root@hayes-03 ~]# boom list
WARNING - Options for BootEntry(boot_id=d011a11) do not match OsProfile: marking read-only
WARNING - Options for BootEntry(boot_id=17daa57) do not match OsProfile: marking read-only
BootID  Version                  Name                     RootDevice                               
d011a11 5.14.0-44.el9.x86_64     Red Hat Enterprise Linux UUID=f244593b-352a-4dc6-891d-b7ebf6014aa9

[root@hayes-03 ~]# boom delete d011a11
WARNING - Options for BootEntry(boot_id=d011a11) do not match OsProfile: marking read-only
WARNING - Options for BootEntry(boot_id=17daa57) do not match OsProfile: marking read-only
Entry does not exist: /boot/loader/entries/914bad8a1084420bb933ef7a98196594-d011a11-5.14.0-44.el9.x86_64.conf

[root@hayes-03 ~]# echo $?
1

Version-Release number of selected component (if applicable):
boom-boot-1.3-3.el9    BUILT: Mon Aug  9 02:52:24 PM CDT 2021

Comment 1 Bryn M. Reeves 2023-03-15 19:28:56 UTC
These are boot entries provided by the system - boom treats them as read-only, and should not allow you to delete them but the error message is confusing and should be changed to something like "Cannot delete read-only boot entry d011a11".

Comment 2 Bryn M. Reeves 2023-04-11 16:07:48 UTC
This was fixed upstream:

commit 42f66737e1d7dec432cd7fc330f87304a585c308
Author: Bryn M. Reeves <bmr>
Date:   Tue Jun 14 07:54:29 2022 -0400

    boom.bootloader: do not allow deletion of read-only boot entries
    
    Currently when attempting to delete an entry that has been marked
    read-only boom generates a misleading error message:
    
      # boom delete 7fce1e5
      Entry does not exist: /boot/loader/entries/619c4d9f1efa4cf7bd76f149f12138a0-7fce1e5-5.14.0-108.el9.x86_64.conf
    
    Boom should not attempt to delete entries that are marked read-only;
    these are either system provided entries, or entries that have been
    modified outside of boom's control. Reject attempts to delete these
    with an error that indicates the reason they cannot be removed:
    
      # boom delete f6f8df5
      Cannot delete read-only boot entry: /boot/loader/entries/68f613d8774e41e792fad28212cfedae-4.18.0-348.el8.x86_64.conf
    
    Resolves: #10
    
    Signed-off-by: Bryn M. Reeves <bmr>

Comment 5 Corey Marthaler 2023-06-05 22:19:44 UTC
This appears to be fixed in the latest 9.3 boom build, however the Fixed In version is not yet set.

boom-boot-1.5.1-1.el9    BUILT: Wed May 17 03:00:49 PM CEST 2023

[root@virt-521 ~]# boom list
BootID  Version                  Name                     RootDevice                     
46a62fb 5.14.0-312.el9.x86_64    Red Hat Enterprise Linux /dev/mapper/rhel_virt--521-root
[root@virt-521 ~]# boom delete 46a62fb
Cannot delete read-only boot entry: /boot/loader/entries/c3af67c026d4445a8e38bad5ae16d7f5-5.14.0-312.el9.x86_64.conf

Comment 10 Corey Marthaler 2023-06-28 16:01:23 UTC
Marking Verfied:Tested in the latest rpms. 

boom-boot-1.5.1-1.el9    BUILT: Wed May 17 03:00:49 PM CEST 2023


[root@grant-01 ~]# boom list
BootID  Version                  Name                     RootDevice                     
6aa5654 5.14.0-322.el9.x86_64    Red Hat Enterprise Linux /dev/mapper/rhel_grant--01-root
[root@grant-01 ~]# boom delete  6aa5654
Cannot delete read-only boot entry: /boot/loader/entries/7b2d82dad70f4ece8f867b6a482308de-5.14.0-322.el9.x86_64.conf


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