Bug 1328403

Summary: docker-latest doesn't support searching image with simple name
Product: Red Hat Enterprise Linux 7 Reporter: Alex Jia <ajia>
Component: docker-latestAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: dwalsh, lsu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 16:19:51 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 Alex Jia 2016-04-19 10:27:47 UTC
Description of problem:
I can use docker 1.9.1-28 search a image w/ simple name from registry.access.redhat.com docker registry, but it's failed to use docker-latest 1.10.3-10, I must use fully-qualified image name.

Version-Release number of selected component (if applicable):
# rpm -q docker docker-latest
docker-1.9.1-28.el7.x86_64
docker-latest-1.10.3-10.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. systemctl start docker
2. docker-latest search sadc
3. systemctl restart docker-latest
4. docker-latest search sadc
5. docker-latest search registry.access.redhat.com/rhel7/sadc

Actual results:

# systemctl start docker
# systemctl is-active docker
active
# docker search sadc
INDEX        NAME                                          DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io    docker.io/aosadchy/oracle-jdk-8                                                               0                    [OK]
docker.io    docker.io/mesasadc/geoserver                  Geoserver, based on kartoza/geoserver fork      0                    [OK]
docker.io    docker.io/mesasadc/nginx                      HTTP server for wildfire terminal               0                    [OK]
docker.io    docker.io/mesasadc/postgis                    Postgresql/PostGIS for MESASADC based on k...   0                    [OK]
docker.io    docker.io/mesasadc/rabbitmq-webstomp          A fork of activems/rabbitmq-webstomp which...   0                    [OK]
redhat.com   registry.access.redhat.com/rhel7/sadc         A containerized version of the sysstat dat...   0                    

# systemctl restart docker-latest
# systemctl is-active docker-latest
active

# docker-latest search sadc
INDEX       NAME                                   DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/aosadchy/oracle-jdk-8                                                        0                    [OK]
docker.io   docker.io/mesasadc/geoserver           Geoserver, based on kartoza/geoserver fork      0                    [OK]
docker.io   docker.io/mesasadc/nginx               HTTP server for wildfire terminal               0                    [OK]
docker.io   docker.io/mesasadc/postgis             Postgresql/PostGIS for MESASADC based on k...   0                    [OK]
docker.io   docker.io/mesasadc/rabbitmq-webstomp   A fork of activems/rabbitmq-webstomp which...   0                    [OK]

# docker-latest search registry.access.redhat.com/rhel7/sadc
INDEX        NAME                                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
redhat.com   registry.access.redhat.com/rhel7/sadc   A containerized version of the sysstat dat...   0                    


Expected results:


Additional info:

Comment 2 Antonio Murdaca 2016-06-04 16:19:15 UTC
Fixed into build docker-1.10.3-31.el7.x86_64 and docker-latest-1.10.3-29.el7.x86_64 - it was missing --add-registry=registry.access.redhat.com in /etc/sysconfig/docker-latest and has been fixed in the aforementioned build.

[root@rhel01 ~]# docker-latest search sadc
INDEX        NAME                                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io    docker.io/aosadchy/oracle-jdk-8                                                         0                    [OK]
docker.io    docker.io/mesasadc/geoserver            Geoserver, based on kartoza/geoserver fork      0                    [OK]
docker.io    docker.io/mesasadc/nginx                HTTP server for wildfire terminal               0                    [OK]
docker.io    docker.io/mesasadc/postgis              Postgresql/PostGIS for MESASADC based on k...   0                    [OK]
docker.io    docker.io/mesasadc/rabbitmq-webstomp    A fork of activems/rabbitmq-webstomp which...   0                    [OK]
redhat.com   registry.access.redhat.com/rhel7/sadc   A containerized version of the sysstat dat...   0                    

I think this is missing an errata to close this BZ (I don't have permissions in errata tool to close BZ - but this BZ if fixed!) - assigning Lokesh

Comment 4 Luwen Su 2016-06-12 09:16:43 UTC
Per comment#2, move to verified

Comment 6 errata-xmlrpc 2016-06-23 16:19:51 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/RHBA-2016:1275