Bug 1817418

Summary: imagestreams cannot import OCI images
Product: OpenShift Container Platform Reporter: Oleg Bulatov <obulatov>
Component: ImageStreamsAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED DEFERRED QA Contact: XiuJuan Wang <xiuwang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, jokerman, rmarasch, wzheng
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-15 08:31:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oleg Bulatov 2020-03-26 10:19:16 UTC
Description of problem:

OCI images can't be imported.

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

3.x-4.5

How reproducible:

always

Steps to Reproduce:
1. build an image using podman build --format=oci
2. push it to docker.io or any other registry that supports oci images
3. try to import it using `oc import-image`

Actual results:

error: Import failed (NotFound): dockerimage.image.openshift.io "docker.io/ricardomaraschini/simple-web-server:latest" not found

Expected results:

Successfully imported image.

Additional info:

The actual error from the registry is

{"errors":[{"code":"MANIFEST_UNKNOWN","message":"OCI manifest found, but accept header does not support OCI manifests"}]}

but OpenShift hide it.

Comment 1 Ricardo Maraschini 2020-04-15 08:31:28 UTC
Delegating this to a proper JIRA card as it may involve manifests list support: https://issues.redhat.com/browse/DEVEXP-577