Bug 1920063

Summary: [RFE] - allow configuration of number of greenboot boot attempts
Product: Red Hat Enterprise Linux 8 Reporter: Brian Smith <briasmit>
Component: greenbootAssignee: Peter Robinson <perobins>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bbreard, dornelas, xiaofwan, yih
Target Milestone: rcKeywords: FutureFeature, Rebase
Target Release: 8.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: greenboot-0.14.0-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2041848 (view as bug list) Environment:
Last Closed: 2022-05-10 14:15:51 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2041848    

Description Brian Smith 2021-01-25 16:30:33 UTC
Description of problem:
In RHEL for Edge 8.3, greenboot will attempt 3 boots if the health check script fails.  This is a request to make the number of boot attempts configurable.  


Version-Release number of selected component (if applicable): RHEL for Edge 8.3, greenboot-0.11-1.el8.x86_64


How reproducible: Every time


Steps to Reproduce:
1.  Configure greenboot on RHEL for Edge system
2.  Upgrade RHEL for Edge
3.  If greenboot health check script fails, 3 boot attempts are completed before rollback.  

Actual results:
- Number of greenboot boot attempts does not appear to be configurable. 

Expected results:
- Able to configure number of greenboot boot attempts


Additional info:
It appears that the number of boot attempts is set in /etc/systemd/system/ostree-finalize-staged.service.requires/greenboot-grub2-set-counter.service  However, this file is a symbolic link to a file under /usr, which on RHEL for Edge, is mounted read-only.

Comment 6 Xiaofeng Wang 2022-03-04 01:11:05 UTC
Verified on:
greenboot-0.14.0-3.el8.x86_64
greenboot-default-health-checks-0.14.0-3.el8.x86_64

Comment 8 errata-xmlrpc 2022-05-10 14:15:51 UTC
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 (greenboot 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-2022:1902