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

for ROSA HCP cluster In Imagesteam status.publicDockerImageRepository, is not added after "Enable the Image Registry default route"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.16
    • HyperShift / ROSA
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In a normal OCP cluster 4.16
      when 

      $ oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge 

      It will add the route  and in ImageStream, I can see publicDockerImageRepository is added, something like the below

      oc -n openshift get imagestream tests -o yaml | grep -A2 status 
      status:
        dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/tests
        publicDockerImageRepository: default-route-openshift-image-registry.apps.abdotest11.lab.upshift.rdu2.redhat.com/openshift/tests 

      For REF:
      1-
       2.6. Enable the Image Registry default route with the Custom Resource Definition
      REF1
      2-
      and for publicDockerImageRepository
      REF2

      > publicDockerImageRepository string PublicDockerImageRepository represents the public location from where the image can be pulled outside the cluster. This field may be empty if the administrator has not exposed the integrated registry externally.

      But for ROSA HCP

      It  only add the route, but it didn't add the status.publicDockerImageRepository to the imagesteam

      How to test 

      1- Enable the Image Registry default route with the Custom Resource Definition

      oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge 

      2- You should find the route added 

       

       

      oc get routes -n openshift-image-registry -n openshift-image-registry
       NAME            HOST/PORT                                                                              PATH   SERVICES         PORT    TERMINATION   WILDCARD
      default-route   default-route-openshift-image-registry.apps.rosa.aalatwdy02-hcp.u11k.s3.devshift.org          image-registry   <all>   reencrypt     None

      3- parameter status.publicDockerImageRepository is not added to the imagestream 

      oc -n openshift get imagestream tests -o yaml | grep -A2 status 
      status:
        dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/tests
        tags: 

       

       

       

              sjenning Seth Jennings
              rhn-support-aaltawdy Abdelrhman Altawdy
              None
              None
              XiuJuan Wang XiuJuan Wang
              None
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: