Bug 1463798
Summary: | Stale APBs present in ASB after bootstrap | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | cchase |
Component: | Service Broker | Assignee: | Shawn Hurley <shurley> |
Status: | CLOSED ERRATA | QA Contact: | weiwei jiang <wjiang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.6.0 | CC: | aos-bugs, chezhang, dma, jmatthew, shurley |
Target Milestone: | --- | ||
Target Release: | 3.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-11-28 21:58:09 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
cchase
2017-06-21 19:25:15 UTC
Bug fixed with PR: https://github.com/openshift/ansible-service-broker/pull/221 Verified Steps to verfiy: 1. Configure ansible-service-broker with reigstry='dockerhub' & org='ocpqe', then invoke bootstrap # curl -H 'X-Broker-API-Version: 2.9' -X POST -v http://172.30.55.244:1338/v2/bootstrap * About to connect() to 172.30.55.244 port 1338 (#0) * Trying 172.30.55.244... * Connected to 172.30.55.244 (172.30.55.244) port 1338 (#0) > POST /v2/bootstrap HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 172.30.55.244:1338 > Accept: */* > X-Broker-API-Version: 2.9 > < HTTP/1.1 200 OK < Content-Type: application/json < Date: Thu, 06 Jul 2017 05:59:19 GMT < Content-Length: 42 < { "spec_count": 1, "image_count": 1 } * Connection #0 to host 172.30.55.244 left intact 2. Get catalog # curl http://172.30.55.244:1338/v2/catalog { "services": [ { "name": "mediawiki123-apb", "id": "55c53a5d-65a6-4c27-88fc-e027410b1337", "description": "Mediawiki123 apb implementation", "bindable": false, "metadata": { "console.openshift.io/iconClass": "icon-mediawiki", "displayName": "Mediawiki (APB)", "documentationUrl": "https://www.mediawiki.org/wiki/Documentation", "longDescription": "An apb that deploys Mediawiki 1.23", "parameters": [ { "mediawiki_db_schema": { "title": "Mediawiki DB Schema", "type": "string", "default": "mediawiki" } }, { "mediawiki_site_name": { "title": "Mediawiki Site Name", "type": "string", "default": "MediaWiki" } }, { "mediawiki_site_lang": { "title": "Mediawiki Site Language", "type": "string", "default": "en" } }, { "mediawiki_admin_user": { "title": "Mediawiki Admin User", "type": "string", "default": "admin" } }, { "mediawiki_admin_pass": { "title": "Mediawiki Admin User Password", "type": "string" } } ] }, "plans": [ { "id": "4c10ff42-be89-420a-9bab-27a9bef9aed8", "name": "default", "description": "Default plan", "free": true, "schemas": { "service_instance": { "create": { "parameters": { "$schema": "http://json-schema.org/draft-04/schema", "additionalProperties": false, "properties": { "mediawiki_admin_pass": { "title": "Mediawiki Admin User Password", "type": "string" }, "mediawiki_admin_user": { "default": "admin", "title": "Mediawiki Admin User", "type": "string" }, "mediawiki_db_schema": { "default": "mediawiki", "title": "Mediawiki DB Schema", "type": "string" }, "mediawiki_site_lang": { "default": "en", "title": "Mediawiki Site Language", "type": "string" }, "mediawiki_site_name": { "default": "MediaWiki", "title": "Mediawiki Site Name", "type": "string" } }, "required": [ "mediawiki_db_schema", "mediawiki_site_name", "mediawiki_site_lang", "mediawiki_admin_user", "mediawiki_admin_pass" ], "type": "object" } }, "update": {} }, "service_binding": { "create": { "parameters": { "$schema": "http://json-schema.org/draft-04/schema", "additionalProperties": false, "properties": { "mediawiki_admin_pass": { "title": "Mediawiki Admin User Password", "type": "string" }, "mediawiki_admin_user": { "default": "admin", "title": "Mediawiki Admin User", "type": "string" }, "mediawiki_db_schema": { "default": "mediawiki", "title": "Mediawiki DB Schema", "type": "string" }, "mediawiki_site_lang": { "default": "en", "title": "Mediawiki Site Language", "type": "string" }, "mediawiki_site_name": { "default": "MediaWiki", "title": "Mediawiki Site Name", "type": "string" } }, "type": "object" } } } } } ] } ] } 3. Delete the image on dockerhub org 'ocpqe' then invoke bootstrap again. # curl -H 'X-Broker-API-Version: 2.9' -X POST -v http://172.30.55.244:1338/v2/bootstrap * About to connect() to 172.30.55.244 port 1338 (#0) * Trying 172.30.55.244... * Connected to 172.30.55.244 (172.30.55.244) port 1338 (#0) > POST /v2/bootstrap HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 172.30.55.244:1338 > Accept: */* > X-Broker-API-Version: 2.9 > < HTTP/1.1 200 OK < Content-Type: application/json < Date: Thu, 06 Jul 2017 06:01:09 GMT < Content-Length: 42 < { "spec_count": 0, "image_count": 0 } * Connection #0 to host 172.30.55.244 left intact 4. Get catalog again and confirm old apb image spec is removed from asb. # curl http://172.30.55.244:1338/v2/catalog { "services": [] } 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 Remove "NeedTestCase" keyword since the issue have been covered by TC https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-15607 |