Bug 1391827

Summary: Scheduledjob not deleted when project has been deleted
Product: OpenShift Container Platform Reporter: Chuan Yu <chuyu>
Component: MasterAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: Chuan Yu <chuyu>
Severity: high Docs Contact:
Priority: medium    
Version: 3.4.0CC: aos-bugs, jliggitt, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Finzalization mechanism did not read all possible resources available in cluster, just the preferred ones. Consequence: ScheduledJobs were not removed during project deletion. Fix: Read all resources for finalization and garbage collection, not just the preferred. Result: ScheduledJobs are removed during project deletion.
Story Points: ---
Clone Of:
: 1399700 (view as bug list) Environment:
Last Closed: 2017-01-18 12:49:36 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:
Bug Depends On:    
Bug Blocks: 1399700    

Description Chuan Yu 2016-11-04 07:36:19 UTC
Description of problem:
Scheduledjob not deleted when project has been deleted

Version-Release number of selected component (if applicable):
openshift v3.4.0.21+ca4702d
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

How reproducible:

Steps to Reproduce:
1.Login system as a normal user, and create a project, and commit a scheduledjobs, such as "oc run sj3 --image=busybox --restart=Never --schedule="*/1 * * * *" -- sleep 300"
2.Delete the project just created
3.Wait for some minutes, create a new project with the same name, then run 'oc get scheduledjobs'. 

Actual results:
The scheduledjob created previous exist when the new project created.

Expected results:
When the new project created, no scheduledjobs created previous exist.

Additional info:

Comment 1 Maciej Szulik 2016-11-04 08:25:37 UTC
ScheduledJobs are alpha due to being not fully implemented. This is one of the "features" that needs to be implemented before promoting to beta. Marking it as an upcoming release, in that case.

Comment 2 Jordan Liggitt 2016-11-04 15:14:29 UTC
objects not being deleted from etcd when namespaces are removed is significant... is this known upstream?

Comment 3 Maciej Szulik 2016-11-22 16:06:30 UTC
Fixed in https://github.com/openshift/origin/pull/11994

Comment 4 Maciej Szulik 2016-11-24 12:55:24 UTC
The PR merged for 1.4 branch. The 1.5 will have it after the next rebase.

Comment 5 Chuan Yu 2016-11-25 06:15:31 UTC
Since no new puddle available to verify it, now change it to MODIFIED status.

When new puddle available, please change to ON_QA, will verify it then.


Comment 6 Maciej Szulik 2016-11-28 17:53:31 UTC
New puddle is out for 3.4, moving to on qa.

Comment 7 Chuan Yu 2016-11-29 04:59:36 UTC
Checked with latest puddle, this issue has been fixed.
openshift v3.4.0.30+e10cc28
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

Comment 8 Scott Dodson 2016-11-29 15:20:43 UTC
Removed UpcomingRelease flag because this is already fixed.

Comment 10 errata-xmlrpc 2017-01-18 12:49:36 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.