4928 Commits

Author SHA1 Message Date
wu.chunyang
e9fa651ac0 [CI]: fix unittest failure
Change-Id: I5245d437a5703d5ff18011076395d25c040f5a4d
2025-01-13 20:53:55 +08:00
Hirotaka Wakabayashi
9c92df8152 Remove python3-venv if is_fedora is true
python3-venv does not exist in Fedora family's OS.

Change-Id: Ice103b430444eed797b6f193df88481b6839d452
2024-12-25 14:08:39 +00:00
Zuul
d09de01fdf Merge "Working on missing postgresql features" 2024-12-25 13:52:41 +00:00
wu.chunyang
0f1fc5dbcc [CI]: run perodical jobs on master branch only
Change-Id: If7420fe75b9016c7b13ed97f953ca3d9c34f58c2
2024-12-25 16:47:41 +08:00
wu.chunyang
1526b20826 Fix: trovestack failed to build images
fix a bug where trovestack failed to build images when $HTTP_PROXY
is set

Change-Id: I74501c5d488108d9db44620025da5138be3da989
2024-12-20 20:45:57 +08:00
Reşit Demir
89274df2af Working on missing postgresql features
* Db list operation added for postgresql
* User list operation added for postgresql
* User create operation added for postgresql
* User delete operation added for postgresql
* Db create operation added for postgresql
* Db delete operation added for postgresql
* User grant access operation added for postgresql
* User revoke access and update attributes operations added for postgresql
* Common/db/models collate and character_set setter functions are updated.

Depends-On: https://review.opendev.org/c/openstack/trove-tempest-plugin/+/930276

Change-Id: I4c000363dd046fc82f099de0a30c16b1f01d6d2c
2024-12-18 08:54:43 +00:00
wu.chunyang
0138ce30e2 Using quay.io registry in project
In order to avoid docker pull rate limit, this commit
replaces images in the dockerhub to quay.io/openstack.trove

Change-Id: I4fb7afd9f6a5d84578bb6226f8b2ff4b9908a526
2024-12-17 16:25:29 +08:00
wu.chunyang
ff502ae696 [CI] Follow up: I7baf7391d2bc7f0f17f525792eff5c0c82e41b42
Change-Id: I39eb163e05205ecac945d60bbc3eeae665804446
2024-12-12 09:45:02 +08:00
Zuul
17b7c60270 Merge "CI: push images to quay.io" 2024-12-10 06:37:48 +00:00
wu.chunyang
a74ea9794a CI: push images to quay.io
Change-Id: I7baf7391d2bc7f0f17f525792eff5c0c82e41b42
2024-12-10 10:29:04 +08:00
Zuul
be39cb7ce2 Merge "Add note about requirements lower bounds" 2024-12-09 15:32:32 +00:00
Zuul
3468240fae Merge "Fix replication detach error" 2024-12-04 13:27:06 +00:00
Zuul
df59fb79e2 Merge "Remove pylint target" 2024-12-04 12:54:39 +00:00
Ghanshyam Mann
550b0f0d8f Update gate jobs as per the 2025.1 cycle testing runtime
As per 2025.1 testing runtime[1], we need to test on Ubuntu
Noble (which will be taken care by tempest and devstack [2]
patches to move base jobs to Noble) and at least single job to run on
Ubuntu Jammy (for smooth upgrade from previous releases).

This commit adds a new job to run on Jammy which can be removed
in future cycle when testing runtime test next version of Ubuntu
as default.

Also bump the hacking version to fix the pepe8 erorr:
 -AttributeError: 'EntryPoints' object has no attribute 'get'

[1] https://governance.openstack.org/tc/reference/runtimes/2025.1.html
[2] https://review.opendev.org/c/openstack/tempest/+/932156

Change-Id: Ia29391d5535b16589d7cf259f958b3b6aac5776c
2024-11-29 05:23:49 +00:00
wu.chunyang
f0f186ef9a Fix replication detach error
TypeError: tuple indices must be integers or slices, not str

this is caused by the new version of the sqlachemy library.

Change-Id: I76166f901f961a18ad4297d04e1a75a59b059e23
2024-11-26 14:51:29 +08:00
Zuul
44c96d9acb Merge "Use venv to install diskimage-builder" 2024-11-22 06:34:53 +00:00
wu.chunyang
3d8501db56 Remove diskimage-builder requirement
this package was not imported in trove project

Change-Id: I2ad2e692e5993d7cf8029f57c10538c854b06089
2024-11-21 10:42:55 +08:00
wu.chunyang
5437bc4864 Use venv to install diskimage-builder
using apt to install diskimage-builder to avoid
'externally-managed-environment' error on ubuntu Noble

Change-Id: Ia461bb28c41e4fe64bee90e170c095137a2f110f
2024-11-21 09:20:19 +08:00
Zuul
cf5a9b803e Merge "Remove default override for config options policy_file" 2024-11-20 03:54:34 +00:00
Takashi Kajinami
0057801f87 Remove pylint target
This target hasn't been validated in CI. Currently running the target
consistently fails likely because of the quite old version pinned to.

Because hacking/flake8/pep8 is already used, drop the unmaintained
target.

Change-Id: I414b24355a2b750f5ae0ff92613cfbfc1f39f3ff
2024-11-17 01:03:51 +09:00
Takashi Kajinami
51e947a8b0 Add note about requirements lower bounds
Since lower constraints job was removed the bounds are not actually
tested. Add a note to explain the bounds are maintained on best effort
basis.

Change-Id: I8c9d2b029e08789bd11bb77ea2b0d577fc5f5257
2024-11-16 09:01:12 +00:00
Zuul
cd6cfbae9d Merge "Follow up: Add Datastore Version Registry Extension" 2024-11-14 10:39:35 +00:00
Zuul
a7e4b1f69b Merge "Fix MariaDB target dir for backup syntax" 2024-11-14 10:21:10 +00:00
316334b767 reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: Iee0cfb3ab9084b36d91e515bf0713ec311b1ef2e
2024-11-12 16:59:43 +00:00
Rafael Weingärtner
93d67678dc Fix MariaDB target dir for backup syntax
Change-Id: I0a8b78696f822d176caf6136c0d71211dee16685
2024-11-12 08:50:44 -03:00
Ghanshyam Mann
fca1c02d59 Remove default override for config options policy_file
olso.policy 4.5.0[1] changed the config options policy_file
default value to 'policy.yaml', which means it is changed
for all the OpenStack services and they do not need to
override the default anymore.

NOTE: There is no change in behaviour here, oslo.policy provides
the same configuration that services have overridden till now.

[1] https://review.opendev.org/c/openstack/releases/+/934012
[2] https://review.opendev.org/c/openstack/requirements/+/934295

Change-Id: Id8b6efa93a059adfaaa9bd4827eca957593bf171
2024-11-10 21:37:10 -08:00
Zuul
1da2376f5a Merge "Make more flexible with locality options" 2024-11-06 12:52:17 +00:00
Bo Tran
596134e3ad Follow up: Add Datastore Version Registry Extension
When upgrading Trove, the trove-manage script fails
to upgrade the database when the DBDatastoreVersion
table is not empty.

This patch will help us fix above error

Change-Id: Ib615032747f89daf7f8500c7e2df4064fab05314
2024-11-05 14:32:25 +08:00
Takashi Kajinami
3ff639047e Remove Python 3.8 support
Python 3.8 was removed from the tested runtimes for 2024.2[1] and has
not been tested since then.

Also add Python 3.12 which is part of the tested runtimes for 2025.1.
Now unit tests job with Python 3.12 is voting.

