Updating the Self-Hosted Engine
Important:
If you're upgrading the environment, see Updating engine or self-hosted engine to 4.4 in the Upgrading Your Environment to 4.5 section.Before you can update the self-hosted engine, you must place the self-hosted engine environment in global maintenance mode.
-
Sign in to the self-hosted engine host and enable global maintenance mode.
hosted-engine --set-maintenance --mode=global -
Confirm that the environment is in maintenance mode .
hosted-engine --vm-statusThe following message indicates that the cluster is in maintenance mode.
!! Cluster is in GLOBAL MAINTENANCE mode !! - Update the release rpm.
- If you're updating from 4.4 to the latest version of 4.4,
run:
dnf update oracle-ovirt-release-el8 - If you're updating from 4.5 to the latest version of 4.5,
run:
dnf update oracle-ovirt-release-45-el8
- If you're updating from 4.4 to the latest version of 4.4,
run:
- Sign in to the engine virtual machine and verify that the engine is eligible to update
and if there are updates for any packages.
engine-upgrade-check... Upgrade available. -
Update the setup packages and resolve dependencies.
dnf update ovirt\*setup\*... Complete! - Update the self-hosted
engine:
engine-setupImportant:
The update process might take some time. Don't stop the process before it completes.The
engine-setupscript:-
Prompts you with some configuration questions
For more information, see Engine Configuration Options in the Oracle Linux Virtualization Manager: Getting Started.
-
Stops the
ovirt-engineservice -
Downloads and installs the updated packages
-
Backs up and updates the database
-
Performs postinstallation configuration
-
Starts the
ovirt-engineservice
Note:
Theengine-setupscript displays stored configuration values supplied during the initial engine installation process. These stored values display when previewing the configuration and might not be up-to-date if you ranengine-configafter installation. However,engine-setupwon't overwrite the updated values.For example, if you ran
engine-configto updateSANWipeAfterDeletetotrueafter installation,engine-setupoutputsDefault SAN wipe after delete: Falsein the configuration preview. However,engine-setupwon't not apply this value; rather, it keeps theSANWipeAfterDelete=truesetting.If the update is successful, you will see:
Execution of setup completed successfullyIf the update fails, the engine-setup command tries to rollback the installation to its previous state. If you encounter a failed update, detailed instructions display explaining how to restore the installation.
-
-
Update the base OS and any optional packages installed on the engine.
dnf updateImportant:
If any core libraries or services were upgraded, reboot the system to complete the changes. Run the following command to confirm a reboot is required:dnf needs-restarting -r,
After you update the self-hosted engine, you must disable global maintenance mode for the self-hosted engine environment.
-
Sign in to the engine virtual machine and shut it down.
-
Sign in to the self-hosted engine host and disable global maintenance mode.
hosted-engine --set-maintenance --mode=noneNote:
When you exit global maintenance mode,
ovirt-ha-agentstarts the engine virtual machine, and then the engine automatically starts. This process can take up to ten minutes. -
Confirm that the environment is running.
hosted-engine --vm-statusThe status information shows Engine Status and its value should be:
{"health": "good", "vm": "up", "detail": "Up"}When the virtual machine is still booting and the engine hasn’t started yet, the Engine status is:
{"reason": "bad vm status", "health": "bad", "vm": "up", "detail": "Powering up"}If this happens, wait a few minutes and try again.