Bug 2005552

Summary: redhat-release should enable greenboot services in preset
Product: Red Hat Enterprise Linux 9 Reporter: Xiaofeng Wang <xiaofwan>
Component: redhat-releaseAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: lisas, perobins, pzatko, xiaofwan, yih
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-release-9.0-2.9.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:35:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xiaofeng Wang 2021-09-18 04:34:48 UTC
Description of problem:
Just like what RHEL 8.5 did (https://src.osci.redhat.com/rpms/redhat-release/blob/rhel-8.5.0/f/90-default.preset#_177), redhat-release should enable greenboot services in preset, like:
	
enable greenboot-grub2-set-counter.service
enable greenboot-grub2-set-success.service
enable greenboot-healthcheck.service
enable greenboot-rpm-ostree-grub2-check-fallback.service
enable greenboot-status.service
enable greenboot-task-runner.service
enable redboot-auto-reboot.service
enable redboot-task-runner.service

Version-Release number of selected component (if applicable):
redhat-release for RHEL 9

How reproducible:
Steps to Reproduce:
1. Check redhat-release code for RHEL 9 from:
I) https://src.osci.redhat.com/rpms/redhat-release/blob/rhel-9.0.0/f/90-default.preset
II) https://src.osci.redhat.com/rpms/redhat-release/blob/rhel-9.0.0-alpha/f/90-default.preset
III) https://src.osci.redhat.com/rpms/redhat-release/blob/rhel-9.0.0-beta/f/90-default.preset
2. All of above greenboot services should be enabled

Actual results:
The greenboot services are not enabled.

Expected results:
The greenboot services are enabled.

Additional info:

Comment 1 Peter Robinson 2021-09-28 15:00:29 UTC
ACKed from a RHEL for Edge development PoV

Comment 2 Lisa S 2021-10-11 21:47:04 UTC
Stephen, assigning to you for change to be made in CentOS and 9 GA.

Comment 4 Xiaofeng Wang 2021-10-13 03:15:28 UTC
Hi Stephen!
Which Internal Target Milestone should I use? What's your plan? Thanks.

Comment 5 Stephen Gallagher 2021-10-13 10:55:25 UTC
I'm setting these based on my own expectation of when they will be done.

Comment 6 Xiaofeng Wang 2021-10-13 13:51:48 UTC
Thanks Stephen!

Comment 12 Xiaofeng Wang 2021-11-03 06:55:09 UTC
Verified on redhat-release-9.0-2.9.el9.x86_64.

[admin@localhost ~]$ sudo systemctl is-enabled greenboot-grub2-set-counter greenboot-grub2-set-success greenboot-healthcheck greenboot-rpm-ostree-grub2-check-fallback greenboot-status greenboot-task-runner redboot-auto-reboot redboot-task-runner
enabled
enabled
enabled
enabled
enabled
enabled
enabled
enabled
[admin@localhost ~]$ journalctl -b -0 -u boot-complete.target -u greenboot -u greenboot-healthcheck -u greenboot-rpm-ostree-grub2-check-fallback -u greenboot-grub2-set-counter -u greenboot-grub2-set-success -u greenboot-status -u redboot -u redboot-auto-reboot -u redboot.target
-- Journal begins at Wed 2021-11-03 00:19:52 EDT, ends at Wed 2021-11-03 02:49:29 EDT. --
Nov 03 00:19:57 localhost.localdomain systemd[1]: Starting Check for fallback boot...
Nov 03 00:19:57 localhost.localdomain systemd[1]: Finished Check for fallback boot.
Nov 03 00:19:57 localhost.localdomain systemd[1]: Starting greenboot Health Checks Runner...
Nov 03 00:19:57 localhost.localdomain greenboot[709]: Running Required Health Check Scripts...
Nov 03 00:19:57 localhost.localdomain 00_required_scripts_start.sh[716]: Running greenboot Required Health Check Scripts
Nov 03 00:19:57 localhost.localdomain greenboot[709]: Script '00_required_scripts_start.sh' SUCCESS
Nov 03 00:19:57 localhost.localdomain greenboot[709]: Running Wanted Health Check Scripts...
Nov 03 00:19:57 localhost.localdomain 00_wanted_scripts_start.sh[723]: Running greenboot Wanted Health Check Scripts
Nov 03 00:19:57 localhost.localdomain greenboot[709]: Script '00_wanted_scripts_start.sh' SUCCESS
Nov 03 00:19:57 localhost.localdomain systemd[1]: Finished greenboot Health Checks Runner.
Nov 03 00:19:57 localhost.localdomain systemd[1]: Reached target Boot Completion Check.
Nov 03 00:19:57 localhost.localdomain systemd[1]: Starting Mark boot as successful in grubenv...
Nov 03 00:19:57 localhost.localdomain systemd[1]: Finished Mark boot as successful in grubenv.
Nov 03 00:19:57 localhost.localdomain systemd[1]: Starting greenboot MotD Generator...
Nov 03 00:19:57 localhost.localdomain greenboot-status[753]: Boot Status is GREEN - Health Check SUCCESS
Nov 03 00:19:57 localhost.localdomain systemd[1]: Finished greenboot MotD Generator.

Comment 14 Petr Zatko 2021-11-03 07:29:28 UTC
Thank you Xiaofeng.
Moving to VERIFIED as per comment 11 and comment 12

Comment 16 errata-xmlrpc 2022-05-17 15:35:34 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 (new packages: redhat-release), 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:3893