Skip to content

Commit 2aaf543

Browse files
committed
TELCODOCS-781: ACM and MCE version flags decoupled
1 parent 3deb4c3 commit 2aaf543

File tree

1 file changed

+92
-103
lines changed

1 file changed

+92
-103
lines changed

modules/ztp-precaching-downloading-artifacts.adoc

Lines changed: 92 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ The list of available Operator images can vary in different {product-title} rele
2020
[id="ztp-preparing-ocp-images_{context}"]
2121
== Preparing to download the {product-title} images
2222

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}.
2524

2625
.Prerequisites
2726

@@ -33,7 +32,7 @@ The version of the hub cluster determines which multicluster engine (MCE) contai
3332

3433
.Procedure
3534

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:
3736
+
3837
[source,terminal]
3938
----
@@ -63,26 +62,6 @@ multicluster-engine openshift-gitops-operator.v1.
6362
multicluster-engine openshift-pipelines-operator-rh.v1.6.4 Red Hat OpenShift Pipelines 1.6.4 openshift-pipelines-operator-rh.v1.6.3 Succeeded
6463
----
6564

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-
8665
. To access the container registry, copy a valid pull secret on the server to be installed:
8766

8867
.. Create the `.docker` folder:
@@ -120,17 +99,17 @@ The {factory-prestaging-tool} allows you to pre-cache all the container images r
12099
# podman run -v /mnt:/mnt -v /root/.docker:/root/.docker --privileged --rm quay.io/openshift-kni/telco-ran-tools -- \
121100
factory-precaching-cli download \ <1>
122101
-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>
128106
----
129107
<1> Specifies the downloading function of the {factory-prestaging-tool}.
130108
<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.
134113

135114
+
136115
.Example output
@@ -147,6 +126,15 @@ Processing artifact [6/176]: ocp-v4.0-art-dev@sha256_e142bf5020f5ca0d1bdda0026bf
147126
...
148127
Processing artifact [175/176]: ocp-v4.0-art-dev@sha256_16cd7eda26f0fb0fc965a589e1e96ff8577e560fcd14f06b5fda1643036ed6c8
149128
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
150138
----
151139

152140
.Verification
@@ -189,7 +177,7 @@ You can also pre-cache Day-2 Operators used in the 5G Radio Access Network (RAN)
189177

190178
[IMPORTANT]
191179
====
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.
193181
====
194182

195183
.Procedure
@@ -198,22 +186,21 @@ You need to include the {rh-rhacm} hub version, so that the {factory-prestaging-
198186
+
199187
[source,terminal]
200188
----
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.
217204

218205
+
219206
.Example output
@@ -227,6 +214,15 @@ Processing artifact [3/379]: ocp-v4.0-art-dev@sha256_370e47a14c798ca3f8707a38b28
227214
...
228215
Processing artifact [378/379]: ose-local-storage-operator@sha256_0c81c2b79f79307305e51ce9d3837657cf9ba5866194e464b4d1b299f85034d0
229216
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
230226
----
231227

232228
[id="ztp-custom-pre-caching-in-disconnected-environment_{context}"]
@@ -248,23 +244,23 @@ You can customize the `ImageSetConfiguration` CR in the following ways:
248244
+
249245
[source,terminal]
250246
----
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>
261255
----
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> 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.
268264

269265
+
270266
.Example output
@@ -285,48 +281,44 @@ mirror:
285281
- name: stable-4.11
286282
minVersion: 4.11.5 <1>
287283
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
293286
operators:
294287
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.11
295288
packages:
296-
- name: advanced-cluster-management <3>
289+
- name: advanced-cluster-management <2>
297290
channels:
298291
- name: 'release-2.6'
299292
- name: 'release-2.5'
300293
minVersion: 2.5.4
301294
maxVersion: 2.5.4
302-
- name: multicluster-engine <3>
295+
- name: multicluster-engine <2>
303296
channels:
304297
- name: 'stable-2.1'
305298
- name: 'stable-2.0'
306299
minVersion: 2.0.4
307300
maxVersion: 2.0.4
308-
- name: local-storage-operator <4>
301+
- name: local-storage-operator <3>
309302
channels:
310303
- name: 'stable'
311-
- name: ptp-operator <4>
304+
- name: ptp-operator <3>
312305
channels:
313306
- name: 'stable'
314-
- name: sriov-network-operator <4>
307+
- name: sriov-network-operator <3>
315308
channels:
316309
- name: 'stable'
317-
- name: cluster-logging <4>
310+
- name: cluster-logging <3>
318311
channels:
319312
- name: 'stable'
320313
- catalog: registry.redhat.io/redhat/certified-operator-index:v4.11
321314
packages:
322-
- name: sriov-fec <4>
315+
- name: sriov-fec <3>
323316
channels:
324317
- name: 'stable'
325318
----
326319
<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.
330322

331323
. Customize the catalog resource in the CR:
332324
+
@@ -366,34 +358,31 @@ When you download images by using a local or disconnected registry, you have to
366358
[source,terminal]
367359
----
368360
# 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>
379369
----
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.
386378

387379
. Download the images without generating a new `imageSetConfiguration` CR:
388380
+
389381
[source,terminal]
390382
----
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
399388
----

0 commit comments

Comments
 (0)