https://pulp.plan.io/https://pulp.plan.io/favicon.ico2017-05-31T19:02:47ZPulpPulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=199552017-05-31T19:02:47Zttereshcttereshc@redhat.com
<ul><li><strong>Subject</strong> changed from <i>pulp rpm repo create with --count option does not seems to works</i> to <i>pulp-admin rpm repo create with --retain-old-count option does not seem to work</i></li></ul> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=199722017-06-01T19:42:50Zbmbouterbmbouter@redhat.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/19972/diff?detail_id=20583">diff</a>)</li></ul> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=199862017-06-02T11:38:51Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>I was not able to reproduce this on master, with retain-old-count 2, i get 3 packages, cheking with remote source they are the 3 latest ones:</p>
<pre><code>
$ pulp-admin rpm repo create --repo-id drpm-repo --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_drpm_repo/ --retain-old-count 2
$ pulp-admin rpm repo sync run --repo-id drpm-repo
$ pulp-admin rpm repo content rpm --repo-id drpm-repo --match='filename=yum-cron.*' --fields=filename
Filename: yum-cron-3.4.3-19.fc16.noarch.rpm
Filename: yum-cron-3.4.3-22.fc16.noarch.rpm
Filename: yum-cron-3.4.3-20.fc16.noarch.rpm
</code></pre> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=199872017-06-02T11:45:51Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>switching to 2.11-dev branch i get same results as mentioned above.</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=199962017-06-02T14:39:11Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>can you please provide the list of the packages you see and the ones you expect to see?</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=200592017-06-06T14:25:28Zaurelienaurelien.desbrieres@gmail.com
<ul></ul><p>the kernel one of the redhat (for example, like all the redhat core repo)<br>
For the moment I have clear the situation by restarting the services pulp, but ipanova from IRC told me that it is not a solution.<br>
I have do that because sync all the repo seems to have create a stack of pulp service and eat the swap.<br>
so, i will keep an eye on the situation and bring back more information if the trouble comes once again.<br>
If in 2 weeks it does not comes back ... I will close this post.</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=200602017-06-06T14:30:51ZIchimonji10jerebear@protonmail.com
<ul></ul><p>Automated tests for this issue have been implemented. They currently pass on the Pulp 2.13 and 2.14 nightlies. See:</p>
<ul>
<li><a href="http://pulp-smash.readthedocs.io/en/latest/api/pulp_smash.tests.rpm.api_v2.test_retain_old_count.html" class="external">http://pulp-smash.readthedocs.io/en/latest/api/pulp_smash.tests.rpm.api_v2.test_retain_old_count.html</a></li>
<li><a href="http://pulp-smash.readthedocs.io/en/latest/api/pulp_smash.tests.rpm.cli.test_retain_old_count.html" class="external">http://pulp-smash.readthedocs.io/en/latest/api/pulp_smash.tests.rpm.cli.test_retain_old_count.html</a></li>
</ul> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=200612017-06-06T14:31:29Zaurelienaurelien.desbrieres@gmail.com
<ul></ul><p>it happen on the rhel7 between the retain and the non retain one ... all last package was not present before restarting all pulp services</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=200662017-06-06T16:08:49Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>so i synced exactly same repo with exactly same retain-old-count. i successfully get the version which you were missing in some of the repos kernel-3.10.0-514.21.1.el7.x86_64.rpm</p>
<pre><code>$ pulp-admin rpm repo content rpm --repo-id repo1 --match='filename=kernel-3.10.0-514*'|grep -i filename
Warning: path should have mode 0700 because it may contain sensitive information: /home/ipanova/.pulp/
Filename: kernel-3.10.0-514.10.2.el7.x86_64.rpm
Filename: kernel-3.10.0-514.16.1.el7.x86_64.rpm
Filename: kernel-3.10.0-514.21.1.el7.x86_64.rpm
</code></pre>
<p>The reason that you were not getting the latest version is because it was added on May 10 2017, and your sync most probably happened before that date when this version still was not in the upstream repo.</p>
<p>I suggest to close this as not a bug.</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=201472017-06-09T14:39:54Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - NOTABUG</i></li></ul><p>closing this as not a bug, in case you think problem still persists feel free to re-open this.</p> Pulp - Issue #2785: pulp-admin rpm repo create with --retain-old-count option does not seem to workhttps://pulp.plan.io/issues/2785?journal_id=382562019-04-15T20:17:51Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>