36 Commits

Author SHA1 Message Date
wu.chunyang
67cf067534 Drop centos8-stream jobs
Change-Id: I37e84f270fbcbc92ea610c3ef90cfeca6dd28438
2024-09-02 10:38:52 +08: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
Ghanshyam Mann
a2447137d9 Retire TripleO: remove the TripleO jobs/ref
TripleO is retired so removing its jobs/ref

- https://review.opendev.org/q/topic:%22retire-tripleo%22

Change-Id: Id6fc86b570627bc6863dde330877966da3126fe6
2024-03-20 08:23:44 +00:00
wu.chunyang
d275bff01b [CI] setting backup&replication voting to false
There are many cases where these jobs fail due to swift errors.
We don't want to always recheck these jobs.

This commit set backup and replication jobs' voting to false.

Change-Id: I202af622df280df435bb237396627a715dd5d299
2023-12-27 21:37:00 +08:00
wu.chunyang
69cfc9b081 [CI] Allow to perform insecure SSL requests to swift
Allow guest_log api to get logs from swift over insecure
SSL

Change-Id: I9ffcba08635ec5932703762ece140234807174ba
2023-12-20 11:45:08 +08:00
wu.chunyang
c73fe38cdf [CI] Fix Ci failure
increase TROVE_AGENT_CALL_HIGH_TIMEOUT to 1800s
increase SWIFT_LOOPBACK_DISK_SIZE to 15G
increase backup_time_out to 1200s
Don't test resize case due to the restriction of zuul node.

Change-Id: Ie19c4226ddc2e4be11b6cc7a17fe517463cf6cd2
2023-12-13 13:46:06 +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
Takashi Kajinami
2a1fff5c25 Remove unnecessary ceilometer service overrides
The ceilometer services were removed from core devstack a long ago[1].
Unless the additional plugins are installed, overriding status of
the ceilometer services is just useless.

[1] e9a4750fe1b111eeb457378c26ca9eea1b5e0085

Change-Id: I1abd9da77088702a23599d5386bc2bdd62c988cc
2023-12-04 16:38:02 +09:00
wu.chunyang
48439619b5 [CI]Add postgresql jobs in zuul
This commit adds postgresql jobs in zuul and cleans up the outdated
jobs.

Change-Id: I538042576702c8ea4b83f85b08dccbd7d204e9fc
2023-11-14 13:02:30 +08:00
wu.chunyang
603a2f48f0 [CI] Add mariadb10.4 jobs in zuul.
Add mariadb10.4 tests in zuul.

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

Change-Id: I5635a7e5fb2fe8bbd6e6dfa56fe7969f3a03cf9c
2023-11-12 22:43:49 +08:00
wu.chunyang
aaaad924b0 [CI] Improve CI tests for mysql
As the previous jobs always timeout in the CI system, This commit
separates the task to multiple tests to prevent timeout.

This commit also adds replication tests for mysql

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

Change-Id: Ie555be434f773ac9e48022dd2ff763a16c2aaee7
2023-11-01 14:54:07 +08:00
wu.chunyang
d438839cf9 [CI]: test mysql 5.7 version instead of 5.7.29
Change-Id: I46902522645fc9b2697072dffe6373b527a2d962
2023-10-25 01:12:21 +00:00
wu.chunyang
e4079989db Fix Zuul warnings with regexps
zuul now reports warnings when using perl-style regexp:
| The RE2 syntax error is: invalid perl operator: (?!
for
| branches: ^(?!stable)

This commit fixes it by using the correct RE2 syntax

more details: https://zuul-ci.org/docs/zuul/latest/project-config.html#regular-expressions

Change-Id: Iab9d4849d50c01ff35ce159a988fde95593f7ebf
2023-09-06 20:04:48 +08:00
wu.chunyang
e1b72b5115 [CI]: Add support for Ubuntu Jammy
Run tests on Ubuntu Jammy in zuul.
refer to:https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: Ib12b92ed4ddd9133ad7a3d079534d02f403dbdc0
2023-09-01 15:29:04 +08: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
Katarina Strenkova
f5eb742616 Replace deprecated terms
Following up on	the usage of inclusive jargon [1] and to ensure
consistency in code, there is a need to replace deprecated term
tempest_test_blacklist with a new term tempest_test_exclude_list.

[1] https://review.opendev.org/c/openstack/tempest/+/768583

Depends-On: I68cc25b9126115171f10637b742fa3d503394ad5

Change-Id: Ia184c0a08f2ada36154e085bb31707b24f6c562b
2023-08-01 11:34:01 +00:00
wu.chunyang
2ade4d87ac [CI]: fix the tox cover zuul jobs.
Change-Id: I8d16d9c07afeb2c31467c4de5558d1c4f3b9d328
2023-07-16 21:53:36 +08:00
wu.chunyang
7a6666f4f3 [CI]: Don't run periodic jobs on stable branchs
we don't need to pulish trove image with stable branches everyday.

Change-Id: I72e68d9e7df6a82b4635abac995299be770546ce
2023-06-29 03:39:35 +00:00
wu.chunyang
22df03a0c6 CI: fix trove tempest postgresql job
this change increases the tempest test timeout to 3600s

backup_test is often not finishing in 20 minutes in the gate.

Depends-On: https://review.opendev.org/c/openstack/trove/+/886241

Change-Id: I7ee2c69af82a19846931e771e846a97c042ffa15
2023-06-16 11:48:18 +08:00
wu.chunyang
09fd606163 synchronize guest logs to controller node
use rsync to synchronize guest logs to the controller node so that we can
find the logs even after the instance is deleted

Add a guest-log-collection timer, this timer triggers
guest-log-collection service every 10 seconds

Change-Id: I264235ce7b7df585358654c46bdac4dcd743fb3d
2023-06-13 10:39:25 +08:00
wu.chunyang
06c8ed94ab Revert "Add debug log for CI tests"
This reverts commit 49c16b889b68039b068eb420f345efdfaafcc1cc.

Reason for revert: this patch doesn't work as expected

Change-Id: I398dd7ac8c628d19b75693dcac0521346e8f5d64
2023-06-07 06:25:10 +00:00
wu.chunyang
49c16b889b Add debug log for CI tests
When the CI fails, specifically related to the Trove guest agent,
we are unable to find a way to debug it.
this patch synchronizes the guest agent logs to controller nodes.

Change-Id: I24695238075f9b1354ee4c54673d021de481a868
2023-06-06 15:43:44 +08:00
wu.chunyang
ee3ba2375b Remove tempest ipv6 job to experimental pipeline
As nobody maintains this job, Remove it to experimental
pipeline to optimise the CI bandwidth.

Change-Id: I525b930fa78d90966e1e5800348b709fc40a7e12
2023-05-22 19:23:46 +08:00
wu.chunyang
7d4b17339e Test 5.7.29 for mysql datastore
we test a exact mysql version in CI

Change-Id: Icb0fe4b7357805410de9e8c9f6c9c8a5284827c0
2023-03-31 13:51:26 +08:00
wu.chunyang
05522c766f Ignore more files for zuul jobs
Change-Id: Ib00fdb1b4e64b5e0c017024d2772e236ce6dc8bc
2023-03-22 23:26:06 +08:00
wu.chunyang
3040b40de5 Remove unmaintained zuul checks
Change-Id: I4ed80bd449777c3515be646d9ab5b2add4e15b36
2023-02-28 20:12:46 +08:00
wu.chunyang
1f1e2becfe Using local registry in devstack.
This patch runs a registry container during the installation of
devstack

Change-Id: I5e5a89cd9c65d1ea5b47fece985dbc044bfdec5e
2023-02-26 17:27:17 +08:00
wu.chunyang
3134fd478d Follow up: CI: test build docker image
The previous patch forgot to push the tarball to openstack website.
This change adds a task to push it and replaces hard quote with soft
quote

Change-Id: I8619621b4348bff26808104e4f9e070c64429c3f
2022-11-23 18:57:18 +08:00
wu.chunyang
5a960b37a4 CI: test build docker image
Change-Id: Ia8ce0d8ec8f099501a39dc8bdff53a394bd53fea
2022-11-18 14:25:22 +08:00
likui
d77529b5ce add openstack-python3-zed-jobs-arm64 job
This is a non-voting job to validate py3 unittests on ARM64

Change-Id: Ib987c25f125c8867c21d5aad90c3d2aac3050825
Task: #40402
Story: 2007938
2022-10-10 09:30:25 +08:00
346e161220 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7c81bf7a43d91c5e63a3dc3ca34528667c4966b5
2022-09-26 01:16:59 +00:00
wu.chunyang
8ef65e0e49 [CI] Move queue setting to project level
Per [1].

[1] http://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Change-Id: I217033ab7266e9760ee92eb46401a11b82990030
2022-09-20 11:28:13 +08:00
wu.chunyang
8ea76a145a Drop bionic support
drop the support of bionic.
ref:
https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I6dd126d49196af30bd5578c6aefa90fff9f1d5c1
2022-08-12 06:51:00 +00:00
wu.chunyang
2f8f2f8d92 Add ubuntu focal support for trove guest image
story: 2009996
task: 45072
Change-Id: Ib3613119dc136c8a0d96a27c52e0bc1874065775
2022-04-19 09:49:03 +08:00
wu.chunyang
4d8e55c5fe Add image build test on Centos8 stream
build image on Centos8 stream

Change-Id: I759d482430eaf0e9304986c9fad047cbd44c09ca
2022-04-17 16:53:52 +08:00
wu.chunyang
c0ad3f8c64 WIP: add guest image build check
This PR adds trove-guest-image-build check in ci.

Change-Id: If512cb7c094d14850555215d412b8e7b418c35ce
2022-04-13 22:51:20 +08:00