6.2. Upgrading a RHEL or RHEV-H 7 Self-Hosted Engine Environment
Note
Important
- Place the high-availability agents that manage the Manager virtual machine in the global maintenance mode.
- Update the Manager virtual machine.
- Place a self-hosted engine host into maintenance. The Manager virtual machine and other virtual machines will be migrated to another host in the cluster if necessary.
- Update the self-hosted engine host. Repeat for all hosts. It is recommended to update all hosts in the environment, including standard hosts.
- After all hosts in the cluster and the Manager virtual machine have been updated, change the cluster compatibility version to 3.6.
Procedure 6.4. Upgrading the Self-Hosted Engine Manager Virtual Machine
- Disable the high-availability agents on all the self-hosted engine hosts. To do this run the following command on any self-hosted engine host in the cluster.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow hosted-engine --set-maintenance --mode=global
# hosted-engine --set-maintenance --mode=global
After a few minutes, runhosted-engine --vm-status
to confirm that the environment is in maintenance mode. - Log in to the Manager virtual machine to upgrade the Red Hat Enterprise Virtualization Manager.
- Enable the Red Hat Enterprise Virtualization Manager 3.6 repository:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
# subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
- Update the rhevm setup packages:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum update rhevm\*setup\*
# yum update rhevm\*setup\*
- Run
engine-setup
and follow the prompts to upgrade the Red Hat Enterprise Virtualization Manager:Copy to Clipboard Copied! Toggle word wrap Toggle overflow engine-setup
# engine-setup
- Remove or disable the Red Hat Enterprise Virtualization Manager 3.5 repository to ensure the system does not use any Red Hat Enterprise Virtualization Manager 3.5 packages:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --disable=rhel-6-server-rhevm-3.5-rpms
# subscription-manager repos --disable=rhel-6-server-rhevm-3.5-rpms
- Update the base operating system:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum update
# yum update
Procedure 6.5. Updating the RHEV-H Self-Hosted Engine Host
- Update the RHEV-H host. See Updating Red Hat Enterprise Virtualization Hypervisors in the Upgrade Guide for more information.
- On the host, restart VDSM:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart vdsmd
# systemctl restart vdsmd
- Restart
ovirt-ha-broker
andovirt-ha-agent
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-broker
# systemctl restart ovirt-ha-broker
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-agent
# systemctl restart ovirt-ha-agent
- Repeat step 1 to step 3 to update all self-hosted engine hosts. If you have any standard RHEV-H hosts you can update them using step 1.
- Disable global maintenance after all self-hosted engine hosts have been updated.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow hosted-engine --set-maintenance --mode=none
# hosted-engine --set-maintenance --mode=none
Procedure 6.6. Updating the RHEL-Based Self-Hosted Engine Host
- Access the Administration Portal. Select a self-hosted engine host and place it into maintenance mode by clicking. If the host is hosting the Manager virtual machine, the virtual machine will be migrated to another host. Any other virtual machines will be migrated according to your virtual machine migration policy. The high-availability agents are automatically placed into local maintenance.
- Update the self-hosted engine host:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum update
# yum update
- Restart VDSM:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart vdsmd
# systemctl restart vdsmd
- Restart
ovirt-ha-broker
andovirt-ha-agent
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-broker
# systemctl restart ovirt-ha-broker
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-agent
# systemctl restart ovirt-ha-agent
- Access the Administration Portal. Select the same host and click.
- Repeat step 1 to step 5 to update all self-hosted engine hosts. If you have standard Red Hat Enterprise Linux 7 hosts in your environment, ensure the required repository is enabled on the host as in step 2, and update the host. See Updating Red Hat Enterprise Linux Virtualization Hosts in the Upgrade Guide for more information.
- Disable global maintenance after all self-hosted engine hosts have been updated.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow hosted-engine --set-maintenance --mode=none
# hosted-engine --set-maintenance --mode=none
Procedure 6.7. Upgrading Additional Hosts
- Access the Administration Portal. Select the host and place it into maintenance mode by clicking. If the host is hosting the Manager virtual machine, the virtual machine will be migrated to another host. Any other virtual machines will be migrated according to your virtual machine migration policy. The high-availability agents are automatically placed into local maintenance.
- Ensure the required repository is enabled:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --enable=rhel-7-server-rhev-mgmt-agent-rpms
# subscription-manager repos --enable=rhel-7-server-rhev-mgmt-agent-rpms
- Update the self-hosted engine host:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum update
# yum update
- Restart VDSM:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow service vdsmd restart
# service vdsmd restart
- Restart
ovirt-ha-broker
andovirt-ha-agent
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow service ovirt-ha-broker restart
# service ovirt-ha-broker restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow service ovirt-ha-agent restart
# service ovirt-ha-agent restart
- Access the Administration Portal. Select the host and activate it by clicking.
- Repeat the steps for all self-hosted engine hosts you want to upgrade.
Important
Procedure 6.8. Updating the Cluster Compatibility Version
- Access the Administration Portal. Select the Default cluster and click to open the Edit Cluster window.
- Use the Compatibility Version drop-down menu to select 3.6. Click to save the change and close the window.