| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I5da442bb2f1e634e6b3fe37a6ea3820cea1db96f
|
| |
|
|
|
|
| |
Change-Id: I9192857a690585cb3f365b15707dfa98e521e788
Story: #2007188
Task: #38315
|
| |
|
|
| |
Change-Id: Id0fe73eef95bb57ecee706b9eb9b7aae53236e3b
|
| |
|
|
|
|
| |
usage: openstack datastore version delete <datastore_version_id>
Change-Id: I4b781e68b81a3888d15d002fcf488a1f765c9f6a
|
| |
|
|
|
|
| |
openstack database instance reboot <instance>
Change-Id: Id5ac985399797356165eaac68dd05bc46ee0124d
|
| |
|
|
| |
Change-Id: I20802f199ef943244f27a842743434e1c84c79e5
|
| |
|
|
| |
Change-Id: I469fe301f438577ee7c897dcddb28cb672e50c6b
|
| |
|
|
|
|
|
|
| |
- openstack database log show <instance_id> <log_name>
- openstack database log set <instance_id> <log_name>
[OPTIONS]
Change-Id: I86f414a53e6f6416f96e0040635bb010aa49cf41
|
| |
|
|
|
|
|
|
|
| |
Add two params for creating instance:
'--is-public' and '--allowed-cidr'
Change-Id: I3bc69e3d56d250b562543f0de2c78c05fcaefead
Story: 2006500
Task: 36469
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
To get all the backups of an instance:
openstack database backup list --instance-id <instance-id>
Admin user gets backups of all the projects:
openstack database backup list --all-projects
Story: #2006433
Task: #36346
Change-Id: I871d1ffa27805158024e8ecbe1dceae725c4deac
|
| |
|
|
| |
Change-Id: If48449acf7037ffb04e1b5b9d1c4b059ea629055
|
| |
|
|
|
|
|
|
| |
Allow users to delete database instances in batch, usage:
usage: openstack database instance delete [-h] instance [instance ...]
Change-Id: I88a15ba1910f7b3294067b54ae4a7a9b4c4a17a5
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, listing instances only allows to get basic information about
entities. To get the details, one need to query instance "show" endpoint
for each instance separately. This is inefficient and exposes API to a
heavier load.
There are use cases in which we want to obtain detailed information
about all instances. In particular, in services integrating with Trove.
For example, Vitrage project requires this information to build vertices
and edges in the resource graph for RCA analysis.
This change extends Trove client by optional parameter allowing user to
specify whether API should include more instance details in the
response.
Change-Id: Iecea2f711a3e23fd63167beb6cab4cecc63bcabe
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Currently 'openstack database flavor list' command fails when using
'--datastore-type' and '--datastore-version-id' options. This change
fixes the issue by correcting keyword arguments.
This change also adds a test case of listing flavors with the optional
arguments.
Change-Id: I37be4911d4dda1529e2550344a912e0aa3c50558
Closes-Bug: #1794663
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This replaces the deprecated (in python 3.2) unittest.TestCase method
assertRaisesRegexp() with assertRaisesRegex().
Change-Id: Ib260a6549a7a957fc1b91b89156a676922142b04
Signed-off-by: Chuck Short <chucks@redhat.com>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
The previous patches have add configuration and extended_properties
to "trove cluster-create"[1][2], this commit add the two paramenters
to OSC, user can pass configuration and extended_properties during
"openstack database cluster create".
[1] https://review.openstack.org/#/c/583125/
[2] https://review.openstack.org/#/c/589047/
Change-Id: Ic8e3ba4e92d3b65fa65875675f58eead5827976a
Signed-off-by: zhanggang <zhanggang@cmss.chinamobile.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Handles API part implemented in change:
I7c0a22c6a0287128d0c37e100589c78173fd9c1a
So far passing configuration group was possible only for single instance
deployment.
As the trove api now already supports configuration attach and detach
for clusters, we are able to handle it in client.
Configuration will be applied to each cluster instance.
Partially implements: blueprint cluster-configuration-groups
Change-Id: Ic0840c995cbc34203c76494d7ba522f3e17141a7
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
User can specify the number and volume of mongos/configserver with
extended_properties argument when creating mongodb. Currently,
the supported parameters are, num_configsvr, num_mongos,
configsvr_volume_size, configsvr_volume_type, mongos_volume_size
and mongos_volume_type.
Change-Id: I35406f9967ce00a51b320eda37572e96228b209d
Signed-off-by: zhanggang <zhanggang@cmss.chinamobile.com>
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|