Story #4131
closedAs a user, I can set remove_old_repodata and remove_old_repodata_threshold via pulp-admin
0%
Description
https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/yum-plugins.html#yum-distributor
remove_old_repodata and remove_old_repodata_threshold
pulp-admin rpm repo update --repo-id=public-el7-test --display-name="test RHEL/CentOS 7" --description="test RHEL/CentOS 7" --feed="http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/" --gpg-key=/etc/pki/rpm-gpg/OL7-GPG-KEY.pub --remove-missing false --retain-old-count=10 --remove_old_repodata=false --remove_old_repodata_threshold=3 --relative-url=x86_64/oel/7/test/qa
The following options were specified but do not exist on the command:
--remove_old_repodata
Updated by vaclav.adamec@suchy-zleb.cz almost 5 years ago
pulp-server-2.17.1-1.el7.noarch
pulp-admin-client-2.17.1-1.el7.noarch
pulp-admin status
+----------------------------------------------------------------------+
Status of the server
+----------------------------------------------------------------------+
Api Version: 2
Database Connection:
Connected: True
Known Workers:
Messaging Connection:
Connected: True
Versions:
Platform Version: 2.17.1
Updated by vaclav.adamec@suchy-zleb.cz almost 5 years ago
I was able to do update via API and it seems to work but it's quite heavy, is there any chance to update pulp-admin tooling ? Or I'm doing something wrong ?
curl -kv --request PUT -d @test.json https://lab:lab@pulp-lab.example.com/pulp/api/v2/repositories/public-el7-test/
{
"delta": {
"display_name" : "Updated"
},
"distributor_configs": {
"yum_distributor": {
"remove_old_repodata": false,
"remove_old_repodata_threshold": "3"
}
}
}
curl -kv https://lab:lab@pulp-lab.example.com/pulp/api/v2/repositories/public-el7-test/distributors/
...
"remove_old_repodata_threshold": "3",
....
"remove_old_repodata": false,
...
Updated by daviddavis almost 5 years ago
- Tracker changed from Issue to Story
- Project changed from Pulp to RPM Support
- Subject changed from Documentation newer then package content ? to As a user, I can set remove_old_repodata and remove_old_repodata_threshold via pulp-admin
- Category deleted (
24) - % Done set to 0
Updated by vaclav.adamec@suchy-zleb.cz almost 5 years ago
Also not sure if it really works, I would expect that it keeps all repodata files (except repomd.xml) eg primary.xml.gz / updateinfo.xml.gz / filelists.xml.gz / modules.yaml.gz but that's not happened
Updated by vaclav.adamec@suchy-zleb.cz almost 5 years ago
Or it works only with sqlite ?
Updated by bmbouter over 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.