Bug 1817418 - imagestreams cannot import OCI images
Summary: imagestreams cannot import OCI images
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.5.0
Assignee: Ricardo Maraschini
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-26 10:19 UTC by Oleg Bulatov
Modified: 2020-04-15 08:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-15 08:31:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.