Bug 1732280

Summary: Podman search shows limited numbers of images
Product: Red Hat Enterprise Linux 8 Reporter: Sayali Kulkarni <sakulkar>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 8.0CC: ddarrah, dornelas, dwalsh, jligon, jnovy, kanderso, lsm5, mheon, mitr, tsweeney, weshen, ypu
Target Milestone: rc   
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: podman-1.6.3-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1754763 (view as bug list) Environment:
Last Closed: 2020-02-04 12:26:32 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:
Bug Depends On:    
Bug Blocks: 1186913, 1734578, 1754763    

Description Sayali Kulkarni 2019-07-23 06:19:05 UTC
Description of problem:
 
"podman search registry.fedoraproject.org/" shows only 25(limited/only a few) images whereas total number of images present in the catalog are around 100

Version-Release number of selected component (if applicable):
 
podman-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.x86_64


How reproducible:

100%

Steps to Reproduce:

# podman search registry.fedoraproject.org | cat -n 
     1	INDEX       NAME                                                       DESCRIPTION                                       STARS   OFFICIAL   AUTOMATED
     2	quay.io     quay.io/operatorframework/configmap-operator-registry      Deprecated: please use [operator-framework/c...   0                  
     3	quay.io     quay.io/outline/shadowbox                                  This is the Outline Server container image. ...   0                  
     4	quay.io     quay.io/operator-framework/configmap-operator-registry                                                       0                  
     5	quay.io     quay.io/mojanalytics/github-org-resource                                                                     0                  
     6	quay.io     quay.io/prometheus/node-exporter                           # Node exporter [![Build Status](https://tra...   0                  
     7	quay.io     quay.io/prometheus/prometheus                              # Prometheus [![Build Status](https://travis...   0                  
     8	quay.io     quay.io/openshift/origin-operator-registry                                                                   0                  
     9	quay.io     quay.io/infrabox/docker-registry-auth                                                                        0                  
    10	quay.io     quay.io/rubygems/rubygems.org                                                                                0                  
    11	quay.io     quay.io/infinimesh/device-registry                                                                           0                  
    12	quay.io     quay.io/app-sre/hive-registry                              hive-registry for olm catalog                     0                  
    13	quay.io     quay.io/deisci/registry                                                                                      0                  
    14	quay.io     quay.io/ukhomeofficedigital/nginx-proxy                    # OpenResty Docker Container  [![Build Statu...   0                  
    15	quay.io     quay.io/openshift/origin-docker-registry                                                                     0                  
    16	quay.io     quay.io/gnufied/local-registry                                                                               0                  
    17	quay.io     quay.io/infrabox/docker-registry-nginx                                                                       0                  
    18	quay.io     quay.io/prometheus/haproxy-exporter                        # HAProxy Exporter for Prometheus [![Build S...   0                  
    19	quay.io     quay.io/openshift/origin-cluster-image-registry-operator                                                     0                  
    20	quay.io     quay.io/jcmoraisjr/haproxy-ingress                         # HAProxy Ingress controller  [Ingress](http...   0                  
    21	quay.io     quay.io/app-sre/configure-alertmanager-operator-registry   configure-alertmanager-operator-registry for...   0                  
    22	quay.io     quay.io/openshiftio/che-plugin-registry                                                                      0                  
    23	quay.io     quay.io/app-sre/dedicated-admin-operator-registry          dedicated-admin-operator-registry for olm ca...   0                  
    24	quay.io     quay.io/app-sre/aws-account-operator-registry              aws-account-operator-registry for olm catalo...   0                  
    25	quay.io     quay.io/bitnami/node                                       Official build of [Bitnami Node.js](https://...   0                  
    26	quay.io     quay.io/deis/registry                                      # Deis Registry  See https://github.com/deis...   0                  
    27	docker.io   docker.io/wangxiaopeng65/fedoraproject-etcd                registry.fedoraproject.org/latest/etcd            0             

Actual results:

Same as above


Expected results:

It should show all the images available in the catalog

Additional info:

Comment 1 Qi Wang 2019-07-23 15:35:10 UTC
`It should show all the images available in the catalog`
where's the catalog that I can check?

Comment 2 Miloslav Trmač 2019-07-23 20:48:11 UTC
“catalog” probably a name of the HTTP path used for search, an untenable API that returns all repositories on the server (however many there are); and/or to the internal record of all those repositories.

Both the catalog and/or the search APIs seem to have some pagination support, so c/image might use that — OTOH that might imply a bigger change, requiring the search to stream results instead of blocking to list thousands of results (if the server allowed that).

Comment 5 Qi Wang 2019-08-02 18:22:20 UTC
The patch enables --limit to work just got merged.https://github.com/containers/libpod/pull/3693
With this PR podman search can show 100 results with --limit 100. 
The default number of results is still 25 without --limit specified.

Comment 12 errata-xmlrpc 2020-02-04 12:26:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:0348