Bug 1500661 - The default value for enum field of serviceclass is not shown automatically when provisioning in web
Summary: The default value for enum field of serviceclass is not shown automatically w...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.7.0
Assignee: cchase
QA Contact: Weihua Meng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-11 09:55 UTC by Weihua Meng
Modified: 2017-11-28 22:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Default value was set as an integer instead of string. Consequence: Default version number was not filled in on the postgres version. Fix: Change the default to a string Result: Default version number should be filled in as '9.5'
Clone Of:
Environment:
Last Closed: 2017-11-28 22:16:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
PostgreSQL default value (34.98 KB, image/png)
2017-10-11 09:55 UTC, Weihua Meng
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description Weihua Meng 2017-10-11 09:55:12 UTC
Created attachment 1337069 [details]
PostgreSQL default value

Description of problem:
The default value for enum field of serviceclass is not shown automatically when provisioning in web
E.g there are default values for postgresql_database, postgresql_user, postgresql_version, the first two works fine, but postgresql_version dafault value does not, which is field of enum type

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

How reproducible:
Always

Steps to Reproduce:
1. log in webconsole of openshift cluster with servicecatalog enabled
2. Click the item PostgreSQL(APB) to provision
3. click "next" and "next" to the step for filling in parameters
4. view configuration page

Actual results:
there are default value for PostgreSQL Database Name, PostgreSQL User, but no default value for PostgreSQL Version of enum type

Expected results:
all default values are shown

Additional info:
# oc describe serviceclass dh-rhscl-postgresql-apb
<---snip--->
    Properties:
      Postgresql _ Database:
        Default:	admin
        Title:		PostgreSQL Database Name
        Type:		string
      Postgresql _ Password:
        Description:	A random alphanumeric string if left blank
        Title:		PostgreSQL Password
        Type:		string
      Postgresql _ User:
        Default:	admin
        Max Length:	63
        Title:		PostgreSQL User
        Type:		string
      Postgresql _ Version:
        Default:	9.5
        Enum:
          9.5
          9.4
        Title:	PostgreSQL Version
        Type:	string

Comment 1 Samuel Padgett 2017-10-13 20:05:43 UTC
Looks like there are missing quotes around in the default value in the YAML.

https://github.com/fusor/apb-examples/blob/master/rhscl-postgresql-apb/apb.yml#L21

Comment 3 Weihua Meng 2017-10-24 05:51:27 UTC
This bug has been fixed.

Please move it to ON_QA.
Thanks.

Comment 4 Weihua Meng 2017-10-24 09:10:19 UTC
3.6 has the same issue.
Will we fix it in OCP 3.6? If so, I will clone this for OCP 3.6.

Comment 5 Weihua Meng 2017-10-26 02:05:05 UTC
Verified.
Fixed.

Comment 8 errata-xmlrpc 2017-11-28 22:16:24 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.

https://access.redhat.com/errata/RHSA-2017:3188


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