Commit Graph

208 Commits

Author SHA1 Message Date
wu.chunyang 421721a3e1 Enable network_isolation by default
We have already tested this feature on our CI for an entire cycle.
It's ready to be enabled as the default value.

Change-Id: Ifbe862020f7c2b1f6684164d2a26bb5ceb37bec3
2024-04-02 15:19:29 +00:00
Zuul a2775ec2aa Merge "Get rid of nose and Proboscis" 2024-03-29 08:26:04 +00:00
wu.chunyang 93f35c7f04 Get rid of nose and Proboscis
they are not maintained for a long time, and trove already switch
the tests to templest.
This commit removes the usage of them. more details see story.

Story: 2010882
Task: 48606

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

Change-Id: Ie021e0bd708cf8ed13853dea632312af38190205
2024-03-28 07:07:15 +00:00
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
Hirotaka Wakabayashi 67e1389221 Updates guest-agent image issues
TThis PR fixes the default value of docker images and adds docuemtation
fro building docker container images.

The default values of docker image should be something that makes users
change the value before they start using Trove because Trove team
currently does not plan to maintain the following docker images on
https://hub.docker.com/u/openstacktrove

Since Victoria, Trove switched GuestAgent's image from VM to Docker,
however the building guest image docs does not contain how to build
docker container images.

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

Story: 2010804
Task: 48288
Change-Id: I7047d888c4340f16ca2a1a77b5f9c34ba75b5a30
2024-01-11 04:31:58 +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
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
Takashi Kajinami f62d3197c4 Do not configure removed [DEFAULT] rpc_backend
This option was removed in oslo.messaging 9.0.0[1].

[1] https://docs.openstack.org/releasenotes/oslo.messaging/stein.html#relnotes-9-0-0-stable-stein-upgrade-notes

Change-Id: I11660751532dde117bbf509302fbde594e3911b1
2023-03-20 03:29:35 +00:00
Zuul 9bc08ffdc0 Merge "Updates the backup document" 2023-01-29 07:32:44 +00:00
Hirotaka Wakabayashi 3a27069307 Updates the backup document
This PR updates the backup document[1]. The page contains wrong descriptions
since we have many updates for years.

[1]: https://docs.openstack.org/trove/latest/user/backup-db.html#create-incremental-backups

Story: 2010323
Task: 46430
Change-Id: Ief3d3b98b55c02e185edb2294b9c723843e62086
2023-01-28 22:27:00 +09:00
Hirotaka Wakabayashi a39d7f9a29 Adds database_service_uid to the document
This PR adds the `database_service_uid` configuration option to the
document.

Story: 2010259
Task: 46154
Change-Id: I11aa38d2ff0da058590ec2b089756a659cad777b
2022-10-31 13:48:00 +09:00
wu.chunyang 44c3cdef5c Rename app.wsgi to app_wsgi.py
1. app.wsgi is a python script and should be end with py extension.
2. Generate trove-wsgi script which is needed by kolla to support
https and ipv6.
3. Ignore build directory in git
4. update docs

Change-Id: Ibbd6ecb8db25aa3a443d3f526f4cf6d418eb26f3
2022-08-25 11:10:33 +08:00
Zuul 7d6105c9f9 Merge "Uses ML2/OVN as network backend driver" 2022-08-15 01:20:00 +00: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 f9f3bca8f7 Add release note(aka. reno) guide
This PR adds reloease note guide for trove project and
renames some notes due to uid collision

Change-Id: I55f49425dc3df6599ff6714efd8f7c1dc656ddf2
2022-07-11 21:56:26 +08:00
Hirotaka Wakabayashi 3a36efe117 Uses ML2/OVN as network backend driver
This PR updates the Trove install instruction page using devstack to use
OVN as network backend driver. Devstack has changed the default value of
Q_AGENT to "ovn"[1] a few month ago, but The current Trove installation
docs uses old network backend driver.

[1]: e38a39ad40

Story: 2009925
Task: 44793
Change-Id: I10c7bf08324a2422fba8fcfa4aa238ac8d006030
2022-06-20 18:48:32 +09:00
Hirotaka Wakabayashi 0b5b93c49b Uses userdata instead of personality files
This PR uses userdata instead of personality files because of Nova's
deprecates personality files[1] since the the NovaApi-2.57 microversion.

Original problem is guest instance creation failure due to the lack of
guestagent configuration files because of the recent code chage[2].

