939 Commits

Author SHA1 Message Date
Jenkins
bdeab3af0e Merge "CLI for backup snapshots" 2016-02-03 16:12:01 +00:00
Sheel Rana
7d1e4d9baf is_public=N/A in output of cinder type-update
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
2016-02-02 09:04:05 +00:00
Jenkins
af6c5c8609 Merge "improve readme contents" 2016-01-29 20:01:08 +00:00
Ankit Agrawal
ef151618e1 Return wrapper classes with request_ids attribute
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
2016-01-28 23:19:57 -08:00
Cory Stone
b670b73e44 Pass insecure option to HTTPClient
This option was silently being ignored.

Closes-Bug: #1538648
Change-Id: I3a1b5268e87cbc9803924be95b374d76b72a3a5d
2016-01-27 15:11:41 -06:00
Ankit Agrawal
1619f11b9c Add Wrapper classes for list, dict, tuple
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
2016-01-24 22:53:27 -08:00
Andreas Jaeger
faf8808162 Remove argparse from requirements
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
2016-01-20 19:19:17 +01:00
LisaLi
c18f9073a4 Fix sort problem in snapshot and backup list
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
2016-01-20 08:53:38 +00:00
Andreas Jaeger
a0c8fcff4f Code is hosted on git.openstack.org
We're hosting on git.openstack.org, github is just a mirror. Update
description in README.rst for this.

Change-Id: I813d0da52490f4de4c8586c48fc9d09fd52f3b5a
2016-01-16 19:33:06 +01:00
Andreas Jaeger
e02bfad204 Fix link for OpenStack manual
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
2016-01-16 19:32:52 +01:00
stmcginnis
f4b46766cb Update HACKING with current information
Updates information about the current Reno release notes management.
Some stale or incorrect information was also removed.

Change-Id: I9ea25a538f2e75966f721f3c5b551d83487fb015
2016-01-15 08:27:54 -06:00
LiuNanke
d4aaafbd9f Keep py3.X compatibility for urllib
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
2016-01-14 02:22:53 +08:00
Ivan Kolodyazhny
ef7485df77 Change extension module naming to a shorter one
This patch changes extension suffix from 'python_cinderclient_ext' to
'cinderclient_ext' to get more shorter module names.

Change-Id: Id78e05646d2bc4fda758710eb630dca5eefa457f
2016-01-13 15:09:01 +02:00
Herman Ge
0e9e2849f6 Word Misspelling
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
2016-01-11 10:30:36 -05:00
LiuNanke
c297309aff Replace assertTrue(isinstance()) by optimal assert
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
2016-01-10 03:18:08 +08:00
LiuNanke
f49cc8b3ed Trival: Remove 'MANIFEST.in'
Everything in this file is automatically generated by pbr. There
appears to be no good reason to keep it around.

Change-Id: Ie2482701e8061deb7b71f66c9d1d8727d206a49c
2016-01-10 00:01:03 +08:00
LiuNanke
4b34f18b1c Remove openstack-common.conf
We don't sync from oslo-incubator, so don't need this
file any more.

Change-Id: Ifba634021ec1bd67c0155cf22222d4b214b4736d
2016-01-07 15:31:20 +08:00
huangtianhua
aa06b2dd54 Make _discover_extensions public
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
2016-01-06 01:30:46 +00:00
Jenkins
7476dbd8dc Merge "Add to_dict method to Resource class" 2016-01-05 21:15:49 +00:00
Jenkins
e22907a120 Merge "Set default service type to 'volumev2'" 2016-01-04 21:08:15 +00:00
ricolin
2153b41a2e improve readme contents
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
2016-01-03 10:06:39 +00:00
Jenkins
fa18f8e171 Merge "Fix for 'quota-delete' call to API v2" 2015-12-31 20:08:06 +00:00
Ivan Kolodyazhny
1396308631 Set default service type to 'volumev2'
We are already use Cinder API v2 by default so it sould be consistent to
use 'volumev2' service type by default

Change-Id: I9f2da310f6ad53a40d476ede62369cc364371064
2015-12-29 16:56:10 +00:00
Jenkins
cd4542edf5 Merge "Updated from global requirements" 2015-12-28 04:54:30 +00:00
Jenkins
77fc5c1717 Merge "Fix help message in backup reset-state" 2015-12-23 23:45:02 +00:00
Jenkins
e01fd78458 Merge "Remove the mutable default arguments "[]"" 2015-12-23 18:18:50 +00:00
OpenStack Proposal Bot
d604b6cb55 Updated from global requirements
Change-Id: Ie6679c306c4d6774903f2d87ec3de3df09c6f189
2015-12-21 23:44:52 +00:00
Jenkins
0b3afcc7d7 Merge "support for snapshot management" 2015-12-21 22:41:35 +00:00
LisaLi
35b5e6f4af Fix help message in backup reset-state
Refer the source code
https://github.com/openstack/cinder/blob/master/cinder/api/contrib/admin_actions.py#L367
backup reset-state only supports valid state as available and error.

Change-Id: I783e08170f4a2e56959918b62b424f43c1c93fb5
2015-12-21 15:11:44 +08:00
Jenkins
245fd77a5c Merge "Do not require functional_creds.conf for functional tests" 2015-12-18 17:32:58 +00:00
Shaojiang Deng
6305abbbf8 Remove the mutable default arguments "[]"
Remove the default arguments "[]" when the function is defined.

Ref: http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I92340596a6c9d1489b428b23adbfbddf2c5f4e59
2015-12-18 16:58:37 +08:00
Ivan Kolodyazhny
73f442380c Do not require functional_creds.conf for functional tests
Pass OS_* env variables for functional tests to use environment
variables if they are available instead of config file

Change-Id: Ic1b4752bf558c57974b5f2a4d5a45aee4a940bbb
2015-12-17 13:41:37 +02:00
Szymon Borkowski
f39a383ed9 Fix for 'quota-delete' call to API v2
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
2015-12-16 16:19:00 +01:00
sonu.kumar
afee25c0ab Removes MANIFEST.in as it is not needed explicitely by PBR
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
2015-12-16 16:05:16 +05:30
shu-mutou
614e6a380c Drop py33 support
"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
2015-12-15 16:17:57 +09:00
Jenkins
6dd17021cf Merge "Add reno for release notes management" 2015-12-14 18:22:46 +00:00
Jenkins
ec3341ff9c Merge "Deprecated tox -downloadcache option removed" 2015-12-14 12:39:27 +00:00
wanghao
bb0f484898 Add to_dict method to Resource class
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
2015-12-14 16:27:21 +08:00
Sean McGinnis
423db4b32c Add reno for release notes management
Adopt reno for release notes like we have done for cinder.
One difference for the client is we will not be backporting
to Liberty per recommendation here [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080694.html

Change-Id: Icb2520cfa249d104674eb42b5ac93a50a6ce34b4
2015-12-13 19:56:41 -06:00
Ondřej Nový
1ac8083af9 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I63939800bf0fe6ef89d6651273e3bb53678d23a6
2015-12-11 21:24:20 +01:00
OpenStack Proposal Bot
ef24b6d7c7 Updated from global requirements
Change-Id: If6e460e9f746314d457e7d19c6db260b0862a6cc
2015-12-11 15:25:03 +00:00
Jenkins
24a8efcbde Merge "Add functional tests: backup creation and deletion" 2015-12-10 21:44:52 +00:00
OpenStack Proposal Bot
812ed6b4cc Updated from global requirements
Change-Id: I83db5df28e6812dd1fff3cb6683f5704e890199a
2015-12-09 02:52:52 +00:00
Jenkins
484c6e3a9c Merge "Add optional argument to list subcommand" 2015-12-09 00:19:40 +00:00
Jenkins
b5f3675687 Merge "Fix comma location in comment" 2015-12-09 00:19:36 +00:00
Jenkins
bdaa0713af Merge "Pass proxy environment variable to tox" 2015-12-09 00:19:15 +00:00
Jenkins
bad3a09ba8 Merge "Remove ureachable code in fakes.py" 2015-12-08 22:07:47 +00:00
Jenkins
186dfb4165 Merge "Add the version attribute to the Client class" 2015-12-08 20:13:33 +00:00
Manjeet Singh Bhatia
9e3a3f7af0 Pass proxy environment variable to tox
This will allow test to work if developement environment is under proxy

Change-Id: Id89c57ac455c4b93bcaed8e9166b7a44bad2a25c
2015-12-08 16:53:25 +00:00
Jenkins
7970e0fb7e Merge "Remove py26 support" 2015-12-07 13:32:07 +00:00