Bug 1622920 - 'multiple images or templates matched "node:noexist": 5' info is wrong when invalid tag used
Summary: 'multiple images or templates matched "node:noexist": 5' info is wrong when i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.11.0
Assignee: Corey Daley
QA Contact: wewang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-28 08:27 UTC by wewang
Modified: 2018-10-11 07:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 07:25:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:26:26 UTC

Description wewang 2018-08-28 08:27:09 UTC
Description of problem:
Should delete 5 from error "error: multiple images or templates matched "node:noexist": 5" when oc new-build with no existed image tag

build
M/M

Version-Release number of selected component (if applicable):
openshift v3.11.0-0.24.0

How reproducible:
always

Steps to Reproduce:
1.Create a imagestream with noexist node tag
$ oc new-build -D $'FROM node:noexist\nRUN echo "Test"' --name=nodenoexist
error: multiple images or templates matched "node:noexist": 5


Actual results:
"5" is no need from error "error: multiple images or templates matched "node:noexist": 5"

Expected results:
should delete 5 in error info

Additional info:
Fyi, does 5 is len(e.Matches) from ErrMultipleMatches struct?

Comment 1 wewang 2018-08-28 08:33:22 UTC
@Corey Daley  I have another questions to help you to confirm, if I already had 
node:8 in project, when want to create a imagestream with noexist node tag, will not create noexist tag for node,right? 

 . Create a imagestream with node:8
  $oc new-build -D $'FROM node:8\nRUN echo "Test"' --name=node8

Comment 2 Corey Daley 2018-08-28 14:38:28 UTC
Submitted pull request https://github.com/openshift/origin/pull/20778

Comment 3 Corey Daley 2018-08-28 17:19:50 UTC
Pull request has been merged.

Comment 4 wewang 2018-08-29 02:04:41 UTC
Thanks, now latest openshift repo is v3.11.0-0.24.0, when have v3.11.0-0.25.0 repo, will verify the bug.

Comment 5 wewang 2018-08-30 06:31:34 UTC
Verified in openshift v3.11.0-0.25.0
            oc v3.11.0-0.25.0

steps:
$ oc new-build -D $'FROM node:noexist\nRUN echo "Test"' --name=nodenoexist
error: multiple images or templates matched "node:noexist"

Comment 7 errata-xmlrpc 2018-10-11 07:25:54 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-2018:2652


Note You need to log in before you can comment on or make changes to this bug.