Actions
Bug #32230
closedsyncing pulp3 to pulp2 container content sometimes fails with PLP0000: 'fsLayers
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
It seems that rails is appending a chaset=utf-8 to the content_type header
for example:
application/vnd.docker.distribution.manifest.v1+prettyjws; charset=utf-8
and pulp2 does not like this.
Full traceback:
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 238, in process_main tag) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/sync.py", line 313, in _process_manifest manifest = models.Manifest.from_json(manifest, digest) File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/models.py", line 219, in from_json fs_layers = [FSLayer(blob_sum=layer['blobSum']) for layer in manifest['fsLayers']] KeyError: 'fsLayers'
Actions