@@ -20,8 +20,7 @@ The list of available Operator images can vary in different {product-title} rele
20
20
[id="ztp-preparing-ocp-images_{context}"]
21
21
== Preparing to download the {product-title} images
22
22
23
- To download the {product-title} container images, you need to know the {rh-rhacm-first} version running in the hub cluster that is going to provision the {sno}.
24
- The version of the hub cluster determines which multicluster engine (MCE) container images are used by the {sno} to provision and report the inventory and progress of the spoke cluster.
23
+ To download {product-title} container images, you need to know the multicluster engine (MCE) version. When you use the `--du-profile` flag, you also need to specify the {rh-rhacm-first} version running in the hub cluster that is going to provision the {sno}.
25
24
26
25
.Prerequisites
27
26
@@ -33,7 +32,7 @@ The version of the hub cluster determines which multicluster engine (MCE) contai
33
32
34
33
.Procedure
35
34
36
- . Check the {rh-rhacm} and Multicluster engine ( MCE) version by running the following commands in the hub cluster:
35
+ . Check the {rh-rhacm} and MCE version by running the following commands in the hub cluster:
37
36
+
38
37
[source,terminal]
39
38
----
@@ -63,26 +62,6 @@ multicluster-engine openshift-gitops-operator.v1.
63
62
multicluster-engine openshift-pipelines-operator-rh.v1.6.4 Red Hat OpenShift Pipelines 1.6.4 openshift-pipelines-operator-rh.v1.6.3 Succeeded
64
63
----
65
64
66
- . Query the AI version on your hub cluster:
67
- +
68
- [source,terminal]
69
- ----
70
- $ oc get cm assisted-service -n open-cluster-management -oyaml | \ <1>
71
- grep -E "AGENT_DOCKER_IMAGE|CONTROLLER_IMAGE|INSTALLER_IMAGE"
72
- ----
73
- <1> The namespace can differ based on the installed {rh-rhacm} version.
74
-
75
- . Save the output, which is required for downloading the artifacts.
76
-
77
- +
78
- .Example output
79
- [source,terminal]
80
- ----
81
- AGENT_DOCKER_IMAGE: registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306
82
- CONTROLLER_IMAGE: registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd
83
- INSTALLER_IMAGE: registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027
84
- ----
85
-
86
65
. To access the container registry, copy a valid pull secret on the server to be installed:
87
66
88
67
.. Create the `.docker` folder:
@@ -120,17 +99,17 @@ The {factory-prestaging-tool} allows you to pre-cache all the container images r
120
99
# podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools -- \
121
100
factory-precaching-cli download \ <1>
122
101
-r 4.11.5 \ <2>
123
- -f /mnt \ <3>
124
- --ai-img registry.redhat.io/multicluster-engine/ assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306 \ <4>
125
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd \ <4>
126
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027 \ <4>
127
- --img quay.io/custom/repository <5>
102
+ --acm-version 2.5.4 \ <3>
103
+ --mce-version 2.0.4 \ <4>
104
+ -f /mnt \ <5>
105
+ --img quay.io/custom/repository <6>
128
106
----
129
107
<1> Specifies the downloading function of the {factory-prestaging-tool}.
130
108
<2> Defines the {product-title} release version.
131
- <3> Defines the folder where you want to download the images on the disk.
132
- <4> Defines the MCE and AI artifacts required for provisioning.
133
- <5> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
109
+ <3> Defines the {rh-rhacm} version.
110
+ <4> Defines the MCE version.
111
+ <5> Defines the folder where you want to download the images on the disk.
112
+ <6> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
134
113
135
114
+
136
115
.Example output
@@ -147,6 +126,15 @@ Processing artifact [6/176]: ocp-v4.0-art-dev@sha256_e142bf5020f5ca0d1bdda0026bf
147
126
...
148
127
Processing artifact [175/176]: ocp-v4.0-art-dev@sha256_16cd7eda26f0fb0fc965a589e1e96ff8577e560fcd14f06b5fda1643036ed6c8
149
128
Processing artifact [176/176]: ocp-v4.0-art-dev@sha256_cf4d862b4a4170d4f611b39d06c31c97658e309724f9788e155999ae51e7188f
129
+ ...
130
+ Summary:
131
+
132
+ Release: 4.11.5
133
+ Hub Version: 2.5.4
134
+ ACM Version: 2.5.4
135
+ MCE Version: 2.0.4
136
+ Include DU Profile: No
137
+ Workers: 83
150
138
----
151
139
152
140
.Verification
@@ -189,7 +177,7 @@ You can also pre-cache Day-2 Operators used in the 5G Radio Access Network (RAN)
189
177
190
178
[IMPORTANT]
191
179
====
192
- You need to include the {rh-rhacm} hub version, so that the {factory-prestaging-tool} can pre-stage the appropriate containers images for the {rh-rhacm} and MCE Operators.
180
+ You need to include the {rh-rhacm} hub and MCE Operator versions by using the `--acm- version` and `--mce-version` flags so the {factory-prestaging-tool} can pre-cache the appropriate containers images for the {rh-rhacm} and MCE Operators.
193
181
====
194
182
195
183
.Procedure
@@ -198,22 +186,21 @@ You need to include the {rh-rhacm} hub version, so that the {factory-prestaging-
198
186
+
199
187
[source,terminal]
200
188
----
201
- # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli download \
202
- -r 4.11.5 \ <1>
203
- --hub-version 2.5.4 \ <2>
204
- -f /mnt \ <3>
205
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306 \ <4>
206
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd \ <4>
207
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027 \ <4>
208
- --img quay.io/custom/repository \ <5>
209
- --du-profile -s <6>
210
- ----
211
- <1> Defines the {product-title} release version.
212
- <2> Defines the version of the hub cluster.
213
- <3> Defines the folder where you want to pre-cache the images on the disk.
214
- <4> Defines the MCE and AI artifacts required for provisioning.
215
- <5> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
216
- <6> The `--du-profile` argument specifies pre-caching the Operators included in the DU configuration.
189
+ # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli download \ <1>
190
+ -r 4.11.5 \ <2>
191
+ --acm-version 2.5.4 \ <3>
192
+ --mce-version 2.0.4 \ <4>
193
+ -f /mnt \ <5>
194
+ --img quay.io/custom/repository <6>
195
+ --du-profile -s <7>
196
+ ----
197
+ <1> Specifies the downloading function of the {factory-prestaging-tool}.
198
+ <2> Defines the {product-title} release version.
199
+ <3> Defines the {rh-rhacm} version.
200
+ <4> Defines the MCE version.
201
+ <5> Defines the folder where you want to download the images on the disk.
202
+ <6> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
203
+ <7> Specifies pre-caching the Operators included in the DU configuration.
217
204
218
205
+
219
206
.Example output
@@ -227,6 +214,15 @@ Processing artifact [3/379]: ocp-v4.0-art-dev@sha256_370e47a14c798ca3f8707a38b28
227
214
...
228
215
Processing artifact [378/379]: ose-local-storage-operator@sha256_0c81c2b79f79307305e51ce9d3837657cf9ba5866194e464b4d1b299f85034d0
229
216
Processing artifact [379/379]: multicluster-operators-channel-rhel8@sha256_c10f6bbb84fe36e05816e873a72188018856ad6aac6cc16271a1b3966f73ceb3
217
+ ...
218
+ Summary:
219
+
220
+ Release: 4.11.5
221
+ Hub Version: 2.5.4
222
+ ACM Version: 2.5.4
223
+ MCE Version: 2.0.4
224
+ Include DU Profile: Yes
225
+ Workers: 83
230
226
----
231
227
232
228
[id="ztp-custom-pre-caching-in-disconnected-environment_{context}"]
@@ -248,23 +244,23 @@ You can customize the `ImageSetConfiguration` CR in the following ways:
248
244
+
249
245
[source,terminal]
250
246
----
251
- # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli download \
252
- -r 4.11.5 \ <1>
253
- --hub-version 2.5.4 \ <2>
254
- -f /mnt \ <3>
255
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306 \ <4>
256
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd \ <4>
257
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027 \ <4>
258
- --img quay.io/custom/repository \ <5>
259
- --du-profile -s \
260
- --generate-imageset <6>
247
+ # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli download \ <1>
248
+ -r 4.11.5 \ <2>
249
+ --acm-version 2.5.4 \ <3>
250
+ --mce-version 2.0.4 \ <4>
251
+ -f /mnt \ <5>
252
+ --img quay.io/custom/repository <6>
253
+ --du-profile -s \ <7>
254
+ --generate-imageset <8>
261
255
----
262
- <1> Defines the {product-title} release version.
263
- <2> Defines the version of the hub cluster.
264
- <3> Defines the folder where you want to pre-cache the images on the disk.
265
- <4> Defines the MCE and AI artifacts required for provisioning.
266
- <5> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
267
- <6> The `--generate-imageset` argument generates the `ImageSetConfiguration` CR only, which allows you to customize the CR.
256
+ <1> Specifies the downloading function of the {factory-prestaging-tool}.
257
+ <2> Defines the {product-title} release version.
258
+ <3> Defines the {rh-rhacm} version.
259
+ <4> Defines the MCE version.
260
+ <5> Defines the folder where you want to download the images on the disk.
261
+ <6> Optional. Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
262
+ <7> Specifies pre-caching the Operators included in the DU configuration.
263
+ <8> The `--generate-imageset` argument generates the `ImageSetConfiguration` CR only, which allows you to customize the CR.
268
264
269
265
+
270
266
.Example output
@@ -285,48 +281,44 @@ mirror:
285
281
- name: stable-4.11
286
282
minVersion: 4.11.5 <1>
287
283
maxVersion: 4.11.5
288
- additionalImages: <2>
289
- - name: registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306
290
- - name: registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd
291
- - name: registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027
292
- - name: quay.io/user/troubleshoot
284
+ additionalImages:
285
+ - name: quay.io/custom/repository
293
286
operators:
294
287
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.11
295
288
packages:
296
- - name: advanced-cluster-management <3 >
289
+ - name: advanced-cluster-management <2 >
297
290
channels:
298
291
- name: 'release-2.6'
299
292
- name: 'release-2.5'
300
293
minVersion: 2.5.4
301
294
maxVersion: 2.5.4
302
- - name: multicluster-engine <3 >
295
+ - name: multicluster-engine <2 >
303
296
channels:
304
297
- name: 'stable-2.1'
305
298
- name: 'stable-2.0'
306
299
minVersion: 2.0.4
307
300
maxVersion: 2.0.4
308
- - name: local-storage-operator <4 >
301
+ - name: local-storage-operator <3 >
309
302
channels:
310
303
- name: 'stable'
311
- - name: ptp-operator <4 >
304
+ - name: ptp-operator <3 >
312
305
channels:
313
306
- name: 'stable'
314
- - name: sriov-network-operator <4 >
307
+ - name: sriov-network-operator <3 >
315
308
channels:
316
309
- name: 'stable'
317
- - name: cluster-logging <4 >
310
+ - name: cluster-logging <3 >
318
311
channels:
319
312
- name: 'stable'
320
313
- catalog: registry.redhat.io/redhat/certified-operator-index:v4.11
321
314
packages:
322
- - name: sriov-fec <4 >
315
+ - name: sriov-fec <3 >
323
316
channels:
324
317
- name: 'stable'
325
318
----
326
319
<1> The platform versions match the versions passed to the tool.
327
- <2> The CR contains the additional images.
328
- <3> The versions of {rh-rhacm} and MCE Operators match the versions passed to the tool.
329
- <4> The CR contains all the specified DU Operators.
320
+ <2> The versions of {rh-rhacm} and MCE Operators match the versions passed to the tool.
321
+ <3> The CR contains all the specified DU Operators.
330
322
331
323
. Customize the catalog resource in the CR:
332
324
+
@@ -366,34 +358,31 @@ When you download images by using a local or disconnected registry, you have to
366
358
[source,terminal]
367
359
----
368
360
# podman run -v /mnt:/mnt -v /root/.docker:/root/.docker -v /etc/pki:/etc/pki --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- \
369
- factory-precaching-cli download \
370
- -r 4.11.5 \ <1>
371
- --hub-version 2.5.4 \ <2>
372
- -f /mnt \ <3>
373
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306 \ <4>
374
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd \ <4>
375
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027 \ <4>
376
- --img quay.io/custom/repository \ <5>
377
- --du-profile -s \
378
- --skip-imageset <6>
361
+ factory-precaching-cli download \ <1>
362
+ -r 4.11.5 \ <2>
363
+ --acm-version 2.5.4 \ <3>
364
+ --mce-version 2.0.4 \ <4>
365
+ -f /mnt \ <5>
366
+ --img quay.io/custom/repository <6>
367
+ --du-profile -s \ <7>
368
+ --skip-imageset <8>
379
369
----
380
- <1> Defines the {product-title} release version.
381
- <2> Defines the version of the hub cluster.
382
- <3> Defines the folder where you want to pre-cache the images on the disk.
383
- <4> Defines the MCE and AI artifacts required for provisioning.
384
- <5> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
385
- <6> The `--skip-imageset` argument allows you to download the images that you specified in your customized `ImageSetConfiguration` CR.
370
+ <1> Specifies the downloading function of the {factory-prestaging-tool}.
371
+ <2> Defines the {product-title} release version.
372
+ <3> Defines the {rh-rhacm} version.
373
+ <4> Defines the MCE version.
374
+ <5> Defines the folder where you want to download the images on the disk.
375
+ <6> Defines the repository where you store your additional images. These images are downloaded and pre-cached on the disk.
376
+ <7> Specifies pre-caching the Operators included in the DU configuration.
377
+ <8> The `--skip-imageset` argument allows you to download the images that you specified in your customized `ImageSetConfiguration` CR.
386
378
387
379
. Download the images without generating a new `imageSetConfiguration` CR:
388
380
+
389
381
[source,terminal]
390
382
----
391
- # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli \
392
- download -r 4.11.5 -f /mnt \
393
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-agent-rhel8@sha256:da1753f9fcb9e229d0a68de03fac90d15023e647a8db531ae489eb93845d5306 \
394
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-reporter-rhel8@sha256:e8d6b78248352b1a8e05a22308185a468d4a139682d997a7f968b329abbc02cd \
395
- --ai-img registry.redhat.io/multicluster-engine/assisted-installer-rhel8@sha256:33abd6e21cfdc36dd4337fa6f3c3442d33fc3f976471614dca5b8ef749e7a027 \
396
- --img quay.io/user/troubleshoot \
397
- --du-profile -s \
398
- --skip-imageset
383
+ # podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools:latest -- factory-precaching-cli download -r 4.11.5 \
384
+ --acm-version 2.5.4 --mce-version 2.0.4 -f /mnt \
385
+ --img quay.io/custom/repository \
386
+ --du-profile -s \
387
+ --skip-imageset
399
388
----
0 commit comments