Bug 1500661
Summary: | The default value for enum field of serviceclass is not shown automatically when provisioning in web | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Weihua Meng <wmeng> | ||||
Component: | Service Broker | Assignee: | cchase | ||||
Status: | CLOSED ERRATA | QA Contact: | Weihua Meng <wmeng> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.7.0 | CC: | aos-bugs, chezhang, jokerman, mmccomas, wmeng | ||||
Target Milestone: | --- | ||||||
Target Release: | 3.7.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
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 22:16:24 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: | |||||||
Attachments: |
|
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 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 |
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