Bug 2053751
| Summary: | ztp-site-generate container is missing convenience entrypoint | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ian Miller <imiller> |
| Component: | Telco Edge | Assignee: | Jim Ramsay <jramsay> |
| Telco Edge sub component: | ZTP | QA Contact: | yliu1 |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | high | CC: | jramsay |
| Version: | 4.10 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-10 16:44:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ian Miller
2022-02-11 22:33:22 UTC
Verified with latest 4.10 image.
[kni@ran-vcl01-installer ~]$ podman run -it registry.ran-vcl01.ptp.lab.eng.bos.redhat.com:5000/ztp/ztp-site-generator:4.10 cat /usr/bin/entrypoints
#!/bin/bash
cat <<EOF
ztp-site-generator container help
=================================
This container is the primary distribution mechanism for the Red Hat
Zero Touch Provisioning (ztp) solution.
The main container entrypoints are:
template and example distribution
---------------------------------
/home/ztp
├── argocd
│ ├── deployment
│ │ - Yaml files that configure the hub cluster and ArgoCD with our kustomize plugins
│ └── example
│ ├── policygentemplates
│ │ - Example PolicyGenTemplate files for all supported DU configurations
│ └── siteconfig
│ - Example SiteConfig files for all supported cluster types
├── extra-manifest
│ - The set of extra manifests that are applied at day-0 by SiteConfig
└── source-crs
- The set of CRs that are available to be configured via PolicyGenTemplate
You can export these templates and examples by running the following commands:
$ podman run --rm ztp-site-generator:latest extract /home/ztp --tar | tar x -C ./out
extract
-------
EOF
extract --help
cat <<EOF
/extractKustomize.sh
-------------------
Used by the ArgoCD deployment patching logic, this entrypoint copies
the kustomize plugins for SiteConfig and PolicyGenTemplate and
aupporting resources into the proper kustomize directory structure.
EOF
[kni@ran-vcl01-installer ~]$ podman run --rm registry.ran-vcl01.ptp.lab.eng.bos.redhat.com:5000/ztp/ztp-site-generator:4.10 extract /home/ztp --tar | tar x -C ./out
[kni@ran-vcl01-installer ~]$ ls out/
argocd extra-manifest source-crs
[kni@ran-vcl01-installer ~]$ podman run -it registry.ran-vcl01.ptp.lab.eng.bos.redhat.com:5000/ztp/ztp-site-generator:4.10 ls -la /tmp/ztp-temp/
ls: cannot access '/tmp/ztp-temp/': No such file or directory
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056 |