Project

General

Profile

Actions

Bug #26916

closed

[nightly] running foreman-installer with --enable-ostree leaves pulp services in errored state

Added by roman plevka over 5 years ago. Updated about 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Running `foreman-installer --enable-ostree` on katello nightly seems not tu run the necessary db migrations.
After the command finishes ("successfully"), the pulp services are left in errored state and the syslog shows:

```
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.db.migrate.models:ERROR: pulp_ostree.plugins.migrations hasn't been updated to the latest available migration.
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:CRITICAL: *****************************************************
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons:
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) Traceback (most recent call last):
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) _initialize_web_services()
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 74, in _initialize_web_services
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) migration_models.check_package_versions()
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 314, in check_package_versions
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) raise Exception(error_message)
May 29 09:06:11 qe-foreman-rhel7 pulp: pulp.server.webservices.application:ERROR: (28998-23936) InitializationException: The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
```

versions:
```
  1. rpm -qa pulp
    python-pulp-deb-common-1.9.0-2.el7.noarch
    python-pulp-rpm-common-2.19.0-2.el7.noarch
    python-pulp-oid_validation-2.19.0-2.el7.noarch
    pulp-server-2.19.0-2.el7.noarch
    pulp-katello-1.0.3-1.el7.noarch
    pulp-docker-plugins-3.2.3-2.el7.noarch
    tfm-rubygem-pulp_file_client-0.0.1b10.dev.1557779852-1.el7.noarch
    pulp-selinux-2.19.0-2.el7.noarch
    python-pulp-ostree-common-1.4.0-1.el7.noarch
    python-pulp-docker-common-3.2.3-2.el7.noarch
    pulp-puppet-plugins-2.19.0-2.el7.noarch
    python-pulp-common-2.19.0-2.el7.noarch
    pulp-puppet-tools-2.19.0-2.el7.noarch
    pulp-client-1.0-1.noarch
    rubygem-smart_proxy_pulp-1.4.1-1.el7.noarch
    python-pulp-repoauth-2.19.0-2.el7.noarch
    python-pulp-streamer-2.19.0-2.el7.noarch
    pulp-rpm-plugins-2.19.0-2.el7.noarch
    tfm-rubygem-pulpcore_client-3.0.0rc2.dev.1557772471-1.el7.noarch
    python-pulp-puppet-common-2.19.0-2.el7.noarch
    pulp-ostree-plugins-1.4.0-1.el7.noarch
    pulp-deb-plugins-1.9.0-2.el7.noarch
    ```

Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #18261: pulp-manage-db need to run after ostree is installedRejectedPartha AjiActions
Actions

Also available in: Atom PDF