Project

General

Profile

Bug #32230

syncing pulp3 to pulp2 container content sometimes fails with PLP0000: 'fsLayers

Added by Justin Sherrill over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Container
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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'

Associated revisions

Revision c01834bd (diff)
Added by Justin Sherrill over 1 year ago

Fixes #32230 - fix SPC sync with pulp2 for container

rails appends charset=utf-8 to the CONTENT_TYPE header of all requests
by default. This overrides that behavior as pulp2 does not like it
when syncing.

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9253 added

#2 Updated by Justin Sherrill over 1 year ago

  • Bugzilla link set to 1933716

#3 Updated by Justin Sherrill over 1 year ago

  • Target version set to Katello 3.18.3

#4 Updated by Justin Sherrill over 1 year ago

  • Triaged changed from No to Yes

#5 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.2.0 added

#6 Updated by Justin Sherrill over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF