Skip to content

Commit a1e75eb

Browse files
authored
Merge pull request openshift#11 from aireilly/amolnar-rh_consolidated-ZTP_review-comments
Updates for final ZTP reviews
2 parents a9f8b8b + e67585c commit a1e75eb

5 files changed

+23
-22
lines changed

modules/about-ztp-and-distributed-units-on-openshift-clusters.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ With ZTP and AI, you can provision {product-title} clusters to run your DUs at s
2222
2323
** Network connectivity - including DNS for your network. Hosts should be reachable through the hub and managed spoke clusters. Ensure there is layer 3 connectivity between the hub and the host where you want to install your hub cluster.
2424

25-
* Baseboard Management Controller (BMC) details for each host - ZTP uses BMC details to connect the URL and credentials for accessing the BMC. ZTP manages the spoke cluster definition CRs, with the exception of the `BMCSecret` CR, which you create manually. These define the relevant elements for the managed clusters.
25+
** Baseboard Management Controller (BMC) details for each host - ZTP uses BMC details to connect the URL and credentials for accessing the BMC. ZTP manages the spoke cluster definition CRs, with the exception of the `BMCSecret` CR, which you create manually. These define the relevant elements for the managed clusters.

modules/ztp-configuring-ptp-fast-events.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ You can configure PTP fast events for vRAN clusters that are deployed using the
6666
maxOffsetThreshold: 100 #nano secs
6767
minOffsetThreshold: -100 #nano secs
6868
----
69-
<1> Can be one `PtpConfigMaster.yaml`, `PtpConfigSlave.yaml`, or `PtpConfigSlaveCvl.yaml` depending on your requirements. `PtpConfigSlaveCvl.yaml` configes `linuxptp` services for an Intel E810 Columbiaville NIC.
69+
<1> Can be one `PtpConfigMaster.yaml`, `PtpConfigSlave.yaml`, or `PtpConfigSlaveCvl.yaml` depending on your requirements. `PtpConfigSlaveCvl.yaml` configures `linuxptp` services for an Intel E810 Columbiaville NIC. For configurations based on `group-du-sno-ranGen.yaml` or `group-du-3node-ranGen.yaml`, use `PtpConfigSlave.yaml`.
7070
<2> Device specific interface name.
7171
<3> You must append the `--summary_interval -4` value to `ptp4lOpts` in `.spec.sourceFiles.spec.profile` to enable PTP fast events.
7272
<4> `ptpClockThreshold` configues how long the clock stays in clock holdover state. Holdover state is the period between local and master clock synchronizations. Offset is the time difference between the local and master clock.

modules/ztp-preparing-the-hub-cluster-for-ztp.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ You can configure your hub cluster with a set of ArgoCD applications that genera
1818

1919
. Install the Topology Aware Lifecycle Operator, which coordinates with any new sites added by ZTP and manages application of the `PolicyGenTemplate`-generated policies.
2020

21-
. Patch the ArgoCD instance in the hub cluster using the patch files previously extracted into the `out/argocd/deployment/` directory:
22-
+
23-
[source,terminal]
24-
----
25-
$ oc patch argocd openshift-gitops -n openshift-gitops --type=merge --patch-file out/argocd/deployment/argocd-openshift-gitops-patch.json
26-
----
27-
2821
. Prepare the ArgoCD pipeline configuration:
2922
+
3023
.. Create a Git repository with the directory structure similar to the example directory. For more information, see "Preparing the ZTP Git repository".

modules/ztp-using-pgt-to-update-source-crs.adoc

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
`PolicyGenTemplate` CRs allow you to overlay additional configuration details on top of the base source CRs provided in the `ztp-site-generate` container. You can think of `PolicyGenTemplate` CRs as a logical merge or patch to the base CR. Use `PolicyGenTemplate` CRs to update a single field of the base CR, or overlay the entire contents of the base CR. You can update values and insert fields that are not in the base CR.
1010

11+
The following example procedure describes how to update fields in the generated `PerformanceProfile` CR for the reference configuration based on the `PolicyGenTemplate` CR in the `group-du-sno-ranGen.yaml` file. Use the procedure as a basis for modifying other parts of the `PolicyGenTemplate` based on your requirements.
12+
1113
.Prerequisites
1214

1315
* Create a Git repository where you manage your custom site configuration data. The repository must be accessible from the hub cluster and be defined as a source repository for Argo CD.
1416
1517
.Procedure
1618

17-
The following example procedure describes how to update fields in the generated `PerformanceProfile` CR. Other CRs, generated with the `PolicyGenTemplate` CR, can be similarly modified.
18-
1919
. Review the baseline source CR for existing content. You can review the source CRs listed in the reference `PolicyGenTemplate` CRs by extracting them from the zero touch provisioning (ZTP) container.
2020

