Problem:
Trying to sync various DEB packages from apt.puppet.com.
Successfully working when only having bookworm and bullseye, failing when adding jammy to the list of releases/distributions.
Expected outcome:
Sync successfully
Foreman and Proxy versions:
Foreman 3.9.1-1.el8
Foreman and Proxy plugin versions:
Distribution and version:
RHEL 8.9
Other relevant data:
Im not sure how to enable debug level logging for pulp, below is the error text and output log from web GUI.
My thought was to create two repositories under the Puppet Agent product, which would contain all deb and yum packages from the apt.puppet and yum.puppet.com repos…
Errors:
Cannot create repository version since there are newly added packages with the same name, version, and architecture, but a different checksum. If the log level is DEBUG, you can find a list of affected packages in the Pulp log.
Output:
{"pulp_tasks"=>
[{"pulp_href"=>"/pulp/api/v3/tasks/018e5714-63cc-7b87-9a64-36a8167922ad/",
"pulp_created"=>"2024-03-19T14:18:57.869+00:00",
"state"=>"failed",
"name"=>"pulp_deb.app.tasks.synchronizing.synchronize",
"logging_cid"=>"9a995b1f-050b-449e-ad6d-f664b77fb731",
"created_by"=>"/pulp/api/v3/users/1/",
"started_at"=>"2024-03-19T14:19:07.529+00:00",
"finished_at"=>"2024-03-19T14:19:19.319+00:00",
"error"=>
{"traceback"=>
" File \"/usr/lib/python3.11/site-packages/pulpcore/tasking/tasks.py\", line 61, in _execute_task\n" +
" result = func(*args, **kwargs)\n" +
" ^^^^^^^^^^^^^^^^^^^^^\n" +
" File \"/usr/lib/python3.11/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 183, in synchronize\n" +
" DebDeclarativeVersion(first_stage, repository, mirror=mirror).create()\n" +
" File \"/usr/lib/python3.11/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 155, in create\n" +
" with self.repository.new_version() as new_version:\n" +
" File \"/usr/lib/python3.11/site-packages/pulpcore/app/models/repository.py\", line 1105, in __exit__\n" +
" repository.finalize_new_version(self)\n" +
" File \"/usr/lib/python3.11/site-packages/pulp_deb/app/models/repository.py\", line 99, in finalize_new_version\n" +
" handle_duplicate_packages(new_version)\n" +
" File \"/usr/lib/python3.11/site-packages/pulp_deb/app/models/repository.py\", line 165, in handle_duplicate_packages\n" +
" raise ValueError(message)\n",
"description"=>
"Cannot create repository version since there are newly added packages with the same name, version, and architecture, but a different checksum. If the log level is DEBUG, you can find a list of affected packages in the Pulp log."},
"worker"=>"/pulp/api/v3/workers/018e56f5-1df9-7ff4-9b3d-811c9369cfe7/",
"child_tasks"=>[],
"progress_reports"=>
[{"message"=>"Downloading Artifacts",
"code"=>"sync.downloading.artifacts",
"state"=>"completed",
"done"=>9},
{"message"=>"Update ReleaseFile units",
"code"=>"update.release_file",
"state"=>"completed",
"done"=>3},
{"message"=>"Update PackageIndex units",
"code"=>"update.packageindex",
"state"=>"completed",
"done"=>32},
{"message"=>"Un-Associating Content",
"code"=>"unassociating.content",
"state"=>"completed",
"done"=>0},
{"message"=>"Associating Content",
"code"=>"associating.content",
"state"=>"completed",
"done"=>360}],
"created_resources"=>[],
"reserved_resources_record"=>
["/pulp/api/v3/repositories/deb/apt/018e5701-8cc0-7910-b648-d987e78217a2/",
"shared:/pulp/api/v3/remotes/deb/apt/018e5701-88cc-7ef5-af82-dbb05e62d962/",
"shared:/pulp/api/v3/domains/018e332f-f0d9-798f-8cf8-c0ec3cd38c7b/"]}],
"create_version"=>true,
"task_groups"=>[],
"poll_attempts"=>{"total"=>16, "failed"=>1}}