Bug 1325761

Summary: [userinterface_public_613]The debug pod is not deleted if user navigates away without closing modal
Product: OKD Reporter: Wei Sun <wsun>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jforrest, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 13:51: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:

Description Wei Sun 2016-04-11 06:53:46 UTC
Description of problem:
Click the "Debug in Terminal" link on the failed pod page,and a debug pod is created.Access other page without clicking close button.But the debug pod is not deleted.

Version-Release number of selected component (if applicable):
fork_ami_openshift3_userinterface_console_1.3_209

How reproducible:
Always

Steps to Reproduce:
1.Create a failed pod
$oc run run-once-pod --image=openshift/origin --command=true ls /abcd --restart=Never
2.Click the "Debug in Terminal" link on the failed pod page
3.Access other page without clicking close button for debug pod

Actual results:
The debug pod is not deleted

Expected results:
The debug pod should be deleted

Additional info:

Comment 1 Wei Sun 2016-04-11 10:20:56 UTC
I checked my debug pod after 2 hours,the debug pod is completed,but it also is not deleted.

Comment 2 Samuel Padgett 2016-04-11 14:20:32 UTC
https://github.com/jwforres/origin/pull/42

Comment 3 Samuel Padgett 2016-04-11 14:24:35 UTC
Added a warning. If the user ignores the warning, the pod will not be deleted, but it will still complete after one hour (and not consume quota/resources).

Comment 4 Wei Sun 2016-04-28 06:19:03 UTC
Verified this bug against devenv-fedora_4053.
Now there is a warning when access other page without clicking close button.