Issue #2785
closed
pulp-admin rpm repo create with --retain-old-count option does not seem to work
Description
pulp rpm repo create with --count option does not seems to provide last package after sync.
pulp-admin rpm repo create --repo-id=rhel-7-bla --retain-old-count 2
pulp-admin rpm repo update --repo-id=rhel-7-bla \
--relative-url /rhel/7Server/x86_64/bla/os \
--proxy-host=proxy --proxy-port=* \
--feed=https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os \
--feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem \
--feed-key=/etc/pki/entitlement/**-key.pem \
--feed-cert=/etc/pki/entitlement/**.pem
pulp-admin rpm repo sync run --repo-id rhel-7-bla
pulp-admin rpm repo publish run --repo-id rhel-7-bla
get 3 packages and provide them but they are not the last one.
Name : pulp-server^O
Arch : noarch
Version : 2.11.0
Release : 1.el7
- Subject changed from pulp rpm repo create with --count option does not seems to works to pulp-admin rpm repo create with --retain-old-count option does not seem to work
- Description updated (diff)
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:
$ 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
switching to 2.11-dev branch i get same results as mentioned above.
can you please provide the list of the packages you see and the ones you expect to see?
the kernel one of the redhat (for example, like all the redhat core repo)
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.
I have do that because sync all the repo seems to have create a stack of pulp service and eat the swap.
so, i will keep an eye on the situation and bring back more information if the trouble comes once again.
If in 2 weeks it does not comes back ... I will close this post.
Automated tests for this issue have been implemented. They currently pass on the Pulp 2.13 and 2.14 nightlies. See:
it happen on the rhel7 between the retain and the non retain one ... all last package was not present before restarting all pulp services
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
$ 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
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.
I suggest to close this as not a bug.
- Status changed from NEW to CLOSED - NOTABUG
closing this as not a bug, in case you think problem still persists feel free to re-open this.
Also available in: Atom
PDF