Bug 1472226 - It should add param validation for APB serviceclasses.
It should add param validation for APB serviceclasses.
Status: NEW
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: 3.8.0
Assigned To: John Matthews
Zhang Cheng
: 1500182 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2017-07-18 05:33 EDT by xipang
Modified: 2017-10-10 03:19 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description xipang 2017-07-18 05:33:10 EDT
Description of problem:
Currently mediawiki-apb and postgresql-apb don't have param validation. It is better to add param validation for them from UX in web. Such as add "pattern" for related params under alphaInstanceCreateParameterSchema

Version-Release number of selected component (if applicable):
oc v3.6.152.0
kubernetes v1.6.1+5115d708d7

How reproducible:

Steps to Reproduce:
1.Create a project. Login to web console home page.
2.Select a APB serviceclasses(eg. mediawiki-apb).
3.In the pop-up window , fill in parameters with invalid values.

Actual results:
3.Do not do parameters validation.

Expected results:
3.Would do parameters validation.

Additional info:
Comment 1 DeShuai Ma 2017-07-18 06:20:21 EDT
also: https://bugzilla.redhat.com/show_bug.cgi?id=1471730#c2
Comment 2 John Matthews 2017-07-18 16:53:55 EDT
Aligning to 3.7.0
Comment 3 Xingxing Xia 2017-07-21 02:15:17 EDT
FYI, this time tried service postgresql-apb. When provisioning it, I didn't carefully think about common knowledge of a name for "PostgreSQL Database Name" and just typed 1111, after provisioning, the postgresql-1-f56j9 pod met Error:

$ oc get pod
NAME                                       READY     STATUS      RESTARTS   AGE
postgresql-1-f56j9                         0/1       Error       3          1m

$ oc logs postgresql-1-f56j9
You must either specify the following environment variables:
  POSTGRESQL_USER (regex: '^[a-zA-Z_][a-zA-Z0-9_]*$')
  POSTGRESQL_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
  POSTGRESQL_DATABASE (regex: '^[a-zA-Z_][a-zA-Z0-9_]*$')
Or the following environment variable:
  POSTGRESQL_ADMIN_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
Or both
... snipped ...

Now that it has underlying requirement about the params, changing bug title to "it should add ..."
Comment 4 John Matthews 2017-08-24 09:22:52 EDT
Not in scope for 3.7.0, moving to 3.8.0
Comment 5 Zhang Cheng 2017-10-10 03:19:46 EDT
*** Bug 1500182 has been marked as a duplicate of this bug. ***

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