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

image id is not correct when creating pods using manifests list imagestream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 4.15
    • Node / CRI-O
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Image id is not correct when describe the pod which is created with manifest list imagestream

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

      4.15.0-0.nightly-2024-01-17-011118

      How reproducible:

        Always  

      Steps to Reproduce:

          1.Create ImageStreamImport with oci images(which have include multi arch images)
      ```
      cat <<EOF | oc create -f -
      apiVersion: image.openshift.io/v1
      kind: ImageStreamImport
      metadata:
        name: ociapp
      spec:
        import: true
        images:
        - from:
            kind: DockerImage
            name: quay.io/openshifttest/ociimage@sha256:d58e3e003ddec723dd14f72164beaa609d24c5e5e366579e23bc8b34b9a58324
           to:
            name: latest
          referencePolicy:
            type: Local
          importPolicy:
            importMode: "PreserveOriginal"
      EOF
      ```
       
          2.Create pod using manifest list imagestream
      
      $oc run test --image=ociapp:latest --overrides='{"spec":{"securityContext":{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}}}' -- sleep 300     
      
          3. Check the image info
        $ oc image info quay.io/openshifttest/ociimage@sha256:d58e3e003ddec723dd14f72164beaa609d24c5e5e366579e23bc8b34b9a58324 error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:  OS             DIGEST   linux/amd64    sha256:97923994fdc1c968eed6bdcb64be8e70d5356b88cfab0481cb6b73a4849361b7   linux/arm/v7   sha256:dbf17b01a9051a96c86888ea44b6ea4358a3c1693e2d49b46d6841b4208555ad   linux/arm64/v8 sha256:bd0be70569d8b18321d7d3648d51925e22865df760c5379b69762f302cacd30d   linux/ppc64le  sha256:5e4ed9b51a61727bc600494d538cbed109162047e0ca6a14229fda1f152ae1b6   linux/riscv64  sha256:1c1876cd529c6032521ae4788c29c1bf8a7f00968ac4a4058c068d25bebf94b2   linux/s390x    sha256:a34bd409e8ea9186852711c4ec983f05799a927ab31c98bbb67b5653fe0ede3b
      
          4.Check the pod is running and describe pod
                Containers:
                  ociapp:
                    Container ID:  cri-o://15d2b3f60cee257746356c5b560681070ecbff15ca5667fcbfb0b1876b291aa1
                    Image:         image-registry.openshift-image-registry.svc:5000/e2e-test-default-image-prune-mxtcj/ociapp:latest
                    Image ID:      fc875386057e8d1f478f11b00cfdad723ec49845b4aacd8c4b2588aba4ef715f   (the id is not correct, it should be 97923994fdc1c968eed6bdcb64be8e70d5356b88cfab0481cb6b73a4849361b7)
      
      
       

      Actual results:

       Image id is not correct according os architecture

      Expected results:

      Image id should be correct    

      Additional info:

       In 4.14, Image id is correct for the pod:
      ```
      Containers:
        ociapp:
          Container ID:  cri-o://a14fc8feb1be7f0a0907295700793d3a8b3da34323b2b2b4153b91b192b7107a
          Image:         image-registry.openshift-image-registry.svc:5000/e2e-test-default-image-prune-mpwqk/ociapp:latest
          Image ID:      image-registry.openshift-image-registry.svc:5000/e2e-test-default-image-prune-mpwqk/ociapp@sha256:97923994fdc1c968eed6bdcb64be8e70d5356b88cfab0481cb6b73a4849361b7
      ```

            harpatil@redhat.com Harshal Patil
            rhn-support-wewang Wen Wang
            xiujuan wang xiujuan wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: