547 Commits

Author SHA1 Message Date
Vincent Hou
592099475c List all the request items when the list is over osapi_max_limit
Convert the function _list into a loop function, which can retrieve
the items from the next link till the limit or the end of items has
been reached. This works for v2 only.

So far, only volume list in v2 support limit. The limit parameter
work for volume list in v2 only, but other list can extend it in
future work.

Change-Id: I011f0ed1a4ab639f67db6cae580d978c0b44c1bb
closes-bug: #1342192
2014-12-04 02:20:59 +00:00
Jenkins
9295913779 Merge "Add ability to create volume from image by image name" 2014-12-04 00:19:06 +00:00
Xing Yang
d9da860371 Allow CG quota to be showed and updated
This patch added the ability for CG quota to be showed and updated.
- Added consistencygroups as a quota resource to be displayed.
- Added an option for consistencygroups quota to be updated.

Change-Id: I7e88eb426eb1733bce955b7a15b8bffdb1e8ee20
Closes-Bug: #1373766
2014-12-03 16:39:23 -05:00
Jenkins
3398e424bf Merge "client HTTPClient __init__ fails if auth_url None" 2014-12-02 09:48:02 +00:00
Jenkins
b2b0489283 Merge "Use newer features from keystoneclient" 2014-12-02 01:16:14 +00:00
Jenkins
31eda8b8c6 Merge "Updated from global requirements" 2014-12-02 01:16:06 +00:00
Jenkins
4154f88fa1 Merge "Add the parameter bypass_url to the cinder client" 2014-12-01 19:10:17 +00:00
Vincent Hou
7a50182fbe Add the parameter bypass_url to the cinder client
If the bypass_url is specified in the http client, there is no need
to get it from Keystone.

Change-Id: I891849f77ad2ba98a83c993b401121216c8cfff6
closes-bug: #1350702
2014-12-01 02:43:52 +00:00
Jamie Lennox
a68ba9417b Use newer features from keystoneclient
There are a number of functions that were implemented in keystoneclient
in response to needs from cinder and other clients.

Now that these were released in 0.11 cinderclient should make use of
them rather than keep its own versions.

Change-Id: I6444fc5bfd2d0505f9a7eb2c6068ab945ae5bb9b
2014-12-01 02:16:44 +00:00
Duncan Thomas
4ccb70a90f Support Volume Backup Quota
Python-cinderclient support update volume backup quota.

Cinder server side commit for this feature was:
https://review.openstack.org/#/c/111460/

blueprint volume-backup-quota

Change-Id: I1fceeb9fc0eb92370e249c46749a61e4b11420b0
2014-11-30 19:37:10 +02:00
Jenkins
5b172959c6 Merge "Fix 'search_opts' error with backup delete command" 2014-11-30 06:39:01 +00:00
OpenStack Proposal Bot
713e3310f4 Updated from global requirements
Change-Id: I29667c947e5b1c54c125cd569f8d60bae45824f1
2014-11-27 21:48:14 +00:00
Sean McGinnis
616b982b7d Add ability to create volume from image by image name
Follow on change from cinder code to all specifying an
image by either its name or ID for creating a volume.

This patch adds the --image option that will take either
ID or name as input. The service then will attempt to
locate the image to use and make sure there are not
multiple images with the same name.

If both --image-id and --image are used it will favor
the more explicit ID.

DocImpact
Closes-Bug: 1377823

Change-Id: I77d58258144970fac47da6da6b7870f2931e1823
2014-11-25 12:39:17 -06:00
git-harry
ac9ef2bd12 Remove cinderclient/tests from coverage report
Currently coverage reports on coverage of the tests themselves. This
makes the percentage coverage higher than if they are excluded and
therefore distorts the reports values for the codes as a whole.

This commit updates the .coveragerc files to remove
cinderclient/tests/* from the coverage report.

Change-Id: If7f1765017f3f0d55975219b12ff7bf149146931
2014-11-25 15:14:09 +00:00
Jenkins
d6f4ab3c96 Merge "Fixed typos found by RETF rules" 2014-11-25 03:02:01 +00:00
seungjin
029a776455 Fix 'search_opts' error with backup delete command
The following error message is yield when we try to
backup volume which is not present.

ERROR: list() got an unexpected keyword argument 'search_opts'

This is from findall() method in the
cinderclient.base.ManagerWithFind class.

When cinderclient get a specific resource, it use the findall() method.

The error will yields which list() in
VolumeEncryptionTypeManager did not have.

Change-Id: Iffe568c6d2de41b8e24658f3a54f2861e2f7db31
Closes-Bug: #1282324
Related-Bug: #1248519
2014-11-25 01:28:54 +00:00
Jenkins
f5a4e59467 Merge "Adds tty password entry for cinderclient" 2014-11-20 05:30:24 +00:00
Jenkins
9c53495d0a Merge "Don't git ignore .mailmap and .testr.conf" 2014-11-18 16:06:57 +00:00
Jenkins
331ddfd379 Merge "Remove Python 2.4 compat shim" 2014-11-18 16:06:48 +00:00
Rushi Agrawal
542a675568 Remove unused methods from utils.py
Most of these methods were imported when we forked away from
python-novaclient, but over the course of time, their existence
became redundant as no file seems to be importing them. Such
methods are removed in this change.

Change-Id: Ic93fc92ce624eefaeaca6de5c8fd965e88159030
2014-11-17 16:33:07 +05:30
Jamie Lennox
384b8825b4 Fix incorrect variable name
valid_versions does not exist here, it is obviously supposed to mean
_VALID_VERSIONS.

Closes-Bug: #1386232
Change-Id: I477baa7642feba72f80d884d6183512185b02cf1
2014-10-27 14:41:54 +00:00
Christine Wang
a6b434ee05 cinderclient does not retry with TimeoutException
Added retry support when encounter requests.exceptions.Timeout
during HTTP request.

Closes-Bug: #1379505

Change-Id: I6253a109c3a76dd2f15c96a349da68936f9bfff4
2014-10-24 11:57:42 -04:00
John Trowbridge
122bf5bdcc Adds tty password entry for cinderclient
Added functionality from keystoneclient to fallback to the tty for password
entry if no password is given via the environment or the --os-password option.

Change-Id: If5b27cb8c67712860faa24d543ed48eaa542f28b
Closes-Bug: 1357559
2014-10-24 15:43:04 +00:00
Jenkins
8428ffd099 Merge "Fix volume name support of unmanage and replication commands" 2014-10-14 20:31:35 +00:00
Jenkins
5502db716c Merge "Stop using intersphinx" 2014-10-14 20:20:10 +00:00
Eric Harney
d202875661 Don't git ignore .mailmap and .testr.conf
These should have been whitelisted in the prior
gitignore change.

Change-Id: I21dce6256991c773f7a167f8e15499763db5eb3c
2014-10-09 15:22:49 -04:00
Jenkins
f5d090844a Merge "gitignore /.*" 2014-10-09 01:11:18 +00:00
Eric Harney
e76f06b83a gitignore /.*
Ignore all dotfiles in the base dir of the tree except for
.gitignore.

This should solve the "ignore my IDE's files" problem in a
general way.

Change-Id: I689220b303d24c65c5fe9523eadc8ad48a93737f
2014-10-08 17:00:51 -04:00
Boris Pavlovic
6f5fd37ee9 Add profiling support to cinderclient
To be able to create profiling traces for Cinder, client should be
able to send special HTTP header that contains trace info.

This patch is as well important to be able to make cross project
traces. (Typical case nova calls cinder via python client, if
profiler is initialized in nova, cinder client will add extra
header, that will be parsed by special osprofiler middleware in cinder
api)

Don't worry no security issue here, trace information is signed by HMAC
key that is setted in api-paste.ini. So only person that knows HMAC key
is able to send proper header.

Main patch (in Cinder) is:
https://review.openstack.org/#/c/103415/

Change-Id: I53bb1b92e62841a02f941bdafaed7f8ed5db7ce1
2014-10-08 19:30:10 +04:00
Jenkins
892b739f4a Merge "Add swap and it's variants to gitignore" 2014-10-03 01:33:26 +00:00
Mitsuhiro Tanino
20df1cb7a7 Fix volume name support of unmanage and replication commands
Volume not found error occurs when running these commands via cinderclient
with volume name as an argument.
unmanage, replication-promote, replication-reenable

However in their help text, it is described that Name and ID are supported.
Therefore, this patch fixes volume name support to their argument.

Closes-bug: #1374211
Change-Id: I8b90523d8e79a65eb27ff4e99820e8cb3feb3120
2014-10-02 15:24:01 -04:00
John Griffith
1cb1350d16 Simplify cinder manage command args
The 'cinder manage' command argumenst are kind of a disaster.
The positionals are <host> <id> where <id> is undefined/free form
K/V pairs.  On top of it we then have --source-name and --source-id
optional arguments available.  There absolutely no way to tell from
the help what one should be entering here without referring to the
code, and even then it's not quite clear how the options work and
which one will be used.

To clean this up, change the positionals to <host> <identifier>
where both are strings.  Remove --source-name and --source-id
and consolidate those options with --id-type.

id-type will allow a user to specify the type of identifier
(source-name, source-id, or whatever), but defaults to
source-name which is most commonly used currently.

* NOTE *
Ideally we'd just do away with the designator source-name/source-id
altogether and just have an <identifier> positional arg.  Each driver
would then be responsible for figuring out what was passed an how to
deal with it.  This however requires changes in all of the drivers and
broader changes on the Cinder side which I don't think are warranted
during RC.

During Kilo we should clean all of this up, but for now at least the
syntax is somewhat ready for human consumption and a bit easier than
what we introduced.

Change-Id: I07696648ae647f17ab9180cd87b25f8cb888f5d6
Closes-Bug: 1376311
2014-10-02 14:58:19 +00:00
John Griffith
41f5835475 Add swap and it's variants to gitignore
^^  Nuf said

Change-Id: I5d62cf5fb09a997923acbe4d847da7d171b3ce3f
2014-10-01 14:34:13 -06:00
Jenkins
26e19ff186 Merge "Docstring of unmanage subcommand is missing" 2014-10-01 15:24:48 +00:00
Jenkins
5922af5441 Merge "Ability to pass metadata during snapshot create" 2014-09-30 03:47:30 +00:00
Mitsuhiro Tanino
1dc808124b Docstring of unmanage subcommand is missing
cinder unmanage is missing docstring.
This patch adds description of unmanage to python-cinderclient.

Closes-Bug: #1373662
Change-Id: I3ae8ee714507b82c661360e86136dab5ef461ce3
2014-09-24 20:03:58 -04:00
John Griffith
ac9b091390 Update version to 1.1.1 in index
Prep for new tag

Change-Id: I49f8f7fcc2647dc09e38fee1fa5068df714a8d83
2014-09-23 18:18:26 -06:00
Eric Harney
5bf13e1e2b Remove Python 2.4 compat shim
It's clear that we aren't testing against Python 2.4 (not
supported by dependencies like six) and no other client
projects have this, so we should drop it.

Change-Id: I14108964c0261d9144ced16cee7101d14ca7e644
2014-09-19 10:35:35 -04:00
git-harry
36dd138aa6 Enables debug mode for keystone session object
This fixes the lack of debug messages introduced by commit 84af49c.

Change-Id: I7bf3e98c21f09bd4f3c2d5d3bc372f60d717c9d5
Closes-bug: #1370152
2014-09-18 17:14:19 +01:00
Andreas Jaeger
b03d1e1f4c Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This can cause docs jobs to fail if the project errors out on
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-13 09:40:00 +02:00
Jenkins
4c8464114f Merge "Update index file for release of 1.1.0" 2014-09-12 09:36:23 +00:00
Jenkins
d904b6509a Merge "Make <volume-types> required option for create cg" 2014-09-12 08:41:57 +00:00
Xing Yang
40f06b8be5 Make <volume-types> required option for create cg
Change-Id: I101ec89ab95cedd8b55247301c1c3b9cba2645c5
2014-09-10 13:58:46 -04:00
John Griffith
6055e2d7ec Update index file for release of 1.1.0
Change-Id: I75bbf1cf88fb516409f0ed30b962af7e5ac6236e
2014-09-10 08:55:38 -06:00
Bill Arnold
f7d391e5cb client HTTPClient __init__ fails if auth_url None
The initializer for the python-cinderclient HTTPClient class
fails if passed a None for an auth_url.
This patch modifies the inializer to not call rstrip
if auth_url is None, matching the initalizers in
python-novaclient and python-neutronclient

Change-Id: I19dd6911816639a0e0d6175ba910e9777a4b5981
Closes-bug: #1358926
2014-09-09 18:40:31 +00:00
Jenkins
9bd8c5dff9 Merge "Use adapter from keystoneclient" 2014-09-09 16:01:33 +00:00
Jenkins
6f6d828795 Merge "Cinder Client for Consistency Groups" 2014-09-09 07:17:30 +00:00
Jenkins
42d13be346 Merge "Quotaset update does not return result" 2014-09-08 20:26:05 +00:00
Xing Yang
9fc64a52b1 Cinder Client for Consistency Groups
This patch implements CLI commands for the Consistency Groups
feature. Only snapshots for CGs will be implemented in phase 1.

Change-Id: I447555fd8a92bceecf6f40be59030d65461e4cbb
Implements: blueprint consistency-groups
2014-09-08 10:37:04 -04:00
Christian Berendt
17e4d6c381 Fixed typos found by RETF rules
Rules are available at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I8de0631346b703870ce8ebe9ce728a0360f1ba7f
2014-09-08 11:31:22 +00:00