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

Imagestream can be imported successfully without --insecure for vsphere odf cluster

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Undefined Undefined
    • None
    • 4.15
    • Image Registry
    • None
    • Yes
    • False
    • Hide

      None

      Show
      None

      Description of problem:

       

      Imagestream can be imported successfully without --insecure for vsphere odf cluster

      How reproducible: always
      Steps to Reproduce:

      1.Create a insecure registry
      $oc new-project wewang

      $oc create deploy insecuredreg --image=quay.io/openshifttest/registry@sha256:1106aedc1b2e386520bc2fb797d9a7af47d651db31d8e7ab472f2352da37d1b3 --port=5000
      $oc expose deploy/insecuredreg --name=insecuredreg --port=5000
      $oc create route edge insecuredreg --service=insecuredreg
      $REGISTRY=$(oc get route insecuredreg --template='{{ .spec.host }}')

      2. Push image to the insecure registry
      $oc image mirror quay.io/openshifttest/busybox@sha256:c5439d7db88ab5423999530349d327b04279ad3161d7596d2126dfb5b02bfd1f ${REGISTRY}/wewang/insecuredimage:latest --insecure --keep-manifest-list=true --filter-by-os=.*

      3. Create imagestream from insecure registry
      $ oc import-image insecured-firstis:latest --from=${REGISTRY}/wewang/insecuredimage:latest --confirm
      imagestream.image.openshift.io/insecured-firstis imported

      Name: insecured-firstis
      Namespace: wewang
      Created: Less than a second ago
      Labels: <none>
      Annotations: openshift.io/image.dockerRepositoryCheck=2024-05-30T05:22:22Z
      Image Repository: image-registry.openshift-image-registry.svc:5000/wewang/insecured-firstis
      Image Lookup: local=false
      Unique Images: 1
      Tags: 1
      latest
      tagged from insecuredreg-wewang.apps.wewang-vs.qe.devcluster.openshift.com/wewang/insecuredimage:latest

      • insecuredreg-wewang.apps.wewang-vs.qe.devcluster.openshift.com/wewang/insecuredimage@sha256:0415f56ccc05526f2af5a7ae8654baec97d4a614f24736e8eef41a4591f08019
        Less than a second ago

      Actual results:
      Image image successfully
      Expected results:
      should report:"x509: certificate signed by unknown authority" when import image

      Additional info:
      Here’s config.image and image.config info
      https://url.corp.redhat.com/26401

              fmissi Flavian Missi
              rhn-support-wewang Wen Wang
              XiuJuan Wang XiuJuan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: