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

Format of recent container images was changed from Docker V2-2 to OCI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.19.z
    • Release
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • Yes
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      The format all images recently published by Red Hat was OCI. 
      Previous images's format was Docker V2-2.
      It was suddently changed 1 or 2 month ago.
      
      This is very critical.
      
      In OpenShift manual[1], Red Hat says "You can use any container registry that supports Docker v2-2".
      
      [1] https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/disconnected_environments/connected-to-disconnected
      
      But due to this format change, container registries which support Docker v2-2 but don't support OCI are no longer usable for OpenShift.
      

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

      any    

      How reproducible:

      You can check the format using skopeo

      Steps to Reproduce:

      eventrouter image:
      
        $ skopeo inspect --raw docker://registry.redhat.io/openshift-logging/eventrouter-rhel9:v0.4.0-384 | jq -rM .mediaType
        application/vnd.oci.image.index.v1+json
      
        $ skopeo inspect --raw docker://registry.redhat.io/openshift-logging/eventrouter-rhel9:v0.4.0-382 | jq -rM .mediaType
        application/vnd.docker.distribution.manifest.list.v2+json
      
      cluster-logging-operator image:
      
        $ skopeo inspect --raw docker://registry.redhat.io/openshift-logging/cluster-logging-rhel9-operator:v6.2.3 | jq -rM .mediaType
        application/vnd.docker.distribution.manifest.list.v2+json
      
        $ skopeo inspect --raw docker://registry.redhat.io/openshift-logging/cluster-logging-rhel9-operator:v6.2.4 | jq -rM .mediaType
        application/vnd.oci.image.index.v1+json
      
      fence-agents-remediation-operator image:
      
        $ skopeo inspect docker://registry.redhat.io/workload-availability/fence-agents-remediation-rhel9-operator:v0.5.1 --raw | jq -rM .mediaType
        application/vnd.oci.image.manifest.v1+json
        
        $ skopeo inspect docker://registry.redhat.io/workload-availability/fence-agents-remediation-rhel9-operator:v0.5.0 --raw | jq -rM .mediaType
        application/vnd.docker.distribution.manifest.list.v2+json
      

      Actual results:

      The mediaType is "application/vnd.oci.image.index.v1+json"

      Expected results:

      The mediaType is "application/vnd.docker.distribution.manifest.list.v2+json"

      Additional info:

      Why did Red Hat do such a big change without announcement?
      The format should be reverted, then Red Hat should announce in the release note at least one version before making such a change.

       

              jdelft Joep van Delft
              rhn-support-hfukumot Hideshi Fukumoto
              None
              None
              Vladislav Kolodny Vladislav Kolodny
              None
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: