← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1987191] Re: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead

 

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

** Changed in: glance
     Assignee: (unassigned) => Takashi Natsume (natsume-takashi)

-- 
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/1987191

Title:
  DeprecationWarning: setDaemon() is deprecated, set the daemon
  attribute instead

Status in Glance:
  In Progress
Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Running "tox -e py310", the following warning appear.

  
  -------------------------------------------------------------------------------------------
  {1} nova.tests.unit.virt.hyperv.test_serialproxy.SerialProxyTestCase.test_accept_connection [0.368902s] ... ok


  Captured stderr:

  ~~~~~~~~~~~~~~~~

      /tmp/nova/nova/virt/hyperv/serialproxy.py:49: DeprecationWarning:
  setDaemon() is deprecated, set the daemon attribute instead

    self.setDaemon(True)
  -------------------------------------------------------------------------------------------

  Python 3.8 document says that setDaemon(): Old getter/setter API for daemon; use it directly as a property instead.
  Python 3.10 document says that Deprecated since version 3.10.

  [1] https://docs.python.org/3.8/library/threading.html#threading.Thread.setDaemon
  [2] https://docs.python.org/3.10/library/threading.html#threading.Thread.setDaemon

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



References