Bug 1511847

Summary: Shouldn't remove servicebinding when deprovision serviceinstance from UI
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: Service BrokerAssignee: Jessica Forrester <jforrest>
Status: CLOSED NOTABUG QA Contact: Zhang Cheng <chezhang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jmatthew, spadgett
Target Milestone: ---   
Target Release: ---   
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-10 13:41:14 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 2017-11-10 09:54:26 UTC
Description of problem:
When deprovision serviceinstance from web console, servicebinding will be removed firstly.
Works in cmd.Delete serviceinstance from cli, servicebinding will not be removed.

Version-Release number of selected component (if applicable):
openshift v3.7.5
kubernetes v1.7.6+a08f5eeb62

How reproducible:
always

Steps to Reproduce:
1.Provision a clusterserviceclass from browse catalog.
2.Create a binding
3.Deprovision the serviceinstance from web console

Actual results:
step3:
servicebinding will be removed. and serviceinstance is marked as deletion.

Expected results:
Should has same behavior with cmd.

Additional info:

Comment 1 Samuel Padgett 2017-11-10 13:41:14 UTC
This is intended behavior. We remove the service binding first since you cannot delete the instance fully without removing the binding. This is why we say in the dialog it will delete all data.

I understand the CLI works differently. Improved CLI support for service catalog is coming in a later release.

Comment 2 Samuel Padgett 2017-11-10 15:19:36 UTC
Here is the PR that specifically enabled this behavior with some background discussion.

https://github.com/openshift/origin-web-console/pull/2150