Unable to upload a rpm to the repo

The package rsync-opt-3.1.3-12.el8.x86_64.rpm does not exist in the el9.6-25-q3-01-ops repository. However, when I attempt to add it, I receive the error: “There is already a package with this name.”
Could you please advise on how to properly add this package to the repository? Let me know if you need any additional details.

pulp rpm content -t package upload --file /var/tmp/rsync-opt-3.1.3-12.el8.x86_64.rpm --repository el9.6-25-q3-01-ops

Error:

Error: Task /pulp/api/v3/tasks/23d60bc6-232XXXXXXXXXXXXXX/ failed: ‘{‘non_field_errors’: [ErrorDetail(string=‘There is already a package with: arch=x86_64, checksum_type=sha256, epoch=0, name=rsync-opt, pkgId=d1a7f62137a51aad0f300019ffedbb3fc8a6885503f87d119b4a5cf68cd8b3de, release=12.el8, version=3.1.3.’, code=‘invalid’)]}’

Details:

pulp rpm content -t package list --name rsync-opt

Response: 200
[
{
“pulp_href”: “/pulp/api/v3/content/rpm/packages/XXXXXXXXXXXXXXXXXXX/”,
“pulp_created”: “2025-02-10T20:10:30.482633Z”,
“md5”: null,
“sha1”: null,
“sha224”: “16e1b7c2bc9a75ed7d37f873fb9f7aef280327485e7b5f1de2a85037”,
“sha256”: “d1a7f62137a51aad0f300019ffedbb3fc8a6885503f87d119b4a5cf68cd8b3de”,
“sha384”: “7818c2c639c0d3485cf105866f0d5bde9afbc1f52899f82a58f321f0c4065ded3b3d90726a0c9943cfec06b8e6b35adc”,
“sha512”: “b0d827ffb0dde5921603f73762ad99948b78885dcbee1f668d346fff22eea7462fe711f3ef7833cfa93846b86004829e00252d0d22952204aa4e4f8cb66a72ac”,
“artifact”: “/pulp/api/v3/artifacts/XXXXXXXXXXXXXXXXXXXXXX/”,
“name”: “rsync-opt”,
“epoch”: “0”,
“version”: “3.1.3”,
“release”: “12.el8”,
“arch”: “x86_64”,
“pkgId”: “d1a7f62137a51aad0f300019ffedbb3fc8a6885503f87d119b4a5cf68cd8b3de”,
“checksum_type”: “sha256”,

pip list |grep -i pulp

pulp-cli 0.33.0
pulp-container 2.14.18
pulp-deb 2.20.4
pulp-file 1.12.0
pulp-glue 0.33.0
pulp-rpm 3.19.13
pulpcore 3.22.35

I believe that what we’re seeing here, is that the package is already available to your pulp-instance - just not in that repository.

Look at pulp rpm repository content modify --add-content - you can add that package your list found, to repo el9.6-25-q3-01-ops , using the package’s pulp_href. See https://github.com/pulp/pulp-cli/blob/main/tests/scripts/pulp_rpm/test_content.sh#L62 for an exmaple from the CLI test suite.

2 Likes

Thankyou for your response I am able to add the package to the repo.

2 Likes

Also this is really old. Newer versions allow for transparently uploading a file that is already in the system.

We upgraded the Pulp services using the install.yml file (with upgrade: true), but the versions were only updated to those listed below.

Could you please confirm the latest available versions of these services? It would be greatly appreciated if you could also share the recommended procedure for updating to the latest versions.

cat install.yml


  • hosts: localhost
    force_handlers: True
    collections:
    • pulp.pulp_installer
      vars:
      pulp_settings:
      secret_key: “XXXXXXXXXXXXXX”
      content_origin: “https://pulp-yumrepo
      pulp_default_admin_password: “XXXXX”
      ansible_python_interpreter: /usr/bin/python3
      pulpcore_update: true
      pulp_install_plugins:

      galaxy-ng:

      pulp-2to3-migration:

      pulp-ansible:

      pulp-certguard:

      pulp-container:
      upgrade: true

      pulp-cli:

      upgrade: true

      pulp-cookbook:

      pulp-deb:

      pulp-file:

      upgrade: true

      pulp-gem:

      pulp-glue:

      upgrade: true

      pulp-maven:

      pulp-npm:

      pulp-python:

      pulp-rpm:

      upgrade: true

    roles:
    • pulp_all_services
      environment:
      DJANGO_SETTINGS_MODULE: pulpcore.app.settings

      [py3_hosts:vars]

Command used to update : ansible-playbook install.yml -l localhost

pip list |grep -i pulp

pulp-cli 0.33.0
pulp-container 2.14.18
pulp-deb 2.20.4
pulp-file 1.12.0
pulp-glue 0.33.0
pulp-rpm 3.19.13
pulpcore 3.22.35

Ohhh, the pulp_installer has been discontinued a loooong time ago.
This may help (I hope):
https://pulpproject.org/pulp-oci-images/docs/admin/guides/migrate-pulp-installer-to-multi-process/

1 Like