In output of cinder type-update execution, is_public field
always displays N/A.
This is due to wrong usage of @property for is_public field
in code.
Change-Id: I1d76c3d5c937f5c16c668bd114e2df7dfc62f2f8
Closes-Bug: #1538412
Return appropriate wrapper classes with request_ids attribute from
base class.
Note:
In cinderclient/base.py->_update method will return None for
qos_specs->unset_keys method and for all other cases it returns body
of type dict. At few places, wherever the _update method is called,
it converts the return value back to the resource class and in all
other cases the same return value is returned back to the caller.
It's not possible to return request_ids with None so for all cases
object of DictWithMeta will be returned from this method. Second
approach would be to return (resp, body) tuple from _update method
and wherever this method is called, return the appropriate object.
These changes will affect v1 version and since v1 is already
deprecated the above approach sounds logical.
This change is required to return 'request_id' from client to log
request_id mappings of cross projects.
Change-Id: If73c47ae2c99dea2a0b1f25771f081bb4bbc26f1
Partial-Implements: blueprint return-request-id-to-caller
Added wrapper classes which are inherited from base data types list,
tuple and dict. Each of these wrapper classes contains a 'request_ids'
attribute which will be populated with a 'x-openstack-request_id'
received in a header from a response body.
This change is required to return 'request_id' from
client to log request_id mappings of cross projects.
Partial-Implements: blueprint return-request-id-to-caller
Change-Id: I3aadb4d8bf675e20f2094b66a23ac20f455a99eb
argparse was external in python 2.6 but not anymore, remove it from
requirements.
This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.
Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
The sort in command snapshot-list and backup-list
doesn't work, and they show same results.
The patch is to fix the problem, and transfer
sortby_index as None in utils.print_list.
Closes-Bug: #1536054
Change-Id: I00760fd4b395b04b95a8139224e18ea8d649d377
We're hosting on git.openstack.org, github is just a mirror. Update
description in README.rst for this.
Change-Id: I813d0da52490f4de4c8586c48fc9d09fd52f3b5a
The OpenStack documentation team now has a CLI Reference, link to that
instead of the User Guide. The User Guide location is also broken due to
reorganization of that guide.
Change-Id: I45d00c06a8fe5929256260c1d56181db9ca2df48
Updates information about the current Reno release notes management.
Some stale or incorrect information was also removed.
Change-Id: I9ea25a538f2e75966f721f3c5b551d83487fb015
Use six.moves.urllib.parse instead of urllib.
For urllib2 compatibility, it need to sync policy
module from oslo first. Then six.moves.urllib.request
can replace urllib2.
Change-Id: Ia351cd3088dd64fd8c8ce4ca8b9a5889c574888e
Partial-Bug: #1280105
This patch changes extension suffix from 'python_cinderclient_ext' to
'cinderclient_ext' to get more shorter module names.
Change-Id: Id78e05646d2bc4fda758710eb630dca5eefa457f
Word misspelling in following message:
1. shell.py
help='A unqiue identifier that represents a failover target.'
2. volumes.py
:param secondary: A unqiue identifier that represents a failover
Should change the word 'unqiue' to 'unique'.
Change-Id: I44a94b403f0bb71864d03683bdaf3b98f4d73bb1
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.
Related-bug: #1268480
Change-Id: I755702d0f6e982d7cba173fbbdb86feb8ab384a0
Everything in this file is automatically generated by pbr. There
appears to be no good reason to keep it around.
Change-Id: Ie2482701e8061deb7b71f66c9d1d8727d206a49c
Heat wants to use
`cinderclient.shell.OpenStackCinderShell._discover_extensions`
function (https://bugs.launchpad.net/heat/+bug/1527071),
which is private currently. It's better to change this method
to public for public use.
This change will do it as novaclient did.
Change-Id: Iaaa4cab530fd495877e15a372fff1354ddbeaa17
Closes-Bug: #1527169
Add more information in README.rst
Add information link list as follow:
* PyPi - package installation
* Online Documentation
* Blueprints - feature specifications
* Bugs - issue tracking
* Source
* Specs
* How to Contribute
Change-Id: I818b6df38e73adf5963191dfff731110bcdb773a
We are already use Cinder API v2 by default so it sould be consistent to
use 'volumev2' service type by default
Change-Id: I9f2da310f6ad53a40d476ede62369cc364371064
Pass OS_* env variables for functional tests to use environment
variables if they are available instead of config file
Change-Id: Ic1b4752bf558c57974b5f2a4d5a45aee4a940bbb
Before, when API in cinderclient was set to v2, the issued call
used to fail with an error message, that the call is connecting
to the endpoint compatible to API v1, when other quota calls
were connecting to the proper, v2 enpoint.
Change-Id: I99a16e93ed15e3819d48d193b550c786012462d8
Closes-Bug: 1526829
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.
Change-Id: Ied336f051e094b6b7bed4cac0858941ec43e3b26
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.
Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.
Change-Id: Iea4db590139e1a611a5dca72ef3adca187eb541e
Closes-Bug: #1526170
Many clients have to_dict method in Resource class.
It is needed to get full info about resource.
So it would be nice to add to_dict method in
cinder client too.
Now openstack/common has graduated from oslo-incubator.
So we just modify it cinderclient.
Changes merged with this patch:
---------------------
apiclient/base.py
---add to_dict function in class Resource.
unit/test_base.py
---add unit test case.
change-Id: I81add424bcdd667ba271adb7d5b1ceb504120f93