Commit Graph

82 Commits

Author SHA1 Message Date
Alexander Epaneshnikov 3ba1f0d955 mysql: explicitly use utf8mb3
this fixes mysql v8.x.
in mysql 8.0+ utf8mb3 is deprecated and utf8 alias doesn't work.

Change-Id: I548eb43a3d5adbd84957b6b92d4b172bfdfb80a8
2023-06-29 08:21:52 +00:00
Lingxian Kong f3459e2662 Allow regular user to get quotas
The project user can query the project's own resource quota.

Story: 2009140
Task: 43082

Change-Id: Iebac740e982a89fcf882a2cfc3e447ac53ee6656
2021-08-25 17:14: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 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
likui 5d641033d4 remove unicode from code
Implements: blueprint remove-unicode
Change-Id: Ib7eb517f404fe87b880f7091366721d2cfc5cdf8
2021-01-03 16:42:47 +08: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
Lingxian Kong 589e4ec45a Support datastore version number for configuration
Story: 2008358
Task: 41263

Change-Id: I529a07d50c0659af0c9821a8570f7548e8521805
2020-11-22 09:38:51 +13:00
Lingxian Kong 19552632f8 [API Doc] Support datastore version number
Change-Id: Ia38f313a87067f664e11b3f61fb60b6ce584e930
Story: 2008358
Task: 41263
2020-11-19 19:13:05 +13:00
Zuul 4df3dceeee Merge "Update quota API description" 2020-10-22 11:24:14 +00:00
Lingxian Kong d77229e7eb Update quota API description
Change-Id: Ia8d36dca81e2dd028b36289cb4547c1a8b88a1b1
2020-10-22 21:31:26 +13:00
Lingxian Kong bfa2392d16 Support to get instances of a specified project
This patch also fixes a performance issue when the adm user is getting
all the instances.

Change-Id: Icd6345d6c97648cdfbfaa8d9edac7315a1409356
2020-10-21 23:31:01 +00:00
Lingxian Kong 1d24b65052 Image tags support in datastore version
Change-Id: I0e51d08515c121e3a7b0e82b6e4c4161bb4fbc4a
2020-10-09 11:43:48 +13:00
Lingxian Kong aa023d140b [Doc] More description for nics for creating instance
Change-Id: Icece27780e1834000cb3544d730873837587ecd3
2020-09-21 23:40:53 +12:00
Lingxian Kong 86a0102a00 Add project_id to backup response
Change-Id: I99fb3d0c7ea7036bbb622d86eef9f31e53065a0a
2020-09-15 10:08:57 +12:00
Zuul 2cd5bb6f83 Merge "Support getting backups of a specific project" 2020-09-13 22:32:16 +00:00
Zuul e6feda698f Merge "[Doc] Refine the root enable API description" 2020-09-13 12:36:57 +00:00
Lingxian Kong f79bb53a39 Support getting backups of a specific project
Change-Id: I6a6778ddbb1ee92da28a709be91b04873fe749fe
2020-09-13 23:55:11 +12:00
Lingxian Kong 7d2e6b7cc9 [Doc] Refine the root enable API description
Change-Id: Id144c0c73b10550a8b8d636beece37578c0af124
2020-09-13 22:21:00 +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 78d1a3760c [API doc] Add replica_of param for getting instance
Change-Id: I116655be2bbe9d31185608a947ee9f6ad1bc219c
2020-09-07 22:33:57 +12:00
Zuul efc9bae2b9 Merge "[API doc] Add more description for deleting backups" 2020-09-01 06:10:29 +00:00
Lingxian Kong 77ca2079a8 [API doc] Add more description for deleting backups
Change-Id: I24f3963c32a226411af8fe3155ff7d4a8ab5a880
2020-09-01 14:00:57 +12:00
Lingxian Kong 5e1cd054b8 [API doc] Improve description of swift_container for creating backups
Change-Id: Ie3d4c9994ae802db016a9d8c63fc2f1fad6cd77a
2020-08-31 21:14:05 +12:00
Lingxian Kong 4de40cb514 Support to update instance access
Change-Id: I640cd8b50fd0e0f80a1a45399b8bfdac437ae2b9
2020-08-11 09:35:14 +12:00
Lingxian Kong 680a43002b Show instance access information
Change-Id: I8c0a7827624ea432edc765ba14e1f6a7228509c3
2020-08-11 08:30:49 +12:00
Lingxian Kong cf3e9a6e74 Support to rebuild instance by admin
Change-Id: I48f8c6f997daeb6d82ff62b3325277d86fee2147
2020-08-06 20:38:11 +12:00
Lingxian Kong 8e48d757e6 Resize replicas (volume) together with primary
When resizing volume for an instance which is the primary of a
replication, cluster, Trove also resizes the volume for all the replicas
automatically.

Change-Id: I2e719772fe7abc719255ea2a705d9ec342aced2a
2020-07-28 09:13:05 +12:00
Lingxian Kong 828e873846 Support backup strategy API
Change-Id: I0ddd7214dae6e29ddfaf045fdb282f4980a8afff
2020-07-17 11:35:53 +12:00
Lingxian Kong d81542481b Doc: Fix configuration API
Change-Id: Ieff5200c220376f5927835f46c1b0a5a4f34052e
2020-06-16 22:46:16 +12:00
Lingxian Kong 5354172407 Support subnet and IP for instance creation
Support ``subnet_id`` and ``ip_address`` for creating instance. When
creating instance, trove will check the network conflicts between user's
network and the management network, additionally, the cloud admin is
able to define other reserved networks by configuring
``reserved_network_cidrs``.

