199 Commits

Author SHA1 Message Date
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
Nguyen Thanh Cong
d36f82a990 abbreviation error correction
Change-Id: I246524f7a9edba2092469d487f341255b8be6e70
2020-10-02 09:32:39 +07:00
Lingxian Kong
d75151bbe4 [Doc] Improve building Trove guest image instruction
Change-Id: I96c9c70aee9363880c0ba9372a347a80fa930e14
2020-09-21 17:23:45 +12:00
Lingxian Kong
72e20e4e97 Only enable user and database API for MySQL
Change-Id: Ic59f2fd94c5f216414effe7d13d0dd486dce9243
2020-09-13 19:13:53 +12:00
Lingxian Kong
9e7c4c0832 Trove upgrade guide
Change-Id: Ib270f967cd9dc2ee72c96d93baa853c0a4e8c780
2020-08-14 11:06:39 +12:00
Lingxian Kong
6b1c31e2ed Add instruction for upgrading trove guest agent
Change-Id: I574f93d2023d35b2ede0e6e532a06ea1bdddad5f
2020-08-07 09:08:48 +12:00
Zuul
be6f8565f5 Merge "Using same config with primary for replicas" 2020-07-27 04:08:07 +00:00
Lingxian Kong
efb6a811be Using same config with primary for replicas
Change-Id: Icadc95ea54e4509dc148f8e84f2eaac5840509f3
2020-07-27 09:28:17 +12:00
Lingxian Kong
309555210a Fix oslo-config-generator command example in doc
Change-Id: Iaa4a1793e6ed9e42e516c72545c04278b1fcd291
2020-07-24 14:09:56 +12:00
Lingxian Kong
828e873846 Support backup strategy API
Change-Id: I0ddd7214dae6e29ddfaf045fdb282f4980a8afff
2020-07-17 11:35:53 +12:00