mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
86 lines
2.0 KiB
Plaintext
86 lines
2.0 KiB
Plaintext
//Module included in the following assemblies:
|
|
//
|
|
//* microshift_running_apps/microshift-greenboot-workload-scripts.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="microshift-greenboot-test-workload-health-check-script_{context}"]
|
|
= Testing a workload health check script
|
|
|
|
.Prerequisites
|
|
|
|
* You have root access.
|
|
* You installed a workload.
|
|
* You created a health check script for the workload.
|
|
* The {microshift-short} service is enabled.
|
|
|
|
[NOTE]
|
|
====
|
|
The output of the greenboot workload health check script varies with the host system type. Example outputs are included for your reference.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. To test that greenboot is running a health check script file, reboot the host by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo reboot
|
|
----
|
|
|
|
. Examine the output of greenboot health checks by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo journalctl -o cat -u greenboot-healthcheck.service
|
|
----
|
|
+
|
|
[NOTE]
|
|
====
|
|
{microshift-short} core service health checks run before the workload health checks.
|
|
====
|
|
+
|
|
.Example output for a RHEL for Edge system
|
|
[source,terminal]
|
|
----
|
|
GRUB boot variables:
|
|
boot_success=0
|
|
boot_indeterminate=0
|
|
Greenboot variables:
|
|
GREENBOOT_WATCHDOG_CHECK_ENABLED=true
|
|
MICROSHIFT_WAIT_TIMEOUT_SEC=600
|
|
System installation type:
|
|
ostree
|
|
System installation status:
|
|
* rhel 19619bd269094510180c845c44d0944fd9aa15925376f249c4d680a3355e51ae.0
|
|
Version: 9.4
|
|
origin refspec: edge:rhel-9.4-microshift-4.18
|
|
----
|
|
+
|
|
.Example output for an image mode for RHEL system
|
|
[source,terminal]
|
|
----
|
|
GRUB boot variables:
|
|
boot_success=0
|
|
Greenboot variables:
|
|
GREENBOOT_WATCHDOG_CHECK_ENABLED=true
|
|
MICROSHIFT_WAIT_TIMEOUT_SEC=600
|
|
System installation type:
|
|
bootc
|
|
System installation status:
|
|
bootcHost
|
|
----
|
|
+
|
|
.Example output for an RPM system
|
|
[source,terminal]
|
|
----
|
|
GRUB boot variables:
|
|
boot_success=1
|
|
boot_indeterminate=0
|
|
Greenboot variables:
|
|
GREENBOOT_WATCHDOG_CHECK_ENABLED=true
|
|
System installation type:
|
|
RPM
|
|
System installation status:
|
|
Not an ostree / bootc system
|
|
----
|