Pulp services failing with ImportError: No module named gnupg on Red Hat Satellite 6.

Solution Verified - Updated -

Issue

  • Pulp failing with ImportError: No module named gnupg on Red Hat Satellite 6.
  • pulp_resource_manager.service and pulp_streamer.service failing with below error:
● pulp_resource_manager.service - Pulp Resource Manager
   Loaded: loaded (/usr/lib/systemd/system/pulp_resource_manager.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Fri 2019-05-17 08:19:03 CDT; 24min ago
  Process: 27030 ExecStart=/usr/bin/celery worker -A pulp.server.async.app -n resource_manager@%%h -Q resource_manager -c 1 --events --umask 18 --pidfile=/var/run/pulp/resource_manager.pid (code=exited, status=0
/SUCCESS)
 Main PID: 27030 (code=exited, status=0/SUCCESS)

May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)     loading.load_plugins_from_entry_point(*entry_point)
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/loading.py", line 60, in load_plugins_from_entry_point
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)     cls, cfg = entry_point.load()()
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)   File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/web.py", line 9, in <module>
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)     from pulp_ostree.plugins.importers.steps import Main
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)   File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/steps.py", line 8, in <module>
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552)     from gnupg import GPG
May 17 08:19:03 satellite.example.com pulp[27030]: celery.worker:ERROR: (27030-79552) ImportError: No module named gnupg
/usr/sbin/service-wait pulp_streamer status
● pulp_streamer.service - The Pulp lazy content loading streamer
   Loaded: loaded (/usr/lib/systemd/system/pulp_streamer.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-05-17 08:19:03 CDT; 24min ago
  Process: 27048 ExecStart=/usr/bin/pulp_streamer --nodaemon --syslog --prefix=pulp_streamer --pidfile= --python /usr/share/pulp/wsgi/streamer.tac (code=exited, status=1/FAILURE)
 Main PID: 27048 (code=exited, status=1/FAILURE)

May 17 08:19:03 satellite.example.com pulp_streamer[27048]: entry = __import__(self.module_name, globals(),globals(), ['__name__'])
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/web.py", line 9, in <module>
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: from pulp_ostree.plugins.importers.steps import Main
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/steps.py", line 8, in <module>
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: from gnupg import GPG
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: exceptions.ImportError: No module named gnupg
May 17 08:19:03 satellite.example.com pulp_streamer[27048]: Failed to load application: No module named gnupg
May 17 08:19:03 satellite.example.com systemd[1]: pulp_streamer.service: main process exited, code=exited, status=1/FAILURE
May 17 08:19:03 satellite.example.com systemd[1]: Unit pulp_streamer.service entered failed state.
May 17 08:19:03 satellite.example.com systemd[1]: pulp_streamer.service failed.

Environment

  • Red Hat Satellite 6.3+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content