Bug 1507448 - [tsb]Can't delete templateinstance and other resoureces when deprovision a failed serviceinstance
Summary: [tsb]Can't delete templateinstance and other resoureces when deprovision a fa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.7.0
Assignee: Jeff Peeler
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-30 09:53 UTC by XiuJuan Wang
Modified: 2017-11-28 22:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Deleting a failed ServiceInstance was not deleting other dependent resources, now all resources are deleted as expected.
Clone Of:
Environment:
Last Closed: 2017-11-28 22:20:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description XiuJuan Wang 2017-10-30 09:53:03 UTC
Description of problem:
Deprovision serviceinstance which status is failed, will not delete other resources include templateinstance.

Version-Release number of selected component (if applicable):
brew-*/ose-service-catalog   v3.7.0-0.185.0.0    ef0dd815574a        2 days ago          266 MB

How reproducible:
always

Steps to Reproduce:
1.Provision jenkins-ephemral clusterserviceclass via browse catalog
2.Cancel jenkins deployment so no jenkins pod is running
3.jenkins serviceinstance will failed due to 'Provision call failed: Readiness failed on DeploymentConfig wang1/jenkins'
4.Deprovision the failed serviceinstance

Actual results:
Only serviceinstance be deleted,templateinstance and other resources(like dc,rc,pod,bc,builds,service) don't be deleted.

Expected results:
Should delete all resources

Additional info:

Comment 1 Paul Morie 2017-10-30 14:51:34 UTC
This should be fixed by https://github.com/openshift/origin/pull/17075.

Jeff, will you test this and verify that it is fixed with the version in your PR?  If so, please move this bug to POST.

Comment 2 Paul Morie 2017-10-30 19:56:26 UTC
It's not clear to me what the point of the cancel button is, if it doesn't delete the ServiceInstance.  It was definitely confusing to users in this case.  Is this a bug related to the button, or is the button itself a bug until we have a way to actually cancel the operation?

Comment 3 Samuel Padgett 2017-10-30 20:29:10 UTC
There is no cancel for provision in the console. I think the description is referring to cancelling the running deployment for the deployment config created by the template.

Comment 4 Samuel Padgett 2017-10-30 20:44:32 UTC
Verified this is working

https://github.com/openshift/origin/pull/17075

Comment 5 XiuJuan Wang 2017-10-31 02:03:42 UTC
Paul
I cancel jenkins deployment just to make serviceinstance provision failed.
Serviceinstance provision failed is a necessary conditions for this bug.

Comment 7 XiuJuan Wang 2017-11-02 02:41:41 UTC
Can't reproduce this bug with [1]

[1]
openshift v3.7.0-0.189.0
kubernetes v1.7.6+a08f5eeb62

ose-service-catalog:v3.7.0-0.189.0

Comment 10 errata-xmlrpc 2017-11-28 22:20:01 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/RHSA-2017:3188


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