summaryrefslogtreecommitdiff
path: root/troveclient
Commit message (Collapse)AuthorAgeFilesLines
* remove unicode from codelikui2021-01-031-23/+23
| | | | | Change-Id: Iadc87779bf513c9d04847b6cf8ecbc60b300d7db Implements: blueprint remove-unicode
* Fix a bug in print_list when using formatterszhangjunhui2020-12-291-1/+1
| | | | | | | | | If using formatters it will raise a error that local variable 'data' referenced before assignment story: 2008472 task: 41511 Change-Id: I6c66139b54a203bd8af01e8534e4d7ce7735e02d
* Fix getting server id for listing instancesLingxian Kong2020-12-232-3/+2
| | | | | | | | Just use 'server_id' from the instance response instead. Story: 2008464 Task: 41496 Change-Id: Ib84dbd5fbd752ab7c7607ccb874663b01bfb7388
* Support operating_status for instanceLingxian Kong2020-12-092-13/+48
| | | | Change-Id: I3f5badc4d3bbb41de008d39e813d48f6aa670dc1
* Show server_id for listing instance by adminLingxian Kong2020-12-093-42/+128
| | | | | | | Story: 2008420 Task: 41361 Change-Id: I4dd67cf9aa9a13a520e69872d2752d22f19e63cf
* Fix creating datastore version6.0.1Lingxian Kong2020-12-052-2/+2
| | | | | | | Story: 2008419 Task: 41360 Change-Id: Ib14e5d56f75b68f32ee3ec23a198f618e5141931
* Merge "Revert "Fix resize flavor for instance""6.0.0Zuul2020-11-262-11/+15
|\
| * Revert "Fix resize flavor for instance"Lingxian Kong2020-11-262-11/+15
| | | | | | | | | | | | | | | | | | 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-2110-55/+115
|/ | | | | | | | | | | | | | - 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-1314-13/+427
|\
| * Revert "Remove flavor API"Lingxian Kong2020-11-1314-13/+427
| | | | | | | | | | | | | | | | | | 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-112-2/+2
| | | | | | 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-223-3/+54
| | | | Change-Id: I1b3e8dce864740221722070a710f5a2f867d6c4b
* Remove sixwangzihao2020-10-1323-68/+46
| | | | | | Remove all usages of six. Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
* Use importlib to take place of imp modulelikui2020-10-092-7/+15
| | | | | | | | | The imp module is deprecated[1] since version 3.4, use importlib to instead [1]: https://docs.python.org/3/library/imp.html Change-Id: Ifb44be3b0a0c35dd99d0230e9c371dfcb97f6fdd
* image is not required for creating datastore versionLingxian Kong2020-10-091-1/+2
| | | | Change-Id: Ic4efe1fec9b26b90d1412ab13b94939961bb4be3
* Support updating datastore versionLingxian Kong2020-10-093-18/+121
| | | | Change-Id: Ie6f22493d1722f41db5aa1a601a652e7eefa29c4
* Merge "Show project Id for backup"Zuul2020-09-153-6/+17
|\
| * Show project Id for backupLingxian Kong2020-09-153-6/+17
| | | | | | | | 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-133-6/+34
|\
| * Support getting backups of a specific projectLingxian Kong2020-09-143-6/+34
| | | | | | | | Change-Id: Ia590fa6aae23b7323963181d79c9b0097fd2e4d1
* | Fix replica detach commandLingxian Kong2020-09-102-2/+2
|/ | | | Change-Id: I1d6ae85f93c4b2e549ba528f33ead1076daa601d
* Add support of subnet-id and ip-address for creating instance5.1.0Lingxian Kong2020-08-232-9/+59
| | | | Change-Id: Id88e8100a397b1512c73a0b28f14ab8edb221689
* Fix key error when getting private instanceLingxian Kong2020-08-231-1/+1
| | | | Change-Id: Iff7baea5719f5b94d3e89048d17b37c0682dfdb8
* Fix create instanceLingxian Kong2020-08-122-1/+84
| | | | Change-Id: I750434c7ebc9038b0acf0e657768f57981817e1f
* Support getting and updating instance access infoLingxian Kong2020-08-115-60/+106
| | | | | | | * 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-063-0/+49
| | | | Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
* Flavor is optional for creating instance5.0.0Lingxian Kong2020-07-263-18/+19
| | | | | | | When creating replicas, flavor is not needed. Replica has the same server settings as the primary. Change-Id: Ia9b43a464763234b84ba163d8c773b21f53f4ee7
* Support backup strategyLingxian Kong2020-07-168-8/+282
| | | | Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
* Merge "Replace assertItemsEqual with assertCountEqual"Zuul2020-06-231-1/+1
|\
| * Replace assertItemsEqual with assertCountEqualJoel Capitao2020-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - https://github.com/testing-cabal/testtools/issues/286 [4] - https://github.com/testing-cabal/testtools/pull/277 Change-Id: I444b5919817b6b5cde2165872293076aff6bf6e9
* | Merge "Use unittest.mock instead of mock"Zuul2020-06-231-2/+3
|\ \
| * | Use unittest.mock instead of mockHervé Beraud2020-06-111-2/+3
| |/ | | | | | | | | | | | | | | The mock third party library was needed for mock support in py2 runtimes. Since we now only support py36 and later, we can use the standard lib unittest.mock module instead. Change-Id: Ida35e5f79ee17ef8ac6ea2186019ddd4040ec882
* | 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-112-0/+69
| | | | | | | | Change-Id: Ibc7c191a3dbbe8d03cfbc9d41e30833b47ab429f
* | Remove unnecessary API call for listing instancesLingxian Kong2020-06-113-19/+25
|/ | | | Change-Id: Ibd6a1ce15abc12524f49f4091acb38d6841a8476
* Support role for listing instances4.0.0Lingxian Kong2020-06-034-977/+22
| | | | Change-Id: Ia3e8d5d65bc134f3c7bc62ca9c170018be54660c
* Stop to use the __future__ module.Hervé Beraud2020-06-026-12/+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-0815-458/+21
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Support to change parameters for the config groupLingxian Kong2020-05-082-0/+100
| | | | | | | | * openstack database configuration parameter set <config> <values> * openstack database configuration set <config> <values> --name NAME \ --description DESC Change-Id: I5a576309daa1751c76a4a0d33c53a8596c8665e8
* Use unittest.mock instead of third party mockSean McGinnis2020-04-1833-33/+35
| | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Fix KeyError when deleting datastore versionLingxian Kong2020-04-171-1/+1
| | | | Change-Id: Id744d7da68b6586c4b37ada80472a69a8892dbb1
* Update hacking for Python33.3.1Andreas Jaeger2020-03-316-22/+23
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: I5da442bb2f1e634e6b3fe37a6ea3820cea1db96f
* Fix resize flavor for instance3.3.0Lingxian Kong2020-01-212-26/+17
| | | | | | Change-Id: I9192857a690585cb3f365b15707dfa98e521e788 Story: #2007188 Task: #38315
* Support to delete datastoreLingxian Kong2020-01-123-0/+41
| | | | Change-Id: Id0fe73eef95bb57ecee706b9eb9b7aae53236e3b