Commit Graph

98 Commits

Author SHA1 Message Date
Zuul 3a94baa0e2 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:32:08 +00:00
Zuul a555bae981 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:24:26 +00:00
Zuul 07fd65099d Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:11:35 +00:00
OpenStack Release Bot 3e2dab780c Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: I66efd50c02dc7aa582a6398f23e8230221baa912
2024-03-08 14:22:17 +00:00
OpenStack Release Bot add9b72dc8 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I1009da8cc0784d9a6834760ca7e5e454915ef7b5
2024-03-07 14:25:26 +00:00
OpenStack Release Bot f1e544d72e reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I622a1a0523fc5143505807ca7fe14c41fefdc8a5
2024-03-07 14:21:12 +00:00
OpenStack Release Bot 249350b55f reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I96da4f7b629ce62726b53cff686f7e5d319db6ba
2024-03-07 14:15:37 +00:00
OpenStack Release Bot 41fcc96812 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I1ec6eec49561f235091236aa46c5fc01a8d54f9b
2024-02-06 14:27:51 +00:00
Zuul 2376924760 Merge "options: Remove deprecated option aliases" 2024-01-25 15:52:01 +00:00
OpenStack Release Bot 1ae346824c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: Icbb93217de7bb305596077eaee3c4f862b0894e6
2023-09-07 09:36:33 +00:00
Stephen Finucane 5363ca11c9 Remove MySQL NDB Cluster Support
This has been deprecated for some time now.

Change-Id: Ia8b4ed8cd755d283bb773e55293457190b34c482
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-07-20 11:16:22 +01:00
OpenStack Proposal Bot 54565201e9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Icf53e13a93d4fc2a610cc57ef4fefd62ab5de711
2023-05-09 04:28:20 +00:00
Stephen Finucane af5392bf3f Add release note for base test class removal
In change I1e71150ba6daeba464b6ed8d46163f1f34959db3 we removed the
legacy base test classes, first deprecated in 2015. We forgot to include
a release note, however. Address this now.

Change-Id: I4d66f0308b89a187143ef6c8495383fe60043c14
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-04-17 13:34:40 +01:00
Stephen Finucane 1f003bcb0b Get test suite to full pass with SQLAlchemy 2.0
Remaining issues encountered when running with SQLAlchemy 2.0 for real:

* Never call str() on a URL and expect it to be meaningful anymore.
  The password is aggressively obfuscated now (users absolultely
  wouldn't let us leave it as is)
* More utilities and fixtures that were calling begin() within a
  block that would have already begun
* isnot is now called is_not; mocking "isnot" leads into too many
  weird compat layers
* ORM InstrumentedAttribute and internals use __slots__ now, mock
  seems to not be able to patch methods.  Ideally these tests would use
  a comparator subclass or something
* Connection.connection.connection is now called driver_connection,
  SQLAlchemy keeps the old name available however oslo.db test suite
  does not appear to tolerate the deprecation warning emitted,
  so add a compat layer
* mapper() is fully removed from 2.0, not sure if there is another
  not-yet-committed gerrit that removes mapper()

[1] https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine.params.pool_pre_ping
[2] https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2fe37eaf2295cebd3bb4ee8e5b8c575c
[3] https://github.com/sqlalchemy/sqlalchemy/issues/5648

Change-Id: Ifaca67c07f008d8bc0febeecd3e200cc7ee7a4b0
2023-04-06 14:54:40 +01:00
Mike Bayer 94d6e24ca1 Remove sqlalchemy-migrate
sqlalchemy-migrate does not support SQLAlchemy 2.x and we're not going
to invest the time in changing this. Remove integration of
sqlalchemy-migrate in oslo.db, allowing us to support SQLAlchemy 2.x
fully.

Note that we do not remove the 'migration_cli' module entirely yet.
While this is deprecated, it is possible to use this with alembic.
New users shouldn't be switching to it, but any existing users can
continue to use this module for some time yet.

Change-Id: Ic3d6bd318038d723b0d50d39e45f8e26289e9a57
Sem-Ver: api-break
2023-03-21 13:59:26 -04:00
OpenStack Release Bot 5cd7962a2d Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I564d0adb2b6bd7df059ebe40d34715ecd0e2197e
2023-02-24 15:17:50 +00:00
OpenStack Proposal Bot 7d619ae3eb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib2362e15f0b610412ed992d63da63ad2d2b39883
2023-01-27 02:55:45 +00:00
Ayumu Ueha b689b6320c Fix default value for wsrep_sync_wait option
The default value for wsrep_sync_wait option should be `None`.
However, since 0 is set incorrectly, an unintended process is executed.

This patch fixes default value for wsrep_sync_wait option to `None`
instead of `0`.

Change-Id: Ifb1dc7ddcb127a69ea01234922caa7ca5ab111ce
2023-01-18 00:31:22 +00:00
Mike Bayer 009d23df45 Add option for wsrep_sync_wait
When using Galera, the wsrep_sync_wait option [1]
can change the behavior of a variety of Galera DQL/DML statements
such that a particular operation will pause until outstanding
write-sets are fully persisted to the local node.  The setting
supersedes the previous boolean parameter wsrep_causal_reads
which only affected SELECT, with an updated approach that allows
for fine-grained control of so-called "causality checks"
on individual statement types.  The legacy-compatible setting
of '1' indicates that READ/SELECT/BEGIN operations should
proceed only after any pending writesets are fully available.

The use case for this setting is for an application that
is running operations on multiple Galera nodes simultaenously.
An application that commits data on one node, and then immediately
uses a different connection (on a potentially different node)
to SELECT that data, may fail to see those changes if
"causality checks" for SELECT are not enabled.  While
a COMMIT operation in Galera will block locally until all other
nodes approve of the writeset, the operation does not block
for the subsequent period of time when other nodes are actually
persisting that writeset.  Setting up "causal reads"
in this case indicates that a SELECT operation will wait until
any writesets in progress are available, thus maintaining
serialization between the COMMIT and subsequent SELECT.

As the name implies, wsrep_sync_wait adds...waiting!  to the
operation, and thus directly impacts performance by adding
latency to SELECT operations or to the operations that have
been selected for causality checks, to the degree that
concurrent writesets are expected to be present.

Since it's not expected that most if any Openstack applications
actually need this setting in order to be effective with
Galera multi-master operation, and as the setting is available
within client session scope and also impacts performance,
making it available on a per-application basis means that
specific applications which may see issues under load can
choose to enable this setting, much in the way any other
"transaction isolation" settings might be made, without having
to add a cluster-wide performance penalty by setting it at the
Galera server level.

[1] https://mariadb.com/docs/ent/ref/mdb/system-variables/wsrep_sync_wait/

Change-Id: Iee7afcac8ba952a2d67a9ad9dd0e4eae3f42518e
2022-12-05 11:49:14 -05:00
OpenStack Proposal Bot ea9a9d8736 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iae58f095c34f7118a4a2683b6d283e8cf81836b8
2022-09-24 02:55:15 +00:00
Zuul 4d3a391467 Merge "Deprecate MySQL NDB Cluster Support" 2022-09-09 18:27:45 +00:00
OpenStack Release Bot f3b84c92e8 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Ic0f1c5a9e902f13b66bab62d32e452211fb277ef
2022-09-09 09:16:36 +00:00
Stephen Finucane f32890e41d Deprecate MySQL NDB Cluster Support
Traditionally, the MySQL support in oslo.db has assumed use of the
InnoDB storage engine. However, this isn't the only storage engine
available and a few years ago an effort was made to add support for
another storage engine, MySQL Cluster (NDB). The oslo.db aspects of this
effort were tracked via bug 1564110 [1] and from reading this bug and
looking at other patches related to this effort [2], it becomes obvious
that this was never seen through to the completion and the
OpenStack-wide effort never took off [3]. As a result, much of what is
here is in-effect dead code now.

Given no one is using this engine, there's no reason to keep it around.
Deprecate it with an eye on removing it sooner rather than later.

[1] https://bugs.launchpad.net/oslo.db/+bug/1564110
[2] https://review.opendev.org/q/owner:octave.orgeron%2540oracle.com
[3] https://review.opendev.org/c/openstack/openstack-specs/+/429940

Change-Id: Id5ddf1d6f47b8a572001f58ad8b9b8a7dbe4e8ac
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-07-27 11:20:59 +01:00
OpenStack Proposal Bot a808381414 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
2022-06-21 03:48:25 +00:00
OpenStack Release Bot ec2f9f1e44 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
2022-03-04 17:18:00 +00:00
Stephen Finucane 22c602f075 utils: Remove troublesome utility methods
These are not compatible with SQLAlchemy 2.0 due to their reliance on
nested transactions. We should deprecate them first but doing so would
push the boat out further wrt how long we have to wait before achieving
compatibility with this new version.

Change-Id: If3db4e8c1b681c0c62d3f04a57f92802639b3b9b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-02-08 14:40:36 +00:00
OpenStack Release Bot 4e678589a4 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I21f4a1416a8dc316817ebc081b73b76992fca867
2021-09-10 14:34:32 +00:00
Zuul 1b48a34bd1 Merge "Drop checks for IBM DB2" 2021-07-29 14:34:27 +00:00
Stephen Finucane bd69e86d52 Drop checks for IBM DB2
This hasn't been supported by any project for many years. Quoting from
the nova patch that removed DB2 support [1]

  This removes db2 support from tree completely. This is an oddball non
  open database that made doing live data migrations difficult. It is
  used by 0% of users in the OpenStack User Survey.

  Supporting commercial software that doesn't have users at the cost of
  delivering features and fixes to our community is the wrong tradeoff.
  This corrects that.

There's no need to keep this around.

[1] Ifeb9929e4515e3483eb65d371126afd7672b92a4

Change-Id: I8c3f23083e09e5ac924e35d1b7b3248a0d074e1b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-07-28 18:10:53 +01:00
Stephen Finucane bf90aed0f7 options: Remove deprecated option aliases
These have been deprecated for some time. Time to remove them.

Change-Id: Ie019c9cae96e7065ff2e1203c40f464e61e55d40
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-06-25 18:10:32 +01:00
Stephen Finucane 4f9df08373 tests: Remove 'ModelsMigrationsSync.check_foreign_keys'
The 'check_foreign_key' method was removed in oslo.db 1.4.0 [1] and
re-added but marked as deprecated in 1.4.1 [2] to allow for a
deprecation period. That was over 6 years ago so we can now remove it.
Meanwhile, the private '_walk_versions', '_migrate_down' and
'_migrate_up' methods have been marked as deprecated since oslo.db 0.5.0
(!!!) [3]. We can definitely remove these now. codesearch.o.o reveals no
users of any of these methods.

[1] I77a2bba2de08125b5a601de03c1d2d5c73fa33ee
[2] Id892567bd60d6b4b88765bbfe3cd5c5e75910b25
[3] Ic9358445e60a0dd43a5900e8bda7b12f2bebf679

Change-Id: Idb9596284df3e5d038c939d27fe14fe2cc2f4318
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-06-25 16:15:13 +01:00
Stephen Finucane 74c6bf266e concurrency: Deprecate 'TpoolDbapiWrapper'
This has been marked as experimented since before oslo.db was split out
of nova. We've no test coverage and no idea of whether it even works
nowadays. It's time to plan for its eventual removal.

Change-Id: Ib7a5a6e1124c44a742b003442f815022a866bcbb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-06-25 16:14:21 +01:00
Zuul 0e76c02160 Merge "Remove the idle_timeout option." 2021-06-23 14:41:58 +00:00
Daniel Bengtsson a857b83c9c Remove the idle_timeout option.
The option was replaced 4 years ago[1] by connection_recycle_time. The
option is not anymore present in sqlalchemy. It's the good time to
remove it.

[1] 6634218415

Change-Id: I0c26c3e14ad9ad9a4f30af80757e369d6042441a
2021-06-23 13:04:45 +02:00
Kamlesh Chauvhan be2cc6a2ce Followup of "Added handler for mysql 8.0.19 duplicate key error update"
Followup of change: Ic78059b625e73cece355541cb4d89e641abc1103

Change-Id: Idb0410a1946acbd7caf6a0bb1dad229bd5c2c346
2021-06-10 09:24:03 +00:00
Zuul 78d12d7696 Merge "Remove the sql_max_pool_size option." 2021-05-03 12:34:27 +00:00
Daniel Bengtsson 94141edc5b Remove the sql_max_pool_size option.
The option was replaced 6 years ago[1] by max_pool_size.

[1] 1b7c295d52

Change-Id: Ice1a90edc32603c85449b80fe78fd437aa7e8081
2021-04-26 12:41:58 +02:00
Pierre Riteau 88e1fed17e Fix formatting of release list
Change-Id: I129194d096656b06fb0a94a29b4b3cf4e0f00f2f
2021-04-16 14:21:35 +02:00
Zuul 77cc11a526 Merge "remove unicode from code" 2021-04-16 12:15:34 +00:00
OpenStack Release Bot 6f449050e6 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I347faed9c8c0e721ab81706c5cd6bb105897df06
2021-03-18 11:17:32 +00:00
xuanyandong 273009f63d remove unicode from code
Change-Id: Ia782bc7127a1cb967e2f475065b1fb963b9c184f
2021-01-03 16:02:16 +08:00
Zuul 503db6071a Merge "Deprecate the 'oslo_db.sqlalchemy.migration_cli' module" 2020-10-30 16:37:02 +00:00
Zuul 2ca50a4ca7 Merge "Deprecate 'oslo_db.sqlalchemy.migration' module" 2020-10-30 16:37:01 +00:00
Stephen Finucane 642dac165f Deprecate the 'oslo_db.sqlalchemy.migration_cli' module
This API allowed users to abstract the differences between
sqlalchemy-migrate and alembic. However, no one is using it for that and
its continued existence necessitates continued support for
sqlalchemy-migrate. Deprecate it now and encourage the odd user to
switch to alembic directly.

Change-Id: Ia5979369f23b38a2c7307f4112651a8bedb45c01
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-10-30 10:40:24 +00:00
Stephen Finucane fc85587523 Deprecate 'oslo_db.sqlalchemy.migration' module
This module hasn't been touched with years and 'sqlalchemy-migrate' is
effectively abandoned. It's time to drop support for this an encourage
the laggards to switch to alembic and use it directly.

Change-Id: I59335b4f318bae2e29ab139cdea089a4d6e14305
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-10-30 10:40:24 +00:00
OpenStack Proposal Bot aad193a6dc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If6de09e513ec778f9b5f8c34d985aeea640d6002
2020-10-11 07:43:25 +00:00
OpenStack Release Bot 6a3def84f3 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: Iefed09b57fffca3a62ec4467e1d18a5f4724c474
Sem-Ver: feature
2020-09-11 20:57:19 +00:00
melissaml c18a019484 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I572495d50e0edc8bdfe22594dcde30a61b0750b8
2020-06-04 15:17:23 +08:00
Andreas Jaeger db6a84accf Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames. A
couple of variables are also not needed anymore, remove them.

Depends-On: https://review.opendev.org/728938
Change-Id: I072cf215486d672eacd3a57483cb2b311483c844
2020-05-18 21:07:24 +02:00
OpenStack Proposal Bot 6d81455cd9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I92a2105bb57e96c32f203cf53534eacea524b597
2020-04-19 07:09:33 +00:00