From 6ecce8996188a63ba18c607dd10dd58c9c21f2b8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 16 Aug 2021 12:53:46 +0100 Subject: [PATCH 1/5] Don't call 'begin()' on existing transaction Resolve the following RemovedIn20Warning warning: Calling .begin() when a transaction is already begun, creating a 'sub' transaction, is deprecated and will be removed in 2.0. See the documentation section 'Migrating from the nesting pattern' for background on how to migrate from this pattern. Change-Id: I59e45dfea8fcbf72fc6e34345e510554cbdd138e Signed-off-by: Stephen Finucane --- oslo_db/tests/fixtures.py | 5 ----- oslo_db/tests/sqlalchemy/test_utils.py | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 4646278..468dcae 100644 --- a/oslo_db/tests/fixtures.py +++ b/oslo_db/tests/fixtures.py @@ -45,11 +45,6 @@ class WarningsFixture(fixtures.Fixture): message=r'The Session.autocommit parameter is deprecated .*', category=sqla_exc.SADeprecationWarning) - warnings.filterwarnings( - 'once', - message=r'Calling \.begin\(\) when a transaction is already .*', - category=sqla_exc.SADeprecationWarning) - # ...plus things that aren't our fault # FIXME(stephenfin): These are caused by sqlalchemy-migrate, not us, diff --git a/oslo_db/tests/sqlalchemy/test_utils.py b/oslo_db/tests/sqlalchemy/test_utils.py index 087f7ec..27ed640 100644 --- a/oslo_db/tests/sqlalchemy/test_utils.py +++ b/oslo_db/tests/sqlalchemy/test_utils.py @@ -700,8 +700,7 @@ class TestMigrationUtils(db_test_base._DbTestCase): test_table.create(engine) with engine.connect() as conn, conn.begin(): - with conn.begin(): - conn.execute(test_table.insert(), values) + conn.execute(test_table.insert(), values) return test_table, values def test_drop_old_duplicate_entries_from_table(self): -- GitLab From ec2f9f1e443ceab89bbd1a705eb63f5f9eb764d8 Mon Sep 17 00:00:00 2001 From: OpenStack Release Bot Date: Fri, 4 Mar 2022 17:18:00 +0000 Subject: [PATCH 2/5] Update master for stable/yoga Add file to the reno documentation build to show release notes for stable/yoga. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/yoga. Sem-Ver: feature Change-Id: I450ea045a8cb88f4c59ea84f1340e989126d6b4c --- releasenotes/source/index.rst | 1 + releasenotes/source/yoga.rst | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/source/yoga.rst diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst index 2d9a2ab..6d3ce9e 100644 --- a/releasenotes/source/index.rst +++ b/releasenotes/source/index.rst @@ -6,6 +6,7 @@ :maxdepth: 1 unreleased + yoga xena wallaby victoria diff --git a/releasenotes/source/yoga.rst b/releasenotes/source/yoga.rst new file mode 100644 index 0000000..7cd5e90 --- /dev/null +++ b/releasenotes/source/yoga.rst @@ -0,0 +1,6 @@ +========================= +Yoga Series Release Notes +========================= + +.. release-notes:: + :branch: stable/yoga -- GitLab From 95e1dd6e82e88b123a6118bf421464495d16f290 Mon Sep 17 00:00:00 2001 From: OpenStack Release Bot Date: Fri, 4 Mar 2022 17:18:01 +0000 Subject: [PATCH 3/5] Add Python3 zed unit tests This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for zed. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I22f6f0ac3c9f58b7aad6a81bd5fe65992d8e5dd1 --- .zuul.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 4066fb4..24a1c11 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,7 +2,7 @@ templates: - check-requirements - lib-forward-testing-python3 - - openstack-python3-yoga-jobs + - openstack-python3-zed-jobs - periodic-stable-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 -- GitLab From 3f889d5b6e4def3259e46a5ffe23c1350b4c10bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Thu, 5 May 2022 11:14:41 +0200 Subject: [PATCH 4/5] Drop python3.6/3.7 support in testing runtime In Zed cycle testing runtime, we are targetting to drop the python 3.6/3.7 support, project started adding python 3.8 as minimum, example nova: - https://github.com/openstack/nova/blob/56b5aed08c6a3ed81b78dc216f0165ebfe3c3350/setup.cfg#L13 Change-Id: I859aa7c5d73cb492870c5699c6f8c96b5d36839e --- setup.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 7acd079..5baeb4f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,7 @@ description_file = author = OpenStack author_email = openstack-discuss@lists.openstack.org home_page = https://docs.openstack.org/oslo.db/latest -python_requires = >=3.6 +python_requires = >=3.8 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -15,8 +15,6 @@ classifier = Operating System :: POSIX :: Linux Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3 :: Only -- GitLab From a808381414b3bed60b59f17e75e39cb4d8652426 Mon Sep 17 00:00:00 2001 From: OpenStack Proposal Bot Date: Tue, 21 Jun 2022 03:48:25 +0000 Subject: [PATCH 5/5] Imported Translations from Zanata For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I1e47d7a37c1d27b511b45c36a3d56597f2548076 --- .../locale/en_GB/LC_MESSAGES/releasenotes.po | 166 +++++++++++++++++- 1 file changed, 164 insertions(+), 2 deletions(-) diff --git a/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po b/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po index e36a023..d4a3164 100644 --- a/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po +++ b/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po @@ -3,21 +3,31 @@ # Andi Chandler , 2018. #zanata # Andi Chandler , 2019. #zanata # Andi Chandler , 2020. #zanata +# Andi Chandler , 2022. #zanata msgid "" msgstr "" "Project-Id-Version: oslo.db\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-05 17:36+0000\n" +"POT-Creation-Date: 2022-05-11 16:16+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2020-10-10 02:27+0000\n" +"PO-Revision-Date: 2022-06-13 07:42+0000\n" "Last-Translator: Andi Chandler \n" "Language-Team: English (United Kingdom)\n" "Language: en_GB\n" "X-Generator: Zanata 4.3.3\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" +msgid "10.0.0" +msgstr "10.0.0" + +msgid "11.0.0" +msgstr "11.0.0" + +msgid "11.2.0" +msgstr "11.2.0" + msgid "2.6.0-9" msgstr "2.6.0-9" @@ -69,6 +79,24 @@ msgstr "5.0.0" msgid "7.0.0" msgstr "7.0.0" +msgid "8.1.1" +msgstr "8.1.1" + +msgid "8.4.1" +msgstr "8.4.1" + +msgid "8.5.0" +msgstr "8.5.0" + +msgid "8.5.1" +msgstr "8.5.1" + +msgid "9.0.0" +msgstr "9.0.0" + +msgid "9.1.0" +msgstr "9.1.0" + msgid "" "Added new ``.is_started`` boolean flag to enginefacade context manager and " "factory objects, so that double-configure scenarios can be prevented by " @@ -96,6 +124,13 @@ msgstr "" msgid "Bug Fixes" msgstr "Bug Fixes" +msgid "" +"Checks specific to the DB2 database have been removed. This database has not " +"been supported by any OpenStack project for many years." +msgstr "" +"Checks specific to the DB2 database have been removed. This database has not " +"been supported by any OpenStack project for many years." + msgid "" "Decorator ``oslo_db.api.wrap_db_retry`` now defaults to 10 retries. " "Previously the number of attempts was 0, and users had to explicitly pass " @@ -113,6 +148,17 @@ msgstr "Deprecation Notes" msgid "For details, please see the following LP:" msgstr "For details, please see the following LP:" +msgid "" +"In mysql 8.0.19, duplicate key error information is extended to include the " +"table name of the key. Previously, duplicate key error information included " +"only the key value and key name. This extends capabilities to handle changes " +"in duplicate key error information with newer mysql version since 8.0.19." +msgstr "" +"In MySQL 8.0.19, duplicate key error information is extended to include the " +"table name of the key. Previously, duplicate key error information included " +"only the key value and key name. This extends capabilities to handle changes " +"in duplicate key error information with newer MySQL version since 8.0.19." + msgid "Introduce reno for deployer release notes." msgstr "Introduce reno for deployer release notes." @@ -171,6 +217,20 @@ msgstr "Queens Series Release Notes" msgid "Removed deprecated database option ``min_pool_size``." msgstr "Removed deprecated database option ``min_pool_size``." +msgid "Removed deprecated database option ``sql_max_pool_size``." +msgstr "Removed deprecated database option ``sql_max_pool_size``." + +msgid "" +"Removed the ``[DATABASE] idle_timeout``, ``[database] idle_timeout``, " +"``[sql] idle_timeout``, ``[DEFAULT] sql_idle_timeout`` and ``[DATABASE] " +"sql_idle_timeout`` options. These were all legacy aliases for ``[database] " +"connection_recycle_time``." +msgstr "" +"Removed the ``[DATABASE] idle_timeout``, ``[database] idle_timeout``, " +"``[sql] idle_timeout``, ``[DEFAULT] sql_idle_timeout`` and ``[DATABASE] " +"sql_idle_timeout`` options. These were all legacy aliases for ``[database] " +"connection_recycle_time``." + msgid "" "Repaired the \"synchronous_reader\" modifier of enginefacade so that it " "refers to the \"writer\" engine when set to True, thereby allowing " @@ -197,6 +257,69 @@ msgstr "" "Support for Python 2.7 has been dropped. The minimum version of Python now " "supported is Python 3.6." +msgid "" +"The ``_walk_versions``, ``_migrate_down``, and ``_migrate_up`` methods of " +"the ``oslo_db.sqlalchemy.test_migrations.ModelsMigrationsSync`` base test " +"class have been removed. These were deprecated in 0.5.0 in favour of their " +"non-private equivalents, ``walk_versions``, ``migrate_down``, and " +"``migrate_up`` respectively." +msgstr "" +"The ``_walk_versions``, ``_migrate_down``, and ``_migrate_up`` methods of " +"the ``oslo_db.sqlalchemy.test_migrations.ModelsMigrationsSync`` base test " +"class have been removed. These were deprecated in 0.5.0 in favour of their " +"non-private equivalents, ``walk_versions``, ``migrate_down``, and " +"``migrate_up`` respectively." + +msgid "" +"The ``check_foreign_keys`` helper of the ``oslo_db.sqlalchemy." +"test_migrations.ModelsMigrationsSync`` base test class has been removed. " +"This was deprecated in 1.4.1 as alembic now supports this capability." +msgstr "" +"The ``check_foreign_keys`` helper of the ``oslo_db.sqlalchemy." +"test_migrations.ModelsMigrationsSync`` base test class has been removed. " +"This was deprecated in 1.4.1 as alembic now supports this capability." + +msgid "" +"The ``oslo_db.concurrency.TpoolDbapiWrapper`` class and supporting " +"``[database] use_tpool`` config option are now deprecated. This feature " +"never graduated from experimental status and is slated for removal due to " +"lack of maintenance and test coverage. Users should switch to ``oslo_db.api." +"DBAPI.from_config`` and remove references to the deprecated config option " +"from their documentation." +msgstr "" +"The ``oslo_db.concurrency.TpoolDbapiWrapper`` class and supporting " +"``[database] use_tpool`` config option are now deprecated. This feature " +"never graduated from experimental status and is slated for removal due to a " +"lack of maintenance and test coverage. Users should switch to ``oslo_db.api." +"DBAPI.from_config`` and remove references to the deprecated config option " +"from their documentation." + +msgid "" +"The ``oslo_db.sqlalchemy.migration_cli`` module is deprecated for removal. " +"It was intended to provide an abstraction layer over different migration " +"backends - specifically ``sqlalchemy-migrate`` and ``alembic`` - however, " +"takeup has been limited and its expected that users will use ``alembic`` " +"directly nowadays." +msgstr "" +"The ``oslo_db.sqlalchemy.migration_cli`` module is deprecated for removal. " +"It was intended to provide an abstraction layer over different migration " +"backends - specifically ``sqlalchemy-migrate`` and ``alembic`` - however, " +"takeup has been limited and its expected that users will use ``alembic`` " +"directly nowadays." + +msgid "" +"The ``oslo_db.sqlalchemy.migration`` module is deprecated for removal. It " +"only supports ``sqlalchemy-migrate``, which is no longer under active " +"development and has been effectively replaced by ``alembic``. Users of this " +"module should consider switching to ``alembic`` or, if necessary, using " +"``sqlalchemy-migrate`` directly." +msgstr "" +"The ``oslo_db.sqlalchemy.migration`` module is deprecated for removal. It " +"only supports ``sqlalchemy-migrate``, which is no longer under active " +"development and has been effectively replaced by ``alembic``. Users of this " +"module should consider switching to ``alembic`` or, if necessary, using " +"``sqlalchemy-migrate`` directly." + msgid "" "The allowed values for the ``connection_debug`` option are now restricted to " "the range between 0 and 100 (inclusive). Previously a number lower than 0 or " @@ -260,6 +383,24 @@ msgstr "" "handle spikes of concurrent requests and lower the probability of getting a " "pool timeout issue." +msgid "" +"The following helpers have been removed from the ``oslo_db.sqlalchemy." +"utils`` module:" +msgstr "" +"The following helpers have been removed from the ``oslo_db.sqlalchemy." +"utils`` module:" + +msgid "" +"These were unused outside of oslo.db and were not compatible with SQLAlchemy " +"2.0. In addition, the ``RollsBackTransaction`` fixture has been removed from " +"``oslo_db.sqlalchemy.test_fixtures``. This was similarly unused and " +"presented similar compatibility issues." +msgstr "" +"These were unused outside of oslo.db and were not compatible with SQLAlchemy " +"2.0. In addition, the ``RollsBackTransaction`` fixture has been removed from " +"``oslo_db.sqlalchemy.test_fixtures``. This was similarly unused and " +"presented similar compatibility issues." + msgid "" "This change potentially leads to increasing of the number of open " "connections to an RDBMS server. Depending on the configuration, you may see " @@ -295,6 +436,27 @@ msgstr "Ussuri Series Release Notes" msgid "Victoria Series Release Notes" msgstr "Victoria Series Release Notes" +msgid "Wallaby Series Release Notes" +msgstr "Wallaby Series Release Notes" + +msgid "Xena Series Release Notes" +msgstr "Xena Series Release Notes" + +msgid "Yoga Series Release Notes" +msgstr "Yoga Series Release Notes" + +msgid "``NonCommittingConnectable``" +msgstr "``NonCommittingConnectable``" + +msgid "``NonCommittingConnection``" +msgstr "``NonCommittingConnection``" + +msgid "``NonCommittingEngine``" +msgstr "``NonCommittingEngine``" + +msgid "``NonCommittingTransaction``" +msgstr "``NonCommittingTransaction``" + msgid "and the ML thread:" msgstr "and the ML thread:" -- GitLab