You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the {op-system-ostree} `rpm-ostree` update path allows for automated backup and system rollback in case any part of the update fails.
35
36
36
37
* You can update {microshift-short} on an `rpm-ostree` system such as {op-system-ostree} by building a new system image containing the new version of {microshift-short}.
@@ -83,12 +84,19 @@ You can update {op-system-ostree} or {op-system-base} and update {microshift-sho
83
84
. Enable the correct {microshift-short} repository to ensure alignment between your {op-system-base} and {microshift-short} versions.
84
85
. Use the {microshift-short} update type specific to your update path.
== Migrating {microshift-short} from {op-system-ostree} to {op-system-image}
89
+
90
+
Starting with {microshift-short} 4.19, you can migrate your {microshift-short} cluster from {op-system-ostree} to {op-system-image} if the versions are compatible. Check compatibilities before beginning a migration. See the {op-system-base} documentation for instructions to migrate your image-based {op-system-base} system.
91
+
//RHEL docs are coming soon
92
+
86
93
//additional resources for updating RHEL and MicroShift
87
94
[role="_additional-resources"]
88
95
.Additional resources
89
96
* link:https://access.redhat.com/articles/rhel-eus#c5[How to Access EUS]
90
97
* link:https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/composing_a_customized_rhel_system_image/index[Composing a customized RHEL system image]
91
-
* xref:../microshift_updating/microshift-update-rpms-ostree.adoc#microshift-update-rpms-ostree[Applying updates on an OSTree system]
98
+
* xref:../microshift_updating/microshift-update-rpms-ostree.adoc#microshift-update-rpms-ostree[Applying updates on an {op-system-ostree} system]
92
99
* xref:../microshift_updating/microshift-update-rpms-manually.adoc#microshift-update-rpms-manually[Applying updates manually with RPMs]
93
100
* xref:../microshift_install_get_ready/microshift-greenboot.adoc#microshift-greenboot[The greenboot system health check]
94
101
* xref:../microshift_running_apps/microshift-greenboot-workload-health-checks.adoc#microshift-greenboot-workload-health-checks[Greenboot workload health checks]
102
+
//* xref:../microshift_updating/microshift-update-rhel-edge-to-image-mode.adoc#microshift-update-rhel-edge-to-image[Migrating {microshift-short} from {op-system-ostree} to {op-system-image}]
Updating {product-title} for non-OSTree systems such as {op-system-base-full} requires updating the RPMs. For patch releases, such as 4.19.1 to 4.19.2, simply update the RPMs. For minor-version release updates, add the step of enabling the update repository using your subscription manager.
9
+
Updating {product-title} for non-image-based {op-system-base-full} systems requires updating the RPMs. For patch releases, such as 4.19.1 to 4.19.2, simply update the RPMs. For minor-version release updates, add the step of enabling the update repository using your subscription manager.
Updating {microshift-short} on an `rpm-ostree` system such as {op-system-ostree-first}requires building a new {op-system-ostree} image containing the new version of {microshift-short}and any associated optional RPMs. After you have the `rpm-ostree` image with {microshift-short} embedded, direct your system to boot into that operating system image.
9
+
You can update {microshift-short} on {op-system-ostree-first}by embedding the new version of {microshift-short}on a new operating system image.
10
10
11
-
The procedures are the same for minor-version and patch updates. For example, use the same steps to upgrade from 4.18 to 4.19 or from 4.19.2 to 4.19.3.
12
-
13
-
[NOTE]
14
-
====
15
-
Downgrades other than automatic rollbacks are not supported. The following procedure is for updates only.
= Migrating {microshift-short} to {op-system-image}
8
+
9
+
Migrating {microshift-short} from a {op-system-ostree-first} system to a {op-system-image} system requires building a new {op-system-image} image containing the required version of {microshift-short} and any associated optional RPMs.
10
+
11
+
See the {op-system-base-full} documentation for general instructions on migrating {op-system-ostree} systems to {op-system-image} using the `bootc switch` command. Plan the upgrade process carefully. The following tips apply:
12
+
13
+
* Follow the instructions in the {op-system-base} documentation for converting `rpm-ostree` blueprint files to image mode container files.
14
+
* 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 {op-system-image} image that is based on existing `ostree` commits.
15
+
* To fully adopt {op-system-image}, define a container build pipeline.
16
+
* Plan for UID and GID drift because {op-system-ostree} and {op-system-image} are not derived from the same parent image. See the {op-system-base} documentation for more information.
= Working around UID and GID drift when migrating to {op-system-image}
8
+
9
+
If you do not re-install operating systems that are running {microshift-short}, 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.
10
+
11
+
.Prerequisites
12
+
13
+
* You have an existing {op-system-ostree} deployment running {microshift-short}.
14
+
* You have root access to the build host.
15
+
* You have an image that you want to deploy.
16
+
17
+
.Procedure
18
+
19
+
* 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-short} image-build procedure:
20
+
+
21
+
[source,terminal]
22
+
----
23
+
# Install systemd configuration drop-ins to fix potential permission problems when upgrading from rpm-ostree commits to image mode container layers
24
+
RUN mkdir -p /usr/lib/systemd/system/ovsdb-server.service.d && \
# The openvswitch database files must be owned by the appropriate user and its primary group. That the user and its group can be overwritten, recreate them.
<1> You can replace _{ocp-version}_ with the major and minor version of your compatible {op-system-base} system if it is not the same version given in this example.
35
-
36
27
. If you are using an EUS {microshift-short} release, disable the {op-system-base} standard-support-scope repositories by running the following command:
= {microshift-short} updates on an {op-system-ostree} system
8
+
9
+
Updating {microshift-short} on a {op-system-ostree-first} system requires building a new {op-system-ostree} image containing the new version of {microshift-short} and any associated optional RPMs. After you create the `rpm-ostree` image with {microshift-short} embedded, you can boot into that operating system image.
10
+
11
+
The procedures are the same for minor-version and patch updates. For example, use the same steps to upgrade from 4.18 to 4.19 or from 4.19.2 to 4.19.3. The following details apply:
12
+
13
+
* Back up and system rollback are automatic with this update type.
14
+
* You can use the following workflow to update applications running in the {microshift-short} cluster. Ensure compatibilities between the application and the adjacent versions of {microshift-short} and {op-system-ostree} before starting an update.
15
+
* Downgrades other than automatic rollbacks are not supported. The following procedure is for updates only.
16
+
+
17
+
[IMPORTANT]
18
+
====
19
+
The steps you use depends on how your existing deployment is set up. The following procedure outlines the general steps you can take, with links to the {op-system-ostree} documentation. The {op-system-ostree} documentation is your resource for specific details on building an updated operating system image.
Copy file name to clipboardExpand all lines: modules/microshift-updating-rpms-ostree.adoc
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,9 @@
4
4
5
5
:_mod-docs-content-type: PROCEDURE
6
6
[id="microshift-updates-rpms-ostree_{context}"]
7
-
= Applying updates on an rpm-ostree system
7
+
= Applying updates on an {op-system-ostree} system
8
8
9
-
To update {microshift-short} on an `rpm-ostree` system such as {op-system-ostree-first}, embed the new version of {microshift-short} on a new operating system image.
10
-
11
-
* Back up and system rollback are automatic with this update type.
12
-
* You can also use this workflow to update applications running in the {microshift-short} cluster. Ensure compatibility between the application and the adjacent versions of {microshift-short} and {op-system-ostree} before starting an update.
13
-
14
-
[IMPORTANT]
15
-
====
16
-
The steps you use depends on how your existing deployment is set up. The following procedure outlines the general steps you can take, with links to the {op-system-ostree} documentation. The {op-system-ostree} documentation is your resource for specific details on building an updated operating system image.
17
-
====
9
+
To update {microshift-short} on {op-system-ostree-first}, embed the new version of {microshift-short} on a new operating system image.
0 commit comments