https://pulp.plan.io/https://pulp.plan.io/favicon.ico2021-03-09T15:43:19ZPulpPulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=684392021-03-09T15:43:19Zmdellweg
<ul></ul><p>I hear, there cold be a int-field on repository to specify the number of retained versions. And the context manager that creates versions could clean up in its <code>__exit__</code> method.</p>
<p>The question i see if there would be a way to mark precious versions that should not be deleted.
What do we do with versions that are linked to a publication / distribution?</p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=684542021-03-09T17:20:21Zttereshcttereshc@redhat.com
<ul><li><strong>Tracker</strong> changed from <i>Issue</i> to <i>Story</i></li><li><strong>% Done</strong> set to <i>0</i></li><li><strong>Severity</strong> deleted (<del><i>2. Medium</i></del>)</li><li><strong>Triaged</strong> deleted (<del><i>No</i></del>)</li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=686952021-03-16T16:34:41Zdaviddavis
<ul></ul><p>Will updating the setting/field automatically clean up repo versions? Like if I set the value to 3 and I have 5 versions, does that automatically delete 2 versions?</p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=686962021-03-16T16:39:51Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>GalaxyNG</i> added</li></ul><p>daviddavis wrote:</p>
<blockquote>
<p>Will updating the setting/field automatically clean up repo versions? Like if I set the value to 3 and I have 5 versions, does that automatically delete 2 versions?</p>
</blockquote>
<p>My take was no, but it's important we figure out what we want in the long term because it affects if we have to use the tasking system or not for any change to this. The openapi schema already reports that tasking isn't used, so I'm thinking that maybe we can't have some repsonses return 200 and others returned 202? I'm not clear on if that's a problem for openapi or not. Do you know?</p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=689452021-03-22T22:44:52Zdaviddavis
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>daviddavis</i></li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=689462021-03-22T22:48:04Zpulpbot
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p>PR: <a href="https://github.com/pulp/pulpcore/pull/1204" class="external">https://github.com/pulp/pulpcore/pull/1204</a></p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=689472021-03-23T12:22:01Zdaviddavis
<ul></ul><p>bmbouter wrote:</p>
<blockquote>
<p>My take was no, but it's important we figure out what we want in the long term because it affects if we have to use the tasking system or not for any change to this. The openapi schema already reports that tasking isn't used, so I'm thinking that maybe we can't have some repsonses return 200 and others returned 202? I'm not clear on if that's a problem for openapi or not. Do you know?</p>
</blockquote>
<p>Sorry, I only saw this comment after I opened my PR. The calls to update repository are in fact async:</p>
<p><a href="https://docs.pulpproject.org/pulp_file/restapi.html#operation/repositories_file_file_update" class="external">https://docs.pulpproject.org/pulp_file/restapi.html#operation/repositories_file_file_update</a></p>
<p><a href="https://docs.pulpproject.org/pulp_file/restapi.html#operation/repositories_file_file_partial_update" class="external">https://docs.pulpproject.org/pulp_file/restapi.html#operation/repositories_file_file_partial_update</a></p>
<p>I don't know if that makes an argument for supporting cleanup during update but I don't have a huge preference around whether we cleanup versions.</p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=690532021-03-25T16:29:03Zdaviddavis
<ul><li><strong>Blocked by</strong> <i><a class="issue tracker-3 status-11 priority-6 priority-default closed" href="/issues/8454">Story #8454</a>: As a user, I can't delete RepositoryVersion.number==0</i> added</li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=690972021-03-26T16:56:45Zbmbouterbmbouter@redhat.com
<ul><li><strong>Sprint/Milestone</strong> set to <i>3.12.0</i></li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=692952021-04-01T14:07:29Zmdellweg
<ul><li><strong>Sprint/Milestone</strong> changed from <i>3.12.0</i> to <i>3.13.0</i></li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=700192021-04-26T19:59:34Zdaviddavis
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Limit how many repo versions Pulp retains fixes #8368" href="https://pulp.plan.io/projects/pulp/repository/pulpcore/revisions/0779b5d163d2a11830951157a4e10918f4d65c38">pulpcore|0779b5d163d2a11830951157a4e10918f4d65c38</a>.</p> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=711092021-05-20T21:10:02Zdaviddavis
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-11 priority-6 priority-default closed" href="/issues/8793">Issue #8793</a>: Retained_versions doesn't properly keep all content present in repository</i> added</li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=713402021-05-25T22:07:48Zpulpbot
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=716722021-06-03T20:20:10Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Sprint/Milestone</strong> changed from <i>3.13.0</i> to <i>Content/disk space management</i></li></ul> Pulp - Story #8368: Limit number of old repository versions.https://pulp.plan.io/issues/8368?journal_id=722162021-06-22T14:04:12Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Sprint/Milestone</strong> changed from <i>Content/disk space management</i> to <i>3.13.0</i></li></ul>