[1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html

Change-Id: I76df03331cc565ffd8638ad30660f52e22fc99ab
2024-10-24 21:31:46 +09:00
Zuul
e28298000b Merge "Replace deprecated LegacyEngineFacade" 2024-10-14 13:41:10 +00:00
Zuul
a0d3899597 Merge "Remove workaround for eventlet < 0.27.0" 2024-10-14 13:41:08 +00:00
Zuul
87588131d8 Merge "Remove unused dependencies" 2024-10-14 13:41:06 +00:00
Bo Tran
608e986028 Make more flexible with locality options
Story: #2011175
Task: #50587
Change-Id: I50673a72c7da3ac1341559a0d5264349454370c4
2024-10-14 12:41:37 +00:00
OpenStack Proposal Bot
50f62389b5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib1a2903d4d5bcd90202b8771f71904e47dc4bf49
2024-10-02 03:34:11 +00:00
Takashi Kajinami
d3516167ab Remove workaround for eventlet < 0.27.0
This code worked around a bug in eventlet[1] that has been fixed in
115103d5608cbe8f15df10e27eba1644f5364e95. The fix has been available in
every eventlet release since v0.27.0.

[1] https://github.com/eventlet/eventlet/issues/592

Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: Idb0d7d46b149d600ac34442ad53e4d78713f7f2f
2024-09-28 14:50:23 +09:00
Takashi Kajinami
65fbb64049 Remove unused dependencies
Remove the dependencies which are not actually imported by any logic
in trove.

Change-Id: I3c80c30b2667a3e5d121b95a7fdcc22d856b88c7
2024-09-24 12:18:56 +09:00
af2bea2dcc Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: I84d4fe645bf2f18fdbbcfbd0c9cd81b44f738152
2024-09-16 10:53:30 +00:00
Zuul
3818b4d349 Merge "tox: Drop envdir" 22.0.0.0rc1 22.0.0 2024-09-03 09:14:31 +00:00
wu.chunyang
67cf067534 Drop centos8-stream jobs
Change-Id: I37e84f270fbcbc92ea610c3ef90cfeca6dd28438
2024-09-02 10:38:52 +08:00
Tobias Urdin
8236254064 Replace deprecated LegacyEngineFacade
LegacyEngineFacade was deprecated in oslo.db 1.12.0 which was released
in 2015.

Change-Id: Icf08ac7cc7144e9bdd7d8bd6e124d84cab172e07
2024-08-27 17:04:33 +02:00
wu.chunyang
0759d68135 Remove outdated migration script
Change-Id: I6365b37b7b31dbc7337aa4903e4ad4cf27df9faf
2024-08-23 22:42:06 +08:00
Andrew Bogott
b1c74bf6bf guestagent: implement 'rebuild' for postgres manager
This is almost but not quite a copy of the same function
from  mysql_common.

Story: 2011172
Change-Id: I232f53bdbba0d0a17dfda395b89300419879575e
2024-08-17 07:46:46 +00:00
Zuul
7358330c14 Merge "Add UID/GID configurations for each datastore" 2024-08-17 06:48:24 +00:00
Bo Tran Van
27778a90d0 Add UID/GID configurations for each datastore
When trove prepares a container, it grants permissions for folders with
the default user/group "database" (ID 1001). However, some Docker images
require a different user for provisioning the database. Therefore, we
need to make it flexible so that the database container can run with
the required user and group, regardless of the default settings.

Story: #2010827
Task: #48386
Change-Id: Ie0268951db7a9e711089714cecf7fbf311eecec8
2024-08-16 06:16:41 +00:00
wu.chunyang
3f521cb7f5 [CI] fix trove gate
Change-Id: Iba06db045fa2c7c32aee8331c4683c7d9aa61e08
2024-07-25 12:52:37 +08:00
Takashi Kajinami
be9bd3f3a0 Use policy to determine admin context
Currently the logic to determine the admin context is controlled by
the [DEFAULT] admin_roles option but this requires that users set both
policy and the option properly.

This replaces the option by a new policy rule so that users can define
all policy related settings in the policy.yaml file. This also allows
users to create their is_admin rule with not only roles but also with
other elements.

Change-Id: Ib9d003065f943a5382e1079397bfde4292f5dabb
2024-06-16 02:36:21 +00:00
Hirotaka Wakabayashi
114601edba Introduces Alembic database migration tool
This PR introduces Alembic database migration tool. Trove currently
uses sqlalchemy-migrate with which SQLAlchemy-2.0 does not work. By
introducing the new migration tool, we can prepare for migrating
to SQLAlchemy-2.0.

This change will not affect the default trove-manage's usage while
the database schema versioning will be changed because alembic uses
non-linear, dependency-graph versioning while sqlalchemy-migrate
uses integer based versioning.

Depends-On: https://review.opendev.org/c/openstack/trove-tempest-plugin/+/921589

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

Story: 2010922
Task: 48782
Change-Id: Idd63f470a2b941720314b6356fe28cd8e394427e
2024-06-13 16:20:52 +08:00
Zuul
7501804a9f Merge "reno: Update master for unmaintained/zed" 2024-05-20 03:35:38 +00:00
7d2ed80c03 reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I4c7402585066815781dddb0035be89f817c4cef4
2024-05-08 11:17:56 +00:00
Takashi Kajinami
3a69bd353b Remove extras and enum34
Trove does not use extras and it was removed from the top-level
requirements by 2cc36175c8dec51824c716304a7dd16c3d1038ef .

Also enum34 is no longer required because now the minimum supported
python version is 3.8 .

Change-Id: I62c04ccc3c8157a86fa8b5a307983ba0796111b0
2024-05-07 12:54:12 +09:00