Project

Profile

Help

Issue #9165

KeyError: 'amd64' when creating publications during 2to3 migration

Added by quba42 about 2 months ago. Updated about 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Reported here: https://community.theforeman.org/t/katello-column-deb-aptremote-ignore-missing-package-indices-does-not-exist/24524/3

Pastebin excerpt: https://pastebin.com/h10qnbA4

Jul 25 11:23:49 foreman.com01.comcorp.lan pulpcore-api[50733]: - - [25/Jul/2021:09:23:49 +0000] "GET /pulp/api/v3/task-groups/0b552ed5-49b4-4f6d-9c42-429219d4e016/ HTTP/1.1" 200 439 "-" "OpenAPI-Generator/3.7.1/ruby"
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: pulp: rq.worker:ERROR: Traceback (most recent call last):
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: rv = job.perform()
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: self._result = self._execute()
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: return self.func(*self.args, **self.kwargs)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 231, in complex_repo_migration
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: migrated_repo.pulp3_repository_version
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 478, in migrate_repo_distributor
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: pulp2dist, repo_version)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/deb/repository.py", line 74, in migrate_to_pulp3
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: publish(repo_version.pk, simple=True, structured=True)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/publishing.py", line 156, in publish
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: prc.package
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/publishing.py", line 195, in add_package
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: self.package_index_files[package.architecture][0]
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: KeyError: 'amd64'
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: Traceback (most recent call last):
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: rv = job.perform()
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: self._result = self._execute()
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: return self.func(*self.args, **self.kwargs)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 231, in complex_repo_migration
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: migrated_repo.pulp3_repository_version
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 478, in migrate_repo_distributor
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: pulp2dist, repo_version)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/deb/repository.py", line 74, in migrate_to_pulp3
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: publish(repo_version.pk, simple=True, structured=True)
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/publishing.py", line 156, in publish
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: prc.package
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: File "/usr/lib/python3.6/site-packages/pulp_deb/app/tasks/publishing.py", line 195, in add_package
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: self.package_index_files[package.architecture][0]
Jul 25 11:24:04 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: KeyError: 'amd64'
Jul 25 11:24:05 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: pulp: rq.worker:INFO: 50804@foreman.com01.comcorp.lan: 647d4983-0cb4-4da0-a29d-d2af0227b772
Jul 25 11:24:05 foreman.com01.comcorp.lan pulpcore-worker-3[50804]: pulp: rq.worker:INFO: 50804@foreman.com01.comcorp.lan: Job OK (647d4983-0cb4-4da0-a29d-d2af0227b772)
Jul 25 11:24:05 foreman.com01.comcorp.lan pulpcore-api[50733]: - - [25/Jul/2021:09:24:05 +0000] "GET /pulp/api/v3/tasks/f03587fe-492f-473c-9ec9-8f0700917150/ HTTP/1.1" 200 8183 "-" "OpenAPI-Generator/3.7.1/ruby"
Jul 25 11:24:05 foreman.com01.comcorp.lan pulpcore-api[50733]: - - [25/Jul/2021:09:24:05 +0000] "GET /pulp/api/v3/task-groups/0b552ed5-49b4-4f6d-9c42-429219d4e016/ HTTP/1.1" 200 439 "-" "OpenAPI-Generator/3.7.1/ruby"

History

#1 Updated by quba42 about 2 months ago

I can see this error occurring if the Pulp 3 ReleaseArchitecture content unit for amd64 was not added to the repo version during migration for some reason. Need to continue investigating why that might happen...

Please register to edit this issue

Also available in: Atom PDF