Commit Graph

160 Commits

Author SHA1 Message Date
Zuul
2ab986a473 Merge "Add Datastore Version Registry Extension" 2024-03-28 11:17:29 +00:00
Bo Tran
e32a0b0c9c 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: #48536
Change-Id: I7ee47dd1bb6e52991f0e0028a01e81252a1718c3
2023-12-27 11:09:40 +07:00
Takashi Kajinami
5860dc8ffc Remove six
Python 2 is no longer supported, thus usage of six can be removed.

Change-Id: I7442242289f269d95432209e74caa3cd3917ac5d
2022-05-17 22:02:22 +09:00
Hirotaka Wakabayashi
2dbbf5656e Adapts new API response schema
This PR makes troveclient to handle API response in new data schema.
Trove API response data schema has changed by the commit[1].

Original problem is that python-troveclient can't parse a API response
data in new data schema, resulting in an error.

[1]: 429c39890e

Task: 44986
Story: 2009979
Change-Id: I2e446c68c3b82c11d13f6bace54273c109e02069
2022-04-08 04:06:30 +09:00
Lingxian Kong
64f3f62368 Fix detach configuration from instance
Change-Id: Id0853dfb207bbd219755d46a9c0d6b4e897bfbeb
2021-07-09 20:47:13 +12:00
Lingxian Kong
cd68986948 Get backup list by instance ID or name
Change-Id: I97d3fcfa2935f76cb8753734fec6dab8669e732a
2021-05-19 20:43:06 +12:00
Lingxian Kong
e41d08d243 Support project name in quota CLI
Change-Id: I9886792f346bbe8d4887539ca69588b4957547e1
2021-04-29 14:17:48 +12:00
Dmitriy Rabotyagov
1d533778d7 Respect endpoint, cacert and debug options
When troveclient is used as a plugin for osc, it does not respect
provided endpoint type or cert via osc. This might result in
CERTIFICATE_VERIFY_FAILED error with osc, but not with trove shell.

Change-Id: I3d34774e87fcf0fe8efb024d4e6ff80a4e3f49c6
2021-03-30 14:49:37 +03:00
Lingxian Kong
c7319d8fe8 Support to restore backup from data location
This feature needs to bump python-troveclient major version as it
introduced an incompatible change for backup creation CLI.

Change-Id: I6fe94ccb552e2c0020150494ccc2ba6361184229
2021-02-21 00:37:08 +13:00
Lingxian Kong
4c71809fad Bulk backup delete
Change-Id: I100f8a302aeb498e3c0cebd8d36ef5fa437d444d
2021-02-19 11:07:23 +13:00
Lingxian Kong
961ef31807 Fix getting server id for listing instances
Just use 'server_id' from the instance response instead.

Story: 2008464
Task: 41496
Change-Id: Ib84dbd5fbd752ab7c7607ccb874663b01bfb7388
2020-12-23 13:29:41 +13:00
Lingxian Kong
23b5546f53 Support operating_status for instance
Change-Id: I3f5badc4d3bbb41de008d39e813d48f6aa670dc1
2020-12-09 11:10:28 +13:00
Lingxian Kong
b02459fb1d Show server_id for listing instance by admin
Story: 2008420
Task: 41361

Change-Id: I4dd67cf9aa9a13a520e69872d2752d22f19e63cf
2020-12-09 09:36:33 +13:00
Lingxian Kong
6fab3f7fff Fix creating datastore version
Story: 2008419
Task: 41360

Change-Id: Ib14e5d56f75b68f32ee3ec23a198f618e5141931
2020-12-05 12:26:15 +13:00
Zuul
8b892239dc Merge "Revert "Fix resize flavor for instance"" 2020-11-26 02:17:17 +00:00
Lingxian Kong
3647805c67 Revert "Fix resize flavor for instance"
Story: 2008341
Task: 41244

This reverts commit f859692cc3.

Change-Id: I690956927fb2558950362d1f223596db92e53d1e
2020-11-26 13:37:58 +13:00
Lingxian Kong
e43454f4b0 Fix getting datastore versions against previous trove service release
Change-Id: I9d08740b9e220d24aad7f691491d5eea8a7e16f9
2020-11-22 22:50:26 +13:00
Lingxian Kong
a57568397e Support datastore version number
- Support "--datastore-version-number" for creating configuration
- Support "--datastore-version-number" for creating instance
- Support "--version-number" for creating datastore version
- Support "--version-name" for updating datastore version
- Support showing version number for datastore version, instance and
  configuration

Story: 2008358
Task: 41264

Change-Id: Ie84b4506736a82a214b0416f7e451d565552f651
2020-11-21 23:44:42 +00:00
Zuul
f28390ee5d Merge "Revert "Remove flavor API"" 2020-11-13 08:53:57 +00:00
Lingxian Kong
c04e299b1d Revert "Remove flavor API"
Story: 2008341
Task: 41242

This reverts commit 27cf71299e.

Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
2020-11-13 20:53:10 +13:00
Lingxian Kong
20566017e5 Do not make extra API call for listing instances
Story: 2008343
Task: 41245

