Problem:
Hi folks,
i try to create custom “Tools repo”, where we have a collection of packages provided for different OS versions.
Example:
Tools_RHEL8
Tools_RHEL9
if i try to add a package to both repos, the upload failes with errors “There is already a package with …”
and the package will not be added to this repo.
I’m using pulp-cli to do that:
“pulp rpm content upload --file $filename --repository $repo_name”
Example:
UPLOAD : of file /repos/EL-9-ULS-ABX/Packages/a/atop-2.7.1-1.el9.x86_64.rpm FAILED!
Started background task /pulp/api/v3/tasks/504f743d-0265-4433-ba00-bb05b07d86c9/
Error: Task /pulp/api/v3/tasks/504f743d-0265-4433-ba00-bb05b07d86c9/ failed: ‘{‘non_field_errors’: [ErrorDetail(string=‘There is already a package with: arch=x86_64, checksum_type=sha256, epoch=0, name=atop, pkgId=eacccf6df00b444c68259f15ff65db2c99b35cd571ce18fee463e02cfe4247ce, release=1.el9, version=2.7.1.’, code=‘invalid’)]}’
Note: Example here is a package from epel repo which we sync via remote. So i’m not able to upload and add this package. But there are custom packages identical for several OS also…
Expected outcome:
I expect the upload to complete. (maybe with warning). Since the package was identified as duplicate, it should still be added to the repo, but of course not stored twice!
Do i really have to deal with artifacts / content manually?
**pulp-cli version **
pulp-cli 0.19.0
Pulpcore version:
“versions”: [
{
“component”: “core”,
“version”: “3.23.3”,
“package”: “pulpcore”,
“domain_compatible”: true
},
Pulp plugins installed and their versions:
{
“component”: “rpm”,
“version”: “3.19.5”,
“package”: “pulp-rpm”,
“domain_compatible”: false
}
Operating system - distribution and version:
RHEL9
Other relevant data: