Bug 1244254 - Cannot create from templates with certain types in the Web Console
Summary: Cannot create from templates with certain types in the Web Console
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.0.0
Hardware: All
OS: All
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yanping Zhang
Depends On:
TreeView+ depends on / blocked
Reported: 2015-07-17 15:11 UTC by Samuel Padgett
Modified: 2015-08-03 20:17 UTC (History)
7 users (show)

Fixed In Version: openshift-
Doc Type: Bug Fix
Doc Text:
Previously when creating from templates in the web console, the creation would fail if the template contained certain API object types, including persistent volume claims, secrets, and service accounts. This was due to the web console missing these types from its API type map. The type map has now been updated to include these missing types, and the web console also now gracefully handles unrecognized object types, reporting a relevant error message.
Clone Of:
Last Closed: 2015-08-03 20:17:40 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1540 normal SHIPPED_LIVE Red Hat OpenShift Enterprise bug fix and enhancement update 2015-08-04 00:17:18 UTC

Description Samuel Padgett 2015-07-17 15:11:12 UTC
Description of problem:

You cannot use a template that references several different types in the Web Console. Examples include persistent volume claims, secrets, service accounts, and many others.



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


How reproducible:


Steps to Reproduce:
1. Load a template that uses persistent volume claims, like examples/db-templates/postgresql-persistent-template.json
2. Try to create using the template in the Web Console

Actual results:

The creation fails with no error message.

Expected results:

The creation succeeds.

Additional info:

We should also fail gracefully when templates reference unrecognized types. (To test, change the kind of an object in a template to an invalid value.)

Comment 1 Samuel Padgett 2015-07-17 15:12:14 UTC
Fix merged in origin:


Comment 4 Yanping Zhang 2015-07-22 08:06:00 UTC
Test on ose puddle 2015-07-21.3.
$ oc version
oc v3.0.1.0-388-g51e9da7
kubernetes v1.0.0

Steps to verify:
1.Create template in project "prozyp".
$ oc create -f origin/examples/db-templates/postgresql-persistent-template.json -n prozyp
2.Login web console, create using template postgresql-persistent in project "prozyp".
3.Create template in project "prozyp1". Edit the template, and chage the kind "PersistentVolumeClaim" to an invalid type "TestPersistentVolumeClaim".
$ oc create -f origin/examples/db-templates/postgresql-persistent-template.json -n prozyp1
$ oc edit templates/postgresql-persistent -n prozyp1
4.Login web console, create using template postgresql-persistent in project "prozyp1".

Actual results:
2.Show successful creation info on Overview page.
4.Show failure info, and in details there is error info: Cannot create object. Unrecognized type: TestPersistentVolumeClaim.

Comment 6 errata-xmlrpc 2015-08-03 20:17:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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