Bug 2050393 - ZTP missing support for local image registry and custom machine config
Summary: ZTP missing support for local image registry and custom machine config
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Telco Edge
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Ian Miller
QA Contact: yliu1
URL:
Whiteboard:
Depends On:
Blocks: 2052710
TreeView+ depends on / blocked
 
Reported: 2022-02-03 20:54 UTC by Ian Miller
Modified: 2022-03-10 16:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:43:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift-kni cnf-features-deploy pull 942 0 None open Bug 2050393: ztp: Add support for customer features 2022-02-03 20:56:58 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:43:45 UTC

Comment 3 yliu1 2022-02-12 00:56:44 UTC
Verified with latest ztp 4.10 image. 
CRs with expected contents are created successfully on spoke.

PGT used:
http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs/src/ed8071fbac7cdf7e5b9e7d8272be1ea9a069cbc5/policygentemplates/group-du-sno-ranGen.yaml#L70-L115

Partitions added in siteconfig:
http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs/src/ed8071fbac7cdf7e5b9e7d8272be1ea9a069cbc5/siteconfig/master-2.yaml#L39

Verified on spoke:
[core@master-2 ~]$ cat /etc/just_a_test.txt
It worked

[core@master-2 ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
...
nvme0n1     259:0    0   1.5T  0 disk 
nvme3n1     259:1    0   1.5T  0 disk 
├─nvme3n1p1 259:2    0    30G  0 part 
├─nvme3n1p2 259:3    0    30G  0 part 
├─nvme3n1p3 259:4    0    30G  0 part 
└─nvme3n1p4 259:5    0    30G  0 part 

[yliu1@yliu1 ~]$ oc get storageclasses.storage.k8s.io -A
NAME     PROVISIONER                    RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
fs-lso   kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  73m
[yliu1@yliu1 ~]$ oc get pv -A
NAME                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM   STORAGECLASS   REASON   AGE
local-pv-3fdcc2a5   30Gi       RWO            Delete           Available           fs-lso                  73m
local-pv-529a8f77   30Gi       RWO            Delete           Available           fs-lso                  73m
local-pv-ef818af4   30Gi       RWO            Delete           Available           fs-lso                  73m
local-pv-f57519b2   30Gi       RWO            Delete           Available           fs-lso                  73m
[yliu1@yliu1 ~]$ oc get pvc -A
NAMESPACE   NAME               STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS    AGE
default     registry-storage   Pending                                      $storageclass   73m
[yliu1@yliu1 ~]$ oc get configs.imageregistry.operator.openshift.io 
NAME      AGE
cluster   4h25m

Comment 5 errata-xmlrpc 2022-03-10 16:43:22 UTC
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


Note You need to log in before you can comment on or make changes to this bug.