Bug 1287241

Summary: Multiple image streams that support jee when creating new application.
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: BuildAssignee: kconner
Status: CLOSED NOTABUG QA Contact: Wenjing Zheng <wzheng>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: aos-bugs, bparees, rcernich
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-18 00:24:10 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 Ryan Howe 2015-12-01 19:52:46 UTC
Description of problem:
Multiple image streams that support jee when creating new application.


Version-Release number of selected component (if applicable):
3.1

How reproducible:
100%

Steps to Reproduce:
1. Upgraded from 3.0 to 3.1

2. Ran # oc replace -n openshift -f /usr/share/openshift/examples/xpaas-streams
imagestream "jboss-webserver3-tomcat7-openshift" replaced
imagestream "jboss-webserver3-tomcat8-openshift" replaced
imagestream "jboss-eap6-openshift" replaced
imagestream "jboss-amq-6" replaced

3. Then # oc new-app https://github.com/42sixsolutions/claire.git -n test
error: multiple images or templates matched "jee": 2


Actual results:

error: multiple images or templates matched "jee": 2

Expected results:

Choose the correct is to use and not error trying to use multiple. 

Additional info:
# oc get imagestream -n openshift -o yaml | grep jee -B6 -A3
  spec:
    dockerImageRepository: registry.access.redhat.com/jboss-amq-6/amq-openshift
    tags:
    - annotations:
        description: JBoss ActiveMQ 6 broker image.
        iconClass: icon-jboss
        supports: amq:6.2,jee,java
        tags: javaee
        version: "6.2"
      name: "6.2"
--
  spec:
    dockerImageRepository: registry.access.redhat.com/jboss-eap-6/eap-openshift
    tags:
    - annotations:
        description: JBoss EAP 6 STI images.
        iconClass: icon-jboss
        supports: eap:6.4,jee,java
        tags: javaee
        version: "6.4"
      name: "6.4"

Comment 1 Ben Parees 2016-01-04 15:39:02 UTC
This is working as designed, the repository is identified as containing a java application, and there are two imagestreamtags which "support" java, there's no way to choose between them.


the only change that could be considered here is to remove "java" from the "supports" list on the AMQ image.  Assigning to the middleware team to update that.

Comment 2 Ben Parees 2016-01-04 17:56:30 UTC
Rob/Kevin, the "supports" annotation is intended to indicate what types of applications the image can build, so it is probably not appropriate for amq since it's not a builder image.

Comment 3 kconner 2017-02-18 00:24:10 UTC
This issue is now out of date, it is no longer a bug.  Closing as "notabug" since there is no "out of date" option.