[1]: https://review.opendev.org/c/openstack/nova/+/522027
[2]: https://review.opendev.org/c/openstack/trove/+/823632

Task: 44821
Story: 2009934
Change-Id: Id6a6aae3de17c12001b1e9946a4c0ce28ff29f73
2022-06-20 09:46:21 +09:00
wu.chunyang 2725612128 Add python3.9 support
Add python3.9 support and set the default test env
from py38 to py39

Change-Id: Ie1a4790762b80b8f60eda86b879b73b8a6005eba
2022-04-28 21:50:45 +08:00
Hirotaka Wakabayashi 2d56cd42aa Fixes the wrong instruction
This PR changes the "configuration" command parameter name from
"datastore_version" to datastore-version. The parameter name has
changed from "datastore_version" to "datastore-version"[1].

The original problem is what I got an error when I try to create
a configuration: "openstack database configuration create: error:
unrecognized arguments: --datastore_version ..."

[1]: a57568397e

Story: 2009960
Task: 44928
Change-Id: I94e02cfd4026c56a05b3acccc3a5327b54e6b585
2022-04-04 15:24:58 +00:00
Hirotaka Wakabayashi 3409bd4259 Defines Q_AGENT openvswitch explicitly
This PR fixes Trove installation errors using devstack. We need to set
Q_AGENT as openvswitch explicitly in local.conf when we continue to use
openvswitch because devstack recently changed the default L2 agent from
openvswitch to OVN[1].

[1]: https://review.opendev.org/c/openstack/devstack/+/735097

Task: 44754
Story: 2009913
Change-Id: I270bff21e0621ba59607a31607303f7d06d4a054
2022-03-11 22:32:52 +09:00
Lingxian Kong be86b79119 [Doc] Describe the usage of root_on_create option
Change-Id: I8a64f3dfaae824d03927d291d3510ffd04fc1995
2021-10-06 13:16:40 +13:00
Lingxian Kong c3a8930eb1 Doc: Upgrade trove guest agent
Change-Id: I0140da9d9bea575d947fd48004088a258d95b5a9
2021-08-17 13:56:42 +12:00
Lingxian Kong 5590ecdce0 Show user network ID for getting instance
Change-Id: Ia1e9112ae69e04f8c3e9e9d1b4a0189c743d7448
2021-08-02 14:25:54 +12:00
Lingxian Kong 02971d850b Add periodic task to remove postgres archived wal files
* Added a periodic task for postgresql datastore to clean up the
  archived WAL files.
* Added a check when creating incremental backups for postgresql.
* A new container image ``openstacktrove/db-backup-postgresql:1.1.2``
  is uploaded to docker hub.

Story: 2009066
Task: 42871
Change-Id: I235e2abf8c0405e143ded6fb48017d596b8b41a1
2021-07-23 22:16:20 +12:00
Lingxian Kong ce8014eca9 Add doc for running unit tests
Change-Id: Ib6a55b65767e89eb5411783934aa3cc362505dcb
2021-07-13 09:23:46 +12:00
Dmitriy Rabotyagov dfca9b1943 [doc] Add configuration reference
Config reference has been dropped for some reason several releases before.
We return configuration reference along with policy to the docs.

Change-Id: I0927466d18eca5572932fcf9e2ca6349b11ca847
2021-04-06 06:37:59 +00:00
Lingxian Kong f003800b30 [Doc] Add another method to check guest agent log
Change-Id: Id163bdb1b30cf8057f3bd171448a8771194ee8ec
2021-03-25 10:18:08 +13:00
Lingxian Kong 7dc95b61bc doc: Restore backup from other regions
Change-Id: Id9d9ea26d2a9cdc45d9e84764a49baa46d052281
2021-02-22 15:25:28 +13:00
Lingxian Kong 6fdf11ea7f Support to restore backup from remote location
In multi-region deployment with geo-replicated Swift, the user can
restore a backup in one region by manually specifying the original
backup data location created in another region.

