summaryrefslogtreecommitdiff
path: root/troveclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add promote-to-replica-source to OSC"rocky-em2.16.0Zuul2018-07-182-0/+41
|\
| * Add promote-to-replica-source to OSCwangyao2018-07-172-0/+41
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add execution-delete to OSC"Zuul2018-07-182-0/+34
|\ \
| * | Add execution-delete to OSCwangyao2018-07-172-0/+34
| |/ | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the execution-delete command. The trove command execution-delete is now: openstack database backup execution delete Change-Id: I9934a047d48daed53567b59bb51a2eab4d6e37b5 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Merge "Add configuration-default to OSC"Zuul2018-07-173-0/+56
|\ \
| * | Add configuration-default to OSCwangyao2018-07-173-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the configuration-default command. The trove command configuration-default is now: openstack database configuration default Change-Id: I9403df629e893bb1c4d75566cffd3d49697a543d Partially-Implements: blueprint trove-support-in-python-openstackclient
* | | Add detach-replica to OSCwangyao2018-07-172-0/+41
|/ / | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add log-list to OSC"Zuul2018-07-174-0/+122
|\ \
| * | Add log-list to OSCwangyao2018-07-174-0/+122
| |/ | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the log-list command. The trove command log-list is now: openstack database log list Change-Id: If048a653df01244882a451e3fddf28a8faac59f6 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Merge "Add configuration-instances to OSC"Zuul2018-07-174-1/+87
|\ \
| * | Add configuration-instances to OSCwangyao2018-07-124-1/+87
| |/ | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the configuration-instances command. The trove command configuration-instances is now: openstack database configuration instances Change-Id: I4ad52cc8772534c95b708b49d018f4b2e35d6f86 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Merge "Add eject-replica-source to OSC"Zuul2018-07-172-0/+40
|\ \
| * | Add eject-replica-source to OSCwangyao2018-07-132-0/+40
| |/ | | | | | | | | | | | | | | | | | | | | 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 "Replace 'raise StopIteration' with 'return'"Zuul2018-07-161-2/+2
|\ \ | |/ |/|
| * Replace 'raise StopIteration' with 'return'Dougal Matthews2018-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | With PEP 479, the behaviour of StopIteration is changing. Raising it to stop a generator is considered incorrect and from Python 3.7 this will cause a RuntimeError. The PEP recommends using the return statement. More details: https://www.python.org/dev/peps/pep-0479/#examples-of-breakage Change-Id: If53f0f4c313a699a4036838ab6035fffa931931b
* | Correctly mocking builtin open in test_v1_shellZhao Chao2018-07-101-9/+2
|/ | | | | | | | | | | | There's now a seperate module 'builtins' from python-future(this package is now installed by stestr, and stestr in required by oslotest-3.6.0), so under Python 2.x 'builtins' is also imported as a module and 'bultins.open' is mocked instead of '__builtin__.open'. And according to the Mock document, we should always patch the object where it's looked up, so only necessary mocking is made in this patch. Change-Id: I57ea61cefd3b01b19475b0fa7e16f716eaaa14e6 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Add cluster-modules to OSCwangyao2018-06-204-0/+109
| | | | | | | | | | | This change adds database support to the python-openstackclient project for the cluster-modules command. The trove command cluster-modules is now: openstack database cluster modules Change-Id: Ib16578de1520163e9b9bc6894a079e8f0fcef37b Partially-Implements: blueprint trove-support-in-python-openstackclient
* Merge "Fix invalid mock in OSC cluster creating unittest"Zuul2018-03-011-7/+15
|\
| * Fix invalid mock in OSC cluster creating unittestZhao Chao2018-02-131-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As '_parse_instance_options' is imported into database_clusters, mocking destination should be the database_clusters module, not the original troveclient.v1.shell. The reason this test passed before this patch is, the return value of '_parse_instance_options' is not checked, i.e. the mock object is also useless. This patch also checks how troveclient.v1.clusters.create is called to ensure '_parse_instance_options' is correctly mocked. Change-Id: I903a3b9565e4044c33401a6abcc47d50a5a2567f Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Merge "Add cluster-grow and cluster-shrink to OSC"Zuul2018-02-213-12/+127
|\ \
| * | Add cluster-grow and cluster-shrink to OSCZhao Chao2018-02-133-12/+127
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds database support to python-openstackclient project for the cluster-grow and cluster-shrink commands. The trove command cluster-grow is now: openstack database cluster grow The trove command cluster-shrink is now: openstack database cluster shrink Change-Id: I449e7f7d841ea266611ff79f8a41f6e730fced3c Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Clean imports in codeNguyen Hung Phuong2018-02-211-3/+3
|/ | | | | | | | | In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. [1]: "Do not import objects, only modules". [1] https://docs.openstack.org/hacking/0.10.3/ Change-Id: I8dd5396ab604013639a0b626ce3ecd3e3fad12e8
* Handle error response for webob>=1.6.0Zhao Chao2018-02-063-4/+75
| | | | | | | | | | | | | | | | | | | WebOb change https://github.com/Pylons/webob/pull/230 changed the way in which the error response body is formatted such that it's no longer a nested dict. So we have to handle both the old convention of an error message key to the response body error dict and the new way with just the error body dict. This was reported upstream: https://github.com/Pylons/webob/issues/235 But given this was apparently implemented as a long-overdue change in WebOb the behavior is not likely to change. Change-Id: Id8bfde6277640de48768bbe5a5e4252b97253ed2 Closes-Bug: #1559072 Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com> Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Merge "Fix log-enable high priority error"Zuul2018-01-232-4/+5
|\
| * Fix log-enable high priority errorqueens-em2.14.0caishan2018-01-222-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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-222-0/+78
|/ | | | | | | | | | | | 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-212-0/+40
| | | | | | | | | | | 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-212-0/+45
| | | | | | | | | | | 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
* Merge "Add force-delete to OSC"Zuul2018-01-214-0/+110
|\
| * Add force-delete to OSCZhao Chao2018-01-204-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge "Add quota commands to OSC"Zuul2018-01-204-0/+168
|\ \ | |/ |/|
| * Add quota commands to OSCZhao Chao2018-01-194-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the quota-show and quota-update commands. The trove command quota-show is now: openstack database quota show The trove command quota-update is now: openstack database quota update Change-Id: I989b360fd358004e1a2378bdc3a573450baff2f3 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Add resize-volume to OSCcaishan2018-01-192-0/+48
| | | | | | | | | | | | | | | | | | | | | | 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-194-0/+85
|/ | | | | | | | | | | | | | 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>
* Merge "Add cluster-instances to OSC"Zuul2018-01-184-3/+89
|\
| * Add cluster-instances to OSCZhao Chao2018-01-184-3/+89
| | | | | | | | | | | | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the cluster-instances command. The trove command cluster-instances is now: openstack database cluster list instances Change-Id: Ifcbb0a0374d4b2918ee22b85a0733c8bbbf21497 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Merge "Add resize-instance to OSC"Zuul2018-01-182-0/+50
|\ \ | |/ |/|
| * Add resize-instance to OSCcaishan2018-01-182-0/+50
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix show instance with integer name NotFound"Zuul2018-01-172-4/+10
|\ \ | |/ |/|
| * Fix show instance with integer name NotFoundrenminmin2018-01-162-4/+10
| | | | | | | | | | | | | | Fix trove cli 'show' instance with integer name error Change-Id: Ic6a943b4d5980017915dd2c0361636877376c5cb Closes-bug: #1740015
* | Add root-disable to OSCZhao Chao2018-01-153-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the root-disable command. The trove command root-disable is now: openstack database root disable Change-Id: I51d351174d6bf36948eb7e48de0aa6509c563738 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Add root-show to OSCZhao Chao2018-01-153-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | This change adds database support for the python-openstackclient project for the root-show command. The trove command root-show is now: openstack database root show Change-Id: I621f41d0c920306fed5502f30e1de3806b911929 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Add root-enable to OSCZhao Chao2018-01-123-0/+171
|/ | | | | | | | | | | | This change adds database support for the python-openstackclient project for the root-enable command. The trove command root-enable is now: openstack database root enable Change-Id: I121dbe09bc10c57358c091e1eb882c816df6d4b2 Partially-Implements: blueprint trove-support-in-python-openstackclient Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* Merge "Add user-update-attributes to OSC"Zuul2018-01-082-0/+89
|\
| * Add user-update-attributes to OSCwangyao2017-12-262-0/+89
| | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the user-update-attributes command. The trove command user-update-attributes is now: openstack database user update attributes Change-Id: I2acc85809cca4595c03a3d4252643a7806d5d791 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Merge "Add configuration-attach/detach to OSC"Zuul2018-01-082-0/+88
|\ \
| * | Add configuration-attach/detach to OSCzhanggang2017-12-282-0/+88
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the configuration-attach/detach command. The trove command configuration-attach is now: openstack database configuration attach The trove command configuration-detach is now: openstack database configuration detach Partially-Implements: blueprint trove-support-in-python-openstackclient Change-Id: I03c71f6828ff7af8f9caf5c6b383e5e875f348c3
* | Merge "Add reset-status to OSC"Zuul2018-01-034-0/+76
|\ \
| * | Add reset-status to OSCzhanggang2017-12-284-0/+76
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Make OSC user list and show support instance name"Zuul2017-12-272-8/+18
|\ \ | |/ |/|