Bug 1401762 - [devexp_public_1089]oc new-app didn't respect the "hidden" tag of the builder imagestream
Summary: [devexp_public_1089]oc new-app didn't respect the "hidden" tag of the builder...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Build
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jim Minter
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 02:44 UTC by Wang Haoran
Modified: 2017-05-30 12:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-30 12:51:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bc and is json file (8.18 KB, text/plain)
2016-12-06 02:44 UTC, Wang Haoran
no flags Details

Description Wang Haoran 2016-12-06 02:44:32 UTC
Created attachment 1228255 [details]
bc and is json file

Description of problem:
oc new-app didn't respect the "hidden" tag of the builder imagestream

Version-Release number of selected component (if applicable):
openshift v1.5.0-alpha.0+ec0d94c-243
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0


How reproducible:
always

Steps to Reproduce:
1.create a project and create the ruby is under the project
2.add "hidden" tag to 2.2,2.3,latest is 
3.search the ruby is using new-app
oc new-app -S ruby
4. create app using new-app
oc new-app https://github.com/openshift/ruby-ex

Actual results:
step 3 is correct, the output :
oc new-app -S ruby
Image streams (oc new-app --image-stream=<image-stream> [--code=<source>])
-----
ruby
  Project: haowang
  Tags:    2.0

Docker images (oc new-app --docker-image=<docker-image> [--code=<source>])
-----
ruby
  Registry: Docker Hub
  Tags:     latest

step 4 is still using the 2.3 tag
oc new-app https://github.com/openshift/ruby-ex
--> Found image 4d7553b (4 days old) in image stream "haowang/ruby" under tag "2.3" for "ruby"

    Ruby 2.3 
    -------- 
    Platform for building and running Ruby 2.3 applications

    Tags: builder, ruby, ruby23, rh-ruby23

    * The source repository appears to match: ruby
    * A source build using source code from https://github.com/openshift/ruby-ex will be created
      * The resulting image will be pushed to image stream "ruby-ex:latest"
      * Use 'start-build' to trigger a new build
    * This image will be deployed in deployment config "ruby-ex"
    * Port 8080/tcp will be load balanced by service "ruby-ex"
      * Other containers can access this service through the hostname "ruby-ex"

--> Creating resources ...
    imagestream "ruby-ex" created
    buildconfig "ruby-ex" created
    deploymentconfig "ruby-ex" created
    service "ruby-ex" created
--> Success
    Build scheduled, use 'oc logs -f bc/ruby-ex' to track its progress.
    Run 'oc status' to view your app.


Expected results:
step 4 should use tag 2.2

Additional info:

Comment 1 Jim Minter 2016-12-08 10:52:09 UTC
https://github.com/openshift/origin/pull/12185

Comment 2 Wang Haoran 2016-12-13 05:52:52 UTC
verified with :
oc v1.5.0-alpha.0+a5ae7f1-349
kubernetes v1.4.0+776c994
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.18.12.207:8443
openshift v1.5.0-alpha.0+a5ae7f1-349
kubernetes v1.4.0+776c994


Note You need to log in before you can comment on or make changes to this bug.