Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1622920

Summary: 'multiple images or templates matched "node:noexist": 5' info is wrong when invalid tag used
Product: OpenShift Container Platform Reporter: wewang <wewang>
Component: BuildAssignee: Corey Daley <cdaley>
Status: CLOSED ERRATA QA Contact: wewang <wewang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, yufchang
Target Milestone: ---Keywords: OnlineStarter
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 07:25:54 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 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