Problem:
I create a Debian Buster and Bullseye Repo for HashiCorp and get an Error by the sync:
{"pulp_tasks"=>
[{"pulp_href"=>"/pulp/api/v3/tasks/6cd06263-1630-4e5b-a0f7-4c499ec76f67/",
"pulp_created"=>"2021-12-20T17:01:34.414+00:00",
"state"=>"failed",
"name"=>"pulp_deb.app.tasks.synchronizing.synchronize",
"logging_cid"=>"c135d6ab-f794-429d-acc7-323ba17b0867",
"started_at"=>"2021-12-20T17:01:34.599+00:00",
"finished_at"=>"2021-12-20T17:01:36.734+00:00",
"error"=>
{"traceback"=>
" File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 317, in _perform_task\n" +
" result = func(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 124, in synchronize\n" +
" DebDeclarativeVersion(first_stage, repository, mirror=mirror).create()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 151, in create\n" +
" loop.run_until_complete(pipeline)\n" +
" File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 484, in run_until_complete\n" +
" return future.result()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 225, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 43, in __call__\n" +
" await self.run()\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 448, in run\n" +
" *[self._handle_distribution(dist) for dist in self.remote.distributions.split()]\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 513, in _handle_distribution\n" +
" release_file.components, self.remote.components, distribution\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 562, in _handle_component\n" +
" await asyncio.gather(*pending_tasks)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py\", line 619, in _handle_package_index\n" +
" serializer.is_valid(raise_exception=True)\n" +
" File \"/usr/lib/python3.6/site-packages/rest_framework/serializers.py\", line 228, in is_valid\n" +
" raise ValidationError(self.errors)\n",
"description"=>
"{'section': [ErrorDetail(string='This field may not be blank.', code='blank')], 'priority': [ErrorDetail(string='This field may not be blank.', code='blank')]}"},
"worker"=>"/pulp/api/v3/workers/69481263-9338-4489-a9fe-031e29259801/",
"child_tasks"=>[],
"progress_reports"=>
[{"message"=>"Downloading Artifacts",
"code"=>"sync.downloading.artifacts",
"state"=>"canceled",
"done"=>3},
{"message"=>"Update ReleaseFile units",
"code"=>"update.release_file",
"state"=>"canceled",
"done"=>1},
{"message"=>"Update PackageIndex units",
"code"=>"update.packageindex",
"state"=>"canceled",
"done"=>1},
{"message"=>"Associating Content",
"code"=>"associating.content",
"state"=>"canceled",
"done"=>5}],
"created_resources"=>[],
"reserved_resources_record"=>
["/pulp/api/v3/repositories/deb/apt/e57d7614-7eaf-4f36-aca7-e38687185bb6/",
"/pulp/api/v3/remotes/deb/apt/39803006-1476-4e6b-8f2c-71f62c6321e5/"]}],
"create_version"=>true,
"task_groups"=>[],
"poll_attempts"=>{"total"=>3, "failed"=>1}}
Expected outcome:
The repo sync run successful .
Foreman and Proxy versions:
Foreman/Proxy 3.0.1
Foreman and Proxy plugin versions:
foreman-tasks 5.1.1
foreman_ansible 6.4.1
foreman_puppet 1.0.5
foreman_remote_execution 4.8.0
katello 4.2.1
Distribution and version:
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Other relevant data:
Command to create the repo:
wget https://apt.releases.hashicorp.com/gpg -O RPM-GPG-KEY-HASHICORP
sudo hammer content-credentials create --organization 'example.com' \
--path 'RPM-GPG-KEY-HASHICORP' --name 'RPM-GPG-KEY-HASHICORP' \
--content-type gpg_key
RPM_GPG_KEY_HASHICORP=$(sudo hammer content-credentials list --organization example.com | grep RPM-GPG-KEY-HASHICORP | awk '{split($0,a); print a[1]}')
sudo hammer product create --name 'HashiCorp' --organization 'example.com' \
--description 'HashiCorp Repos' --gpg-key-id $RPM_GPG_KEY_HASHICORP \
--sync-plan 'Weekly_Sync'
sudo hammer product list --organization 'example.com'
sudo hammer repository create --organization 'example.com' --product 'HashiCorp' \
--name 'Debian Bullseye HashiCorp' --label 'DebianBullseye_HashiCorp' \
--content-type 'deb' --deb-architectures 'amd64' --deb-components 'main' --deb-releases 'bullseye' \
--gpg-key-id $RPM_GPG_KEY_HASHICORP \
--url 'https://apt.releases.hashicorp.com/' \
--mirror-on-sync 'yes'
sudo hammer repository create --organization 'example.com' --product 'HashiCorp' \
--name 'Debian Buster HashiCorp' --label 'DebianBuster_HashiCorp' \
--content-type 'deb' --deb-architectures 'amd64' --deb-components 'main' --deb-releases 'buster' \
--gpg-key-id $RPM_GPG_KEY_HASHICORP \
--url 'https://apt.releases.hashicorp.com/' \
--mirror-on-sync 'yes'