Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1509084

Summary: [RFE] Add support for listing images and image metadata from OpenShift registry
Product: OpenShift Container Platform Reporter: John Matthews <jmatthew>
Component: RFEAssignee: Ben Parees <bparees>
Status: CLOSED CURRENTRELEASE QA Contact: Xiaoli Tian <xtian>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: andrew, aos-bugs, byount, chezhang, dymurray, erich, ernelson, hittle.joshua, jesusr, jhocutt, jiazha, jmatthew, jnakfour, jokerman, mmccomas, mmckinst, mtaru, pguerra, prsharma, rbost, rekhan, sgraf, shurley, ssampat, zhsun, zitang
Target Milestone: ---   
Target Release: 3.11.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: 2018-07-11 15:25:24 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 John Matthews 2017-11-02 23:04:55 UTC
Description of problem:

Ansible Broker needs the ability to list images in the OpenShift Registry.

If the OpenShift Registry implemented the Catalog API this would be sufficient Ansible Broker needs.  Ansible Broker is currently leveraging Catalog API against dockerhub to learn of APBs that are published to an organization.

The desired workflow is:
1) API to list images in an organization on OpenShift Registry
2) API to retrieve metadata on an image, i.e. labels.

Comment 3 Zhang Cheng 2018-05-10 02:35:46 UTC
Changing QA contact and target release follow the current status, it will be traced by trello card https://trello.com/c/NaNlxsPo

Comment 4 Dylan Murray 2018-05-10 13:30:43 UTC
Zhang,

This Bug was meant to track discovery in our RHCC registries which currently don't support the Catalog API. We are already tracking the work for that trello card here: https://bugzilla.redhat.com/show_bug.cgi?id=1558862. I do not believe that we should have reassigned this bug to our team... correct me if I'm wrong.

Comment 5 John Matthews 2018-05-10 15:54:22 UTC
I believe comment #3 reassigned this in error.

The work for this card is to implement a means for listing images and image metadata in the "Openshift Registry" code base.

The work that comment #3 references, namely the trello card is only handling Automation Broker configuration/workarounds.

Reassigning to Ben to consider for future release.

Comment 6 Ben Parees 2018-05-10 16:52:38 UTC
https://trello.com/c/AZINw5qI is in progress with a target of v3.11.  It will provide a catalog api which can be invoked only if you have permission to view all imagestreams across all namespaces in the cluster.  (We will not implement a catalog api that returns a filtered list based your specific imagestream view permissions)

Comment 7 Zhang Cheng 2018-05-11 03:35:31 UTC
That is my mistake, I noticed another BZ 1576881 in asb side.

Comment 8 Ben Parees 2018-07-11 15:25:24 UTC
The code for https://trello.com/c/AZINw5qI has merged into origin master (which will ship with OCP 3.11).

Note that it does not provide ACL based listing, it's all or nothing (either you have permission to list all images, or you cannot invoke the list api)