Task #1014: Short Term Improvements for Pulp's use of MongoDB
DeprecationWarning on pulp-manage-db
>> rpm -qa|grep mongoe python-mongoengine-0.7.10-2.el6.noarch >> rpm -qa pulp-server pulp-server-2.7.0-0.3.beta.el6.noarch >> sudo -u apache pulp-manage-db Mongo database for connection is version 2.4.13 Loading content types. Loading type descriptors [rpm_support.json, puppet.json, iso_support.json] Parsing type descriptors Validating type descriptor syntactic integrity Validating type descriptor semantic integrity Updating the database with types [distribution, drpm, erratum, package_group, package_category, package_environment, rpm, srpm, yum_repo_metadata_file, puppet_module, iso] /usr/lib/python2.6/site-packages/pulp/server/db/connection.py:167: 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. Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 18 Migration package pulp_puppet.plugins.migrations is up to date at version 2 Migration package pulp_rpm.plugins.migrations is up to date at version 21 Database migrations complete.
Updated by rbarlow over 7 years ago
This actually happens in all of our processes, not just pulp-manage-db. If we decide to move away from Mongo, we won't need to solve this issue. If we decide to stay with Mongo, we will need to start using write concerns instead of the safe argument.