Project

Profile

Help

Issue #8786

With newest /pulp/pulp, `pulpcore-manager` failed as: AttributeError: 'Settings' object has no attribute 'CONTENT_ORIGIN'

Added by xzhang1 5 months ago. Updated 3 months ago.

Status:
CLOSED - WORKSFORME
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

[root@bc64553f5f2d /]# pulpcore-manager --help

Traceback (most recent call last): File "/usr/local/bin/pulpcore-manager", line 8, in sys.exit(manage()) File "/usr/local/lib/python3.6/site-packages/pulpcore/app/manage.py", line 11, in manage execute_from_command_line(sys.argv) File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 325, in execute settings.INSTALLED_APPS File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 79, in getattr self._setup(name) File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 66, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 157, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.6/site-packages/pulpcore/app/settings.py", line 276, in load_dotenv=False, File "/usr/local/lib/python3.6/site-packages/dynaconf/contrib/django_dynaconf_v2.py", line 76, in load lazy_settings.populate_obj(django_settings_module) File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 145, in getattr self._setup() File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 196, in _setup settings_module=settings_module, **self._kwargs File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 259, in init self.execute_loaders() File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 989, in execute_loaders self.pre_load(env, silent=silent, key=key) File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 1007, in pre_load self.load_file(path=preloads, env=env, silent=silent, key=key) File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 1035, in load_file obj=self, name=_filename, silent=True File "/usr/local/lib/python3.6/site-packages/dynaconf/loaders/py_loader.py", line 61, in ry_to_load_from_py_module_name mod = importlib.import_module(str(name)) File "/usr/lib64/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.6/site-packages/pulp_ansible/app/settings.py", line 24, in ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + "/pulp/content" File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 168, in getattr value = getattr(self._wrapped, name) File "/usr/local/lib/python3.6/site-packages/dynaconf/base.py", line 301, in getattribute return super().getattribute(name) AttributeError: 'Settings' object has no attribute 'CONTENT_ORIGIN'

History

#1 Updated by ipanova@redhat.com 3 months ago

  • Project changed from Docker Support to Pulp

#2 Updated by dkliban@redhat.com 3 months ago

  • Status changed from NEW to CLOSED - WORKSFORME

It looks like you are not providing a settings file. Please take a look at the instructions here: https://dkliban.github.io/pulpproject.org/pulp-in-one-container/

Please register to edit this issue

Also available in: Atom PDF