Bug 2126170

Summary: Greenboot service monitor triggers failure if services are disabled
Product: Red Hat Enterprise Linux 9 Reporter: Sayan <saypaul>
Component: greenbootAssignee: Paul Whalen <pwhalen>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact: Eliane Ramos Pereira <elpereir>
Priority: unspecified    
Version: 9.1CC: amurdaca, miabbott, perobins, xiaofwan
Target Milestone: rcKeywords: Bugfix, Reopened, Triaged
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: greenboot-0.15.3-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-02 13:09:25 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 Sayan 2022-09-12 16:38:19 UTC
Description of problem:
The issue prevents system from booting correctly if greenboot service monitor is set to monitor a disabled or un-installed service

Version-Release number of selected component (if applicable):
greenboot-0.15.2-1.el9.x86_64

Steps to Reproduce:
1. set GREENBOOT_MONITOR_SERVICES="httpd" (or any service which is disabled or not installed)
2. reboot

Actual results:
[FAILED] Failed to start Monitor user services.
See 'systemctl status greenboot-service-monitor.service' for details.
[DEPEND] Dependency failed for Boot Completion Check.
[DEPEND] Dependency failed for Mark boot as successful in grubenv.
[DEPEND] Dependency failed for greenboot Success Scripts Runner.

Expected results:
Sep 12 10:54:54 vm systemd[1]: Finished greenboot Health Checks Runner.
Sep 12 10:54:54 vm systemd[1]: greenboot-service-monitor.service: Deactivated successfully.
Sep 12 10:54:54 vm systemd[1]: Starting greenboot Success Scripts Runner...
Sep 12 10:54:54 vm greenboot[1096]: Boot Status is GREEN - Health Check SUCCESS
Sep 12 10:54:54 vm greenboot[1096]: Running Green Scripts...
Sep 12 10:54:54 vm systemd[1]: Finished greenboot Success Scripts Runner.

Comment 1 Antonio Murdaca 2023-02-02 08:48:44 UTC
we ended up rolling back ignition as this feature was broken

Comment 2 Paul Whalen 2023-02-14 17:34:05 UTC
Reopening, greenboot-0.15.3-1.el9 should be included in 9.2.