Problem:
I am new to podman and pulp3. We have pulp2 in our production, while pulp2 and 3 are quite different.
I followed the Pulp in One Container | software repository management to test pulp3-in-one-container as root on a Rocky9 Virtual machine. I can view pulp status page, but I also saw some errors during the podman run , so I am not sure if I properly set up the container. Here are the messages:
s6-chown: fatal: unable to chown /var/lib/pgsql//////////: Filename too long
and some python errors:
Traceback (most recent call last):
File “/usr/local/bin/pulpcore-manager”, line 8, in
sys.exit(manage())
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/manage.py”, line 11, in manage
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 382, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 102, in getattr
self._setup(name)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 89, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/settings.py”, line 378, in
settings = DjangoDynaconf(
File “/usr/local/lib/python3.8/site-packages/dynaconf/contrib/django_dynaconf_v2.py”, line 84, in load
lazy_settings.populate_obj(django_settings_module)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1155, in execute_loaders
self.pre_load(env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1180, in pre_load
self.load_file(path=preloads, env=env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1220, in load_file
if py_loader.try_to_load_from_py_module_name(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 95, in try_to_load_from_py_module_name
mod = importlib.import_module(str(name))
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulp_ansible/app/settings.py”, line 24, in
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + “/pulp/content”
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1171, in execute_loaders
execute_module_hooks(“post”, self, env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/init.py”, line 109, in execute_module_hooks
hook_module = py_loader.import_from_filename(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 121, in import_from_filename
if filename in [item.filename for item in inspect.stack()]:
File “/usr/lib64/python3.8/inspect.py”, line 1526, in stack
return getouterframes(sys._getframe(1), context)
File “/usr/lib64/python3.8/inspect.py”, line 1503, in getouterframes
frameinfo = (frame,) + getframeinfo(frame, context)
File “/usr/lib64/python3.8/inspect.py”, line 1473, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File “/usr/lib64/python3.8/inspect.py”, line 708, in getsourcefile
if getattr(getmodule(object, filename), ‘loader’, None) is not None:
File “/usr/lib64/python3.8/inspect.py”, line 737, in getmodule
file = getabsfile(object, _filename)
File “/usr/lib64/python3.8/inspect.py”, line 721, in getabsfile
return os.path.normcase(os.path.abspath(_filename))
File “/usr/lib64/python3.8/posixpath.py”, line 379, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
2023-09-01 13:02:29.781 UTC [12608] LOG: redirecting log output to logging collector process
2023-09-01 13:02:29.781 UTC [12608] HINT: Future log output will appear in directory “log”.
Traceback (most recent call last):
File “/usr/local/bin/pulpcore-manager”, line 8, in
sys.exit(manage())
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/manage.py”, line 11, in manage
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 382, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 102, in getattr
self._setup(name)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 89, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/settings.py”, line 378, in
settings = DjangoDynaconf(
File “/usr/local/lib/python3.8/site-packages/dynaconf/contrib/django_dynaconf_v2.py”, line 84, in load
lazy_settings.populate_obj(django_settings_module)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1155, in execute_loaders
self.pre_load(env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1180, in pre_load
self.load_file(path=preloads, env=env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1220, in load_file
if py_loader.try_to_load_from_py_module_name(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 95, in try_to_load_from_py_module_name
mod = importlib.import_module(str(name))
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulp_ansible/app/settings.py”, line 24, in
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + “/pulp/content”
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1171, in execute_loaders
execute_module_hooks(“post”, self, env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/init.py”, line 109, in execute_module_hooks
hook_module = py_loader.import_from_filename(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 121, in import_from_filename
if filename in [item.filename for item in inspect.stack()]:
File “/usr/lib64/python3.8/inspect.py”, line 1526, in stack
return getouterframes(sys._getframe(1), context)
File “/usr/lib64/python3.8/inspect.py”, line 1503, in getouterframes
frameinfo = (frame,) + getframeinfo(frame, context)
File “/usr/lib64/python3.8/inspect.py”, line 1473, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File “/usr/lib64/python3.8/inspect.py”, line 708, in getsourcefile
if getattr(getmodule(object, filename), ‘loader’, None) is not None:
File “/usr/lib64/python3.8/inspect.py”, line 737, in getmodule
file = getabsfile(object, _filename)
File “/usr/lib64/python3.8/inspect.py”, line 721, in getabsfile
return os.path.normcase(os.path.abspath(_filename))
File “/usr/lib64/python3.8/posixpath.py”, line 379, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
Database migrated!
ready
Database migrated!
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 106, in get_module
mod = importlib.import_module(filename)
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 961, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘/etc/pulp/settings’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/bin/pulpcore-manager”, line 8, in
sys.exit(manage())
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/manage.py”, line 11, in manage
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.8/site-packages/django/core/management/init.py”, line 382, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 102, in getattr
self._setup(name)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 89, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.8/site-packages/django/conf/init.py”, line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulpcore/app/settings.py”, line 378, in
settings = DjangoDynaconf(
File “/usr/local/lib/python3.8/site-packages/dynaconf/contrib/django_dynaconf_v2.py”, line 84, in load
lazy_settings.populate_obj(django_settings_module)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1155, in execute_loaders
self.pre_load(env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1180, in pre_load
self.load_file(path=preloads, env=env, silent=silent, key=key)
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1220, in load_file
if py_loader.try_to_load_from_py_module_name(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 95, in try_to_load_from_py_module_name
mod = importlib.import_module(str(name))
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/usr/local/lib/python3.8/site-packages/pulp_ansible/app/settings.py”, line 24, in
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + “/pulp/content”
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 121, in getattr
self._setup()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 180, in _setup
self._wrapped = Settings(
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 262, in init
self.execute_loaders()
File “/usr/local/lib/python3.8/site-packages/dynaconf/base.py”, line 1156, in execute_loaders
settings_loader(
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/init.py”, line 275, in settings_loader
py_loader.load(obj, mod_file, key=key, validate=validate)
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 36, in load
mod, loaded_from = get_module(obj, settings_module, silent)
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 110, in get_module
mod = import_from_filename(obj, filename, silent=silent)
File “/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py”, line 121, in import_from_filename
if filename in [item.filename for item in inspect.stack()]:
File “/usr/lib64/python3.8/inspect.py”, line 1526, in stack
return getouterframes(sys._getframe(1), context)
File “/usr/lib64/python3.8/inspect.py”, line 1503, in getouterframes
frameinfo = (frame,) + getframeinfo(frame, context)
File “/usr/lib64/python3.8/inspect.py”, line 1473, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File “/usr/lib64/python3.8/inspect.py”, line 708, in getsourcefile
if getattr(getmodule(object, filename), ‘loader’, None) is not None:
File “/usr/lib64/python3.8/inspect.py”, line 737, in getmodule
file = getabsfile(object, _filename)
File “/usr/lib64/python3.8/inspect.py”, line 721, in getabsfile
return os.path.normcase(os.path.abspath(_filename))
File “/usr/lib64/python3.8/posixpath.py”, line 379, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
ready
Expected outcome:
Should not have error during podman run
Pulpcore version:
According to the status page, core is “version”: “3.32.0”,
Pulp plugins installed and their versions:
All the plugins included in the container images.
Operating system - distribution and version:
A virtual machine with Rocky9. This vm has some preinstall and configurations required by our environments.
NAME=“Rocky Linux”
VERSION=“9.2 (Blue Onyx)”
Other relevant data:
Another question, is it possbile to just install some plugins? For us, we mainly use rpm.
Thanks in advance