Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1391827 - Scheduledjob not deleted when project has been deleted
Scheduledjob not deleted when project has been deleted
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master (Show other bugs)
3.4.0
Unspecified Unspecified
medium Severity high
: ---
: ---
Assigned To: Maciej Szulik
Chuan Yu
:
Depends On:
Blocks: 1399700
  Show dependency treegraph
 
Reported: 2016-11-04 03:36 EDT by Chuan Yu
Modified: 2017-03-08 13 EST (History)
5 users (show)

See Also:
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 07:49:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description Chuan Yu 2016-11-04 03:36:19 EDT
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 04:25:37 EDT
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 11:14:29 EDT
objects not being deleted from etcd when namespaces are removed is significant... is this known upstream?
Comment 3 Maciej Szulik 2016-11-22 11:06:30 EST
Fixed in https://github.com/openshift/origin/pull/11994
Comment 4 Maciej Szulik 2016-11-24 07:55:24 EST
The PR merged for 1.4 branch. The 1.5 will have it after the next rebase.
Comment 5 Chuan Yu 2016-11-25 01:15:31 EST
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 12:53:31 EST
New puddle is out for 3.4, moving to on qa.
Comment 7 Chuan Yu 2016-11-28 23:59:36 EST
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 10:20:43 EST
Removed UpcomingRelease flag because this is already fixed.
Comment 10 errata-xmlrpc 2017-01-18 07:49:36 EST
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.