Issue #5488
Updated by kersom about 5 years ago
First there was an error related to RPM - not being able to found certain package. First traceback: <pre> TASK [pulp-database : Run database auth migrations] ****************************************************************** fatal: [192.168.122.20]: FAILED! => changed=true cmd: - /usr/local/lib/pulp/bin/django-admin - migrate - auth - --no-input delta: '0:00:01.793450' end: '2019-09-20 08:38:13.854286' msg: non-zero return code rc: 1 start: '2019-09-20 08:38:12.060836' stderr: |- Traceback (most recent call last): File "/usr/local/lib/pulp/bin/django-admin", line 10, in <module> sys.exit(execute_from_command_line()) File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute django.setup() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/apps/registry.py", line 122, in populate app_config.ready() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 74, in ready self.import_viewsets() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 107, in import_viewsets self.viewsets_module = import_module(viewsets_module_name) File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/viewsets.py", line 27, in <module> from pulp_rpm.app import tasks File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/__init__.py", line 2, in <module> from .synchronizing import synchronize # noqa File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 58, in <module> from pulp_rpm.app.modulemd import parse_defaults, parse_modulemd File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/modulemd.py", line 8, in <module> import gi ModuleNotFoundError: No module named 'gi' stderr_lines: - 'Traceback (most recent call last):' - ' File "/usr/local/lib/pulp/bin/django-admin", line 10, in <module>' - ' sys.exit(execute_from_command_line())' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line' - ' utility.execute()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute' - ' django.setup()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/__init__.py", line 24, in setup' - ' apps.populate(settings.INSTALLED_APPS)' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/apps/registry.py", line 122, in populate' - ' app_config.ready()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 74, in ready' - ' self.import_viewsets()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 107, in import_viewsets' - ' self.viewsets_module = import_module(viewsets_module_name)' - ' File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module' - ' return _bootstrap._gcd_import(name[level:], package, level)' - ' File "<frozen importlib._bootstrap>", line 1006, in _gcd_import' - ' File "<frozen importlib._bootstrap>", line 983, in _find_and_load' - ' File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked' - ' File "<frozen importlib._bootstrap>", line 677, in _load_unlocked' - ' File "<frozen importlib._bootstrap_external>", line 728, in exec_module' - ' File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/viewsets.py", line 27, in <module>' - ' from pulp_rpm.app import tasks' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/__init__.py", line 2, in <module>' - ' from .synchronizing import synchronize # noqa' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 58, in <module>' - ' from pulp_rpm.app.modulemd import parse_defaults, parse_modulemd' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/modulemd.py", line 8, in <module>' - ' import gi' - 'ModuleNotFoundError: No module named ''gi''' stdout: '' stdout_lines: <omitted> </pre> Then I provisioned new VMS, and added the RPM packages required to provide the gi module. Added the var `pulp_use_system_wide_pkgs` as True as to the installer playbook. VM has the following packages installed to provided the gi module. https://pygobject.readthedocs.io/en/latest/getting_started.html#fedora-logo-fedora <pre> Last login: Fri Sep 20 10:51:01 2019 from 192.168.122.1 [root@p3vm ~]# rpm -qa | grep gobject python3-gobject-base-3.32.2-1.fc30.x86_64 cairo-gobject-1.16.0-5.fc30.x86_64 python3-gobject-3.32.2-1.fc30.x86_64 gobject-introspection-1.60.2-1.fc30.x86_6 </pre> It seems that new PRs were merged during the investigation of the first issue. Running the installation again, a different error was raised. Installation for Pulp fails during the ``TASK [pulp-database : Run database auth migrations``. Second Traceback: <pre> TASK [pulp-database : Run database auth migrations] ****************************************************************** fatal: [192.168.122.46]: FAILED! => changed=true cmd: - /usr/local/lib/pulp/bin/django-admin - migrate - auth - --no-input delta: '0:00:01.372029' end: '2019-09-20 11:00:38.692025' msg: non-zero return code rc: 1 start: '2019-09-20 11:00:37.319996' stderr: |- Traceback (most recent call last): File "/usr/local/lib/pulp/bin/django-admin", line 10, in <module> sys.exit(execute_from_command_line()) File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute django.setup() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/apps/registry.py", line 122, in populate app_config.ready() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 74, in ready self.import_viewsets() File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 107, in import_viewsets self.viewsets_module = import_module(viewsets_module_name) File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/viewsets.py", line 27, in <module> from pulp_rpm.app import tasks File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/__init__.py", line 2, in <module> from .synchronizing import synchronize # noqa File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 14, in <module> from pulpcore.plugin.models import Artifact, ProgressBar, Remote, Repository ImportError: cannot import name 'ProgressBar' from 'pulpcore.plugin.models' (/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/models/__init__.py) stderr_lines: - 'Traceback (most recent call last):' - ' File "/usr/local/lib/pulp/bin/django-admin", line 10, in <module>' - ' sys.exit(execute_from_command_line())' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line' - ' utility.execute()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute' - ' django.setup()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/__init__.py", line 24, in setup' - ' apps.populate(settings.INSTALLED_APPS)' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/apps/registry.py", line 122, in populate' - ' app_config.ready()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 74, in ready' - ' self.import_viewsets()' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/apps.py", line 107, in import_viewsets' - ' self.viewsets_module = import_module(viewsets_module_name)' - ' File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module' - ' return _bootstrap._gcd_import(name[level:], package, level)' - ' File "<frozen importlib._bootstrap>", line 1006, in _gcd_import' - ' File "<frozen importlib._bootstrap>", line 983, in _find_and_load' - ' File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked' - ' File "<frozen importlib._bootstrap>", line 677, in _load_unlocked' - ' File "<frozen importlib._bootstrap_external>", line 728, in exec_module' - ' File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/viewsets.py", line 27, in <module>' - ' from pulp_rpm.app import tasks' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/__init__.py", line 2, in <module>' - ' from .synchronizing import synchronize # noqa' - ' File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 14, in <module>' - ' from pulpcore.plugin.models import Artifact, ProgressBar, Remote, Repository' - 'ImportError: cannot import name ''ProgressBar'' from ''pulpcore.plugin.models'' (/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/plugin/models/__init__.py)' stdout: '' stdout_lines: <omitted> </pre> Playbook used to install has the variable `pulp_use_system_wide_pkgs` as True. https://github.com/PulpQE/pulp-qe-tools/blob/master/pulp3/install_pulp3/install-pulp-from-source.yml Besides that the VM has the following packages installed to provided the gi module. https://pygobject.readthedocs.io/en/latest/getting_started.html#fedora-logo-fedora <pre> Last login: Fri Sep 20 10:51:01 2019 from 192.168.122.1 [root@p3vm ~]# rpm -qa | grep gobject python3-gobject-base-3.32.2-1.fc30.x86_64 cairo-gobject-1.16.0-5.fc30.x86_64 python3-gobject-3.32.2-1.fc30.x86_64 gobject-introspection-1.60.2-1.fc30.x86_6 </pre> <pre> [root@p3vm ~]# cat /etc/redhat-release Fedora release 30 (Thirty) </pre>