Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive output when multiple images returned for new-app on big repository. #7729

Closed
miminar opened this issue Mar 2, 2016 · 5 comments · Fixed by #9353
Closed

Excessive output when multiple images returned for new-app on big repository. #7729

miminar opened this issue Mar 2, 2016 · 5 comments · Fixed by #9353

Comments

@miminar
Copy link

miminar commented Mar 2, 2016

Running hack/../test/cmd/builds.sh:52: executing 'oc new-build -D $'FROM openshift/origin:v1.1\nENV ok=1' --to origin-test:v1.1' expecting success...
FAILURE after 2.031s: hack/../test/cmd/builds.sh:52: executing 'oc new-build -D $'FROM openshift/origin:v1.1\nENV ok=1' --to origin-test:v1.1' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
error: multiple images or templates matched "openshift/origin:v1.1": 27

The argument "openshift/origin:v1.1" could apply to the following Docker images or OpenShift image streams:

* Docker image "openshift/origin:latest", 8cc5ae7, from local
  Use --docker-image="openshift/origin:latest" to specify this image or template

* Docker image "openshift/origin:7ba70f0", 8cc5ae7, from local
  Use --docker-image="openshift/origin:7ba70f0" to specify this image or template

* Docker image "openshift/origin-sti-builder:latest", 3a9762e, from local
  Use --docker-image="openshift/origin-sti-builder:latest" to specify this image or template

* Docker image "openshift/origin-gitserver:7ba70f0", 472e009, from local
  Use --docker-image="openshift/origin-gitserver:7ba70f0" to specify this image or template

* Docker image "openshift/origin-gitserver:latest", 472e009, from local
  Use --docker-image="openshift/origin-gitserver:latest" to specify this image or template

* Docker image "openshift/origin-docker-builder:7ba70f0", cd107aa, from local
  Use --docker-image="openshift/origin-docker-builder:7ba70f0" to specify this image or template

* Docker image "openshift/origin-docker-builder:latest", cd107aa, from local
  Use --docker-image="openshift/origin-docker-builder:latest" to specify this image or template

* Docker image "openshift/origin-recycler:7ba70f0", 828e007, from local
  Use --docker-image="openshift/origin-recycler:7ba70f0" to specify this image or template

* Docker image "openshift/origin-recycler:latest", 828e007, from local
  Use --docker-image="openshift/origin-recycler:latest" to specify this image or template

* Docker image "openshift/origin-deployer:7ba70f0", 5cd5a66, from local
  Use --docker-image="openshift/origin-deployer:7ba70f0" to specify this image or template

* Docker image "openshift/origin-docker-registry:7ba70f0", f821f3b, from local, 38.658mb
  Use --docker-image="openshift/origin-docker-registry:7ba70f0" to specify this image or template

* Docker image "openshift/origin-keepalived-ipfailover:7ba70f0", 5b68f13, from local
  Use --docker-image="openshift/origin-keepalived-ipfailover:7ba70f0" to specify this image or template

* Docker image "openshift/origin-haproxy-router:7ba70f0", 8391e00, from local
  Use --docker-image="openshift/origin-haproxy-router:7ba70f0" to specify this image or template

* Docker image "openshift/origin-haproxy-router:latest", 8391e00, from local
  Use --docker-image="openshift/origin-haproxy-router:latest" to specify this image or template

* Docker image "openshift/origin-pod:7ba70f0", df56d4e, from local
  Use --docker-image="openshift/origin-pod:7ba70f0" to specify this image or template

* Docker image "openshift/origin-pod:latest", df56d4e, from local
  Use --docker-image="openshift/origin-pod:latest" to specify this image or template

* Docker image "openshift/origin-release:latest", 12a65c5, from local
  Use --docker-image="openshift/origin-release:latest" to specify this image or template

* Docker image "openshift/origin-haproxy-router-base:latest", 71e799e, from local
  Use --docker-image="openshift/origin-haproxy-router-base:latest" to specify this image or template

* Docker image "openshift/origin-base:latest", abb5237, from local, 70.131mb
  Use --docker-image="openshift/origin-base:latest" to specify this image or template

* Docker image "openshift/origin-custom-docker-builder:latest", d7128e9, from local
  Use --docker-image="openshift/origin-custom-docker-builder:latest" to specify this image or template

* Docker image "openshift/origin-custom-docker-builder:7ba70f0", d7128e9, from local
  Use --docker-image="openshift/origin-custom-docker-builder:7ba70f0" to specify this image or template

* Docker image "openshift/origin-deployer:latest", 5cd5a66, from local
  Use --docker-image="openshift/origin-deployer:latest" to specify this image or template

* Docker image "openshift/origin-f5-router:latest", f24facb, from local
  Use --docker-image="openshift/origin-f5-router:latest" to specify this image or template

* Docker image "openshift/origin-docker-registry:latest", f821f3b, from local, 38.658mb
  Use --docker-image="openshift/origin-docker-registry:latest" to specify this image or template

* Docker image "openshift/origin-f5-router:7ba70f0", f24facb, from local
  Use --docker-image="openshift/origin-f5-router:7ba70f0" to specify this image or template

* Docker image "openshift/origin-keepalived-ipfailover:latest", 5b68f13, from local
  Use --docker-image="openshift/origin-keepalived-ipfailover:latest" to specify this image or template

* Docker image "openshift/origin-sti-builder:7ba70f0", 3a9762e, from local
  Use --docker-image="openshift/origin-sti-builder:7ba70f0" to specify this image or template

Happened in #7128 (job 12095).

@miminar miminar changed the title Flake in oc cmd/builds.sh Flake in cmd/builds.sh Mar 2, 2016
@danmcp danmcp added priority/P2 component/build kind/test-flake Categorizes issue or PR as related to test flakes. labels Mar 2, 2016
@bparees
Copy link
Contributor

bparees commented Mar 2, 2016

this would imply a dockerhub flake since the image wasn't found on dockerhub when we asked.

either that or the imagestream pull through logic which new-app uses to try to find the image on dockerhub.

@smarterclayton
Copy link
Contributor

This is a bug in new-app - if we have a tag specified on image name we are being specific and should not be searching for partial matches on repository name.

@bparees
Copy link
Contributor

bparees commented Mar 14, 2016

hm. I don't think i agree. Obviously if there's an exact match, it's moot, we'll use the exact match, but if there's not, why wouldn't we be trying to help the user find matches in case of a typo?

@csrwng i think this has bearing on the behavior we just settled on for imagestreams.

@smarterclayton
Copy link
Contributor

Ok, maybe I'm most concerned with the number of suggestions shown then, rather than them being there at all. By the time I get to the end of the list it looks like a bug. At some point, we should probably be showing a max N (or reasonable max N) and then telling the user to use -S to see the full list. The levenshtein distance I would expect to be a component of match score. As a user, I'm pretty sure I didn't accidentally fat finger not typing -keepalived-ipfailover. Has to be some reasonable bound. So we can change the bug into that.

@smarterclayton
Copy link
Contributor

This is effectively fixed by #8558, so changing the title.

@smarterclayton smarterclayton removed the kind/test-flake Categorizes issue or PR as related to test flakes. label Apr 22, 2016
@smarterclayton smarterclayton changed the title Flake in cmd/builds.sh Excessive output when multiple images returned for new-app on big repository. Apr 22, 2016
@bparees bparees assigned oatmealraisin and unassigned csrwng Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants