Neutron shared routines and utilities.
Go to file
Rodolfo Alonso Hernandez ef1e8abb89 Refactor session "is_active" handling for sqlalchemy-20
Since sqlalchemy 1.4, "session.autocommit" is False by default; in
sqlalchemy 2.0 this will be the only value accepted.

The ``_orm.Session`` is considered active when [1]:
- there is a transaction and this transaction is active
- there is no transaction [2], the class ``_orm.Session`` will
  autobegin when it is first used.

The second one breaks the way Neutron considers a session is active:
only when a transaction is in place, Neutron considers a session is
active.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/833247

[1]https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4/lib/sqlalchemy/orm/session.py#L3918-L3950
[2]https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4/lib/sqlalchemy/orm/session.py#L3930-L3932

Closes-Bug: #1962153
Topic: sqlalchemy-20

Change-Id: Iabaee4e556afb3dc75a82d99dc4a597fe4d7dd21
2022-04-13 09:35:13 +00:00
api-ref/source Merge "Doc: Add router gateway IP QoS to api-ref" 2022-04-05 14:45:08 +00:00
doc remove unicode from code 2022-01-19 09:15:45 +08:00
neutron_lib Refactor session "is_active" handling for sqlalchemy-20 2022-04-13 09:35:13 +00:00
releasenotes Refactor session "is_active" handling for sqlalchemy-20 2022-04-13 09:35:13 +00:00
tools Remove import statement for six 2021-12-19 14:21:51 +09:00
.coveragerc Improvements to tox envs 2015-12-19 01:00:22 -05:00
.gitignore Switch to stestr 2018-05-24 11:09:18 -07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:32:02 +00:00
.mailmap Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
.pylintrc Bump requirements and disable f-string check 2021-09-21 11:57:06 +00:00
.stestr.conf Fix unit test failures due to switch to testr changes 2017-09-14 08:17:35 -07:00
.zuul.yaml Add "neutron-tempest-plugin-jobs" to CI 2022-04-12 17:34:49 +00:00
CONTRIBUTING.rst Merge "Update links in CONTRIBUTING.rst" 2017-10-05 20:47:37 +00:00
HACKING.rst Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
LICENSE Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
lower-constraints.txt Bump requirements and disable f-string check 2021-09-21 11:57:06 +00:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-22 11:23:33 +08:00
requirements.txt Make neutron-lib aware about system scope tokens 2021-03-12 14:47:37 +01:00
setup.cfg setup.cfg: Replace dashes with underscores 2021-05-13 20:51:05 +09:00
setup.py Updated from global requirements 2017-03-02 11:49:11 +00:00
test-requirements.txt Start running pylint for pep8 tests 2020-09-17 09:53:01 -04:00
tox.ini Change minversion of tox to 3.18.0 2021-05-18 23:49:41 +09:00

Team and repository tags

image

neutron-lib

Neutron shared routines and utilities

Features

  • TODO