Bug 2052710 - 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.9.z
Assignee: Ian Miller
QA Contact: yliu1
URL:
Whiteboard:
Depends On: 2050393
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-09 20:34 UTC by OpenShift BugZilla Robot
Modified: 2022-02-28 20:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-28 20:50:17 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 955 0 None open [release-4.9] Bug 2052710: ztp: Add support for customer features 2022-02-14 15:29:19 UTC
Red Hat Product Errata RHSA-2022:0655 0 None None None 2022-02-28 20:50:40 UTC

Comment 2 yliu1 2022-02-23 16:03:26 UTC
Verified with 4.9 ZTP image. 

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

[core@master-2 ~]$ cat /etc/just_a_test.txt
It worked
[core@master-2 ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0  14.9G  0 disk 
sdc           8:32   0 446.6G  0 disk 
├─sdc1        8:33   0     1M  0 part 
├─sdc2        8:34   0   127M  0 part 
├─sdc3        8:35   0   384M  0 part /boot
└─sdc4        8:36   0 446.1G  0 part /sysroot
sr0          11:0    1   104M  0 rom  
nvme2n1     259:0    0   1.5T  0 disk 
nvme1n1     259:1    0   1.5T  0 disk 
nvme0n1     259:2    0   1.5T  0 disk 
nvme3n1     259:3    0   1.5T  0 disk 
├─nvme3n1p1 259:4    0    30G  0 part 
├─nvme3n1p2 259:5    0    30G  0 part 
├─nvme3n1p3 259:6    0    30G  0 part 
└─nvme3n1p4 259:7    0    30G  0 part 
[core@master-2 ~]$ exit
logout
Connection to master-2.cluster1.savanna.lab.eng.rdu2.redhat.com closed.
[yliu1@yliu1 ~]$ export KUBECONFIG=~/Downloads/artifacts/kubeconfig.master-2
[yliu1@yliu1 ~]$ oc get nodes
NAME                                                STATUS   ROLES           AGE   VERSION
master-2.cluster1.savanna.lab.eng.rdu2.redhat.com   Ready    master,worker   16h   v1.22.3+b93fd35
[yliu1@yliu1 ~]$ oc get ^C
[yliu1@yliu1 ~]$ oc get storageclasses.storage.k8s.io -A
NAME     PROVISIONER                    RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
fs-lso   kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  15h
[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                  15h
local-pv-529a8f77   30Gi       RWO            Delete           Available           fs-lso                  15h
local-pv-ef818af4   30Gi       RWO            Delete           Available           fs-lso                  15h
local-pv-f57519b2   30Gi       RWO            Delete           Available           fs-lso                  15h
[yliu1@yliu1 ~]$ oc get pvc -A
NAMESPACE                  NAME               STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS    AGE
openshift-image-registry   registry-storage   Pending                                      $storageclass   15h
[yliu1@yliu1 ~]$ oc get configs.imageregistry.operator.openshift.io
NAME      AGE
cluster   16h
[yliu1@yliu1 ~]$ oc get configs.imageregistry.operator.openshift.io cluster -o yaml
...
spec:
  httpSecret: 550475f24250f356c8b31103f06774542f255606656ff62304a92b3bf7d4794f5cebb8743ab3a3006cc1eaceb35f7e61b0abe65504f3376be94ad982f69b3cf9
  logLevel: Normal
  managementState: Managed
  observedConfig: null
  operatorLogLevel: Normal
  proxy: {}
  replicas: 1
  requests:
    read:
      maxWaitInQueue: 0s
    write:
      maxWaitInQueue: 0s
  rolloutStrategy: Recreate
  storage:
    managementState: Unmanaged
    pvc:
      claim: registry-storage
  unsupportedConfigOverrides: null

Comment 5 errata-xmlrpc 2022-02-28 20:50:17 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 (Low: OpenShift Container Platform 4.9.23 bug fix and 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:0655


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