Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1622920 - 'multiple images or templates matched "node:noexist": 5' info is wrong when invalid tag used
'multiple images or templates matched "node:noexist": 5' info is wrong when i...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.11.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.11.0
Assigned To: Corey Daley
wewang
: OnlineStarter
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-28 04:27 EDT by wewang
Modified: 2018-10-11 03:26 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:25:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:26 EDT

  None (edit)
Description wewang 2018-08-28 04:27:09 EDT
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 04:33:22 EDT
@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 10:38:28 EDT
Submitted pull request https://github.com/openshift/origin/pull/20778
Comment 3 Corey Daley 2018-08-28 13:19:50 EDT
Pull request has been merged.
Comment 4 wewang 2018-08-28 22:04:41 EDT
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 02:31:34 EDT
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 03:25:54 EDT
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.