Project

Profile

Help

Issue #4050

closed

Pulp 2.17.1 and 2.18 installation fails

Added by kersom about 6 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
2.17.1
Target Release - Debian:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 43
Quarter:

Description

When attempt to install pulp 2.17.1 or 2.18 an error was raised due to an issue related to gpg keys. Tested on F28.

sudo dnf -y install ansible attr git libselinux-python

mkdir code && cd code && git clone https://github.com/pulp/pulp-ci && cd pulp-ci

echo $HOSTNAME > hosts

ansible-playbook --connection local -i hosts ci/ansible/pulp_server.yaml   -e "ansible_python_interpreter=/usr/bin/python3" -e pulp_version=2.18 -vv

Error

TASK [pulp : Initialize Pulp's DB] ********************************************************************************************************************************************************************************
task path: /root/code/pulp-ci/ci/ansible/roles/pulp/tasks/main.yaml:209
 [WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running sudo

fatal: [f28.pulp.vm]: FAILED! => changed=true 
  cmd: sudo -u apache pulp-manage-db && touch /var/lib/pulp/db_initialized.flag
  delta: '0:00:02.352309'
  end: '2018-10-01 08:43:37.598610'
  msg: non-zero return code
  rc: 70
  start: '2018-10-01 08:43:35.246301'
  stderr: |-
    Attempting to connect to localhost:27017
    Attempting to connect to localhost:27017
    Write concern for Mongo connection: {}
    Loading content types.
    Loading type descriptors [deb.json]
    Parsing type descriptors
    Validating type descriptor syntactic integrity
    Validating type descriptor semantic integrity
    Loading unit model: modulemd_defaults = pulp_rpm.plugins.db.models:ModulemdDefaults
    Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup
    Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata
    Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM
    Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile
    Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory
    Loading unit model: modulemd = pulp_rpm.plugins.db.models:Modulemd
    Loading unit model: iso = pulp_rpm.plugins.db.models:ISO
    Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment
    Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM
    Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
    Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
    Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks
    Loading unit model: python_package = pulp_python.plugins.models:Package
    Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module
    Loading unit model: ostree = pulp_ostree.plugins.db.model:Branch
    Loading unit model: docker_blob = pulp_docker.plugins.models:Blob
    Loading unit model: docker_tag = pulp_docker.plugins.models:Tag
    Loading unit model: docker_manifest_list = pulp_docker.plugins.models:ManifestList
    Loading unit model: docker_image = pulp_docker.plugins.models:Image
    Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest
    Loading unit model: deb_release = pulp_deb.plugins.db.models:DebRelease
    The 'gnupg' distribution was not found and is required by the application
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 236, in main
        return _auto_manage_db(options)
      File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 267, in _auto_manage_db
        old_content_types = load_content_types(dry_run=options.dry_run)
      File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 438, in load_content_types
        mongoengine_definitions = _generate_plugin_definitions()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 519, in _generate_plugin_definitions
        plugin_manager = PluginManager()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 36, in __init__
        self._load_unit_models()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 54, in _load_unit_models
        model_class = entry_point.load()
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2317, in load
        self.require(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2340, in require
        items = working_set.resolve(reqs, env, installer, extras=self.extras)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve
        raise DistributionNotFound(req, requirers)
    DistributionNotFound: The 'gnupg' distribution was not found and is required by the application
  stderr_lines:
  - Attempting to connect to localhost:27017
  - Attempting to connect to localhost:27017
  - 'Write concern for Mongo connection: {}'
  - Loading content types.
  - Loading type descriptors [deb.json]
  - Parsing type descriptors
  - Validating type descriptor syntactic integrity
  - Validating type descriptor semantic integrity
  - 'Loading unit model: modulemd_defaults = pulp_rpm.plugins.db.models:ModulemdDefaults'
  - 'Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup'
  - 'Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata'
  - 'Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM'
  - 'Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile'
  - 'Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory'
  - 'Loading unit model: modulemd = pulp_rpm.plugins.db.models:Modulemd'
  - 'Loading unit model: iso = pulp_rpm.plugins.db.models:ISO'
  - 'Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment'
  - 'Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM'
  - 'Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution'
  - 'Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM'
  - 'Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks'
  - 'Loading unit model: python_package = pulp_python.plugins.models:Package'
  - 'Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module'
  - 'Loading unit model: ostree = pulp_ostree.plugins.db.model:Branch'
  - 'Loading unit model: docker_blob = pulp_docker.plugins.models:Blob'
  - 'Loading unit model: docker_tag = pulp_docker.plugins.models:Tag'
  - 'Loading unit model: docker_manifest_list = pulp_docker.plugins.models:ManifestList'
  - 'Loading unit model: docker_image = pulp_docker.plugins.models:Image'
  - 'Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest'
  - 'Loading unit model: deb_release = pulp_deb.plugins.db.models:DebRelease'
  - The 'gnupg' distribution was not found and is required by the application
  - 'Traceback (most recent call last):'
  - '  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 236, in main'
  - '    return _auto_manage_db(options)'
  - '  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 267, in _auto_manage_db'
  - '    old_content_types = load_content_types(dry_run=options.dry_run)'
  - '  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 438, in load_content_types'
  - '    mongoengine_definitions = _generate_plugin_definitions()'
  - '  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 519, in _generate_plugin_definitions'
  - '    plugin_manager = PluginManager()'
  - '  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 36, in __init__'
  - '    self._load_unit_models()'
  - '  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 54, in _load_unit_models'
  - '    model_class = entry_point.load()'
  - '  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2317, in load'
  - '    self.require(*args, **kwargs)'
  - '  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2340, in require'
  - '    items = working_set.resolve(reqs, env, installer, extras=self.extras)'
  - '  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve'
  - '    raise DistributionNotFound(req, requirers)'
  - 'DistributionNotFound: The ''gnupg'' distribution was not found and is required by the application'
  stdout: ''
  stdout_lines: <omitted>
    to retry, use: --limit @/root/code/pulp-ci/ci/ansible/pulp_server.retry
[root@f28 pulp-ci]# cat /etc/redhat-release 
Fedora release 28 (Twenty Eight)
Actions #1

Updated by dkliban@redhat.com about 6 years ago

  • Version set to 2.17.1

This is a problem with 2.17.1 beta

Added by evgeni about 6 years ago

Revision b5fc87bb | View on GitHub

fix the gnupg package name in setup

while you import gnupg, the package is called python-gnupg on PyPI

otherwise Pulp fails to load it:

Loading unit model: deb_release = pulp_deb.plugins.db.models:DebRelease
gnupg
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 236, in main
    return _auto_manage_db(options)
  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 267, in _auto_manage_db
    old_content_types = load_content_types(dry_run=options.dry_run)
  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 438, in load_content_types
    mongoengine_definitions = _generate_plugin_definitions()
  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 519, in _generate_plugin_definitions
    plugin_manager = PluginManager()
  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 36, in __init__
    self._load_unit_models()
  File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 54, in _load_unit_models
    model_class = entry_point.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2259, in load
    if require: self.require(env, installer)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2272, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
DistributionNotFound: gnupg
Actions #2

Updated by CodeHeeler about 6 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 43
Actions #3

Updated by ttereshc about 6 years ago

  • Status changed from NEW to MODIFIED
  • Platform Release set to 2.17.1
Actions #4

Updated by ttereshc about 6 years ago

  • Project changed from RPM Support to Debian Support
Actions #5

Updated by ttereshc about 6 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #6

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF