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
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
https://github.com/ansibleplaybookbundle/rhscl-postgresql-apb/pull/10
This bug has been fixed. Please move it to ON_QA. Thanks.
3.6 has the same issue. Will we fix it in OCP 3.6? If so, I will clone this for OCP 3.6.
Verified. Fixed.
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