Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1568815 - Service Catalog does not refresh ClusterServicePlan after removing from catalog
Service Catalog does not refresh ClusterServicePlan after removing from catalog
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Catalog (Show other bugs)
3.9.0
Unspecified Unspecified
high Severity high
: ---
: 3.9.z
Assigned To: Jay Boyd
Zhang Cheng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-18 05:38 EDT by Zhang Cheng
Modified: 2018-06-18 14:18 EDT (History)
6 users (show)

See Also:
Fixed In Version: ose-service-catalog:v3.9.21-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-18 14:18:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2013 normal SHIPPED_LIVE Important: OpenShift Container Platform 3.9 security, bug fix, and enhancement update 2018-06-27 18:01:43 EDT

  None (edit)
Description Zhang Cheng 2018-04-18 05:38:58 EDT
Description of problem: 
Service Catalog does not refresh ClusterServicePlan after removing from catalog
This bug have been fixed in 3.9.10
Relate bug: https://bugzilla.redhat.com/show_bug.cgi?id=1548122#c20
Relate fix: https://github.com/openshift/origin/pull/19105 (need to merge to 3.9.z)


service-catalog & asb image using images from brew registry:
ose-service-catalog:v3.9.20-1
# service-catalog --version
v0.1.9


How reproducible:
Always


Steps to Reproduce:
I had to modify the Automation Broker to randomly fail so that it would remove some Service specs from the /v2/catalog response.

Steps to Reproduce:
1. Have a test broker return say 4 service class specs from the /v2/catalog endpoint
2. Verify that the Service Catalog has 4 ClusterServiceClasses
3. Provision 1 of the Service Classes
4. Have the test broker return 3 service class specs from the /v2/catalog, the one that is missing MUST BE the one provisioned in step 3.
5. Have the Service Catalog relist with the test broker
6. Verify that the Provisioned Service Class reference is marked with:
   removedFromBrokerCatalog: true

7. Now, have the test broker return all 4 service class specs from the /v2/catalog again.
8. Have the Service Catalog relist with the test broker
9. Verify that the flag for the provisioned Service Class / Service Plan ref again

Actual results:
9. The removedFromBrokerCatalog: flag in ClusterServiceClass can be back to "false", but ClusterServicePlan remains "true" forever.

Expected results:
9. The removedFromBrokerCatalog: flag both in ClusterServiceClass and ClusterServicePlan should flip back to false once the service back.


Addition info: 
We hit this issue in 3.9.z testing again, and it is blocking service catalog HA support.
Comment 1 Jay Boyd 2018-04-19 15:46:42 EDT
This is fixed in 3.9.z.  This is the PR:  https://github.com/openshift/ose/pull/1200

You need at least ose-service-catalog:v3.9.21-1 - - off by one release for what you tested in.
Comment 2 Zhang Cheng 2018-04-19 23:30:24 EDT
Verified with ose-service-catalog:v3.9.21-1

Test steps follow description of this bug, and traced by TC: https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-15607

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