mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 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 have installed a workload.
|
|
* You have created a health check script for the workload.
|
|
* The {product-title} service is enabled.
|
|
|
|
.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
|
|
[source,terminal]
|
|
----
|
|
GRUB boot variables:
|
|
boot_success=0
|
|
boot_indeterminate=0
|
|
Greenboot variables:
|
|
GREENBOOT_WATCHDOG_CHECK_ENABLED=true
|
|
...
|
|
...
|
|
FINISHED
|
|
Script '40_microshift_running_check.sh' SUCCESS
|
|
Running Wanted Health Check Scripts...
|
|
Finished greenboot Health Checks Runner.
|
|
----
|