New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TELCODOCS-597: Adding a local registry to a Single Node OpenShift DU profile #50904
Conversation
🤖 Updated build preview is available at: Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/4452 |
4a1f078
to
15ec0de
Compare
7f7e51d
to
68a19ef
Compare
444a494
to
00c41bd
Compare
00c41bd
to
53f6dfd
Compare
|
||
This is unavoidable for the initial deployment. Over time, there is a risk that `crio` will wipe `/var/lib/containers/storage` in the case of a disorderly shutdown. | ||
|
||
To address this, you need a local registry on the SNO. The cluster images need to be mirrored to this registry along with being used as the registry for the applications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's important to clarify that the image registry can only be used for user application images and cannot be used for the OpenShift release or OLM operators images, see https://issues.redhat.com/browse/RFE-2488
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have addressed this comment in the current preview.
966e074
to
345c6b7
Compare
/label telco |
345c6b7
to
300d38f
Compare
|
||
This is unavoidable for the initial deployment. Over time, there is a risk that `crio` will wipe `/var/lib/containers/storage` in the case of a disorderly shutdown. | ||
|
||
To address this, you need a local image registry on the SNO. The cluster images need to be mirrored to this local image registry along with being used as the registry for the applications. This is useful in Edge scenarios where an SNO is deployed on the Far Edge. The SNO cannot access the internet, just its own resources and eventually the internal network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove The cluster images need to be mirrored to this local image registry
since it's in contradiction with the NOTE section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
[id="ztp-configuring-pgt-image-registry_{context}"] | ||
= Configuring the image registry using PolicyGenTemplate CRs | ||
|
||
You can configure PTP fast events for vRAN clusters that are deployed using the GitOps Zero Touch Provisioning (ZTP) pipeline. Use `PolicyGenTemplate` custom resources (CRs) as the basis to create a hierarchy of configuration files tailored to your specific site requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think PTP fast events
are related to this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
annotations: | ||
ran.openshift.io/ztp-deploy-wave: "100" <1> | ||
# persistent volume claim | ||
- fileName: StoragePVC.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line doesn't have the same indentation level with line 28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
300d38f
to
b8aeedf
Compare
Marius edits implemented. |
[id="ztp-configuring-disk-partitioning_{context}"] | ||
= Configuring disk partitioning with SiteConfig | ||
|
||
You can use the `SiteConfig` YAML file to generate the `MachineConfig` CR used for disk partitioning. You need to to modify values in the `MachineConfig` CR to reflect dependencies on the underlying disk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to to modify values in the MachineConfig CR to reflect dependencies on the underlying disk.
- imo this statement is not clear. The user entrypoint is the SiteConfig and that's where the disk related values are added. The user doesn't edit MachineConfig directly as they get generated from the SiteConfig.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
||
[NOTE] | ||
==== | ||
The local image registry can only be used for user application images and cannot be used for the {product-title} or Operator Lifecycle Manager operator images. For details on working with these, see the information on the Topology Aware Lifecycle Manager (TAWLM) in Additional resources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Topology Aware Lifecycle Manager (TAWLM) - we usually refer to it as TALM, not TAWLM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
The local image registry can only be used for user application images and cannot be used for the {product-title} or Operator Lifecycle Manager operator images. For details on working with these, see the information on the Topology Aware Lifecycle Manager (TAWLM) in Additional resources. | ||
==== | ||
|
||
You can use the `SiteConfig` YAML file to generate the `MachineConfig` CR used for disk partitioning. Then use `PolicyGenTemplate` to apply to create the PV and PVC and patch `imageregistry` configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we be a little more explicit here? Start with "This involves 2 steps: step1: Siteconfig... step 2: PGT"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rephrased as:
The first phase of setting up a local image registry is configuring disk partitioning with SiteConfig
. You can use the SiteConfig
YAML file to generate the MachineConfig
CR used for disk partitioning.
Then next phase is to configure the image registry using PolicyGenTemplate CRs. You can use PolicyGenTemplate
to apply to create the PV and PVC and patch imageregistry
configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
size: 102500 <2> | ||
start: 344844 <3> | ||
---- | ||
<1> Depends on the hardware. The setting can also be a serial number or device name, for example `wwn`. The value must match with the `win` entry for `rootDeviceHint`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 - the example is already using wwn (remove "for example wwn
")
2- "The value must match with the win
entry for rootDeviceHint
" change to "The value must match with the entry for rootDeviceHint
" (drop 'win')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
---- | ||
<1> Remove this when moved to the correct PGT (`site/group/common`). | ||
<2> Remove this when moved to the correct PGT (`site/group/common`). | ||
<3> This assumes that `mount_point` is set to `/var/imageregistry` in `SiteConfig` using StorageClass `image-registry-sc` (see the first sc-file). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change "see the first sc-file" to something like See "StieConfig from Step 1"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to (see the topic on configuring disk partitioning with SiteConfig
)
|
||
You can use `PolicyGenTemplate` to apply to create the PV and PVC and patch `imageregistry` configuration. Select the appropriate `PolicyGenTemplate` for each `source-cr`. See Additional Resources for more help. | ||
|
||
.Prerequisites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally....the pre req is that the user has ZTP setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added "* You have installed and configured Zero Touch Provisioning (ZTP)."
include::modules/ztp-configuring-pgt-image-registry.adoc[leveloffset=+3] | ||
|
||
[role="_additional-resources"] | ||
.Additional resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include ZTP setup process doc here (along with the existing TALM and Image Registry doc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added "For further information on this, see the topic on ZTP in Additional resources. "
and
- For more information about Zero Touch Provisioning (ZTP) setup, see href: https://docs.openshift.com/container-platform/4.11/scalability_and_performance/ztp-deploying-disconnected.html#about-ztp-and-distributed-units-on-openshift-clusters_ztp-deploying-disconnected[About ZTP and distributed units on OpenShift clusters].
dc1a6a6
to
4f87fe6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added xrefs based on your suggestions :)
scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc
Outdated
Show resolved
Hide resolved
scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc
Outdated
Show resolved
Hide resolved
scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc
Outdated
Show resolved
Hide resolved
8359522
to
74244d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added 2 comments on the size
and start
field descriptions :)
All comments implemented. |
/label merge-review-needed |
74244d8
to
890dc4b
Compare
Sorry, needed one more push to implement final edits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Tony, noticed an xref is causing the build to fail, also spotted a few more things.
scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc
Outdated
Show resolved
Hide resolved
scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc
Outdated
Show resolved
Hide resolved
890dc4b
to
698b9af
Compare
698b9af
to
ed059d2
Compare
Edits complete. Applying once more for merge. |
/label merge-review-needed |
@tmulquee I noticed the |
Yes please Mike. I didn't know whether I had the rights to move that hold label. All edits are done. |
/cherrypick enterprise-4.12 |
@mjpytlak: new pull request created: #53480 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Versions:
Issue:
https://issues.redhat.com/browse/TELCODOCS-597
Link to docs preview:
https://50904--docspreview.netlify.app/openshift-enterprise/latest/scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.html#ztp-add-local-reg-for-sno-duprofile_ztp-advanced-policy-config
SME: Nahian Pathan
QE assignee: Marius Cornea