Bug 1133953
Summary: | Pulp should fail to start if the Mongo Connection doesn't meet the minimum version requirement | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Randy Barlow <rbarlow> |
Component: | API/integration | Assignee: | Chris Duryee <cduryee> |
Status: | CLOSED UPSTREAM | QA Contact: | Preethi Thomas <pthomas> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 2.4.0 | CC: | bcourt, bmbouter, cduryee, pthomas |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.6.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-28 22:16:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Randy Barlow
2014-08-26 14:07:31 UTC
The pulp-manage-db migration script should also check the mongo version. Is it possible to check that the mongo connection has correct privileges on pulp_database during startup? This would also be helpful, especially when connecting as non-admin users. merged to 2.5-dev and master fixed in pulp 2.6.0-0.2.beta verified [root@ibm-x3550m3-07 ~]# rpm -qa pulp-server pulp-server-2.6.0-0.5.beta.el6.noarch [root@ibm-x3550m3-07 ~]# Mongo version is getting checked while running pulp-manage-db [root@ibm-x3550m3-07 ~]# sudo -u apache pulp-manage-db Mongo database for connection is version 2.4.12 Loading content types. Loading type descriptors [iso_support.json, nodes.json, rpm_support.json] Parsing type descriptors Validating type descriptor syntactic integrity Validating type descriptor semantic integrity Updating the database with types [iso, repository, node, distribution, drpm, erratum, package_group, package_category, package_environment, rpm, srpm, yum_repo_metadata_file] Found the following type definitions that were not present in the update collection [puppet_module] /usr/lib/python2.6/site-packages/pulp/server/db/connection.py:162: DeprecationWarning: The safe parameter is deprecated. Please use write concern options instead. return method(*args, **kwargs) Content types loaded. Ensuring the admin role and user are in place. Mongo database for connection is version 2.4.12 Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 12 Migration package pulp_rpm.plugins.migrations is up to date at version 18 Database migrations complete. Moved to https://pulp.plan.io/issues/501 |