← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1985970] [NEW] DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

 

Public bug reported:

Running "tox -e py38", the following deprecation warnings appear.


{1} nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version [0.110519s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    /tmp/nova/nova/virt/ironic/driver.py:2070: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  version.StrictVersion(current_api_version) <

{1}
nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version_too_new
[0.112709s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    /tmp/nova/nova/virt/ironic/driver.py:2070: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  version.StrictVersion(current_api_version) <

{1}
nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version_too_old
[0.116488s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    /tmp/nova/nova/virt/ironic/driver.py:2075: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  version.StrictVersion(current_api_version) >

** Affects: nova
     Importance: Undecided
     Assignee: Takashi Natsume (natsume-takashi)
         Status: New


** Tags: testing

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

Title:
  DeprecationWarning: distutils Version classes are deprecated. Use
  packaging.version instead.

Status in OpenStack Compute (nova):
  New

Bug description:
  Running "tox -e py38", the following deprecation warnings appear.

  
  {1} nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version [0.110519s] ... ok

  Captured stderr:
  ~~~~~~~~~~~~~~~~
      /tmp/nova/nova/virt/ironic/driver.py:2070: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    version.StrictVersion(current_api_version) <

  {1}
  nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version_too_new
  [0.112709s] ... ok

  Captured stderr:
  ~~~~~~~~~~~~~~~~
      /tmp/nova/nova/virt/ironic/driver.py:2070: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    version.StrictVersion(current_api_version) <

  {1}
  nova.tests.unit.virt.ironic.test_driver.IronicDriverSyncTestCase.test__can_send_version_too_old
  [0.116488s] ... ok

  Captured stderr:
  ~~~~~~~~~~~~~~~~
      /tmp/nova/nova/virt/ironic/driver.py:2075: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    version.StrictVersion(current_api_version) >

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



Follow ups