Description of problem: During capsule sync when shcma1 is requested pulp3 returns just '7d0b1bbae291fbdaaa022e82da4addea932df9fa628493a2e3b31d3bd4443917'in the response `docker-content-digest` header. This throws an error in pulp2: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task R = retval = fun(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 688, in __call__ return super(Task, self).__call__(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 110, in __call__ return super(PulpTask, self).__call__(*args, **kwargs) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__ return self.run(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 802, in sync sync_report = sync_repo(transfer_repo, conduit, call_config) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 905, in wrap_f return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/importer.py", line 86, in sync_repo return self.sync_step.process_lifecycle() File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 573, in process_lifecycle super(PluginStep, self).process_lifecycle() File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 164, in process_lifecycle step.process() File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 257, in process self._process_block() File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 304, in _process_block self.process_main() File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/sync.py", line 231, in process_main manifests = self.parent.index_repository.get_manifest(tag) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/registry.py", line 409, in get_manifest digest = self._digest_check(response_headers, manifest) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/registry.py", line 436, in _digest_check digest = models.Manifest.calculate_digest(manifest, expected_digest.split(':')[0]) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/models.py", line 142, in calculate_digest hasher = getattr(hashlib, algorithm) AttributeError: 'module' object has no attribute '7d0b1bbae291fbdaaa022e82da4addea932df9fa628493a2e3b31d3bd4443917' Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: response docker-content-digest header should contain "sha256:<hash>" Expected results: Additional info:
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Connecting redmine issue https://projects.theforeman.org/issues/32426 from this bug
Missing https://projects.theforeman.org/issues/32426
this was missing a katello change that is needed. hooked up to https://projects.theforeman.org/issues/32426
Steps to verify: 1. create and sync in pulp3 "foreman/busybox-test" from quay.io 2. Confirm that in the repo there is one manifest of schema2 and it points to tag name 'latest' (introspect pulp3 repo) 3. trigger capsule sync, it should succeed.
Using the steps in comment#10 verified on SAT 6.9.2 snap 3: tfm-rubygem-pulp_container_client-2.1.0-1.el7sat.noarch tfm-rubygem-katello-3.18.1.29-1.el7sat.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Satellite 6.9.2 Async Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2074