Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-62828

MCO degraded when an empty pull-secret is configured

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • Yes
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When a empty pull-secret is configured in the cluster, the machine-config ClusterOperator reports a degraded status
      
      $ oc get co machine-config 
      NAME             VERSION                              AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
      machine-config   4.21.0-0.nightly-2025-10-08-053134   True        False         True       46m     Failed to resync 4.21.0-0.nightly-2025-10-08-053134 because: failed to merge global pull secret:  dockerconfig bytes contain JSON null
      
      
          

      Version-Release number of selected component (if applicable):

      $ oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.21.0-0.nightly-2025-10-08-053134   True        False         22m     Error while reconciling 4.21.0-0.nightly-2025-10-08-053134: the cluster operator machine-config is degraded
      
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Configure an empty pull-secret in the cluster 
      
      $ oc -n openshift-config set data secret/pull-secret '.dockerconfigjson={}'
      
          

      Actual results:

      
      The machine-config ClusterOperator will report a degradation
      $ oc get co machine-config 
      NAME             VERSION                              AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
      machine-config   4.21.0-0.nightly-2025-10-08-053134   True        False         True       46m     Failed to resync 4.21.0-0.nightly-2025-10-08-053134 because: failed to merge global pull secret:  dockerconfig bytes contain JSON null
      
      
      
          

      Expected results:

      MCO should be able to handle an empty pull-secret without problems
      
          

      Additional info:

      Problems related to using an empty pull-secret were previously reported and fixed in https://issues.redhat.com/browse/OCPBUGS-4049
      
          

              team-mco Team MCO
              sregidor@redhat.com Sergio Regidor de la Rosa
              None
              None
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: