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

dockerImageMetadata of parent image object is not correct

XMLWordPrintable

    • Important
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • NA

      Description of problem:

      dockerImageMetadata of parent image object is not correct

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

      4.12.0-0.ci.test-2022-09-21-070348-ci-ln-lmg75nt-latest

      How reproducible:

      always

      Steps to Reproduce:

      1.Create a imagesstreamimport with a manifest list image
      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/fmissi/ubuntu
          to:
            name: latest
          referencePolicy:
            type: Source
          importPolicy:
            importMode: "ManifestList"
      EOF 
      
      2.Check all the sub-manifest image and parent image objects
      $oc get images sha256:f6deb88d3de9fbfa7ff78fa608b397cb940aa3daf4c822f354c0c55cd63f53ec -o yaml
      apiVersion: image.openshift.io/v1
      dockerImageManifestMediaType: application/vnd.oci.image.index.v1+json
      dockerImageManifests:
      - architecture: amd64
        digest: sha256:d92a6a26a4113c9066c4e477c1c0706e5f646a8a1ad13ab2050f8ec15f2f2f29
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
      - architecture: arm
        digest: sha256:bc9667ee9e8d4531caf84ba785c567af16f71dce373856aa995e0a525b4eac48
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
        variant: v7
      - architecture: arm64
        digest: sha256:c311ef0c200dda635ea0e6a97c3ec648bed94265359fef0342eeaf87cc06167d
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
        variant: v8
      - architecture: ppc64le
        digest: sha256:5cae3af4c23ebaf8d0cede1fdc931a452c5360275476a277e22cec782416c81c
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
      - architecture: riscv64
        digest: sha256:7dfcb505b1199e4a4dd209ee47b57a94daed60c0cb7540e00a3ba23dab8cab67
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
      - architecture: s390x
        digest: sha256:7c6cf7440bd0f327af161c1892f2ecf248ec5d03857583b24b056de53750e3dd
        manifestSize: 406
        mediaType: application/vnd.oci.image.manifest.v1+json
        os: linux
      dockerImageMetadata:
        ContainerConfig: {}
        Created: null
        Id: ""
        apiVersion: image.openshift.io/1.0
        kind: DockerImage
      dockerImageMetadataVersion: "1.0"
      dockerImageReference: quay.io/fmissi/ubuntu@sha256:f6deb88d3de9fbfa7ff78fa608b397cb940aa3daf4c822f354c0c55cd63f53ec
      kind: Image
      metadata:
        creationTimestamp: "2022-09-21T09:38:53Z"
        name: sha256:f6deb88d3de9fbfa7ff78fa608b397cb940aa3daf4c822f354c0c55cd63f53ec
        resourceVersion: "73795"
        uid: 1085fa72-b0dc-4205-9252-ff95b924e5fe  
      3.
      

      Actual results:

      step 2:
      //created and ID are null, are not correct
      
      dockerImageMetadata:
        ContainerConfig: {}
        Created: null
        Id: ""
        apiVersion: image.openshift.io/1.0
        kind: DockerImage

      Expected results:

      dockerImageMetadata should have correct info

      Additional info:

       

            fmissi Flavian Missi
            rh-ee-xiuwang XiuJuan Wang
            XiuJuan Wang XiuJuan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: