← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428424] Re: Remove use of contextlib.nested

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => kilo-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1428424

Title:
  Remove use of contextlib.nested

Status in Cinder:
  Fix Released
Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in OpenStack Neutron (virtual network service):
  In Progress
Status in OpenStack Compute (Nova):
  In Progress

Bug description:
      The contextlib.nested call has been deprecated
      in Python 2.7. This causes DeprecationWarning
      messages in the unit tests.
      
      There are also known issues with contextlib.nested
      that were addressed by the native support for
      multiple "with" variables. For instance, if the
      first object is created but the second one throws
      an exception, the first object's __exit__ is never
      called. For more information see
      https://docs.python.org/2/library/contextlib.html#contextlib.nested
      contextlib.nested is also not compatible in Python 3.

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


References