Bug 1868612

Summary: Image tag not derived correctly
Product: Red Hat Enterprise Linux 8 Reporter: Daniele <dconsoli>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: bbaude, dornelas, dwalsh, jligon, jnovy, lsm5, mheon, tsweeney, vrothber, ypu, yujiang
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-2.0.4 and newer Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:06:49 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, 1804543    

Description Daniele 2020-08-13 09:38:13 UTC
Description of problem:

1)  Log in to the registry, use port number in login URL
[root@amf037-beta8 ~]# podman login docker-krk.mot-solutions.com:443
Username: <user>
Password: <password>
Login Succeeded!

2) Pull the image. Of course put port number in registry URL:
[root@amf037-beta8 ~]# podman pull docker-krk.mot-solutions.com:443/msi/mep/v2/bare:2.1.35
Trying to pull docker-krk.mot-solutions.com:443/msi/mep/v2/bare:2.1.35...
Getting image source signatures
Copying blob 7eaf9c8d33dd done
Copying blob cc123b47064d done
Copying blob 15b0272cc322 done
Copying config 335d150008 done
Writing manifest to image destination
Storing signatures
335d1500086a42706efbb7e5e4623eb69064deb653845964066041466cff02ec

3) List pulled images.
[root@amf037-beta8 ~]# podman images
REPOSITORY                        TAG                         IMAGE ID      CREATED     SIZE
docker-krk.mot-solutions.com      443/msi/mep/v2/bare:2.1.35  335d1500086a  4 days ago  165 MB
registry.access.redhat.com/rhel7  latest                      9da37a681956  9 days ago  215 MB


Note displayed image TAG: 443/msi/mep/v2/bare:2.1.35
Correct tag is 2.1.35
If we provide port number in URL everything after first ":" is shown as a tag. Displayed tag is incorrect. 

Version-Release number of selected component (if applicable):
ersion:      2.0.0-rc7
API Version:  1
Go Version:   go1.14.2
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

How reproducible:
100%

Steps to Reproduce:
Provided in description

Actual results:


Expected results:


Additional info:

Comment 1 Valentin Rothberg 2020-08-13 12:02:39 UTC
The issue has been fixed in Podman v2.0.4 (see below), so I think we can close?

######################
~ $ /usr/bin/podman images
REPOSITORY                                        TAG     IMAGE ID      CREATED      SIZE
docker-krk.mot-solutions.com:443/msi/mep/v2/bare  2.1.35  ec9293436c2e  2 years ago  3.67 kB
~ $ /usr/bin/podman version
Version:      2.0.4
API Version:  1
Go Version:   go1.14.6
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64
######################

Comment 8 errata-xmlrpc 2020-11-04 03:06:49 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 (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), 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:4694