187 Commits

Author SHA1 Message Date
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
Lingxian Kong
f8ca333b43 Correct some information in docs
Change-Id: I27815fe075aa7cae49d24d57e9e48c091376a213
2020-06-24 13:14:36 +12:00
Nguyen Thanh Cong
d2643794a8 Update location of file validation-rules.json
Change-Id: If95cd6ff63dfb42970903e945adf4dcb38eb97ae
2020-06-16 16:57:43 +07:00
Lingxian Kong
428e3644f8 Support image type for guest image building
Change-Id: I8d640c47f00446d7f912ece9892b17585cde3add
2020-06-12 22:41:23 +12:00
melissaml
b77f7b9fe7 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Change pygments_style to 'native' since old theme version always
used 'native' and the theme now respects the setting and using 'sphinx'
can lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not
needed during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the
renames before the next release removes them. A couple of variables
are also not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ic5ff4981e5ed09885fd2aaad7508d58d2b2cccc7
2020-06-05 07:39:41 +00:00
Zuul
3202b321b3 Merge "Set status to ERROR if heartbeat expires" 2020-06-04 02:57:23 +00:00
Lingxian Kong
dc117d8dd8 Set status to ERROR if heartbeat expires
Change-Id: Ib8f5062094c0ec7766d4c6c6e7c3c8168e15ebd6
2020-06-04 10:12:04 +12:00
Zuul
9a48491aeb Merge "Support to generate config sample file" 2020-05-29 21:56:04 +00:00
Zuul
ff4b6a1339 Merge "Add doc for how to run functional test" 2020-05-29 13:25:44 +00:00
Lingxian Kong
87b65e3c05 Support to generate config sample file
Change-Id: Ic9dc4630dd96227eb8a655c3aac223316d5a060e
2020-05-29 23:13:29 +12:00
Lingxian Kong
5011892b37 Doc: update trove design
Change-Id: I8497395e5c685fd599b147028ec6fd0b061461fd
2020-05-29 22:43:37 +12:00