Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1584970

Summary: Left templateinstance behind after deprovision serviceinstance
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: Service BrokerAssignee: jkim
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, jmatthew
Target Milestone: ---Keywords: Regression
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 07:20:02 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 XiuJuan Wang 2018-06-01 04:48:57 UTC
Description of problem:
This bug happened 100% when serviceinstance failed due to 409 error. Aslo,this happened sometimes when deprovision a normal serviceinstance.
When deprovision the serviceinstance, serviceinstance and servicebindings are reclaimed except templateinstance

Version-Release number of selected component (if applicable):
60%

How reproducible:
always

Steps to Reproduce:
1.Provision a serviceclass.
2.Deprovision the serviceinstance after serviceinstance failed or succeed.
3.

Actual results:
serviceinstance and servicebindings are reclaimed except templateinstance

Expected results:
templateinstance should be deleted too.

Additional info:
I0601 02:27:29.116685       1 controller_instance.go:1143] ServiceInstance "test/cakephp-mysql-example-2ct29": Error provisioning ServiceInstance of ClusterServiceClass (K8S: "756c83aa-647a-11e8-aa79-fa163e42b8a1" ExternalName: "cakephp-mysql-example") at ClusterServiceBroker "template-service-broker": Status: 409; ErrorMessage: <nil>; Description: <nil>; ResponseError: <nil>
I0601 02:27:29.117325       1 event.go:218] Event(v1.ObjectReference{Kind:"ServiceInstance", Namespace:"test", Name:"cakephp-mysql-example-2ct29", UID:"36594304-6543-11e8-92a1-0a580a800004", APIVersion:"servicecatalog.k8s.io", ResourceVersion:"185269", FieldPath:""}): type: 'Warning' reason: 'ProvisionCallFailed' Error provisioning ServiceInstance of ClusterServiceClass (K8S: "756c83aa-647a-11e8-aa79-fa163e42b8a1" ExternalName: "cakephp-mysql-example") at ClusterServiceBroker "template-service-broker": Status: 409; ErrorMessage: <nil>; Description: <nil>; ResponseError: <nil>
I0601 02:27:31.861982       1 controller_instance.go:1639] ServiceInstance "test/cakephp-mysql-example-2ct29": Cleared finalizer
I0601 02:28:10.091617       1 controller_instance.go:233] ServiceInstance "test/cakephp-mysql-example-2ct29": Not doing work for test/cakephp-mysql-example-2ct29 because it has been deleted

Comment 1 John Matthews 2018-06-04 13:30:55 UTC
We believe this BZ is a duplicate of 1579194, yet before we close this as a duplicate we require more time to investigate and confirm our beliefs. 

Moving this to 3.11 as 3.10 is very late in bug cycle and we do not want to introduce further churn to 3.10.

Comment 4 XiuJuan Wang 2018-08-24 05:53:28 UTC
Can't reproduce this bug in ocp v3.11.0-0.21.0 version

Comment 6 errata-xmlrpc 2018-10-11 07:20:02 UTC
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:2652