Commit Graph

21 Commits

Author SHA1 Message Date
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
wu.chunyang 40363f870d [CI] optimize the image build script
using --build-arg which was provided by docker to
replace the sed tool

Change-Id: I93c8c98001d82d802b91ba2a4d042149cff36da4
2023-07-25 13:51:55 +08:00
wu.chunyang db24fc01db Using 5.7.29 tag for mysql image.
mysql:5.7 image always links to the lastest mysql 5.7 image,
this may not be stable for our CI test.

Change-Id: I8845918929aeb3c35270be9148120a1f445e3fa9
2023-03-29 20:34:43 +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
Luigi Toscano ca4e029f2a Remove the definition of trove-grenade
(and of its now unused parent trove-legacy-dsvm-base)

The job is not used in this repository anymore (since
I49bd6c824b837d22d9f3945a3e8c2343c831b352).
It was only used by grenade.git, but that usage has been removed
by I8f976041e98502de4770ece8cb7f04a928e8f3d9.

Moreover, it is a legacy job and it should be ported to a native
Zuul v3 job, and more important it doesn't really test the upgrade,
because there are no grenade plugins for trove.

An upgrade job is useful, but a grenade trove plugin should be written
first and a new native job should be created instead of restoring
the legacy one.

Depends-On: https://review.opendev.org/749212
Change-Id: Ib5ecc496aee28a6a2bbb01138e1f511bfc179302
2020-09-01 12:08:46 +02:00
Lingxian Kong aa1d4d2246 Datastore containerization
Significant changes:

* Using docker image to install datastore.
* Datastore image is common to different datastores.
* Using backup docker image to do backup and restore.
* Support MariaDB replication
* Set most of the functional jobs as non-voting as nested
  virtualization is not supported in CI.

Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
2020-05-27 10:31:50 +12:00
Lingxian Kong e048feb145 Remove some unrelated code
Change-Id: I4c2057e2bde8fd1169ca52a15ccca66740e9f069
2019-12-15 23:16:26 +13:00
Lingxian Kong a0a10f0b94 Support HEALTHY status for db instance
- 'HEALTHY' means the db service is responsive, 'ACTIVE' means the db
  service is alive.
- Remove the CI job fakemodetests, but will add similar testing task in
  the future.
- Fix the periodic CI job
- Remove MongoDB and  related jobs

Change-Id: I5abe9091ba203297dc87db5fba139179166321f7
2019-12-14 12:55:56 +13:00
Ghanshyam Mann e6f55c57d5 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Trove is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I6b448747c873bfc9c0138c0f7e3ca67ddce02dee
2019-12-05 22:38:19 +13:00
Lingxian Kong 52bfbd641d Add CI job to build Ubuntu Xenial based Trove guest image for dev
Change-Id: I7beb6849abbfc889bae29668deb4ba7ae93df91d
2019-12-05 07:47:41 +13:00
Lingxian Kong 062871b7ed Add branch param for image building
Change-Id: I7874d498eb80c0b5cda802acb76e5fe399770e6a
2019-09-26 14:32:39 +12:00
Lingxian Kong 86f0ace357 Fix Trove periodic job
Change-Id: Iaa6b7e04ab3882d426b8943591fc9189243d69c0
2019-09-23 22:23:13 +12:00
Lingxian Kong 757a873963 Some clean up
- Remove the unused variables in trovestack.rc which leads to
  module not found error.
- Remove non-voting gate job

Change-Id: I583945addb6cb0aa442db1c9d9c6ce3cb57793f7
2019-09-20 08:51:21 +12:00
Lingxian Kong 0cdf8b20b6 Add image build experimental CI job
Story: 2006553
Task: 36637
Change-Id: I3d909082fb887b24ed25c93e11792031d5053b1e
2019-09-17 22:23:43 +12:00
OpenDev Sysadmins 13711bd589 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:15 +00:00
Ian Wienand 007821e830 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I7f2db9189611a1e2121d9e7bacd35c05382b5915
2019-03-24 20:36:20 +00:00
Zhao Chao d2868a59cb Migrate to Zuul v3 native job definitions
This patch migrates the legacy gate jobs to Zuul v3 native ones(a new
trove-devstack role is created for all those legecy jobs, and the
previous way of running gate jobs is still kept as we still cannot
migrate the genade job to a Zuul v3 native one), following the
documents below:
https://docs.openstack.org/infra/manual/zuulv3.html
https://docs.openstack.org/devstack/latest/zuul_ci_jobs_migration.html

Change-Id: I10a1adae3a79b7322118fce180119f0ee5ff2e1b
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-07-17 10:29:55 +08:00
Zhao Chao ceaaf161e3 Raise timeout for instance resizing checking job
Recently the trove-functional-mysql usually failed by timeout at
the test_instance_returns_to_active_after_resize case, and the cause is
creating and resizing instances could be quit slow(e.g. 1200+ seconds).
This may be caused by the pressure of the CI system and should be
further investigated. The patch is a quick fix for the problem by
raising the timeout to 30 minutes(it's now 900 seconds by default, but
instead it's 32 minutes for instance creating, so raising the value to
30 minutes should be reasonable).

Partial-Bug: #1778837

Change-Id: Ib903a72b098499553978ec881843a7bbee25b45f
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-07-09 23:14:40 +08:00
Andreas Jaeger 366ce38eb1 Import experimental Zuul jobs
Import all experimental jobs for trove.

Also, rename jobs to drop the unneeded dsvm to follow the Zuul v3 naming
conventions. For details, see
https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3

Change-Id: Iee42e3b667aa114f6c9a6ff03b7da6f0c4708812
2018-01-13 07:28:27 +01:00
Chandan Kumar a4784a0753 Move legacy trove zuul jobs to trove project
Change-Id: I58e6a5e6c8ce6eb660729cabe6bbcd7d2746129a
2018-01-05 16:42:23 +05:30