Change-Id: Iefef3bf969163af707935445bc23299400dc88c3
2021-02-18 17:34:37 +00:00
Lingxian Kong 6edd3332b6 Doc: custom container image registry
Change-Id: I6a144fbf5d79c29dc204483bb7403ea850983a73
2021-02-09 00:00:34 +13:00
likui 5d641033d4 remove unicode from code
Implements: blueprint remove-unicode
Change-Id: Ib7eb517f404fe87b880f7091366721d2cfc5cdf8
2021-01-03 16:42:47 +08:00
Ghanshyam Mann bcb8992f99 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I790409da69df8479ad2fe152b15c32ba45067c23
2020-12-26 05:30:18 +00:00
Lingxian Kong ca04c94ef6 Support instance operating_status
Added a new field ``operating_status`` for the instance to show the actual
operational status of user's database.

Change-Id: I7c52cff0ec48289fe1a260e99e02a506d4f8ddec
2020-12-09 14:17:16 +13:00
Zuul 0fe2f69dff Merge "Remove the experimental claim of dev_mode false" 2020-11-27 12:46:03 +00:00
Lingxian Kong 7f62f199d2 Fix the guest service name in troubleshooting guide
Change-Id: Icae399527211a2c4f50b04889b5e1ba09b4982ed
2020-11-27 13:09:20 +13:00
Lingxian Kong 9dd8e31516 Remove the experimental claim of dev_mode false
I am using the guest image built by dev_mode=false for some time, it's stable.

Change-Id: Ic74d10647f82044038ea9a4d99cb9a0320459675
2020-11-27 11:30:38 +13:00
Lingxian Kong da2da6969a Support --image-tags for trove-manager datastore_version_update command
image-tags was introduced in commit 1d24b65 but the implementation was
backward incompatible for the CLI `trove-manager datastore_version_update`.

This patch changes that by supporting an optional parameter `--image-tags`.

Change-Id: I583c296f15a453bdfadf10de5c678ac483cbd4dd
2020-11-26 11:06:55 +13:00
Lingxian Kong c9e27cab76 [Doc] Support datastore version number
Story: 2008358
Task: 41264

Change-Id: I45ba63454f5b9c29d95c67e49b44f8233dda18fb
2020-11-22 09:55:47 +13:00
Lingxian Kong 71d99e2c56 Add doc for running functional test
Change-Id: I0bb1619435b5fb7cfcc4ea55691d728413939fef
2020-10-31 19:01:35 +13:00
Zuul 347c2c2ee9 Merge "Warning user running command trove-manage db_recreate" 2020-10-21 21:24:50 +00:00
Ivan Kolodyazhny 6a12e59601 [TrivialFix] Fix '--replica-of' argument format in docs
Change-Id: I1410951c46654f1aad0e3aa2904ed006d629c41b
2020-10-19 18:54:17 +03:00
Lingxian Kong e21f90a025 [Doc] datastore guide
Change-Id: Id2ab6f94a372395563eef12a6fd5f0682eb94777
2020-10-13 10:27:49 +00:00
wu.chunyang 9e2515aad3 fix typo in docs
replace datastore_version with datastore-version in openstack client.

trivial fix

Change-Id: I5b5198c41af2f6463bf18b49de6f85080c5e05f8
2020-10-12 17:10:03 +08:00
Lingxian Kong e3429a5b53 Add resource quota description for production guide
Change-Id: Id51ec601e84a3fcf9cfe2ab206a91126a4af9321
2020-10-12 19:23:46 +13:00
Lingxian Kong c1be8a41d9 Support database version image tags for creating instance
Change-Id: If6ffacb5bab1aa5ffc51dd5678bd110c0beeb51d
2020-10-09 13:44:38 +13:00
Lingxian Kong 1d24b65052 Image tags support in datastore version
Change-Id: I0e51d08515c121e3a7b0e82b6e4c4161bb4fbc4a
2020-10-09 11:43:48 +13:00
Zuul d4941f01bd Merge "Update OS Ubuntu and fix create configuration" 2020-10-02 12:19:36 +00:00
Nguyen Thanh Cong 2a87b1c568 Warning user running command trove-manage db_recreate
Warning because when running command it will drop database and loss
all data with no optional or confirm.

Change-Id: Id81523e844213c806e0f4965deea9bb43b0b5a5e
2020-10-02 16:50:45 +07:00
Nguyen Thanh Cong 20c4551533 Update OS Ubuntu and fix create configuration
Ubuntu 14.04 can't install Openstack latest, update to Ubuntu 18.04.
Create configuration need specific --datastore_version if no default
datastore is defined.

Change-Id: I78ab5fcb64837166a9807fbcc414a2538f85b6ac
2020-10-02 16:43:38 +07:00