Bug 1563560
| Summary: | [ASB] The response of binding should be 200 if the binding already exists | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jian Zhang <jiazha> |
| Component: | Service Broker | Assignee: | Jesus M. Rodriguez <jesusr> |
| Status: | CLOSED ERRATA | QA Contact: | Jian Zhang <jiazha> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.7.0 | CC: | aos-bugs, chezhang, jmatthew, zitang |
| Target Milestone: | --- | ||
| Target Release: | 3.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Improper OpenServiceBroker (OSB) API spec compliance in the binding calls.
Consequence:
Improper response code from bindings call.
Fix:
Implemented support for asynchronous bindings. Re-verified the call to be compliant with the OSB API specification.
Result:
Longer binding calls can now run asynchronously. The bindings now return the proper codes based on the OSB API spec.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-07-30 19:11:39 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: | |||
|
Description
Jian Zhang
2018-04-04 07:58:40 UTC
Aligning this to 3.10.0, BZ was originally filed with target release of 3.7.z but we don't intend to address this in 3.7.z. Fixed by async bind changes.
[jesusr@speed3 linux{master}]$ BID=`uuidgen`
[jesusr@speed3 linux{master}]$ ./sync_bind.sh $BID
binding ID: 4d4af13b-f047-4a03-8d05-d530cf381252
HTTP/1.1 201 Created
Content-Type: application/json
Date: Mon, 16 Apr 2018 14:21:04 GMT
Content-Length: 184
Set-Cookie: d05351dd24520dce41f310fcfc112523=4dadbcf5392319a16cee15b01e6bb9c5; path=/; HttpOnly; Secure
{
"credentials": {
"DB_HOST": "postgresql",
"DB_NAME": "admin",
"DB_PASSWORD": "password",
"DB_PORT": "5432",
"DB_TYPE": "postgres",
"DB_USER": "admin"
}
}
[jesusr@speed3 linux{master}]$ ./sync_bind.sh $BID
binding ID: 4d4af13b-f047-4a03-8d05-d530cf381252
HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 16 Apr 2018 14:21:15 GMT
Content-Length: 184
Set-Cookie: d05351dd24520dce41f310fcfc112523=4dadbcf5392319a16cee15b01e6bb9c5; path=/; HttpOnly; Secure
Cache-control: private
{
"credentials": {
"DB_HOST": "postgresql",
"DB_NAME": "admin",
"DB_PASSWORD": "password",
"DB_PORT": "5432",
"DB_TYPE": "postgres",
"DB_USER": "admin"
}
}
[jesusr@speed3 linux{master}]$ ./sync_bind.sh $BID
binding ID: 4d4af13b-f047-4a03-8d05-d530cf381252
HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 16 Apr 2018 14:21:20 GMT
Content-Length: 184
Set-Cookie: d05351dd24520dce41f310fcfc112523=4dadbcf5392319a16cee15b01e6bb9c5; path=/; HttpOnly; Secure
Cache-control: private
{
"credentials": {
"DB_HOST": "postgresql",
"DB_NAME": "admin",
"DB_PASSWORD": "password",
"DB_PORT": "5432",
"DB_TYPE": "postgres",
"DB_USER": "admin"
}
}
definitely in 3.10 build ansible-service-broker-1.2.5-1 The ASB version: 1.2.5 [root@host-172-16-120-104 ~]# docker run --rm --entrypoint=asbd registry.reg-aws.openshift.com:443/openshift3/ose-ansible-service-broker:v3.10.0 --version 1.2.5 [root@host-172-16-120-104 ~]# oc version oc v3.10.0-0.15.0 kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://172.16.120.104:8443 openshift v3.10.0-0.15.0 kubernetes v1.9.1+a0ce1bc657 [jzhang@localhost ~]$ uuidgen 31b982b0-85d6-436d-86ca-157fe3293203 [jzhang@localhost ~]$ ./sync_bind.sh 31b982b0-85d6-436d-86ca-157fe3293203 binding ID: 31b982b0-85d6-436d-86ca-157fe3293203 HTTP/1.1 201 Created Content-Type: application/json Date: Tue, 17 Apr 2018 05:33:55 GMT Content-Length: 180 Set-Cookie: 89a6d633054ded194d4e1360cdc1fbef=ce9c6768267189514441665e21b794d3; path=/; HttpOnly; Secure { "credentials": { "DB_HOST": "postgresql", "DB_NAME": "admin", "DB_PASSWORD": "test", "DB_PORT": "5432", "DB_TYPE": "postgres", "DB_USER": "admin" } } [jzhang@localhost ~]$ ./sync_bind.sh 31b982b0-85d6-436d-86ca-157fe3293203 binding ID: 31b982b0-85d6-436d-86ca-157fe3293203 HTTP/1.1 200 OK Content-Type: application/json Date: Tue, 17 Apr 2018 05:33:58 GMT Content-Length: 180 Set-Cookie: 89a6d633054ded194d4e1360cdc1fbef=ce9c6768267189514441665e21b794d3; path=/; HttpOnly; Secure Cache-control: private { "credentials": { "DB_HOST": "postgresql", "DB_NAME": "admin", "DB_PASSWORD": "test", "DB_PORT": "5432", "DB_TYPE": "postgres", "DB_USER": "admin" } } [jzhang@localhost ~]$ ./sync_bind.sh 31b982b0-85d6-436d-86ca-157fe3293203 binding ID: 31b982b0-85d6-436d-86ca-157fe3293203 HTTP/1.1 200 OK Content-Type: application/json Date: Tue, 17 Apr 2018 05:34:04 GMT Content-Length: 180 Set-Cookie: 89a6d633054ded194d4e1360cdc1fbef=ce9c6768267189514441665e21b794d3; path=/; HttpOnly; Secure Cache-control: private { "credentials": { "DB_HOST": "postgresql", "DB_NAME": "admin", "DB_PASSWORD": "test", "DB_PORT": "5432", "DB_TYPE": "postgres", "DB_USER": "admin" } } It works as expected, LGTM, verify it, thanks! 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/RHBA-2018:1816 |