1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-greenboot-prerollback-log.adoc
2025-04-18 13:50:54 -04:00

55 lines
1.6 KiB
Plaintext

// Module included in the following assemblies:
//
// * microshift_install_get_ready/microshift-greenboot.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-greenboot-access-prerollback-check_{context}"]
= Accessing prerollback health check output in the system log
You can access the output of health check scripts in the system log. For example, check the results of a pre-rollback script using the following procedure.
.Procedure
* To access the results of a prerollback script, run the following command:
+
[source,terminal]
----
$ sudo journalctl -o cat -u redboot-task-runner.service
----
+
.Example output of a prerollback script
[source,terminal]
----
...
...
Running Red Scripts...
STARTED
GRUB boot variables:
boot_success=0
boot_indeterminate=0
boot_counter=0
The ostree status:
* rhel c0baa75d9b585f3dd989a9cf05f647eb7ca27ee0dbd4b94fe8c93ed3a4b9e4a5.0
Version: 9.6
origin: <unknown origin type>
rhel 6869c1347b0e0ba1bbf0be750cdf32da5138a1fcbc5a4c6325ab9eb647b64663.0 (rollback)
Version: 9.6
origin refspec: edge:rhel/9/x86_64/edge
System rollback imminent - preparing MicroShift for a clean start
Stopping MicroShift services
Removing MicroShift pods
Killing conmon, pause and OVN processes
Removing OVN configuration
Finished greenboot Failure Scripts Runner.
Cleanup succeeded
Script '40_microshift_pre_rollback.sh' SUCCESS
FINISHED
redboot-task-runner.service: Deactivated successfully.
----
+
[NOTE]
====
In case of a rollback, the pre-rollback script runs the `sudo microshift-cleanup-data --ovn` command to prepare the system for a potential software downgrade.
====