Skip to content

Commit d6f9c27

Browse files
authored
Merge pull request #28918 from apinnick/mig529-tagging-ocp3-images-for-ocp4
Updating OCP3 internal images for OCP4 cluster (1.4.1)
2 parents 9639733 + 5d944a6 commit d6f9c27

File tree

3 files changed

+70
-31
lines changed

3 files changed

+70
-31
lines changed

migration/migrating_3_4/migrating-applications-with-cam-3-4.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ You can configure a migration plan to suit your needs by increasing the number o
2323

2424
include::modules/migration-changing-migration-plan-limits.adoc[leveloffset=+2]
2525
include::modules/migration-excluding-resources.adoc[leveloffset=+2]
26+
include::modules/migration-updating-internal-images.adoc[leveloffset=+2]
2627

2728
[role="_additional-resources"]
2829
== Additional resources

modules/migration-prerequisites.adoc

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,5 @@ endif::[]
1616
* You must upgrade the source cluster to the latest z-stream release.
1717
* You must have `cluster-admin` privileges on all clusters.
1818
* The source and target clusters must have unrestricted network access to the replication repository.
19-
* The cluster on which the `MigrationController` CR is installed must have unrestricted access to the other clusters.
20-
* If your application uses images from the `openshift` namespace, the required versions of the images must be present on the target cluster.
21-
+
22-
If the required images are not present, you must update the image stream tag references to use an available version that is compatible with your application. If the image stream tags cannot be updated, you can manually upload equivalent images to the application namespaces and update the applications to use them.
23-
24-
The following image stream tags have been _removed_ from {product-title} _4.2_:
25-
26-
* `dotnet:1.0`, `dotnet:1.1`, `dotnet:2.0`
27-
* `dotnet-runtime:2.0`
28-
* `mariadb:10.1`
29-
* `mongodb:2.4`, `mongodb:2.6`
30-
* `mysql:5.5`, `mysql:5.6`
31-
* `nginx:1.8`
32-
* `nodejs:0.10`, `nodejs:4`, `nodejs:6`
33-
* `perl:5.16`, `perl:5.20`
34-
* `php:5.5`, `php:5.6`
35-
* `postgresql:9.2`, `postgresql:9.4`, `postgresql:9.5`
36-
* `python:3.3`, `python:3.4`
37-
* `ruby:2.0`, `ruby:2.2`
38-
39-
ifeval::["{product-version}" == "4.4"]
40-
The following image stream tags have been _removed_ from {product-title} _4.4_:
41-
42-
* `dotnet: 2.2`
43-
* `dotnet-runtime: 2.2`
44-
* `nginx: 1.12`
45-
* `nodejs: 8, 8-RHOAR, 10-SCL`
46-
* `perl:5.24`
47-
* `php: 7.0, 7.1`
48-
* `redis: 3.2`
49-
endif::[]
19+
* The cluster on which the `MigrationController` CR is installed must have unrestricted network access to the other clusters.
20+
* If your application uses images from the `openshift` namespace, the required versions of the images must be present on the target cluster. You can manually update an image stream tag in order to use a deprecated {product-title} 3 image on an {product-title} {product-version} cluster.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * migration/migrating_3_4/migrating-applications-with-cam-3-4.adoc
4+
5+
[id='migration-updating-internal-images_{context}']
6+
= Updating internal images manually
7+
8+
If your application uses images from the `openshift` namespace, the required versions of the images must be present on the target cluster.
9+
10+
If the {product-title} 3 image is deprecated in {product-title} {product-version}, you can manually update the image stream tag using Podman.
11+
12+
.Prerequisites
13+
14+
* You must have Podman installed.
15+
* You must have `cluster-admin` privileges.
16+
17+
.Procedure
18+
19+
. Expose the internal registries on the source and target clusters.
20+
. If you are using insecure registries, add your registry host values to the `[registries.insecure]` section of `/etc/container/registries.conf` to ensure that Podman does not encounter a TLS verification error.
21+
. Log in to the {product-title} 3 registry:
22+
+
23+
[source,terminal]
24+
----
25+
$ podman login -u $(oc whoami) -p $(oc whoami -t) --tls-verify=false <ocp3_host>
26+
----
27+
28+
. Log in to the {product-title} 4 registry:
29+
+
30+
[source,terminal]
31+
----
32+
$ podman login -u $(oc whoami) -p $(oc whoami -t) --tls-verify=false <ocp4_host>
33+
----
34+
35+
. Pull the deprecated image, for example, `python:3.3`:
36+
+
37+
[source,terminal]
38+
----
39+
$ podman pull <ocp3_host>/openshift/python:3.3
40+
----
41+
42+
. Tag the image for the {product-title} 4 registry:
43+
+
44+
[source,terminal]
45+
----
46+
$ podman tag <ocp3_host>/openshift/python:3.3 <ocp4_host>/openshift/python:3.3
47+
----
48+
49+
. Push the image to the {product-title} 4 registry:
50+
+
51+
[source,terminal]
52+
----
53+
$ podman push <ocp4_host>/openshift/python:3.3
54+
----
55+
56+
. Verify that the image has a valid image stream on the {product-title} 4 cluster:
57+
+
58+
[source,terminal]
59+
----
60+
$ oc get imagestream -n openshift | grep python
61+
----
62+
+
63+
.Example output
64+
[source,terminal]
65+
----
66+
python <ocp4_host>/openshift/python 3.3,2.7,2.7-ubi7,2.7-ubi8,3.6-ubi8,3.8 + 3 more... 6 seconds ago
67+
----

0 commit comments

Comments
 (0)