Bug 1470860 - Ansible Service Broker: Do not create a project if it does not exist. [NEEDINFO]
Ansible Service Broker: Do not create a project if it does not exist.
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.7.0
Assigned To: Erik Nelson
weiwei jiang
: TestCaseNeeded
Depends On:
  Show dependency treegraph
Reported: 2017-07-13 16:49 EDT by John Matthews
Modified: 2017-11-28 17:01 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-11-28 17:01:28 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
jmatthew: needinfo? (wjiang)

Attachments (Terms of Use)

  None (edit)
Description John Matthews 2017-07-13 16:49:19 EDT
Description of problem:

The Ansible Service Broker should __not__ create a project if it does not exist.

We want to return a clear error message that the request is failing because project does not exist.
Comment 3 weiwei jiang 2017-07-24 23:16:54 EDT
Checked with:
#asbd --version

and project not existed will not be created, and come out error message in ansible-service-broker pod logs.

The ansible-service-broker pod log is:
[2017-07-25T03:07:31.295Z] [INFO] ASYNC provisioning in progress
[2017-07-25T03:07:31.296Z] [NOTICE] ============================================================
[2017-07-25T03:07:31.296Z] [NOTICE]                        PROVISIONING                         
[2017-07-25T03:07:31.296Z] [NOTICE] ============================================================
[2017-07-25T03:07:31.296Z] [NOTICE] Spec.Id: e1bcd4a8-ce02-4585-9f4c-18abd56d76f2
[2017-07-25T03:07:31.296Z] [NOTICE] Spec.Name: postgresql-apb
[2017-07-25T03:07:31.296Z] [NOTICE] Spec.Image: openshift3/postgresql-apb
[2017-07-25T03:07:31.296Z] [NOTICE] Spec.Description: SCL PostgreSQL apb implementation
[2017-07-25T03:07:31.296Z] [NOTICE] ============================================================
[2017-07-25T03:07:31.296Z] [INFO] Checking if project psql-project exists... - - [25/Jul/2017:03:07:31 +0000] "PUT /v2/service_instances/1554c27c-6073-4dff-9fd8-0e4509e11413?accepts_incomplete=true HTTP/1.1" 202 58
[2017-07-25T03:07:31.573Z] [INFO] Container not up yet, retrying 64 of 150 on pod apb-c1ffa138-8c39-4f97-9ca5-94ee9a39e63f
[2017-07-25T03:07:31.658Z] [ERROR] Project psql-project does NOT exist! Cannot provision requested postgresql-apb
[2017-07-25T03:07:31.658Z] [ERROR] broker::Provision error occurred.
[2017-07-25T03:07:31.658Z] [ERROR] Project psql-project does not exist

The request script is:
#!/bin/bash -e


  \"plan_id\": \"$planUUID\",
  \"service_id\": \"$serviceUUID\",
  \"context\": {
    \"platform\": \"openshift\",
    \"namespace\": \"psql-project\"
  \"parameters\": {
    \"postgresql_database\": \"admin\",
    \"postgresql_password\": \"admin123\",
    \"postgresql_user\": \"admin\",
    \"postgresql_version\": \"9.5\"

curl \
  -X PUT \
  -H 'X-Broker-API-Version: 2.9' \
  -H 'Content-Type: application/json' \
  -d "$req" \
  -v \
Comment 8 errata-xmlrpc 2017-11-28 17:01:28 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.


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