[sqlalchemy-20] Missing DB context in subnetpool methods

Bug #1976357 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Rodolfo Alonso
Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
importance: Undecided → High
status: New → Confirmed
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/+/844024

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

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

commit c2786554ad99c6017dd46802b532b5eb5bd4a009
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon May 16 03:37:58 2022 +0000

    [sqlalchemy-20] Add the needed DB context decorators in ``db.api``

    The method ``_get_filter_query`` returns an active query and must
    be called always inside a DB context.

    Closes-Bug: #1976357
    Change-Id: Idea915bd71bfb778f5009be9cf47eace83e11437

Changed in neutron:
status: In Progress → Fix Released
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/+/848396

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

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

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

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

commit d3f711e7f6cf644dd616e7b241c2c6fe90a73fc8
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jun 30 18:58:09 2022 +0000

    [sqlalchemy-20] Add the needed DB context decorators in ``ml2.plugin``

    The method "_handle_segment_change" was handling the network DB object
    outside a DB writer context.

    Closes-Bug: #1980346
    Related-Bug: #1976357
    Change-Id: Ic79ad0f8e7fa1d55328e2315d87a3950fdb82258

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

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

commit 6c92d7a3076cb58bfcc393ff7be4f37bc9cca81c
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jun 30 19:55:21 2022 +0000

    [sqlalchemy-20] Remove unnecessary DB context

    All "reserve_provider_segment" implementations create their own
    DB contexts, if needed.

    Related-Bug: #1976357
    Change-Id: Ic5c8a80f1dc0bebbd117ad9b56365e8c606c112d

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.

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.