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

When setting allowedRegistries urls the openshift-samples operator is degraded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.12.z
    • 4.10
    • Samples Operator
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-855. The following is the description of the original issue:

      Description of problem:

      When setting the allowedregistries like the example below, the openshift-samples operator is degraded:
      
      oc get image.config.openshift.io/cluster -o yaml
      apiVersion: config.openshift.io/v1
      kind: Image
      metadata:
        annotations:
          release.openshift.io/create-only: "true"
        creationTimestamp: "2020-12-16T15:48:20Z"
        generation: 2
        name: cluster
        resourceVersion: "422284920"
        uid: d406d5a0-c452-4a84-b6b3-763abb51d7a5
      spec:
        additionalTrustedCA:
          name: registry-ca
        allowedRegistriesForImport:
        - domainName: quay.io
          insecure: false
        - domainName: registry.redhat.io
          insecure: false
        - domainName: registry.access.redhat.com
          insecure: false
        - domainName: registry.redhat.io/redhat/redhat-operator-index
          insecure: true
        - domainName: registry.redhat.io/redhat/redhat-marketplace-index
          insecure: true
        - domainName: registry.redhat.io/redhat/certified-operator-index
          insecure: true
        - domainName: registry.redhat.io/redhat/community-operator-index
          insecure: true
        registrySources:
          allowedRegistries:
          - quay.io
          - registry.redhat.io
          - registry.rijksapps.nl
          - registry.access.redhat.com
          - registry.redhat.io/redhat/redhat-operator-index
          - registry.redhat.io/redhat/redhat-marketplace-index
          - registry.redhat.io/redhat/certified-operator-index
          - registry.redhat.io/redhat/community-operator-index
      
      
      oc get co
      NAME                                       VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
      authentication                             4.10.21   True        False         False      5d13h   
      baremetal                                  4.10.21   True        False         False      450d    
      cloud-controller-manager                   4.10.21   True        False         False      94d     
      cloud-credential                           4.10.21   True        False         False      624d    
      cluster-autoscaler                         4.10.21   True        False         False      624d    
      config-operator                            4.10.21   True        False         False      624d    
      console                                    4.10.21   True        False         False      42d     
      csi-snapshot-controller                    4.10.21   True        False         False      31d     
      dns                                        4.10.21   True        False         False      217d    
      etcd                                       4.10.21   True        False         False      624d    
      image-registry                             4.10.21   True        False         False      94d     
      ingress                                    4.10.21   True        False         False      94d     
      insights                                   4.10.21   True        False         False      104s    
      kube-apiserver                             4.10.21   True        False         False      624d    
      kube-controller-manager                    4.10.21   True        False         False      624d    
      kube-scheduler                             4.10.21   True        False         False      624d    
      kube-storage-version-migrator              4.10.21   True        False         False      31d     
      machine-api                                4.10.21   True        False         False      624d    
      machine-approver                           4.10.21   True        False         False      624d    
      machine-config                             4.10.21   True        False         False      17d     
      marketplace                                4.10.21   True        False         False      258d    
      monitoring                                 4.10.21   True        False         False      161d    
      network                                    4.10.21   True        False         False      624d    
      node-tuning                                4.10.21   True        False         False      31d     
      openshift-apiserver                        4.10.21   True        False         False      42d     
      openshift-controller-manager               4.10.21   True        False         False      22d     
      openshift-samples                          4.10.21   True        True          True       31d     Samples installation in error at 4.10.21: &errors.errorString{s:"global openshift image configuration prevents the creation of imagestreams using the registry "}
      operator-lifecycle-manager                 4.10.21   True        False         False      624d    
      operator-lifecycle-manager-catalog         4.10.21   True        False         False      624d    
      operator-lifecycle-manager-packageserver   4.10.21   True        False         False      31d     
      service-ca                                 4.10.21   True        False         False      624d    
      storage                                    4.10.21   True        False         False      113d  
      
      
      After applying the fix as described here(  https://access.redhat.com/solutions/6547281 ) it is resolved:
      oc patch configs.samples.operator.openshift.io cluster --type merge --patch '{"spec": {"samplesRegistry": "registry.redhat.io"}}'
      
      But according the the BZ this should be fixed in 4.10.3 https://bugzilla.redhat.com/show_bug.cgi?id=2027745 but the issue is still occur in our 4.10.21 cluster:
      
      oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.10.21   True        False         31d     Error while reconciling 4.10.21: the cluster operator openshift-samples is degraded
      

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

       

      How reproducible:

      100%

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              fmehta@redhat.com Feny Mehta
              openshift-crt-jira-prow OpenShift Prow Bot
              Feny Mehta Feny Mehta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: