[eventlet-deprecation] Deprecation of eventlet in Neutron

Bug #2069831 reported by Rodolfo Alonso
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
In Progress
High
Rodolfo Alonso

Bug Description

The goal of this bug is to track all the efforts in the deprecation of eventlet in Neutron and the umbrella projects.

Changed in neutron:
importance: Undecided → High
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
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/+/922329

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

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

summary: - [eventlet] Deprecation of eventlet in Neutron
+ [eventlet-deprecation] Deprecation of eventlet in Neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-lib/+/930716

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/930736

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/930743

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/930889

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/930889
Committed: https://opendev.org/openstack/neutron/commit/16fc47127a663c0f54f088de6b81406d7efebd30
Submitter: "Zuul (22348)"
Branch: master

commit 16fc47127a663c0f54f088de6b81406d7efebd30
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Sep 30 10:28:44 2024 +0000

    Disable the OVN/OVS WGSI experimental jobs

    The following jobs have been disabled:
    * neutron-tempest-plugin-api-ovs-wsgi
    * neutron-tempest-plugin-api-ovn-wsgi

    Once [1] is merged, all ML2/OVS and ML2/OVN jobs will be executed
    with WSGI module. These jobs will be converted to *-eventlet and
    will be in the experimental and periodic queues.

    [1]https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/930743

    Related-Bug: #2069581
    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: I901a5abb92a5a178d847143266419b1e502154d2

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-lib (master)

Reviewed: https://review.opendev.org/c/openstack/neutron-lib/+/930716
Committed: https://opendev.org/openstack/neutron-lib/commit/9840db16249397569e5705a4f25a804a90ec225d
Submitter: "Zuul (22348)"
Branch: master

commit 9840db16249397569e5705a4f25a804a90ec225d
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Sep 27 14:35:39 2024 +0000

    Do not define the executor of the RPC server

    The method ``oslo_messaging.get_rpc_server`` allows to define the
    executor between "eventlet" and "threading".

    By default the server class used is
    ``oslo_messaging.rpc.server.RPCServer`` [1]. If no executor is defined,
    the base class will get it depending on the context [2][3]. If
    ``thread`` is not monkey patched, the executor to use will be
    "threading".

    [1]https://github.com/openstack/oslo.messaging/blob/412ab4de9244d99903b7ada7a60ef19156cd8451/oslo_messaging/rpc/server.py#L222
    [2]https://github.com/openstack/oslo.messaging/blob/412ab4de9244d99903b7ada7a60ef19156cd8451/oslo_messaging/server.py#L334
    [3]https://github.com/openstack/oslo.messaging/blob/412ab4de9244d99903b7ada7a60ef19156cd8451/oslo_messaging/_utils.py#L87-L92

    Change-Id: I1541137ea59cc4bba5699f2e98b80ed3ddbe5337
    Related-Bug: #2069831

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/931012

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/931249

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/931251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/930736

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/931249
Committed: https://opendev.org/openstack/neutron/commit/79ad54f6b7695d8e33d984f7dbf947814d0b2aad
Submitter: "Zuul (22348)"
Branch: master

commit 79ad54f6b7695d8e33d984f7dbf947814d0b2aad
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Oct 3 07:32:59 2024 +0000

    Remove the sleep calls in the ``create_or_update_agent`` method

    A Neutron API call thread should not yield until the result return
    and finalization.

    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: Iebc895e6c8bd0f1129880244325afa1d6a0181c0

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/neutron/+/931251
Committed: https://opendev.org/openstack/neutron/commit/6fb6c67e442f84648b09fb29c83ae40ba739ced5
Submitter: "Zuul (22348)"
Branch: master

commit 6fb6c67e442f84648b09fb29c83ae40ba739ced5
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Oct 3 08:35:43 2024 +0000

    Replace ``greenthread.sleep`` with ``time.sleep``

    If the threading libraries have been monkey patched, the ``time.sleep``
    method will be replaced with ``greenthread.sleep``.

    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: Ibbfc773ff04f6edc5d87cc0fa85bad16cb323ad8

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932520

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932524

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932582

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-tempest-plugin (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/930743
Reason: Patch abandoned in favor of the series: "[WSGI] Move all OVN jobs to use WSGI API module (xx)"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-tempest-plugin (master)

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932520
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/573033c7ecffbe1e3e2e74d49b5030bae653aff9
Submitter: "Zuul (22348)"
Branch: master

commit 573033c7ecffbe1e3e2e74d49b5030bae653aff9
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 16 15:00:18 2024 +0000

    [WSGI] Move all OVN jobs to use WSGI API module (1)

    NOTE: This is the first patch of many to migrate the ML2/OVN jobs
    in this repository.

    Jobs migrated:
    * neutron-tempest-plugin-ovn
    * neutron-tempest-plugin-ovn-enforce-scope-old-defaults

    Related-Bug: #2069581
    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: I86a3fc753292ae10e88102347d32db75c48ab865

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932524
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/fc6ae7f5f14b388d2d9f58ac0d30f495485e4493
Submitter: "Zuul (22348)"
Branch: master

commit fc6ae7f5f14b388d2d9f58ac0d30f495485e4493
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 16 15:06:17 2024 +0000

    [WSGI] Move all OVN jobs to use WSGI API module (2)

    Jobs migrated:
    * neutron-tempest-plugin-designate-scenario

    Related-Bug: #2069581
    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: I2bad6303c15bd018c23d5a2086043c56adafc08c

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932582
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/2e17b80ef58c50dc551ce90fb94badf9af2dfe94
Submitter: "Zuul (22348)"
Branch: master

commit 2e17b80ef58c50dc551ce90fb94badf9af2dfe94
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Oct 17 06:06:19 2024 +0000

    [WSGI] Move all OVN jobs to use WSGI API module (3)

    Introduce two new experimental and periodic jobs:
    * neutron-tempest-plugin-api-ovs-eventlet
    * neutron-tempest-plugin-api-ovn-eventlet

    Related-Bug: #2069581
    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: I401ff4dcd2ff09b7b149f8f6f35794faeecb9f5f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/931012
Committed: https://opendev.org/openstack/neutron/commit/34b0ce6aeaca7f8a220a418306cf873dca81be20
Submitter: "Zuul (22348)"
Branch: master

commit 34b0ce6aeaca7f8a220a418306cf873dca81be20
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Oct 1 13:24:52 2024 +0000

    Add Neutron API eventlet experimental jobs

    Now all ML2/OVN and ML2/OVS jobs run, by default, with WSGI module.
    This patch adds following jobs to the experimental and periodic
    queues:
    * neutron-tempest-plugin-api-ovs-eventlet
    * neutron-tempest-plugin-api-ovn-eventlet

    Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/932582

    Related-Bug: #2069581
    Related-Bug: #2069831
    Topic: eventlet-deprecation
    Change-Id: If5c0f6d20cc18e0f74531e50054bbe3b4db1604e

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/935626

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/935627

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/935668

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/935668
Committed: https://opendev.org/openstack/neutron/commit/09e13ffad090cc7d2c3642012a1de962d9b890fb
Submitter: "Zuul (22348)"
Branch: master

commit 09e13ffad090cc7d2c3642012a1de962d9b890fb
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Nov 19 16:00:42 2024 +0000

    Make grenade jobs work with Neutron API WSGI module

    The "skip-level" jobs, that work with 2024.1 (two releases back),
    cannot yet work with WSGI because:
    * For ML2/OVS it was refactored and fixed in 2024.2
    * For ML2/OVN it was implemented in 2024.2

    We'll need to wait until 2025.2 to provide this support and remove
    the WSGI flag from the devstack libraries (check [1]).

    [1]https://review.opendev.org/c/openstack/devstack/+/932203

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Change-Id: I55ac4048ab0da85ea736f1bfb854fa8ac08b092f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/neutron/+/935626
Committed: https://opendev.org/openstack/neutron/commit/0415d3a41a6cd367e2918eaba9a72d05dd69c571
Submitter: "Zuul (22348)"
Branch: master

commit 0415d3a41a6cd367e2918eaba9a72d05dd69c571
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Nov 19 10:52:21 2024 +0000

    Remove all eventlet Neutron API jobs

    The Neutron API WSGI module will be the only one available in
    devstack [1].

    [1]https://review.opendev.org/c/openstack/devstack/+/932203

    Depends-On: https://review.opendev.org/c/openstack/devstack/+/935625

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Change-Id: Ib7b1a0b80b766b2378b183de282b09c639e8d144

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by "Slawek Kaplonski <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/922329
Reason: This review is > 4 weeks without comment, and failed Zuul jobs the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-tempest-plugin (master)

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/935627
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/c27cf6baed462feb6d527e03d28184037ff80abd
Submitter: "Zuul (22348)"
Branch: master

commit c27cf6baed462feb6d527e03d28184037ff80abd
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Nov 19 11:00:18 2024 +0000

    Remove all eventlet Neutron API jobs

    The Neutron API WSGI module will be the only one available in
    devstack [1].

    [1]https://review.opendev.org/c/openstack/devstack/+/932203

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Change-Id: I38d64650ae1115870a38641c1f199b09838f4bd7

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/937842

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-tempest-plugin (master)

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/937842
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/f405d0774d228307836da414b12eeccdf76b75b8
Submitter: "Zuul (22348)"
Branch: master

commit f405d0774d228307836da414b12eeccdf76b75b8
Author: yatinkarel <email address hidden>
Date: Tue Dec 17 12:59:59 2024 +0530

    Turn off wsgi in linuxbridge stable branch jobs

    Got missed when default switched in [1].

    [1] https://review.opendev.org/935627

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Change-Id: Ic698e264a43b0d6e048500481388ae51c3ead292

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/938390

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/938390
Committed: https://opendev.org/openstack/neutron/commit/51528a802392e0bf902d9bd5c785f0817943eaeb
Submitter: "Zuul (22348)"
Branch: master

commit 51528a802392e0bf902d9bd5c785f0817943eaeb
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Jan 3 09:17:18 2025 +0000

    [eventlet-deprecation] Add a reference document

    Related-Bug: #2069831
    Change-Id: I565d02e6760406d0bbd08e6d4dfb2bbef206cfdb

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/939315

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

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

commit adba4b960cd902a098e3eb09786aed53f0d10f21
Author: yatinkarel <email address hidden>
Date: Wed Jan 15 11:09:41 2025 +0530

    Move neutron rally jobs to wsgi

    Were missed when other jobs were moved[1], also
    now with eventlet bump[2] the ovn rally job is broken
    as described in the related bug #2094970.

    [1] https://review.opendev.org/c/openstack/neutron/+/935626
    [2] https://review.opendev.org/c/openstack/requirements/+/933257

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Related-Bug: #2094970
    Change-Id: I1bc6b80c2bd11168342ffaebf05160d152ef4070

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/941092

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/941092
Committed: https://opendev.org/openstack/neutron/commit/0b975a679fa3e30c01c5abdf9e66441916914a90
Submitter: "Zuul (22348)"
Branch: master

commit 0b975a679fa3e30c01c5abdf9e66441916914a90
Author: yatinkarel <email address hidden>
Date: Mon Feb 10 17:16:37 2025 +0530

    Switch dvr grenade job Neutron API WSGI module

    Got missed with [1] and got visible when [2] made this
    job broken.

    [1] https://review.opendev.org/c/openstack/neutron/+/935668
    [2] https://review.opendev.org/c/openstack/neutron/+/940366

    Topic: eventlet-deprecation
    Related-Bug: #2069831
    Related-Bug: #2096912
    Change-Id: Ic1de0731969bd1218b051fc6cb8bacfc7375abc1

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/922330

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/950856

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

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

commit cd3957a0f90e9653b87f221e1174c9f471ee23a1
Author: yatinkarel <email address hidden>
Date: Mon May 26 16:59:38 2025 +0530

    Move grenade skip level jobs to wsgi

    With [1] we can't deploy neutron with eventlet in
    master and wsgi is default mode[2], so let's switch
    grenade skip level jobs to deploy with wsgi.
    Just dropped the overrides as parent grenade jobs have these
    already set.

    [1] https://review.opendev.org/c/openstack/devstack/+/932203
    [2] https://review.opendev.org/c/openstack/devstack/+/932199
    Topic: eventlet-deprecation
    Related-Bug: #2069831

    Change-Id: I2c52805a497d2c92168261a8cd4e964d708ca45c

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

Other bug subscribers

Remote bug watches

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