2121
.. Create an `/out` folder:
@@ -32,12 +32,7 @@ $ mkdir -p ./out
3232
$ podman run --log-driver=none --rm registry.redhat.io/openshift4/ztp-site-generate-rhel8:v4.10 extract /home/ztp --tar | tar x -C ./out
3333
----
3434

35-
. The baseline `PerformanceProfile` CR is found in `./out/source-crs/PerformanceProfile.yaml`.
36-
+
37-
[NOTE]
38-
====
39-
Any fields in the source CR which contain `$...` are removed from the generated CR if not provided in the `PolicyGenTemplate` CR.
40-
====
35+
. Review the baseline `PerformanceProfile` CR in `./out/source-crs/PerformanceProfile.yaml`:
4136
+
4237
[source,yaml]
4338
----
@@ -71,8 +66,13 @@ spec:
7166
realTimeKernel:
7267
enabled: true
7368
----
69+
+
70+
[NOTE]
71+
====
72+
Any fields in the source CR which contain `$...` are removed from the generated CR if they are not provided in the `PolicyGenTemplate` CR.
73+
====
7474

75-
. The `PolicyGenTemplate` entry for `PerformanceProfile` is found in the `group-du-sno-ranGen.yaml` reference file. The following example entry in that `PolicyGenTemplate` can be specified to supply appropriate CPU specifications, hugepage configuration, and add a new field that sets `globallyDisableIrqLoadBalancing` to false.
75+
. Update the `PolicyGenTemplate` entry for `PerformanceProfile` in the `group-du-sno-ranGen.yaml` reference file. The following example `PolicyGenTemplate` CR stanza supplies appropriate CPU specifications, sets the `hugepages` configuration, and adds a new field that sets `globallyDisableIrqLoadBalancing` to false.
7676
+
7777
[source,yaml]
7878
----
@@ -93,8 +93,13 @@ spec:
9393
globallyDisableIrqLoadBalancing: false
9494
----
9595
96-
. Commit the `PolicyGenTemplate` change in Git, and then push to the Git repository being monitored by the GitOps ZTP argo CD application. The ZTP application generates an ACM policy that contains the generated `PerformanceProfile` CR. The contents of that CR are derived by merging the `metadata` and `spec` contents from the `PerformanceProfile` entry in the `PolicyGenTemplate` onto the source CR. The resulting CR has the following content:
97-
+
96+
. Commit the `PolicyGenTemplate` change in Git, and then push to the Git repository being monitored by the GitOps ZTP argo CD application.
97+
98+
99+
.Example output
100+
101+
The ZTP application generates an ACM policy that contains the generated `PerformanceProfile` CR. The contents of that CR are derived by merging the `metadata` and `spec` contents from the `PerformanceProfile` entry in the `PolicyGenTemplate` onto the source CR. The resulting CR has the following content:
102+
98103
[source,yaml]
99104
----
100105
---

scalability_and_performance/ztp-deploying-disconnected.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ Scaling the hub cluster to managing large numbers of spoke clusters is affected
8080

8181
include::modules/ztp-creating-the-policygentemplate-cr.adoc[leveloffset=+1]
8282

83-
include::modules/ztp-generating-ran-policies.adoc[leveloffset=+1]
84-
8583
include::modules/ztp-creating-ztp-custom-resources-for-multiple-managed-clusters.adoc[leveloffset=+1]
8684

8785
include::modules/ztp-using-pgt-to-update-source-crs.adoc[leveloffset=+2]
@@ -199,11 +197,14 @@ include::modules/ztp-configuring-the-cluster-for-a-disconnected-environment.adoc
199197
200198
include::modules/ztp-configuring-ipv6.adoc[leveloffset=+2]
201199
200+
include::modules/ztp-generating-ran-policies.adoc[leveloffset=+1]
201+
202202
include::modules/ztp-troubleshooting-the-managed-cluster.adoc[leveloffset=+2]
203203
204204
// TALO
205205
206206
include::modules/cnf-topology-aware-lifecycle-operator.adoc[leveloffset=+1]
207+
207208
[role="_additional-resources"]
208209
.Additional resources
209210
@@ -227,12 +228,14 @@ include::modules/cnf-topology-aware-lifecycle-operator-preparing-for-updates.ado
227228
* For more information about update channels and releases, see xref:../updating/understanding-upgrade-channels-release.adoc[Understanding upgrade channels and releases].
228229
229230
include::modules/cnf-topology-aware-lifecycle-operator-platform-update.adoc[leveloffset=+2]
231+
230232
[role="_additional-resources"]
231233
.Additional resources
232234
233235
* For more information about mirroring the images in a disconnected environment, xref:../scalability_and_performance/ztp-deploying-disconnected.adoc#ztp-acm-preparing-to-install-disconnected-acm_ztp-deploying-disconnected[Preparing the disconnected environment]
234236
235237
include::modules/cnf-topology-aware-lifecycle-operator-operator-update.adoc[leveloffset=+2]
238+
236239
[role="_additional-resources"]
237240
.Additional resources
238241

0 commit comments

Comments
 (0)