Bug 1391827 - Scheduledjob not deleted when project has been deleted
Summary: Scheduledjob not deleted when project has been deleted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: Chuan Yu
URL:
Whiteboard:
Depends On:
Blocks: 1399700
TreeView+ depends on / blocked
 
Reported: 2016-11-04 07:36 UTC by Chuan Yu
Modified: 2017-03-08 18:43 UTC (History)
5 users (show)

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.
Clone Of:
: 1399700 (view as bug list)
Environment:
Last Closed: 2017-01-18 12:49:36 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

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:
Always

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.

Thanks.

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.

https://access.redhat.com/errata/RHBA-2017:0066


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