← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1328647] Re: DeprecationWarning is globally enabled

 

** Also affects: nova
   Importance: Undecided
       Status: New

** Changed in: nova
     Assignee: (unassigned) => Brent Eagles (beagles)

** Changed in: oslo
     Assignee: (unassigned) => Brent Eagles (beagles)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1328647

Title:
  DeprecationWarning is globally enabled

Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  New

Bug description:
  warnings.DeprecationWarning is typically ignored by default.
  migrate.changeset enables warnings.DeprecationWarning with
  "warnings.simplefilter('always', DeprecationWarning)", basically
  enabling the warning for anything that imports that module. This
  causes a large number of unexpected warnings to be logged in some
  cases (e.g. when declaring an exchange in oslo.messaging). Arguably
  migrate.changeset should not do that, but in the meantime it would be
  good to add a workaround in OpenStack to surpress the warning.

  The severity of this bug is somewhat subjective. While it does not
  necessarily interfere with function, it does result in a situation
  where frequently repeated operations that contain a DeprecationWarning
  (like declaring an amqp exchange) "spam" the logs pretty heavily.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1328647/+subscriptions