Rebooting the Satellite6 server causes pulp services won't start
Environment
- Red Hat Satellite or Proxy 6
- Red Hat Enterprise Linux 7
Issue
- having
/var/lib/pulpon a NFS filesystem - after rebooting the server,
pulpservices failed to start - executing
katello-service restart, the services start correctly
Resolution
Add to 3 systemd files /etc/systemd/system/multi-user.target.wants/pulp* prerequisite to mount /var/lib/pulp first, by adding into [Unit] section:
[Unit]
RequiresMountsFor=/var/lib/pulp
Warning: Red Hat This content is not included.discourages in using NFS for (not only) /var/lib/pulp due to latency issues.
For more KB articles/solutions related to Red Hat Satellite 6.x Pulp 2.0 Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Pulp 2.0-related Issues
Root Cause
After the machine reboot, pulp services were started before NFS mounted /var/lib/pulp directory. Adding the dependency RequiresMountsFor to systemd services' files postpones pulp services start after the directories are already mounted.
Diagnostic Steps
/var/log/messages having:
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons:
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: One or more plugins failed to initialize. If a new type has been added, run pulp-manage-db to load the type into the database and restart the application. Error message: Importer puppet_importer: no type definition found for puppet_module
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: Traceback (most recent call last):
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 147, in wsgi_application
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: _initialize_pulp()
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 94, in _initialize_pulp
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: from pulp.server.async import app
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/server/async/app.py", line 12, in <module>
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: initialization.initialize()
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/server/initialization.py", line 37, in initialize
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: plugin_api.initialize()
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 79, in initialize
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: _validate_importers()
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 465, in _validate_importers
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: raise loader_exceptions.InvalidImporter(msg %% {'i': plugin_id, 't': type_})
Mar 9 13:03:13 satellite01 pulp: pulp.server.webservices.application:ERROR: InitializationException: One or more plugins failed to initialize. If a new type has been added, run pulp-manage-db to load the type into the database and restart the application. Error message: Importer puppet_importer: no type definition found for puppet_module
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.