Project

Profile

Help

Issue #4858

closed

Running Pulp Inside a Container

Added by Anonymous over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

I am trying to run Pulp inside a container following these guideline

https://github.com/pulp/pulp-ci/tree/6294eab02d243da09c32d683293fb6654dbb0bec/dockerfiles/centos

I and seems like apache is not able to load a python module

[Tue May 21 13:00:19.417572 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Tue May 21 13:00:19.417596 2019] [core:notice] [pid 1] AH00094: Command line: 'httpd -D FOREGROUND'
[Tue May 21 13:00:19.919398 2019] [:error] [pid 364] Unable to access to log, /dev/log.
[Tue May 21 13:00:19.919537 2019] [:error] [pid 364] mod_wsgi (pid=364): Target WSGI script '/usr/share/pulp/wsgi/content.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:19.919560 2019] [:error] [pid 364] mod_wsgi (pid=364): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/content.wsgi' ignored.
[Tue May 21 13:00:19.919596 2019] [:error] [pid 364] Traceback (most recent call last):
[Tue May 21 13:00:19.919624 2019] [:error] [pid 364]   File "/usr/share/pulp/wsgi/content.wsgi", line 1, in <module>
[Tue May 21 13:00:19.919735 2019] [:error] [pid 364]     from pulp.server.content.web import wsgi
[Tue May 21 13:00:19.919759 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/wsgi.py", line 8, in <module>
[Tue May 21 13:00:19.919853 2019] [:error] [pid 364]     application = get_wsgi_application()
[Tue May 21 13:00:19.919876 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Tue May 21 13:00:19.919988 2019] [:error] [pid 364]     django.setup(set_prefix=False)
[Tue May 21 13:00:19.920011 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup
[Tue May 21 13:00:19.920104 2019] [:error] [pid 364]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue May 21 13:00:19.920133 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
[Tue May 21 13:00:19.920273 2019] [:error] [pid 364]     self._setup(name)
[Tue May 21 13:00:19.920296 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
[Tue May 21 13:00:19.920352 2019] [:error] [pid 364]     self._wrapped = Settings(settings_module)
[Tue May 21 13:00:19.920378 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
[Tue May 21 13:00:19.920413 2019] [:error] [pid 364]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue May 21 13:00:19.920437 2019] [:error] [pid 364]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Tue May 21 13:00:19.920529 2019] [:error] [pid 364]     __import__(name)
[Tue May 21 13:00:19.920551 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/settings.py", line 7, in <module>
[Tue May 21 13:00:19.920661 2019] [:error] [pid 364]     log_type = pulp_logs.get_log_type()
[Tue May 21 13:00:19.920683 2019] [:error] [pid 364]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:19.920875 2019] [:error] [pid 364]     sys.exit(os.EX_UNAVAILABLE)
[Tue May 21 13:00:19.920908 2019] [:error] [pid 364] SystemExit: 69
[Tue May 21 13:00:19.925088 2019] [:error] [pid 363] Unable to access to log, /dev/log.
[Tue May 21 13:00:19.925203 2019] [:error] [pid 363] mod_wsgi (pid=363): Target WSGI script '/usr/share/pulp/wsgi/content.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:19.925222 2019] [:error] [pid 363] mod_wsgi (pid=363): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/content.wsgi' ignored.
[Tue May 21 13:00:19.925266 2019] [:error] [pid 363] Traceback (most recent call last):
[Tue May 21 13:00:19.925294 2019] [:error] [pid 363]   File "/usr/share/pulp/wsgi/content.wsgi", line 1, in <module>
[Tue May 21 13:00:19.925415 2019] [:error] [pid 363]     from pulp.server.content.web import wsgi
[Tue May 21 13:00:19.925439 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/wsgi.py", line 8, in <module>
[Tue May 21 13:00:19.925532 2019] [:error] [pid 363]     application = get_wsgi_application()
[Tue May 21 13:00:19.925554 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Tue May 21 13:00:19.925651 2019] [:error] [pid 363]     django.setup(set_prefix=False)
[Tue May 21 13:00:19.925673 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup
[Tue May 21 13:00:19.925764 2019] [:error] [pid 363]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue May 21 13:00:19.925793 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
[Tue May 21 13:00:19.925930 2019] [:error] [pid 363]     self._setup(name)
[Tue May 21 13:00:19.925953 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
[Tue May 21 13:00:19.925992 2019] [:error] [pid 363]     self._wrapped = Settings(settings_module)
[Tue May 21 13:00:19.926016 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
[Tue May 21 13:00:19.926052 2019] [:error] [pid 363]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue May 21 13:00:19.926075 2019] [:error] [pid 363]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Tue May 21 13:00:19.926166 2019] [:error] [pid 363]     __import__(name)
[Tue May 21 13:00:19.926189 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/settings.py", line 7, in <module>
[Tue May 21 13:00:19.926296 2019] [:error] [pid 363]     log_type = pulp_logs.get_log_type()
[Tue May 21 13:00:19.926331 2019] [:error] [pid 363]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:19.926495 2019] [:error] [pid 363]     sys.exit(os.EX_UNAVAILABLE)
[Tue May 21 13:00:19.926526 2019] [:error] [pid 363] SystemExit: 69
[Tue May 21 13:00:19.943962 2019] [:error] [pid 365] Unable to access to log, /dev/log.
[Tue May 21 13:00:19.944087 2019] [:error] [pid 365] mod_wsgi (pid=365): Target WSGI script '/usr/share/pulp/wsgi/content.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:19.944107 2019] [:error] [pid 365] mod_wsgi (pid=365): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/content.wsgi' ignored.
[Tue May 21 13:00:19.944142 2019] [:error] [pid 365] Traceback (most recent call last):
[Tue May 21 13:00:19.944169 2019] [:error] [pid 365]   File "/usr/share/pulp/wsgi/content.wsgi", line 1, in <module>
[Tue May 21 13:00:19.944286 2019] [:error] [pid 365]     from pulp.server.content.web import wsgi
[Tue May 21 13:00:19.944325 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/wsgi.py", line 8, in <module>
[Tue May 21 13:00:19.944421 2019] [:error] [pid 365]     application = get_wsgi_application()
[Tue May 21 13:00:19.944444 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Tue May 21 13:00:19.944550 2019] [:error] [pid 365]     django.setup(set_prefix=False)
[Tue May 21 13:00:19.944573 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup
[Tue May 21 13:00:19.944666 2019] [:error] [pid 365]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue May 21 13:00:19.944695 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
[Tue May 21 13:00:19.944835 2019] [:error] [pid 365]     self._setup(name)
[Tue May 21 13:00:19.944858 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
[Tue May 21 13:00:19.944897 2019] [:error] [pid 365]     self._wrapped = Settings(settings_module)
[Tue May 21 13:00:19.944921 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
[Tue May 21 13:00:19.944956 2019] [:error] [pid 365]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue May 21 13:00:19.944980 2019] [:error] [pid 365]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Tue May 21 13:00:19.945071 2019] [:error] [pid 365]     __import__(name)
[Tue May 21 13:00:19.945093 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/pulp/server/content/web/settings.py", line 7, in <module>
[Tue May 21 13:00:19.945200 2019] [:error] [pid 365]     log_type = pulp_logs.get_log_type()
[Tue May 21 13:00:19.945222 2019] [:error] [pid 365]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:19.945413 2019] [:error] [pid 365]     sys.exit(os.EX_UNAVAILABLE)
[Tue May 21 13:00:19.945445 2019] [:error] [pid 365] SystemExit: 69
[Tue May 21 13:00:20.059992 2019] [:error] [pid 361] Unable to access to log, /dev/log.
[Tue May 21 13:00:20.060072 2019] [:error] [pid 361] mod_wsgi (pid=361): Target WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:20.060093 2019] [:error] [pid 361] mod_wsgi (pid=361): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' ignored.
[Tue May 21 13:00:20.060124 2019] [:error] [pid 361] Traceback (most recent call last):
[Tue May 21 13:00:20.060158 2019] [:error] [pid 361]   File "/usr/share/pulp/wsgi/webservices.wsgi", line 19, in <module>
[Tue May 21 13:00:20.060281 2019] [:error] [pid 361]     application = wsgi_application()
[Tue May 21 13:00:20.060305 2019] [:error] [pid 361]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
[Tue May 21 13:00:20.060450 2019] [:error] [pid 361]     _initialize_web_services()
[Tue May 21 13:00:20.060472 2019] [:error] [pid 361]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 62, in _initialize_web_services
[Tue May 21 13:00:20.060511 2019] [:error] [pid 361]     logs.start_logging()
[Tue May 21 13:00:20.060531 2019] [:error] [pid 361]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 97, in start_logging
[Tue May 21 13:00:20.060709 2019] [:error] [pid 361]     log_type = get_log_type()
[Tue May 21 13:00:20.060737 2019] [:error] [pid 361]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:20.060776 2019] [:error] [pid 361]     sys.exit(os.EX_UNAVAILABLE)
[Tue May 21 13:00:20.060806 2019] [:error] [pid 361] SystemExit: 69
[Tue May 21 13:00:20.076963 2019] [:error] [pid 360] Unable to access to log, /dev/log.
[Tue May 21 13:00:20.077037 2019] [:error] [pid 360] mod_wsgi (pid=360): Target WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:20.077059 2019] [:error] [pid 360] mod_wsgi (pid=360): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' ignored.
[Tue May 21 13:00:20.077090 2019] [:error] [pid 360] Traceback (most recent call last):
[Tue May 21 13:00:20.077130 2019] [:error] [pid 360]   File "/usr/share/pulp/wsgi/webservices.wsgi", line 19, in <module>
[Tue May 21 13:00:20.077240 2019] [:error] [pid 360]     application = wsgi_application()
[Tue May 21 13:00:20.077264 2019] [:error] [pid 360]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
[Tue May 21 13:00:20.077395 2019] [:error] [pid 360]     _initialize_web_services()
[Tue May 21 13:00:20.077418 2019] [:error] [pid 360]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 62, in _initialize_web_services
[Tue May 21 13:00:20.077457 2019] [:error] [pid 360]     logs.start_logging()
[Tue May 21 13:00:20.077477 2019] [:error] [pid 360]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 97, in start_logging
[Tue May 21 13:00:20.077647 2019] [:error] [pid 360]     log_type = get_log_type()
[Tue May 21 13:00:20.077676 2019] [:error] [pid 360]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:20.077715 2019] [:error] [pid 360]     sys.exit(os.EX_UNAVAILABLE)
[Tue May 21 13:00:20.077743 2019] [:error] [pid 360] SystemExit: 69
[Tue May 21 13:00:20.086132 2019] [:error] [pid 362] Unable to access to log, /dev/log.
[Tue May 21 13:00:20.086191 2019] [:error] [pid 362] mod_wsgi (pid=362): Target WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' cannot be loaded as Python module.
[Tue May 21 13:00:20.086210 2019] [:error] [pid 362] mod_wsgi (pid=362): SystemExit exception raised by WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' ignored.
[Tue May 21 13:00:20.086241 2019] [:error] [pid 362] Traceback (most recent call last):
[Tue May 21 13:00:20.086274 2019] [:error] [pid 362]   File "/usr/share/pulp/wsgi/webservices.wsgi", line 19, in <module>
[Tue May 21 13:00:20.086401 2019] [:error] [pid 362]     application = wsgi_application()
[Tue May 21 13:00:20.086425 2019] [:error] [pid 362]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
[Tue May 21 13:00:20.086536 2019] [:error] [pid 362]     _initialize_web_services()
[Tue May 21 13:00:20.086558 2019] [:error] [pid 362]   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 62, in _initialize_web_services
[Tue May 21 13:00:20.086596 2019] [:error] [pid 362]     logs.start_logging()
[Tue May 21 13:00:20.086616 2019] [:error] [pid 362]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 97, in start_logging
[Tue May 21 13:00:20.086785 2019] [:error] [pid 362]     log_type = get_log_type()
[Tue May 21 13:00:20.086813 2019] [:error] [pid 362]   File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 53, in get_log_type
[Tue May 21 13:00:20.086851 2019] [:error] [pid 362]     sys.exit(os.EX_UNAVAILABLE)

Any advice on how to solve this issue?

Also available in: Atom PDF