summaryrefslogtreecommitdiff
path: root/troveclient/osc
Commit message (Collapse)AuthorAgeFilesLines
* Adapts new API response schemaHirotaka Wakabayashi2022-04-081-1/+7
| | | | | | | | | | | | | | 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]: https://opendev.org/openstack/trove/commit/429c39890e3242c6a502037673943b38452c5811 Task: 44986 Story: 2009979 Change-Id: I2e446c68c3b82c11d13f6bace54273c109e02069
* Fix detach configuration from instancexena-em7.1.1Lingxian Kong2021-07-092-11/+18
| | | | Change-Id: Id0853dfb207bbd219755d46a9c0d6b4e897bfbeb
* Get backup list by instance ID or name7.1.0Lingxian Kong2021-05-191-2/+17
| | | | Change-Id: I97d3fcfa2935f76cb8753734fec6dab8669e732a
* Support project name in quota CLILingxian Kong2021-04-291-15/+19
| | | | Change-Id: I9886792f346bbe8d4887539ca69588b4957547e1
* Respect endpoint, cacert and debug optionsDmitriy Rabotyagov2021-03-301-1/+4
| | | | | | | | 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
* Support to restore backup from data locationwallaby-em7.0.0Lingxian Kong2021-02-211-15/+46
| | | | | | | This feature needs to bump python-troveclient major version as it introduced an incompatible change for backup creation CLI. Change-Id: I6fe94ccb552e2c0020150494ccc2ba6361184229
* Bulk backup deleteLingxian Kong2021-02-191-12/+28
| | | | Change-Id: I100f8a302aeb498e3c0cebd8d36ef5fa437d444d
* Fix getting server id for listing instancesLingxian Kong2020-12-231-3/+0
| | | | | | | | Just use 'server_id' from the instance response instead. Story: 2008464 Task: 41496 Change-Id: Ib84dbd5fbd752ab7c7607ccb874663b01bfb7388
* Support operating_status for instanceLingxian Kong2020-12-091-1/+7
| | | | Change-Id: I3f5badc4d3bbb41de008d39e813d48f6aa670dc1
* Show server_id for listing instance by adminLingxian Kong2020-12-091-19/+25
| | | | | | | Story: 2008420 Task: 41361 Change-Id: I4dd67cf9aa9a13a520e69872d2752d22f19e63cf
* Fix creating datastore version6.0.1Lingxian Kong2020-12-051-1/+1
| | | | | | | Story: 2008419 Task: 41360 Change-Id: Ib14e5d56f75b68f32ee3ec23a198f618e5141931
* Merge "Revert "Fix resize flavor for instance""6.0.0Zuul2020-11-261-6/+9
|\
| * Revert "Fix resize flavor for instance"Lingxian Kong2020-11-261-6/+9
| | | | | | | | | | | | | | | | | | Story: 2008341 Task: 41244 This reverts commit f859692cc3f3f9ad72546d6b94f991a1558d78af. Change-Id: I690956927fb2558950362d1f223596db92e53d1e
* | Fix getting datastore versions against previous trove service releaseLingxian Kong2020-11-221-2/+3
| | | | | | | | Change-Id: I9d08740b9e220d24aad7f691491d5eea8a7e16f9
* | Support datastore version numberLingxian Kong2020-11-213-34/+64
|/ | | | | | | | | | | | | | - 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
* Merge "Revert "Remove flavor API""Zuul2020-11-132-4/+110
|\
| * Revert "Remove flavor API"Lingxian Kong2020-11-132-4/+110
| | | | | | | | | | | | | | | | | | Story: 2008341 Task: 41242 This reverts commit 27cf71299ec51976fed8b18dbf5c0e4f9f4fd6f5. Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
* | Do not make extra API call for listing instancesLingxian Kong2020-11-131-0/+3
|/ | | | | | | Story: 2008343 Task: 41245 Change-Id: Id6a0dc82430dc601d4102729b3ac010e137881c6
* Raise error if trying to create an instance without a flavorSam Morrison2020-11-111-0/+4
| | | | | | Change-Id: Iee4d92921d75f4d72405342fb5147a8bbfd269e5 Story: 2008340 Task: 41241
* Fix up wrong import of exception classSam Morrison2020-11-111-1/+1
| | | | | | Change-Id: Ib0fb05c82477c4f081a5608012c7d64b3857a223 Story: 2008342 Task: 41243
* Fix help message of datastore version upgradeLingxian Kong2020-11-051-1/+1
| | | | Change-Id: I9399c62815c20f8db129bf22647e7457eaae0f57
* Support getting instances for a projectLingxian Kong2020-10-221-2/+11
| | | | Change-Id: I1b3e8dce864740221722070a710f5a2f867d6c4b
* Remove sixwangzihao2020-10-139-27/+18
| | | | | | Remove all usages of six. Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
* Support updating datastore versionLingxian Kong2020-10-091-2/+81
| | | | Change-Id: Ie6f22493d1722f41db5aa1a601a652e7eefa29c4
* Merge "Show project Id for backup"Zuul2020-09-151-1/+1
|\
| * Show project Id for backupLingxian Kong2020-09-151-1/+1
| | | | | | | | Change-Id: I7314abe06ac750c202382ffcf37eaa08bfabcede
* | Support region in CLILingxian Kong2020-09-161-1/+2
|/ | | | Change-Id: Ia0580a599fc2385d54def4e18e0780209b82eff7
* Merge "Support getting backups of a specific project"Zuul2020-09-131-2/+9
|\
| * Support getting backups of a specific projectLingxian Kong2020-09-141-2/+9
| | | | | | | | Change-Id: Ia590fa6aae23b7323963181d79c9b0097fd2e4d1
* | Fix replica detach commandLingxian Kong2020-09-101-1/+1
|/ | | | Change-Id: I1d6ae85f93c4b2e549ba528f33ead1076daa601d
* Add support of subnet-id and ip-address for creating instance5.1.0Lingxian Kong2020-08-231-9/+24
| | | | Change-Id: Id88e8100a397b1512c73a0b28f14ab8edb221689
* Fix key error when getting private instanceLingxian Kong2020-08-231-1/+1
| | | | Change-Id: Iff7baea5719f5b94d3e89048d17b37c0682dfdb8
* Fix create instanceLingxian Kong2020-08-121-1/+1
| | | | Change-Id: I750434c7ebc9038b0acf0e657768f57981817e1f
* Support getting and updating instance access infoLingxian Kong2020-08-111-14/+48
| | | | | | | * Added "public" and "allowed_cidrs" fields for getting instance. * Added '--is-public/--is-private' and '--allowed-cidr' for updating. Change-Id: Ifc919667e83573bd6c3b7aff205fe08e82667457
* Support rebuild instance CLILingxian Kong2020-08-061-0/+28
| | | | Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
* Flavor is optional for creating instance5.0.0Lingxian Kong2020-07-261-8/+7
| | | | | | | When creating replicas, flavor is not needed. Replica has the same server settings as the primary. Change-Id: Ia9b43a464763234b84ba163d8c773b21f53f4ee7
* Support backup strategyLingxian Kong2020-07-162-5/+122
| | | | Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
* Use primary instead of master for listing instancesLingxian Kong2020-06-171-1/+1
| | | | Change-Id: I0e597a64fae27016fc06195e8f3531a26753966f
* Support to create datastore version4.1.0Lingxian Kong2020-06-111-0/+51
| | | | Change-Id: Ibc7c191a3dbbe8d03cfbc9d41e30833b47ab429f
* Remove unnecessary API call for listing instancesLingxian Kong2020-06-111-11/+8
| | | | Change-Id: Ibd6a1ce15abc12524f49f4091acb38d6841a8476
* Support role for listing instances4.0.0Lingxian Kong2020-06-031-6/+14
| | | | Change-Id: Ia3e8d5d65bc134f3c7bc62ca9c170018be54660c
* Stop to use the __future__ module.Hervé Beraud2020-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove flavor APILingxian Kong2020-05-082-100/+3
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Support to change parameters for the config groupLingxian Kong2020-05-081-0/+63
| | | | | | | | * openstack database configuration parameter set <config> <values> * openstack database configuration set <config> <values> --name NAME \ --description DESC Change-Id: I5a576309daa1751c76a4a0d33c53a8596c8665e8
* Fix KeyError when deleting datastore versionLingxian Kong2020-04-171-1/+1
| | | | Change-Id: Id744d7da68b6586c4b37ada80472a69a8892dbb1
* Fix resize flavor for instance3.3.0Lingxian Kong2020-01-211-23/+12
| | | | | | Change-Id: I9192857a690585cb3f365b15707dfa98e521e788 Story: #2007188 Task: #38315
* Support to delete datastoreLingxian Kong2020-01-121-0/+22
| | | | Change-Id: Id0fe73eef95bb57ecee706b9eb9b7aae53236e3b
* Support to delete datastore versionLingxian Kong2020-01-071-1/+23
| | | | | | usage: openstack datastore version delete <datastore_version_id> Change-Id: I4b781e68b81a3888d15d002fcf488a1f765c9f6a
* Support to reboot instanceLingxian Kong2020-01-041-4/+27
| | | | | | openstack database instance reboot <instance> Change-Id: Id5ac985399797356165eaac68dd05bc46ee0124d
* Support to force delete instanceLingxian Kong2020-01-041-1/+9
| | | | Change-Id: I20802f199ef943244f27a842743434e1c84c79e5