Change-Id: Icc4eece2f265cb5a5c48c4f1024a9189d11b4687
2020-06-10 22:41:35 +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
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 910519127d Remove flavor API
Uses should get flavor from Nova.

Change-Id: Id26d71811f94cdcf4ff188c021d4ed5613eeb8cd
2020-04-27 07:04:05 +12:00
Lingxian Kong 429c39890e Support ip address type for instances
Include address type in getting instance response.

* Deprecate confip option network_label_regex as we don't reply on Nova
  to get addresses, network names don't make any sense.
* Add 'addresses' in instance API response, keep 'ip' as is but mark
  it deprecated in API doc, python-troveclient shouldn't break.

Story: 2007562
Task: 39445

Change-Id: Ia0458b5ddae8959ce29c17e444e1a51a026283cd
2020-04-26 09:56:50 +12:00
Andreas Jaeger cc1ccae629 Cleanup docs building
Remove build_sphinx from setup.cfg, it's not used anymore since this
repo uses sphinx-build directly.

Require newer openstackdocstheme version and remove settings in conf.py
that are now default.

Remove doc/source/install/conf.py, it is not used anymore.

Change-Id: Id89c664384c3ad443d701f5d4135a9f3f9f744d7
2020-02-22 19:11:19 +01:00
Lingxian Kong 4551a6cd7c Delete datastore
Admin user can delete datastore if there are no instances or backups
associated.

Change-Id: If15b79661859d5c40f4d9e5fe65e478954b6ddd4
2020-01-11 22:54:09 +13:00
zhufl a5f6c9b82c Fix duplicated words issume like "object of of the instance"
This is to fix the duplicated words issume like
"The ``links`` object of of the instance".

Change-Id: Id00df4734b20871c85a76a01d1b1693042ddbdd8
2020-01-06 15:26:01 +08:00
Lingxian Kong dacb400e0b Improve API doc
Change-Id: If48ef016c6fb7a875ceabc9f106e4cd85858d147
2019-12-24 22:15:09 +13:00
Lingxian Kong 75b9b686b1 Show service_status_updated in instance API
A new field named ``service_status_updated`` is added to the instance
API response which e.g. could be used to validate if the instance
'HEALTHY' status is stale or not.

Change-Id: Iabcfad81343a71304b843b3a7778486253220d20
2019-12-18 22:13:46 +00: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
Lingxian Kong f16020392d Add quotas resource operation in API doc
Change-Id: I2108f2c6bf067ce228829de9c4e7e47005acf358
2019-12-11 09:07:12 +13:00
Lingxian Kong 94dd0bd2b7 API doc: 'access' support for creating trove instance
Story: 2006500
Task: 36471
Change-Id: Ie0c4ead89316001107c02450627eb5491ff8b521
2019-09-11 20:45:20 +12:00
Lingxian Kong f32c6f81ec Filtering description for backup API
Story: #2006433
Task: #36344
Change-Id: I044b804e2ebdc6ecf545cb802114c5b774bb0645
2019-08-26 15:45:30 +12:00
Lingxian Kong dae5bc1bc7 Re-define the 'nics' parameter for creating database
Change-Id: I7a522b1f6d421ecbed0cedcdb2edd1f90b9b672b
2019-07-29 15:21:52 +12:00
Lingxian Kong f83899867e Remove flavor operations from API doc
Trove doesn't need to expose resources directly from Nova.

Change-Id: If705470330f51be9b78914ac2d456c62348c4329
2019-06-06 16:15:05 +12:00
Lingxian Kong c37ab5f34b docs: fix build failure on html_last_updated_fmt
Error message in CI job build-openstack-api-ref:
The config value `html_last_updated_fmt' has type `bytes'; expected
`str'.

Change-Id: Ie760abeb4a3ea8666da25480a8461812a67514eb
2019-05-28 09:42:08 +12:00
ZhongShengping 6a5afea40a Move to opendev
1.Use opendev.org instead of git.openstack.org.
2.Use review.opendev.org instead of review.openstack.org.

Change-Id: I8e9da8fbb04bdec42a0b2f012f6a38b8ee413b27
2019-04-24 16:08:08 +08:00
brandonzhao eddfc83a04 [fix_typos] fix wrongly spell word "configration "
Change-Id: I174ffd6e5799aa62df1d135b595c2958a902560a
2018-11-14 11:35:22 +08:00
Zhao Chao d597bb4714 Return 204 instead of 200 for root-disable API
As no content will be returned to the client if a root-disable request
succeeds, a HTTP 204 (Not Content) response is more appropriate.

Redis root-disable scenario test fails because it's return HTTP 204, but
all API related tests are expecting a HTTP 200. Although changing Redis
root-disable API is a much simpler way to resolve the problem, migrating
from HTTP 200 to HTTP 204 should be a better solution. Related tests and
documents are also updated accordingly.

APIImpact

Change-Id: If732a578009fd35436e810fb7ceceefd1ada3778
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-03-02 20:57:23 +08:00
Fan Zhang 3301a2a740 [api-ref] Add sections for backups.
Change-Id: If3a929e9de31dd901c4838e85f91f76941f33d05
Closes-bug: #1663096
Signed-off-by: Fan Zhang <zh.f@outlook.com>
2018-02-27 19:28:38 +08:00