Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1518497

Summary: Alias of ImageStreamTag displays separately on webconsole
Product: OpenShift Container Platform Reporter: Kenjiro Nakayama <knakayam>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: aos-bugs, bparees, jforrest, jokerman, mmccomas, spadgett, yanpzhan, yapei
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, image stream tag aliases would not show up in the add to project dialog version dropdown when the alias was specified in "name:tag" format in the `` property. The `oc tag --alias` uses this format. The web console now handles aliases in this format correctly, and they will show up as an alias in the version dropdown with the tag they reference.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-05 09:32:08 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:
Description Flags
Separated display of ImageStreamTag alias
expected.png none

Description Kenjiro Nakayama 2017-11-29 05:37:37 UTC
Created attachment 1360162 [details]
Separated display of ImageStreamTag alias

Description of problem:

- When we create ImageStreamTag with NAME:TAG foramt, webconsole displays it seprately.

Version-Release number of selected component (if applicable):
- OCP 3.6

How reproducible: 100%

Steps to Reproduce:
1. Create a imageStream with [1].
 - Not, the imageStream could be create with:

  # oc tag perl:5.20 --source=docker
  # oc tag perl:5.20 perl:latest --source=istag --alias
 Adding annotations manually to display it on webconsole.

Actual results:
- See attached alias_seprated.png

Expected results:
- See attached expected.png

Additional info:

- If latest's ImageStreamTag has below <TAG>, the alias displays it as expected. but <NAME>:<TAG> does not show.

      kind: ImageStreamTag
      name: 5.20

- Please also refer to 

apiVersion: v1
kind: ImageStream
  annotations: Perl 2017-11-29T05:16:21Z
  creationTimestamp: null
  generation: 3
  name: perl
    local: false
  - annotations: Perl 5.20
      tags: builder,perl
      kind: DockerImage
    generation: 2
    importPolicy: {}
    name: "5.20"
      type: Source
  - annotations: Perl (latest)
      tags: builder,perl
      kind: ImageStreamTag
      name: perl:5.20
    generation: 3
    importPolicy: {}
    name: latest
      type: Source
  dockerImageRepository: ""

Comment 1 Kenjiro Nakayama 2017-11-29 05:38:56 UTC
Created attachment 1360163 [details]

Comment 3 Samuel Padgett 2017-11-29 15:59:45 UTC
(In reply to Samuel Padgett from comment #2)

I've confirmed this is a bug in both 3.6 and 3.7 web console catalogs. A fix for current master is in the PR above. A workaround is to edit the image stream to reference just the tag instead of name:tag (as it looks like you've found).

Comment 4 Samuel Padgett 2017-12-01 18:53:21 UTC
3.7.z console PR:

Comment 6 Yadan Pei 2017-12-06 06:24:54 UTC
Checked on v3.7.13

Now the ImageStream tagged with :latest are shown together with it's tag in format 
<tag> - latest


Comment 7 Yadan Pei 2017-12-06 06:41:38 UTC
Sorry, in create from template/app wizard, the alias shown correctly,
while in DeployImage wizard, the alias is still shown separately.

Change back to ON_QA to test when changes merged

Comment 8 Yadan Pei 2017-12-06 06:48:21 UTC
v3.7.13 doesn't include the changes yet, will check in next update

Comment 9 Samuel Padgett 2017-12-06 12:17:24 UTC
The deploy image wizard has always shown the tag aliases separately, and it's working as intended currently. We could change that in the future, but this bug is specifically to fix inconsistent handling of "name:tag" vs "tag" references for builders.

Comment 10 Yadan Pei 2017-12-08 02:48:51 UTC
Change to MODIFIED since fix not picked in OCP, and it couldn't be tested

Comment 15 Yanping Zhang 2018-03-01 08:47:49 UTC
Checked on OPC v3.7.35, we tested with imagestream perl under openshift namespace, no matter imagestream perl latest alias refer to "NAME:TAG" or "TAG", it always show TAG-latest on web console when create from imagestream perl.
--------------------- Perl (Latest) Red Hat, Inc.
      supports: perl
      tags: builder,perl
      kind: ImageStreamTag
      name: perl:5.24
--------------------- Perl (Latest) Red Hat, Inc.
      supports: perl
      tags: builder,perl
      kind: ImageStreamTag
      name: "5.24"
The bug has been fixed, so move it to Verified.

Comment 19 errata-xmlrpc 2018-04-05 09:32:08 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.