PkgResourcesDeprecationWarning: <MagicMock name='execute().split().__getitem__().__getitem__()' id='140417024565696'> is an invalid version and will not be supported in a future release

Bug #1986428 reported by Takashi Natsume
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Takashi Natsume

Bug Description

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

{0} neutron.tests.unit.agent.l3.test_dvr_local_router.TestDvrRouterOperations.test_floating_forward_rules [0.545172s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    /tmp/neutron/.tox/py38/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: <MagicMock name='execute().split().__getitem__().__getitem__()' id='140417024565696'> is an invalid version and will not be supported in a future release
  warnings.warn(
/tmp/neutron/.tox/py38/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  warnings.warn(

{1} neutron.tests.unit.agent.l3.extensions.test_ndp_proxy.NDPProxyExtensionDVRTestCase.test_floating_forward_rules [0.859366s] ... ok

Captured stderr:
~~~~~~~~~~~~~~~~
    /tmp/neutron/.tox/py38/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: <MagicMock name='execute().split().__getitem__().__getitem__()' id='139790873764336'> is an invalid version and will not be supported in a future release
  warnings.warn(
/tmp/neutron/.tox/py38/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  warnings.warn(

Changed in neutron:
assignee: nobody → Takashi Natsume (natsume-takashi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/853053

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/853053
Committed: https://opendev.org/openstack/neutron/commit/76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b
Submitter: "Zuul (22348)"
Branch: master

commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>

Changed in neutron:
status: In Progress → Fix Released
Changed in neutron:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 21.0.0.0rc1

This issue was fixed in the openstack/neutron 21.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/neutron/+/873280

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/873280
Committed: https://opendev.org/openstack/neutron/commit/aaafcbef3367a8b937a0b3283170031384d5504f
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit aaafcbef3367a8b937a0b3283170031384d5504f
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/neutron/+/873585

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/neutron/+/873586

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/neutron/+/873587

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/neutron/+/873783

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/873586
Committed: https://opendev.org/openstack/neutron/commit/a26f04d711d9d875b2a246cc9ff4371a63c37e8b
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit a26f04d711d9d875b2a246cc9ff4371a63c37e8b
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)

tags: added: in-stable-wallaby
tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/873587
Committed: https://opendev.org/openstack/neutron/commit/35a5bc1fbb8dbc1269ba8866ec80fe2901806f5c
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 35a5bc1fbb8dbc1269ba8866ec80fe2901806f5c
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)
    (cherry picked from commit aaafcbef3367a8b937a0b3283170031384d5504f)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/873585
Committed: https://opendev.org/openstack/neutron/commit/288daf9974d6776a27f3539da2f8a168831cf144
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 288daf9974d6776a27f3539da2f8a168831cf144
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/873783
Committed: https://opendev.org/openstack/neutron/commit/168902f7ac22cefa0cc6a73f6a5801a8fb9763d4
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 168902f7ac22cefa0cc6a73f6a5801a8fb9763d4
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 22:30:51 2022 +0900

    Fix deprecation warnings in pkg_resources

    Fix the following deprecation warnings.

      PkgResourcesDeprecationWarning:
      <MagicMock name='execute().split().__getitem__().__getitem__()'
      id='140417024565696'> is an invalid version and will not be
      supported in a future release

      DeprecationWarning: Creating a LegacyVersion has been
      deprecated and will be removed in the next major release

    Change-Id: I23540114120f6ea52754116cfaaeac35e09543b4
    Closes-Bug: 1986428
    Signed-off-by: Takashi Natsume <email address hidden>
    (cherry picked from commit 76cf6b4a9e9a8c8f7b01f44d787b66b9b894331b)
    (cherry picked from commit aaafcbef3367a8b937a0b3283170031384d5504f)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 19.6.0

This issue was fixed in the openstack/neutron 19.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 20.3.0

This issue was fixed in the openstack/neutron 20.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron ussuri-eol

This issue was fixed in the openstack/neutron ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron victoria-eom

This issue was fixed in the openstack/neutron victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron wallaby-eom

This issue was fixed in the openstack/neutron wallaby-eom release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.