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.
Bug 2005552 - redhat-release should enable greenboot services in preset
Summary: redhat-release should enable greenboot services in preset
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: redhat-release
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Stephen Gallagher
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-18 04:34 UTC by Xiaofeng Wang
Modified: 2022-05-17 15:36 UTC (History)
5 users (show)

Fixed In Version: redhat-release-9.0-2.9.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:35:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELBLD-7521 0 None None None 2021-09-18 04:36:05 UTC
Red Hat Issue Tracker RHELPLAN-97503 0 None None None 2021-09-18 04:36:09 UTC
Red Hat Issue Tracker RTT-3857 0 None None None 2021-10-13 12:44:09 UTC
Red Hat Issue Tracker RTT-3858 0 None None None 2021-10-13 12:44:15 UTC
Red Hat Product Errata RHBA-2022:3893 0 None None None 2022-05-17 15:35:49 UTC

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


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