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?
@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
Submitted pull request https://github.com/openshift/origin/pull/20778
Pull request has been merged.
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.
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"
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