Project

Profile

Help

Issue #1594

closed

deprecation warnings when running migrations on EL7

Added by dkliban@redhat.com about 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
Actions #1

Updated by rbarlow about 8 years ago

  • Platform Release deleted (2.8.0)

Since this is just a deprecation warning, I don't think it should be a 2.8 blocker. Good report!

Actions #2

Updated by jortel@redhat.com about 8 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by ipanova@redhat.com over 7 years ago

  • Sprint/Milestone set to 31
Actions #5

Updated by ipanova@redhat.com over 7 years ago

  • Related to Issue #2004: Pulp logs many DeprecationWarnings added
Actions #6

Updated by semyers over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to semyers

Added by semyers over 7 years ago

Revision f98f018f | View on GitHub

Suppress DeprecationWarnings when running pulp-manage-db

closes #1594 https://pulp.plan.io/issues/1594

Added by semyers over 7 years ago

Revision f98f018f | View on GitHub

Suppress DeprecationWarnings when running pulp-manage-db

closes #1594 https://pulp.plan.io/issues/1594

Actions #7

Updated by semyers over 7 years ago

  • Project changed from RPM Support to Pulp
  • Status changed from ASSIGNED to POST
Actions #8

Updated by dkliban@redhat.com about 7 years ago

  • Sprint/Milestone changed from 31 to 32
Actions #9

Updated by mhrivnak about 7 years ago

  • Sprint/Milestone changed from 32 to 33
Actions #10

Updated by semyers about 7 years ago

  • Status changed from POST to MODIFIED
Actions #11

Updated by semyers about 7 years ago

  • Platform Release set to 2.12.1
Actions #12

Updated by bizhang about 7 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by bizhang about 7 years ago

  • Version set to 2.11.1
Actions #14

Updated by bizhang about 7 years ago

  • Version changed from 2.11.1 to 2.12.1
Actions #15

Updated by bizhang about 7 years ago

  • Version deleted (2.12.1)
Actions #16

Updated by bizhang about 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #17

Updated by semyers about 6 years ago

  • Assignee deleted (semyers)
Actions #18

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 15
Actions #19

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (33)
Actions #20

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF