Commit Graph

270 Commits

Author SHA1 Message Date
Bo Tran Van b127068c20 Add Datastore Version Registry Extension
Current, users can config default datastore registry for managers not by
verions. This make you can flexible when have some experimental
datastore.

With this patch, users with the administrator role can configure the
datastore registry external for each datastore version using a command,
without editing configuration files.

Story: #2010860
Task: #48534
Change-Id: I910a1ba4a9216ab29faeed03198113b4acb2cb81
2024-03-27 05:56:09 +00:00
Zuul 89e4601e1a Merge "Imported Translations from Zanata" 2024-03-21 03:48:25 +00:00
OpenStack Proposal Bot cb0cd5b4a3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I832247fa5eaefc7daec33b58d5ae0122bdcbc0bb
2024-03-21 03:07:19 +00:00
OpenStack Release Bot c5adc4fb4e 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: I6067b04332b5cef3a853910cac319ab52b86d458
2024-03-20 13:42:49 +00:00
Zuul 6822a76ad9 Merge "reno: Update master for unmaintained/xena" 2024-03-20 06:32:50 +00:00
Zuul 93bd69017f Merge "reno: Update master for unmaintained/wallaby" 2024-03-20 06:32:49 +00:00
OpenStack Release Bot e359e76e14 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I6781ce54ed6d7a29b652e1e358deba3823e57caa
2024-03-12 10:56:21 +00:00
OpenStack Release Bot 5acdf96222 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I7a80f7984939c2812e49ed25f3b79d616c822238
2024-03-12 10:55:40 +00:00
OpenStack Release Bot f0cd3e4f42 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ide1deface9cf3d69fe02b24e8c0e406c1d64c53b
2024-03-12 10:55:00 +00:00
Zuul 860772e1b0 Merge "Enable healthcheck middleware" 2024-02-27 06:11:49 +00:00
Takashi Kajinami ebe15a1ba5 Enable healthcheck middleware
The healthcheck middleware from oslo.middleware library is now commonly
enabled in OpenStack services, for service healthcheck (often used by
load balancers such as haproxy). This enables the middleware so that
operators can use the healthcheck endpoint more easily. This also
replaces the oslo.middleware config entry point by more specific sub
entry points, to avoid rendering options from unused middlewares such
as sizelimit.

Change-Id: If3296e651e7f20a3f5314c085cc99ce4b004c065
2024-02-26 01:41:31 +09:00
Zuul fef0c13cdd Merge "Imported Translations from Zanata" 2024-02-23 13:24:05 +00:00
Zuul 27e5a710ce Merge "Change postgresql socket path to a persistent path" 2024-02-23 13:23:59 +00:00
OpenStack Proposal Bot 57aa13a0bd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I01c3e2f2ad989a0c9f9d4a456c31bcb3208d584f
2024-02-23 03:37:52 +00:00
OpenStack Release Bot 5e7a09f953 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I8ad86d635802c367712b20d20476c72d4e6cb56f
2024-02-19 09:19:27 +00:00
Takashi Kajinami 235bd9acd7 Remove global default_password_length
This option was deprecated multiple cycles ago[1] in favor of
the datastore specific options.

[1] f4cbaf6ccd

Change-Id: I1b40fb528d5df52f132a1d8cf027a42d8b65d544
2024-01-30 03:09:33 +00:00
wu.chunyang f151fd91d9 Change postgresql socket path to a persistent path
This patch changes the default socket patch on the host from
"/var/run/postgresql" to "/var/lib/postgresql-socket".
ensuring that the  database container starts properly after
a Nova instance is restarted.

Story: 2010599
Task: 47471

Change-Id: I54a53cc802bbd20bb9e2c6508919e4c8dda38f2a
2024-01-30 03:08:55 +00:00
Zuul 40fdb7b44f Merge "Change mysql socket path to a persistent path." 2024-01-19 04:52:06 +00:00
wu.chunyang 9d31e46f00 Change mysql socket path to a persistent path.
This patch changes the default socket patch on the host from
"/var/run/mysqld" to "/var/lib/mysqld". ensuring that the
database container starts properly after a Nova instance is restarted.

Story: 2010599
Task: 47471

Change-Id: Idb0366ad1d73c85126e18fccd58f1e52176b63de
2024-01-08 18:06:43 +08:00
Phung HoangLong a8d9ee2291 fix: prepare mariadb after restore
This PR perform mariabackup prepare in post_restore.

Story: 2010999
Task: 49342
Change-Id: Ided7a807575c676fd094c78103201e8dee575d59
2024-01-05 16:33:27 +07:00
Bo Tran 8b6ff821a1 Cinder Support For Boot Volume
When use cinder to store data dir of database, also create rootdisk in cinder.

Story: #2009245
Task: #43418
Change-Id: Ia5841222c7a70cb0c88078575b4d8b4f7988d5e0
2023-12-13 09:12:18 +00:00
wu.chunyang 9f7b9a95e8 Revert "Fix docker daemon failed to set IPv6 gateway"
This reverts commit ae27a32a9f.

Reason for revert: This commit didn't fix the issue

Change-Id: Ief5a87724ccaed2f0c63cf32672a7437f384179f
2023-12-12 01:38:54 +00:00
wu.chunyang 21b4cc2cf7 Don't configure ip route for slaac ipv6 subnet
for the ipv6 subnet with ipv6_ra_mode is slaac or dhcpv6-stateless,
we don't need the configure the ip route for the nic in these
subnet. otherwise, docker daemon may returns error:
failed to set IPv6 gateway while updating gateway: file exists.
refer to: https://docs.openstack.org/neutron/latest/admin/config-ipv6.html

Change-Id: Id7f537039615479e03dcd546b7d738ca32f740db
2023-12-11 10:11:52 +08:00
wu.chunyang 895e59237e Fix guest agent failed to use swiftclient over TLS
This commit adds insecure=True parameter to swiftclient.

Story: #2010674
Task: #47748
Change-Id: I6156b289659dc9130effb1666c3cd2e14366bffe
2023-12-07 08:36:55 +00:00
wu.chunyang ae27a32a9f Fix docker daemon failed to set IPv6 gateway
This commit sets "net.ipv6.conf.eth0.accept_ra" to 0 to avoid the
file exists error.
refer to: https://github.com/moby/libnetwork/issues/2455

Change-Id: Ib0d7cec54bc79b3e29a95c298435b007e769e565
2023-12-04 15:53:44 +08:00
Hirotaka Wakabayashi c167159c4a Fixes the way to check db instance status
This PR changes the way to check instance status. Since Victoria, trove
has change the db instance status name from `RUNNING` to `HEALTHY`[1].

Original problem:
Some clustering databases like Apache Cassandra fail to update cluster
status because they check db instance status using `RUNNING`.

[1]: a0a10f0b94

Story: 2010147
Task: 45791
Change-Id: Iaa032fb46ed51b6e416e7d4efdfd272924ba146b
2023-10-25 01:12:05 +00:00
Zuul 3bbeeb87e0 Merge "Separate backup docker image for each database version" 2023-10-08 04:43:35 +00:00
Zuul 36f23fbd87 Merge "Allows users to specify a MariaDB version in Dockerfile" 2023-10-07 11:23:16 +00:00
Bo Tran 4c83bb8862 Separate backup docker image for each database version
Co-Authored-By: wu.chunyang <wchy1001@gmail.com>

Story: #2010770
Task: #48087
Change-Id: I08063748e15de6767b437aa443311d41e25ed578
2023-09-21 01:21:32 +00:00
Hirotaka Wakabayashi 1062b035ce Allows users to specify a MariaDB version in Dockerfile
This PR allows users to select MariaDB versions.

The original problem is that Trove fails to create backup of MariaDB-
-10.7 instances because Trove's backup script is from MariaDB-10.4[1],
which is generally incompatible with MariaDB-10.7[2].

1: https://opendev.org/openstack/trove/src/branch/master/backup/install.sh#L26
2: https://mariadb.com/kb/en/mariabackup-overview/#compatibility-of-mariabackup-releases-with-mariadb-server-releases

Story: 2010566
Task: 47275
Change-Id: I03e6b58a7b1746fef8c08d92acd7b1ccac9a46eb
2023-09-18 06:20:23 +00:00
Zuul 14ea484284 Merge "Update master for stable/2023.2" 2023-09-14 09:31:01 +00:00
OpenStack Proposal Bot 01df84c523 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7f91b7ae7f1c69efcce57746bb844f817e944907
2023-09-14 03:13:36 +00:00
OpenStack Release Bot 67167f8a0f 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: Ibb4a5f65160efffff98fda3046c2f111e891ebea
2023-09-14 01:23:35 +00:00
wu.chunyang cd383e49a0 Fix typo in release note
Change-Id: I3af5e197c04cede6ae86e11a160a3fbabd53df75
2023-08-31 15:20:17 +08:00
OpenStack Proposal Bot b841781fd5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1659734f26dddc8b5ae4592bbe2aee005f6ca4fd
2023-08-05 03:49:43 +00:00
Zuul 651cee350f Merge "Fix postgresql database creation failures from prepare func" 2023-08-04 05:28:09 +00:00
wuchunyang 2f755b64b3 Add network isolation for trove
this PR adds a network_isolation config option for trove,
with network_isolation enabled, trove guest agent will
plug the user-defined port to database container by
docker host_nic network driver which is implemented in this PR.

docker host_nic network driver is a simple driver to plug host
nic to a container. this driver supports ipv4,ipv6 and dual-stack.

for more details please see the story.

story: 2010733
task: 47957

Change-Id: I35d6f8b81a2c5e847cbed3f5bc6095dc1d387165
2023-08-03 11:35:04 +00:00
wu.chunyang 8cd982be5c Fix postgresql database creation failures from prepare func
postgresql needs to restart during the bootstrap, but the postgres
driver still reports the healthy status.

this commit resets the healthy_counts when status is not healthy,
and make state_healthy_counts configurable.

Change-Id: I746b86326790dbc667f4f0d6dabcd1a656502273
2023-08-02 02:18:08 +00:00
OpenStack Proposal Bot c4efd57e36 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If3c6f1456b1454f6a06b8974d1877e9e87bcf3f3
2023-07-22 02:57:14 +00:00
likui 773115adce 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
[2] https://review.opendev.org/c/openstack/oslo.db/+/778441

Change-Id: Id288e09688062b007d57f09aebcd7c447e56f04d
2023-07-20 14:26:40 +08:00
Zuul 17af8eab8c Merge "mysql: explicitly use utf8mb3" 2023-07-04 04:56:11 +00:00
Hirotaka Wakabayashi 0d4a24c71d Fixes cluster creation error
This PR adds the import statement to fix cluster creation error
and enables flake8-f821 rule checks.
F821 rule checks "undefined name"

Original problem:
we have currently got `NameError: name 'common_glance' is not defined`
error when creating a cluster because I failed to edit the patch[1].

Co-Authored-By: wu.chunyang <wchy1001@gmail.com>

[1]: 2f52b2fddb

Story: 2010151
Task: 45797
Change-Id: I846f433ff35a9638a070382bf89e02db617dcd3d
2023-06-30 14:32:32 +08:00
Alexander Epaneshnikov 3ba1f0d955 mysql: explicitly use utf8mb3
this fixes mysql v8.x.
in mysql 8.0+ utf8mb3 is deprecated and utf8 alias doesn't work.

Change-Id: I548eb43a3d5adbd84957b6b92d4b172bfdfb80a8
2023-06-29 08:21:52 +00:00
Zuul 5c12f72fc5 Merge "Fix "create database" failed for postgress" 2023-06-26 04:15:26 +00:00
OpenStack Proposal Bot c0f27335a2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie55fb58f0d3588128b95900cb4607b86b5bf254e
2023-06-22 05:05:30 +00:00
wu.chunyang cd11d7677e Fix "create database" failed for postgress
This PR stops using the psycopg2’s connections context manager
because "CREATE DATABASE" command must be run outside any
transaction[1].
[1]: https://www.psycopg.org/docs/usage.html#transactions-control

Co-Authored-By: hungnt1 <sudo.nguyenhung@gmail.com>
Co-Authored-By: Hirotaka Wakabayashi <hiwkby@yahoo.com>

Story: 2010761
Task: 48059
Change-Id: I73ec6c659d8ad7216460055077737429c878df33
2023-06-16 13:54:08 +08:00
OpenStack Proposal Bot e854cb5853 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibc8a2eb72c7d34b9f56a69114d74ae0da01fb4b6
2023-05-23 03:45:22 +00:00
wu.chunyang 9929847a64 Add missing releasenotes
Change-Id: Ic0cf8ad40cb82254d0eae9ac6d4ed7de6eb59450
2023-03-29 21:55:17 +08:00
OpenStack Proposal Bot e613be9863 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibbb4be0abe55eb43f0df1a46af22041e048d3d9b
2023-03-09 03:45:43 +00:00
OpenStack Proposal Bot 75071d5b45 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I492b82019e6c25154cec0fc7e6ee8353e7a572c5
2023-03-07 03:26:43 +00:00