Project

Profile

Help

Issue #1594

closed

deprecation warnings when running migrations on EL7

Added by dkliban@redhat.com over 8 years ago. Updated about 5 years ago.

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

Description

Ensuring the admin role and user are in place.
/usr/lib/python2.7/site-packages/pulp/server/managers/auth/role/cud.py:58: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  Role.get_collection().save(create_me)

/usr/lib/python2.7/site-packages/pulp/server/managers/auth/role/cud.py:316: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  Role.get_collection().save(role)

ensure admin
/usr/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  object_id = collection.save(doc, **write_concern)

/usr/lib/python2.7/site-packages/pulp/server/managers/auth/permission/cud.py:43: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  Permission.get_collection().save(create_me)

/usr/lib/python2.7/site-packages/pulp/server/managers/auth/permission/cud.py:141: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  Permission.get_collection().save(permission)

/usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
  upsert=upsert, **write_concern)

Related issues

Related to Pulp - Issue #2004: Pulp logs many DeprecationWarningsCLOSED - CURRENTRELEASEsemyersActions

Also available in: Atom PDF