Project

Profile

Help

Story #4131

As a user, I can set remove_old_repodata and remove_old_repodata_threshold via pulp-admin

Added by vaclav.adamec@suchy-zleb.cz almost 2 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

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

History

#1 Updated by vaclav.adamec@suchy-zleb.cz almost 2 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

#2 Updated by vaclav.adamec@suchy-zleb.cz almost 2 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,
...

#3 Updated by daviddavis almost 2 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

#4 Updated by vaclav.adamec@suchy-zleb.cz almost 2 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

#5 Updated by vaclav.adamec@suchy-zleb.cz almost 2 years ago

Or it works only with sqlite ?

#6 Updated by bmbouter over 1 year 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.

#7 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF