Reviewed:  https://review.opendev.org/c/openstack/nova/+/853869
Committed: 
https://opendev.org/openstack/nova/commit/18d9c85aa4cbdbc471c6c7916ca6f1367c7ab4e5
Submitter: "Zuul (22348)"
Branch:    master

commit 18d9c85aa4cbdbc471c6c7916ca6f1367c7ab4e5
Author: Takashi Natsume <[email protected]>
Date:   Sun Aug 21 14:47:14 2022 +0900

    Fix a deprecation warning about threading.Thread
    
    Fix the following deprecation warning.
    
    * DeprecationWarning: setDaemon() is deprecated,
      set the daemon attribute instead
    
    Change-Id: I208bd1bef002ce91e57798f3475bbe64d3b81329
    Closes-Bug: 1987191
    Signed-off-by: Takashi Natsume <[email protected]>


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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):
  Fix Released

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to