Project

General

Profile

Actions

Bug #30477

closed

Deb-Repository sync fails if signature should be verified

Added by Markus Bucher almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:

Description

When synchronizing a repository of type deb, pulp2 throws an error if a GPG-Key was configured to verify the upstream-repo's signature.

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 686, in __call__
    return super(Task, self).__call__(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 108, 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 797, in sync
    sync_report = sync_repo(transfer_repo, conduit, call_config)
  File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 894, in wrap_f
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/importers/importer.py", line 135, in sync_repo
    report = self._current_sync.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_deb/plugins/importers/sync.py", line 233, in process_main
    self.verify_release_file(distribution)
  File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/importers/sync.py", line 187, in verify_release_file
    gpg = self.gnupg_factory(homedir=os.path.join(self.get_working_dir(), 'gpg-home'))
  File "/usr/lib/python2.7/site-packages/pulp_deb/plugins/importers/sync.py", line 177, in gnupg_factory
    return gnupg.GPG(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/gnupg.py", line 827, in __init__
    raise ValueError('gnupghome should be a directory (it isn\\'t): %s' % gnupghome)
ValueError: gnupghome should be a directory (it isn't): /var/cache/pulp/reserved_resource_worker-0@centos7-katello-3-15.example.com/fcab2f5a-0065-4939-9fb1-85f19b23c90e/gpg-home\n",

Apparently, python2-gnupg was updated to 0.4.6 (from 0.4.5) and now has a different behaviour.

Kudos to @Quirin Pamp, who already created a PR for pulp_deb.

Actions #1

Updated by Samir Jha over 3 years ago

  • Status changed from New to Closed

This should be resolved in katello when the pulp fix lands in a pulp release.

Actions #2

Updated by Samir Jha over 3 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF