Unable to configure Image Registry for single node cluster

Solution Verified - Updated -

Issue

  • Using Local Storage volume for configuring Image Registry PVC stuck at pending state with below events:
$ oc get pvc -n openshift-image-registry
NAME                     STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
image-registry-storage   Pending                                      local-sc       2m28s

$ oc describe pvc image-registry-storage -n openshift-image-registry
.....
Events:
  Type    Reason                Age                    From                         Message
  ----    ------                ----                   ----                         -------
  Normal  WaitForFirstConsumer  2m16s (x4 over 2m52s)  persistentvolume-controller  waiting for first consumer to be created before binding
  Normal  WaitForPodScheduled   76s (x4 over 2m1s)     persistentvolume-controller  waiting for pods image-registry-xxxxxxxxxxxx,image-registry-xxxxxxxxxxxx to be scheduled
.....
  • Due to this Image Registry pod is also stuck at a pending state with the below events:
$ oc get pod -n openshift-image-registry
NAME                              READY   STATUS    RESTARTS   AGE
image-registry-xxxxx-xxxxx   0/1     Pending   0          2m54s

$ oc describe pod image-registry-xxxxx-xxxxx -n openshift-image-registry
......
Type     Reason            Age                 From               Message
  ----     ------            ----                ----               -------
  Warning  FailedScheduling  35s (x21 over 19m)  default-scheduler  0/1 nodes are available: 1 node(s) didn't find available persistent volumes to bind.
.......

Environment

  • Red Hat OpenShift Container Platform(RHOCP)
    • 4.10
  • Single Node Cluster(BareMetal)
  • Local Storage Operator

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content