summaryrefslogtreecommitdiff
path: root/troveclient/osc/v1/database_instances.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix detach configuration from instancexena-em7.1.1Lingxian Kong2021-07-091-2/+2
| | | | Change-Id: Id0853dfb207bbd219755d46a9c0d6b4e897bfbeb
* 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
* 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
* | Support datastore version numberLingxian Kong2020-11-211-0/+9
|/ | | | | | | | | | | | | | - 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-131-4/+13
|\
| * Revert "Remove flavor API"Lingxian Kong2020-11-131-4/+13
| | | | | | | | | | | | | | | | | | 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-131-3/+2
| | | | | | Remove all usages of six. Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
* 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
* Use primary instead of master for listing instancesLingxian Kong2020-06-171-1/+1
| | | | Change-Id: I0e597a64fae27016fc06195e8f3531a26753966f
* 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
* Remove flavor APILingxian Kong2020-05-081-3/+3
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Fix resize flavor for instance3.3.0Lingxian Kong2020-01-211-23/+12
| | | | | | Change-Id: I9192857a690585cb3f365b15707dfa98e521e788 Story: #2007188 Task: #38315
* 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
* Add IP addresses in instance list outputLingxian Kong2019-12-251-2/+9
| | | | Change-Id: I469fe301f438577ee7c897dcddb28cb672e50c6b
* Support log actions in osc pluginLingxian Kong2019-12-161-29/+0
| | | | | | | | - openstack database log show <instance_id> <log_name> - openstack database log set <instance_id> <log_name> [OPTIONS] Change-Id: I86f414a53e6f6416f96e0040635bb010aa49cf41
* Fix python-openstackclient plugin doc build3.1.0Eric Fried2019-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | Some plugin command option help strings were using invalid syntax to refer to another option. This looked odd in CLI output --marker <ID> Begin displaying the results for IDs greater than thespecified marker. When used with :option:`--limit,` setthis to the last ID displayed in the previous run. and also caused building autoprogram-cliff from python-openstackclient to break with errors like: <ListDatabaseInstances>:1:unknown option: --limit, This commit reformats the help strings to use double backticks, which render sanely in the CLI help and also build properly from python-openstackclient. Change-Id: Ia3fd6d5ec76e0e6d6aee87d8a8790a1ed2d38a26
* Support to create public instanceLingxian Kong2019-09-111-39/+50
| | | | | | | | | Add two params for creating instance: '--is-public' and '--allowed-cidr' Change-Id: I3bc69e3d56d250b562543f0de2c78c05fcaefead Story: 2006500 Task: 36469
* Support to batch delete database instancesLingxian Kong2019-06-061-13/+29
| | | | | | | | Allow users to delete database instances in batch, usage: usage: openstack database instance delete [-h] instance [instance ...] Change-Id: I88a15ba1910f7b3294067b54ae4a7a9b4c4a17a5
* Get all the database instances by adminLingxian Kong2019-05-211-8/+26
| | | | | | | | | | | | | | Currently, there is no way for the admin user to get databases of all the projects, which is very important for auditing or billing purpose. With this change, admin user can get all the database instances by running: $ openstack database instances list --all-projects Change-Id: I318907b1d4a63017f4a6f7967312770f8784c1f4 Story: #2005735 Task: #33393
* Merge "Add promote-to-replica-source to OSC"rocky-em2.16.0Zuul2018-07-181-0/+23
|\
| * Add promote-to-replica-source to OSCwangyao2018-07-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the promote-to-replica-source command. The trove command promote-to-replica-source is now: openstack database instance promote to replica source Change-Id: I0009b3e1074ddabaed6b02f5578f28cffc995b30 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Add detach-replica to OSCwangyao2018-07-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the detach-replica command. The trove command detach-replica is now: openstack database instance detach replica Change-Id: Ia6034eccbd3490696270d44d00966c3da94b3999 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Add eject-replica-source to OSCwangyao2018-07-131-0/+22
|/ | | | | | | | | | | This change adds database support to the python-openstackclient project for the eject-replica-source command. The trove command eject-replica-source is now: openstack database instance eject replica source Change-Id: I674e78e310b2953b28d0829cbe6fda62c00b6ea8 Partially-Implements: blueprint trove-support-in-python-openstackclient
* Merge "Fix log-enable high priority error"Zuul2018-01-231-2/+4
|\
| * Fix log-enable high priority errorqueens-em2.14.0caishan2018-01-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | 1. Modify setup.cfg to make command openstack database log enable run correctlly. class EnableDatabaseInstanceLog should be in database_instances, not in database_limits. This is a HIGH priority error. 2. Originally, trove log-enable will return a log info when execute successfully. This change makes OSC log_enable acts like the origin troveclient enable_log. Change-Id: I68c5ef451c8e6c7fb189d6270bad002da7ffc9a6
* | Add 'update' command to OSCZhao Chao2018-01-221-0/+56
|/ | | | | | | | | | | | This change adds database support to the python-openstackclient project for the 'update' command. The trove command update is now: openstack database instance update Change-Id: I426c892540f82bc19b7b28d7845a2f6699c3f526 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Add restart to OSCcaishan2018-01-211-0/+23
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the restart command The trove command restart is now: openstack database instance restart Change-Id: I24eeb001d27eae39be5c33650e9bc04287053c8c Partially-Implements: blueprint trove-support-in-python-openstackclient
* Add log-enable to OSCcaishan2018-01-211-0/+27
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the log-enable command The trove command log-enable is now: openstack database log enable Change-Id: Ia5bb395264946f79673970336e4c1f23857bb77d Partially-Implements: blueprint trove-support-in-python-openstackclient
* Add force-delete to OSCZhao Chao2018-01-201-0/+27
| | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the force-delete and cluster-force-delete commands. The trove command force-delete is now: openstack database instance force delete The trove command cluster-force-delete is now: openstack database cluster force delete Change-Id: I919678ca6b06d3b5762eac1990cc1fbf0e149d7c Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Add resize-volume to OSCcaishan2018-01-191-0/+30
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the resize-volume command The trove command resize-volume is now: openstack database instance resize volume Change-Id: If2413a605d294db0b0ee9c7aa49fbb1c929ebcd0 Partially-Implements: blueprint trove-support-in-python-openstackclient
* Add upgrade to OSCZhao Chao2018-01-191-0/+26
| | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the upgrade and cluster-upgrade commands. The trove command upgrade is now: openstack database instance upgrade The trove command cluster-upgrade is now: openstack database cluster upgrade Change-Id: Ic416d476c645fa3c697881fb001d512ed3d25d2b Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Add resize-instance to OSCcaishan2018-01-181-0/+32
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the resize-instance command The trove command resize-instance is now: openstack database instance resize flavor Change-Id: I58f8a6ebf8f715c5cc67ce67a36f87d720056ffe Partially-Implements: blueprint trove-support-in-python-openstackclient
* Add reset-status to OSCzhanggang2017-12-281-0/+23
| | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the cluster-reset-status and reset-status command. The trove command cluster-reset-status is now: openstack database cluster reset status The trove command reset-status is now: openstack database instance reset status Change-Id: I8945327d244bfd2a9afe7febb7179467a8be9bd0 Partially-Implements: blueprint trove-support-in-python-openstackclient
* Add create to OSCwangyao2017-12-231-0/+205
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the create command. The trove command create is now: openstack database instance create Change-Id: Icab8761a35a4cbc2f7b5f845eb1da917675eb98d Partially-Implements: blueprint trove-support-in-python-openstackclient