Bug 1462205

Summary: [trello JMKxStDt] Remove binding action remains after binding was removed
Product: OpenShift Container Platform Reporter: Eduard Trott <etrott>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: XiaochuanWang <xiaocwan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: aos-bugs, jforrest, jokerman, mmccomas, smunilla, 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-07-25 14:05:56 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 Eduard Trott 2017-06-16 12:23:27 UTC
Description of problem:
Can't remove binding on web console

Version-Release number of selected component (if applicable):
v3.6.112

How reproducible:
Always

Steps to Reproduce:
1. oc new-app openshift/hello-openshift --name hello
2. Add user-provided-service provisioned service to the project
3. On overview page bind hello deployment with user-provided-service
4. Delete binding and start another deployment
5. Try to delete binding againg

Actual results:
Can delete binding again

Expected results:
Shouldn't see "delete binding" option in kebab menu of hello deployment

Additional info:

Comment 1 Jessica Forrester 2017-06-16 15:15:19 UTC
There are actually two problems here.

1) There is a known bug in the service catalog where it is not properly cleaning up the Binding objects after they should be deleted. See https://github.com/kubernetes-incubator/service-catalog/issues/942#issuecomment-309045453

2) When unbind can be asynchronous against the broker, then the unbind could take some time. We should not show delete binding when all the existing bindings are already marked for deletion.  We will fix #2 in this bug.

Comment 2 openshift-github-bot 2017-06-20 19:25:15 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/25f36400cf057e0d08dd81a40e35edc1c37d50cf
Bug 1462205 - Delete binding shouldn't show up when all bindings are pending deletion

Comment 4 Eduard Trott 2017-06-21 13:48:00 UTC
verified for OCP v3.6.121