Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
Comment 1pulp-infra@redhat.com
2021-04-29 10:09:49 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 2pulp-infra@redhat.com
2021-04-29 10:09:51 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 3pulp-infra@redhat.com
2021-05-03 17:36:29 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 4pulp-infra@redhat.com
2021-05-04 10:07:39 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
Comment 5pulp-infra@redhat.com
2021-05-04 11:05:54 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
Comment 6pulp-infra@redhat.com
2021-05-04 15:07:04 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
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
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: