Bug 1495460

Summary: Build is not triggered after the create from image page due to no openshift namespace
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, xtian
Target Milestone: ---Keywords: Regression
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-27 13:02:05 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 Xingxing Xia 2017-09-26 06:25:43 UTC
Description of problem:
Build is not triggered after the create from image page due to no openshift namespace.
Build has no the issue if "Create" is clicked in ordering panel directly

Version-Release number of selected component (if applicable):
v3.7.0-0.127.0

How reproducible:
Always

Steps to Reproduce:
1. Create project
2. On web console, the home page is service catalog UI. Search ruby buider image, click it. It pops up the ordering panel. Fill required fields like "Git Repository" etc.
3. Click "advanced options" to the create from image page, fill required fields, then click "Create" and check the build
4. Repeat step 2, then do not click "advanced options". Instead, click "Create" directly and check the build

Actual results:
3. No build is triggered. Check BC, found:
$ oc describe bc ruby
error instantiating Build from BuildConfig ... (0): Error resolving ImageStreamTag ruby:2.3 in namespace xxia-proj: unable to find latest tagged image

$ oc get bc ruby -o yaml # no "namespace: openshift" as it had before
    sourceStrategy:
      from:
        kind: ImageStreamTag
        name: ruby:2.3

4. This operation does not have step 3's issue.

Expected results:
3. BC should have "namespace: openshift" under "from" like step 4

Additional info:

Comment 3 openshift-github-bot 2017-09-26 14:11:15 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/e7f6d906f52adb08bafc2261e2ef1c3aea0ae865
Bug 1495460 - Fix build config source namespace

Correctly set the build config source image namespace when adding a
builder using advanced options.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1495460

Comment 5 Xingxing Xia 2017-09-27 09:09:34 UTC
Installed v3.7.0-0.131.0 env, checked the bug is fixed on it. Original steps in comment 0 now don't have issue, builds are triggered and thus app are deployed