Description of problem: PVC source-cr has an annotation with storageclass set to $storageclass, if user uses spec.storageClassName to specify the storage class, then it will be overridden by an invalid storage class - "$storageclass". This annotation should be commented out or document that we only support specifying storageclass via pvc annotation. https://github.com/openshift-kni/cnf-features-deploy/blob/f949a6f296a78d2579d809a329c30d9dd91026b3/ztp/source-crs/StoragePVC.yaml#L8 annotations: ran.openshift.io/ztp-deploy-wave: "10" volume.beta.kubernetes.io/storage-class: $storageclass Version-Release number of selected component (if applicable): 4.9, 4.10 How reproducible: Always Steps to Reproduce: 1. Deploy a cluster via ZTP with storage class specified via PVC spec. http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs/src/b35e3bd01e76825fc77de68924e23b61025fcadf/policygentemplates/group-du-sno-ranGen.yaml#L109 2. Check created PVC post deployment 3. Actual results: 2. PVC points to an non-existed storage class. [kni@ran-vcl01-installer ~]$ oc describe pvc -n openshift-image-registry registry-storage Name: registry-storage Namespace: openshift-image-registry StorageClass: $storageclass Status: Pending Volume: Labels: <none> Annotations: ran.openshift.io/ztp-deploy-wave: 10 volume.beta.kubernetes.io/storage-class: $storageclass Finalizers: [kubernetes.io/pvc-protection] Capacity: Access Modes: VolumeMode: Filesystem Used By: image-registry-674bbcc9f6-6646n ... Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning ProvisioningFailed 80m persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Warning ProvisioningFailed 74m (x7 over 76m) persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Warning ProvisioningFailed 66m (x14 over 69m) persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Warning ProvisioningFailed 62m (x7 over 63m) persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Warning ProvisioningFailed 45m (x21 over 50m) persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Warning ProvisioningFailed 5m22s (x144 over 40m) persistentvolume-controller storageclass.storage.k8s.io "$storageclass" not found Expected results: StorageClass: fs-lso Additional info:
Mark as verified by reviewing the code to unblock backport.