Change-Id: Id6a0dc82430dc601d4102729b3ac010e137881c6
2020-11-13 10:31:57 +13:00
Sam Morrison
dd371f0454 Raise error if trying to create an instance without a flavor
Change-Id: Iee4d92921d75f4d72405342fb5147a8bbfd269e5
Story: 2008340
Task: 41241
2020-11-11 16:28:33 +11:00
Sam Morrison
eedc89e9d1 Fix up wrong import of exception class
Change-Id: Ib0fb05c82477c4f081a5608012c7d64b3857a223
Story: 2008342
Task: 41243
2020-11-11 16:28:06 +11:00
Lingxian Kong
06fa9f62b6 Fix help message of datastore version upgrade
Change-Id: I9399c62815c20f8db129bf22647e7457eaae0f57
2020-11-05 00:06:02 +13:00
Lingxian Kong
7c9a57665d Support getting instances for a project
Change-Id: I1b3e8dce864740221722070a710f5a2f867d6c4b
2020-10-22 08:51:55 +13:00
wangzihao
17d2d5175e Remove six
Remove all usages of six.

Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
2020-10-13 11:02:06 +08:00
Lingxian Kong
28d7981eac Support updating datastore version
Change-Id: Ie6f22493d1722f41db5aa1a601a652e7eefa29c4
2020-10-09 01:09:38 +13:00
Zuul
0f5ffbe632 Merge "Show project Id for backup" 2020-09-15 22:01:43 +00:00
Lingxian Kong
bbeb4009a4 Support region in CLI
Change-Id: Ia0580a599fc2385d54def4e18e0780209b82eff7
2020-09-16 09:14:25 +12:00
Lingxian Kong
4756e291b6 Show project Id for backup
Change-Id: I7314abe06ac750c202382ffcf37eaa08bfabcede
2020-09-15 12:27:41 +12:00
Zuul
e658e600fd Merge "Support getting backups of a specific project" 2020-09-13 12:42:26 +00:00
Lingxian Kong
e4d79c2cbc Support getting backups of a specific project
Change-Id: Ia590fa6aae23b7323963181d79c9b0097fd2e4d1
2020-09-14 00:07:12 +12:00
Lingxian Kong
302ae3f8ac Fix replica detach command
Change-Id: I1d6ae85f93c4b2e549ba528f33ead1076daa601d
2020-09-10 14:06:57 +12:00
Lingxian Kong
e0e9be4602 Add support of subnet-id and ip-address for creating instance
Change-Id: Id88e8100a397b1512c73a0b28f14ab8edb221689
2020-08-23 14:37:04 +12:00
Lingxian Kong
2279d2f170 Fix key error when getting private instance
Change-Id: Iff7baea5719f5b94d3e89048d17b37c0682dfdb8
2020-08-23 11:39:57 +12:00
Lingxian Kong
ac96356fd5 Fix create instance
Change-Id: I750434c7ebc9038b0acf0e657768f57981817e1f
2020-08-12 22:29:04 +12:00
Lingxian Kong
61b76377fd Support getting and updating instance access info
* Added "public" and "allowed_cidrs" fields for getting instance.
* Added '--is-public/--is-private' and '--allowed-cidr' for updating.

Change-Id: Ifc919667e83573bd6c3b7aff205fe08e82667457
2020-08-11 17:35:41 +12:00
Lingxian Kong
09aff4df80 Support rebuild instance CLI
Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
2020-08-06 21:47:40 +12:00
Lingxian Kong
c23da586e9 Flavor is optional for creating instance
When creating replicas, flavor is not needed. Replica has the same
server settings as the primary.

Change-Id: Ia9b43a464763234b84ba163d8c773b21f53f4ee7
2020-07-26 21:57:05 +12:00
Lingxian Kong
40af556264 Support backup strategy
Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
2020-07-16 23:03:53 +12:00
Lingxian Kong
a9c3174cdd Use primary instead of master for listing instances
Change-Id: I0e597a64fae27016fc06195e8f3531a26753966f
2020-06-17 21:28:35 +12:00
Lingxian Kong
b86ff27e35 Support to create datastore version
Change-Id: Ibc7c191a3dbbe8d03cfbc9d41e30833b47ab429f
2020-06-11 00:13:10 +12:00
Lingxian Kong
6e440c35bd Remove unnecessary API call for listing instances
Change-Id: Ibd6a1ce15abc12524f49f4091acb38d6841a8476
2020-06-11 00:09:02 +12:00
Lingxian Kong
99126428ce Support role for listing instances
Change-Id: Ia3e8d5d65bc134f3c7bc62ca9c170018be54660c
2020-06-03 15:23:55 +12:00
Hervé Beraud
e2bf7cff22 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I73b532283079d346b75a925e2aee707c4de8fa9e
2020-06-02 20:54:04 +02:00
Lingxian Kong
27cf71299e Remove flavor API
Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
2020-05-08 00:30:49 -06:00
Lingxian Kong
4b47eb6f7f Support to change parameters for the config group
* openstack database configuration parameter set <config> <values>
* openstack database configuration set <config> <values> --name NAME \
  --description DESC

Change-Id: I5a576309daa1751c76a4a0d33c53a8596c8665e8
2020-05-08 12:15:42 +12:00
Lingxian Kong
e651e5de51 Fix KeyError when deleting datastore version
Change-Id: Id744d7da68b6586c4b37ada80472a69a8892dbb1
2020-04-17 15:45:31 +12:00
Lingxian Kong
f859692cc3 Fix resize flavor for instance
Change-Id: I9192857a690585cb3f365b15707dfa98e521e788
Story: #2007188
Task: #38315
2020-01-21 11:15:14 +13:00
Lingxian Kong
1a4823dcb4 Support to delete datastore
Change-Id: Id0fe73eef95bb57ecee706b9eb9b7aae53236e3b
2020-01-12 23:40:33 +13:00