Problem:
3.22 installation error
Expected outcome:
cannot import name ‘get_domain_pk’
Pulpcore version:
3.22.4
Pulp plugins installed and their versions:
pulp-file:
upgrade: true
version: 1.13.0
pulp-rpm:
upgrade: true
version: 3.19.3
pulp-deb:
upgrade: true
version: 2.20.1
pulp-ansible:
upgrade: true
version: 0.16.1
Operating system - distribution and version:
RHEL-8.6
Other relevant data:
RUNNING HANDLER [pulp_common : Collect static content] **********************************************************************************************************************
fatal: [pulpserver]: FAILED! => {“changed”: true, “cmd”: ["/opt/utils/venv/pulp/3.9.7/bin/pulpcore-manager", “collectstatic”, “–clear”, “–noinput”, “–link”], “delta”: “0:00:02.342699”, “end”: “2023-04-28 16:36:13.110894”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2023-04-28 16:36:10.768195”, “stderr”: “Traceback (most recent call last):\n File “/opt/utils/venv/pulp/3.9.7/bin/pulpcore-manager”, line 8, in \n sys.exit(manage())\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/app/manage.py”, line 11, in manage\n execute_from_command_line(sys.argv)\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/management/init.py”, line 419, in execute_from_command_line\n utility.execute()\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/management/init.py”, line 395, in execute\n django.setup()\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/init.py”, line 24, in setup\n apps.populate(settings.INSTALLED_APPS)\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/apps/registry.py”, line 114, in populate\n app_config.import_models()\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/apps/config.py”, line 301, in import_models\n self.models_module = import_module(models_module_name)\n File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File “”, line 1030, in _gcd_import\n File “”, line 1007, in _find_and_load\n File “”, line 986, in _find_and_load_unlocked\n File “”, line 680, in _load_unlocked\n File “”, line 850, in exec_module\n File “”, line 228, in _call_with_frames_removed\n File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulp_file/app/models.py”, line 16, in \n from pulpcore.plugin.util import get_domain_pk\nImportError: cannot import name ‘get_domain_pk’ from ‘pulpcore.plugin.util’ (/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/plugin/util.py)”, “stderr_lines”: [“Traceback (most recent call last):”, " File “/opt/utils/venv/pulp/3.9.7/bin/pulpcore-manager”, line 8, in “, " sys.exit(manage())”, " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/app/manage.py”, line 11, in manage", " execute_from_command_line(sys.argv)", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/management/init.py”, line 419, in execute_from_command_line", " utility.execute()", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/management/init.py”, line 395, in execute", " django.setup()", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/init.py”, line 24, in setup", " apps.populate(settings.INSTALLED_APPS)", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/apps/registry.py”, line 114, in populate", " app_config.import_models()", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/apps/config.py”, line 301, in import_models", " self.models_module = import_module(models_module_name)", " File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module", " return _bootstrap._gcd_import(name[level:], package, level)", " File “”, line 1030, in _gcd_import", " File “”, line 1007, in _find_and_load", " File “”, line 986, in _find_and_load_unlocked", " File “”, line 680, in _load_unlocked", " File “”, line 850, in exec_module", " File “”, line 228, in _call_with_frames_removed", " File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulp_file/app/models.py”, line 16, in “, " from pulpcore.plugin.util import get_domain_pk”, “ImportError: cannot import name ‘get_domain_pk’ from ‘pulpcore.plugin.util’ (/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/plugin/util.py)”], “stdout”: “”, “stdout_lines”: []}