Bug 1328217 - [RFE] More effective pruning
Summary: [RFE] More effective pruning
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: Johnny Liu
URL:
Whiteboard:
: 1328348 1380368 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 18:21 UTC by Eric Rich
Modified: 2021-03-11 14:33 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-22 16:31:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Eric Rich 2016-04-18 18:21:10 UTC
Description of problem:

Need the capability / flexibility to run prune commands like https://docs.openshift.com/enterprise/3.1/admin_guide/pruning_resources.html per project.

As a user of OpenShift I want to be able to prune objects of my own accord. 
So that I do not have to rely on administration pruning. 

Version-Release number of selected component (if applicable): 3.1.1


Additional info:

https://trello.com/c/8dlPcdp2/912-user-pruning-of-objects

Comment 1 Dan McPherson 2016-04-18 19:56:46 UTC
I would really hate to expose this to end users from an experience point of view.  I would much rather alleviate any of the side effects of not pruning immediately or figure out how to prune immediately.

Comment 2 Dan McPherson 2016-04-19 11:26:07 UTC
*** Bug 1328348 has been marked as a duplicate of this bug. ***

Comment 11 Dave McCormick 2016-07-30 09:54:50 UTC
Hi

The wording of this RFE doesn't quite match the intention of my original request - rather than "As a User" the intention behind the RFE is for "As an administrator" - I would like to set automatic pruning policy for my cluster which is checked on a schedule within the masters without needing manual runnning.

For example, I would like to be able to set a default prune policy: e.g.

Prune all orphans
Keep last 10 builds
Keep last 1h builds
etc..

i.e. I want to be able to specify the same inputs that I would specify to the "oc adm" command but to have run regularly by the platform.  I would also like to be able to override the default cluster prune policy per project - which would allow project administrators to override the settings if desired.

regards



Dave

Comment 12 Dan McPherson 2016-09-29 12:24:02 UTC
*** Bug 1380368 has been marked as a duplicate of this bug. ***

Comment 13 Marc Jadoul 2016-11-23 10:04:47 UTC
Hello,

My Redhat case 01745024 has apparently also been attached to this bugzilla ID.

Our Problem is slightly different. Currently pruning require manual intervention of an operator.
Automating it correctly mean implementing a second authentication through certificate. Our main authentication is through Kerberos / password, which in our company require a password change every 1 year. 

Having to setup an account and maintaining an additional credential at company directory level and implementing a new identity provide for this only is a lost of effort!

Garbage collection allows automating the Garbage collection from a policy at conf level.

We would like something similar for the prune. 

In addition I agreed that there are several type of projects and it would be usefull to be able to distinguish which policy apply to which project based on a label for instance.

Regards,

Marc

Comment 14 Eric Rich 2016-11-23 15:19:13 UTC
(In reply to Marc Jadoul from comment #13)
> Our Problem is slightly different. Currently pruning require manual
> intervention of an operator.
> Automating it correctly mean implementing a second authentication through
> certificate. Our main authentication is through Kerberos / password, which
> in our company require a password change every 1 year. 
> 
> Having to setup an account and maintaining an additional credential at
> company directory level and implementing a new identity provide for this
> only is a lost of effort!

You seem to be looking for a solution like: 

https://trello.com/c/WsnlyxUf/805-use-scheduledjobs-to-prune-images
https://trello.com/c/5T5MsGCj/784-as-an-administrator-of-openshift-i-want-prune-commands-to-run-as-jobs-on-the-cluster

Where the platform (not a user) can execute these operations for you, based on how you define the job.

Comment 15 Ryan Howe 2016-12-14 20:06:15 UTC
Will the allow us to set up a prune job? 

https://github.com/kubernetes/kubernetes/pull/25475


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