Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1500661 - The default value for enum field of serviceclass is not shown automatically when provisioning in web
The default value for enum field of serviceclass is not shown automatically w...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.7.0
Assigned To: cchase
Weihua Meng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-11 05:55 EDT by Weihua Meng
Modified: 2017-11-28 17:16 EST (History)
5 users (show)

See Also:
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'
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-28 17:16:24 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Weihua Meng 2017-10-11 05:55:12 EDT
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 16:05:43 EDT
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 01:51:27 EDT
This bug has been fixed.

Please move it to ON_QA.
Thanks.
Comment 4 Weihua Meng 2017-10-24 05:10:19 EDT
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-25 22:05:05 EDT
Verified.
Fixed.
Comment 8 errata-xmlrpc 2017-11-28 17:16:24 EST
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.