Chapter 4. Migrating MicroShift from RHEL for Edge to image mode for RHEL
To migrate MicroShift from Red Hat Enterprise Linux for Edge (RHEL for Edge), embed MicroShift on a new image mode for RHEL image.
4.1. Migrating MicroShift to image mode for RHEL Copy linkLink copied to clipboard!
Migrating MicroShift from a Red Hat Enterprise Linux for Edge (RHEL for Edge) system to a image mode for RHEL system requires building a new image mode for RHEL image containing the required version of MicroShift and any associated optional RPMs.
See the Red Hat Enterprise Linux (RHEL) documentation for general instructions on migrating RHEL for Edge systems to image mode for RHEL using the bootc switch
command. Plan the upgrade process carefully. The following tips apply:
-
Follow the instructions in the RHEL documentation for converting
rpm-ostree
blueprint files to image mode container files. -
You can use the
rpm-ostree compose container-encapsulate
image-compose command to create a base container image that can be used for bootc container builds. Then you can derive and familiarize yourself with an image mode for RHEL image that is based on existingostree
commits. - To fully adopt image mode for RHEL, define a container build pipeline.
- Plan for UID and GID drift because RHEL for Edge and image mode for RHEL are not derived from the same parent image. See the RHEL documentation for more information.
4.2. Working around UID and GID drift when migrating to image mode for RHEL Copy linkLink copied to clipboard!
If you do not re-install operating systems that are running MicroShift, you must use a workaround for a possible UID and GID drift during the migration process. One way to solve this problem is to add systemd
units that apply the necessary fixes before the affected system services are started.
Prerequisites
- You have an existing RHEL for Edge deployment running MicroShift.
- You have root access to the build host.
- You have an image that you want to deploy.
Procedure
Solve the potential UID or GID drift for the Open vSwitch (OVS)
systemd
service,ovsdb-server.service
, by adding the following command to the MicroShift image-build procedure:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After the MicroShift migration to image mode for RHEL is complete, this workaround is not needed and can be removed.