Bug 1447997

Summary: Errors are not shown on web when create resource from template contains fake api group
Product: OpenShift Container Platform Reporter: Xiaolin <xxing>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: XiaochuanWang <xiaocwan>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, mmccomas, smunilla
Target Milestone: ---Keywords: Regression
Target Release: ---   
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-07-25 14:08:07 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 Xiaolin 2017-05-04 11:21:00 UTC
Description of problem:
  Errors are not shown on web when create resource from template contains fake api group

Version-Release number of selected component (if applicable):
dev-preview-int
openshift v3.6.63
kubernetes v1.6.1+5115d708d7

How reproducible:
Always

Steps to Reproduce:
1. Create a template using , https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
2. $ oc edit template ruby-helloworld-sample, change the "apiVersion“ of the "Secret" object to fake/v1
3. Login to web console, click "Add to Project" , select the created template,ruby-helloworld-sample. Do not fill in any fields,  just click "Create" on next step page.

Actual results:
The "Create" button becomes disabled, the erros about "user cannot create"  are not shown

Expected results:
The page should show the error about "fail to create" or some 403 error.

Additional info:

Comment 2 openshift-github-bot 2017-05-04 17:23:23 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/978c2f748e3c40f40ecffca682a32de9c149a842
Bug 1447997 - Show warning for unsupported resource versions

Show warnings when instantiating a template that contains resource
versions not supported by the server.

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

Comment 4 Xiaolin 2017-06-05 08:50:48 UTC
Verified on 

OpenShift Master:    v3.6.94
Kubernetes Master:   v1.6.1+5115d708d7