547 Commits

Author SHA1 Message Date
Jay Lau
5cc624c4f3 Update doc string for service disable
It should be "Disable" but not "Enable" in doc string when disable
a service.

Change-Id: I658090d4e218222c76947c37f340fb2ab7d26ce3
2014-03-03 08:31:08 +08:00
Peter Hamilton
3ec28c3309 Fix type-delete to allow deletion by name and ID
This change addresses bug #1286314, fixing type deletion to allow
deletion by either volume type name or ID. The former implementation
only accepted the volume type ID. Help documentation is also updated
to reflect this change.

Change-Id: I0fc66b54a7bcfa4e00a4d136ac513fa40e628dd2
Closes-Bug: #1286314
DocImpact
2014-02-28 15:48:23 -05:00
Julie Pichon
ea8c9554c9 Fix typos in the volumes and snapshots docstrings
Change-Id: I0e4f3813b8e263ea59e182db153c5b4c6fd2a177
2014-02-26 16:30:53 +00:00
Jenkins
596c909097 Merge "Set v2 commands available for v2 service_type" 2014-02-26 02:14:32 +00:00
Mike Perez
7b176c6705 Set v2 commands available for v2 service_type
These commands originally were only available for v1, but this makes
them available for both v1 and v2 service_type.

Change-Id: I26e3f1997aebafa1eb784273c892397522dbbfe2
Closes-Bug: #1284321
2014-02-24 16:17:32 -08:00
OpenStack Jenkins
0b9e2f52c6 Updated from global requirements
Change-Id: Ibd5e12f7a33667d93e2fc99d79a11cff44c3b884
2014-02-23 09:31:13 +00:00
Stephen Ahn
dfa3a93ba4 Wrong hint key in volume create function
Hint key has to be 'OS-SCH-HNT:scheduler_hints' not 'scheduler_hints'
and scheduler_hints key has to be located in same level with volume.

Change-Id: Ic5888545d4b7ee6bb58a22840928ef1fc86fedfa
Closes-Bug: #1276088
2014-02-21 09:16:49 +09:00
Cory Stone
d5334aa929 Add auth_plugin support to cinderclient
With CINDER_RAX_AUTH being rightfully removed, cinderclient is no longer
compatible with Rackspace/any non-keystone auth. To fix this, I stole
auth_system/auth_plugin from novaclient's implementation.

See https://review.openstack.org/#/c/23820/.

Change-Id: If5f84003f868ef02bb7eb7da67cf62018602e8f0
Closes-Bug: 1280393
2014-02-14 15:09:44 -06:00
llg8212
603029ff01 Remove dependent module py3kcompat
Module py3kcompat was removed from oslo-incubator, we can use
six directly.

* Sync commit of removing py3kcompat from oslo
* use six replace usage of py3kcompat

Change-Id: Ifabce6866cf82f81a33924ea586987388afa589b
Closes-Bug: #1280033
2014-02-14 17:25:43 +08:00
Peter Hamilton
6fd8d8e12e Require ctrl_location for encryption-type-create
This bug fix addresses bug #1267168, adding a default value to the
optional control_location parameter for the encryption-type-create
command. Prior to this fix, any invocation of encryption-type-create
that omitted the control_location parameter would fail. The failure
arose from the expectations of the cinder volume encryption type
API extension, which expects to always receive a value for the
control_location on encryption type creation.

control_location indicates which service will conduct the volume
encryption for the encryption-type under consideration; valid options
are 'front-end' (i.e., nova) and 'back-end' (i.e., cinder). The new
default value is 'front-end' and is used whenever control_location
is omitted from encryption-type-create invocation. For prior
discussion and information, see the abandoned patch below:

https://review.openstack.org/#/c/58303/

blueprint encrypt-cinder-volumes
https://blueprints.launchpad.net/nova/+spec/encrypt-cinder-volumes

Change-Id: I8db80929adbf5a3d818b9d3a8115067ae8e7d9e2
Closes-Bug: #1267168
DocImpact
2014-02-12 21:38:41 +02:00
Jay S. Bryant
803f0f69a6 Remove vim header
Making this change for python-cinderclient to be consistent
with Cinder.  The same change was made to Cinder via
commit ff3f2e5735f0d486b72b6881b05ace94d6d34d03 .

Partial-bug 1229324
Change-Id: I69fb960f499f0c9a9c9671d46d10170477cf6695
2014-02-12 10:18:09 -06:00
Jay S. Bryant
165ba7bc5b Remove call to undefined install.post_process()
Oslo commit b5cca99e5281d9c0c5eda444137e418b31209c45 removed
the obsolete redhat-eventlet.patch.  Part of this commit
removed the post_process() method which we were still calling
in tools/install_venv.py .  The post_process function was just
there to do any distro-specific post processing.  By default,
that was nothing.  So, this is safe to remove.

This same change was made to python-novaclient with
commit 0194492059920fd8d9d91849c341b2de0b561089 .

Closes-bug: 1275025
Change-Id: I4c52e2c0d3d6553f5d33e94cd6e8622160febc37
2014-02-12 09:07:07 -06:00
Jeremy Stanley
7914e46b03 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Ibd505447de74f13d90b9ff77dfd8c6b30c4c12cb
Closes-Bug: #1277495
2014-02-10 03:09:27 +00:00
Swapnil Kulkarni
4273bbefb9 Fix typos in cinderclient
Small nit-pics in volume_transfers.

Change-Id: I846b38970b14e6385269a02bb495c63464ea0842
Closes-Bug: #1255905
2014-02-05 16:23:23 +02:00
Mike Perez
e31e057ccc Revert "Update cinderclient to skip the additional GET during create"
This reverts commit 47014971b09f0334e5cc3b414bef31784f88a37d.

Conflicts:
	doc/source/index.rst

Change-Id: Ica1e526b2c181d1ce72183b7293d21119371c822
2014-02-04 14:14:22 -07:00
Jenkins
e0132e5206 Merge "Fixed image_name from image-name in upload-to-image" 2014-02-03 04:21:40 +00:00
john-griffith
305f760939 Update release notes for push to pypi
Need to get a 1.08 out, so just modifying the release notes
for the push version.

Change-Id: Icf9684ab0fabf0168662c3ff4047db54a2670d11
2014-02-02 09:25:27 +02:00
Andrew Kerr
019f43f63f Fixed image_name from image-name in upload-to-image
This fix addresses an issue where the variable name for image_name
was incorrect, causing the image_name parameter to be sent as null
when using "cinder upload-to-image" from cli with v2 of the API

Change-Id: I62f8bbb4397526fb291a46777d9025318da8e5b3
Closes-Bug: 1274552
2014-01-31 18:39:04 -05:00
Jenkins
7d7b7d2893 Merge "Sync up with oslo-incubator" 2014-01-30 01:31:20 +00:00
Eric Harney
306d451bc7 Add shell tests for snapshot_delete
snapshot_delete does not have a shell test covering it.

Closes-Bug: #1257747

Change-Id: I22252f5025c11a7c115aa75e07c78424eec75ba1
2014-01-27 13:48:12 -05:00
Andrey Kurilin
14cf62eb3b Sync latest apiclient code from Oslo
We needs to update apiclient code to have ability to use it in py3 environment.

Сhanges from oslo-incubator related to apiclient
=====================================================================
Change 8575d87 - Removed copyright from empty files
Change bbaf317 - Use encode() instead of strutils.safe_encode() in fake_client
Change 41dc2b4 - Encode response from FakeHTTPClient
Change e6494c2 - Use six.iteritems to make dict work on Python2/3
Change 0d8f18b - Use urlutils functions instead of urllib/urllib2
Change 16fb43b - Replace data structures' attribute with six module
Change 9d0ec6a - Use six.iteritems for python 3.3 support in apiclient module
Change 12bcdb7 - Remove vim header
Change 4c22556 - Use py3kcompat urlutils functions instead of urlparse
Change 3970d46 - Fix typos in oslo
Change 1771a77 - Adjust import order according to PEP8 imports rule
Change da611e6 - Transform the for loop to expression
Change 4bfb7a2 - Apply six for metaclass
Change eca62f7 - Changed header from LLC to Foundation based on trademark policies

Change-Id: Ia87807828f344e463fa308413bd627dc57d1a41d
2014-01-27 10:12:37 +02:00
Jenkins
dd92af2a9e Merge "Remove RAX-specific auth in cinderclient" 2014-01-27 07:16:09 +00:00
Swapnil Kulkarni
c5b5646f9e Sync up with oslo-incubator
be81d6b Cleanup unused log related code
e53fe85 strutils bool_from_string, allow specified default
12bcdb7 Remove vim header
12d3bbc Add method quote_plus in module py3kcompat.urlutils
afdbc0a Fix E501 in individual openstack projects

Oslo Version:
8dee4b6 Merge "remove extra newlines that eventlet seems to add"
Thu, 23 Jan 2014 14:26:42 +0530 (08:56 +0000)

Change-Id: I7348e797a4a78ec20dff77ebdbb41bb8c6068b34
2014-01-26 16:13:11 +05:30
Avishay Traeger
17d7455d27 Add retype to index.rst
Retype patch was merged but not added to index.rst

Change-Id: I15e52153fccf07026d4b1dfcc1fb62a27d6d3ca2
2014-01-26 09:28:48 +02:00
Jenkins
3b92c27deb Merge "Add volume retype command" 2014-01-26 06:18:23 +00:00
Jenkins
4fca766f4e Merge "Unit tests for limits.py in cinderclient/v1 and v2" 2014-01-25 23:36:43 +00:00
Avishay Traeger
58d8a00a57 Add volume retype command
Add volume retype to Cinder client.
Cinder code: https://review.openstack.org/#/c/44881/

Change-Id: Ied4902da531386f744403962e4a8ddfb7587c4ef
2014-01-25 15:55:23 -07:00
Jenkins
36a92e1286 Merge "disable/enable a service has no output" 2014-01-25 14:23:20 +00:00
Jenkins
560df45093 Merge "Fix 'search_opts' unexpected keyword argument error" 2014-01-25 06:38:20 +00:00
Swapnil Kulkarni
fbee97cf19 Remove RAX-specific auth in cinderclient
Change-Id: Idd36694a322f467ba5e8c1f58bfac701bff8f3f8
Closes-Bug: #966329
2014-01-25 08:22:13 +05:30
Jenkins
e2642796b8 Merge "Add encryption-type-delete to cinderclient" 2014-01-24 11:39:12 +00:00
Jenkins
6cbf648881 Merge "Remove copyright from empty files" 2014-01-23 03:07:16 +00:00
Jay Lau
c2ef5eaf49 disable/enable a service has no output
When disable/enable a cinder service, there is no output, this
caused end user does not know if the service was disabled/enabled
successfully.

It is better add some output for the command just like nova to tell
end user the service status.

Change-Id: I9d440ab7437c268b17627e255f152db0b3bf4f53
Closes-Bug: #1261120
2014-01-21 22:57:23 +08:00
Xiao Chen
2f0863b7d4 Fix 'search_opts' unexpected keyword argument error
When executing 'encryption-type-create' command using resource
name, it will use the findall() in base.py, then error will
occur because list() in findall() used 'search_opts' argument
which list() in VolumeEncryptionTypeManager did not have. Some
other command like 'transfer-delete' met same issue.

This patch will add 'search_opts' argument in list() function
in child class to avoid the bug.

Closes-Bug: #1248519
Related-Bug: #1252665

Change-Id: If1cd8b812af21335e5d4351766539a927a8fbdf4
2014-01-20 15:43:31 +08:00
Dirk Mueller
a1a36499f4 Remove dependencies on pep8, pyflakes and flake8
They should be determined by the hacking dependency
implicitely.

Change-Id: I5c077e4b8e5985e86af3229a58aa475ac668b5e1
2014-01-16 13:19:28 +01:00
Alexander Ignatov
69188a9551 Remove copyright from empty files
According to policy change in HACKING:
http://docs.openstack.org/developer/hacking/#openstack-licensing
empty files should no longer contain copyright notices.

Change-Id: I357adea1d295cdc11a12194ad7116d73a8560122
Closes-Bug: #1262424
2014-01-16 02:12:43 +04:00
Igor A. Lukyanenkov
efc080dfca Unit tests for limits.py in cinderclient/v1 and v2
Change-Id: I962161ac657d9ec676f3b03ab17138ed1911ec35
2014-01-13 16:17:16 +04:00
Swapnil Kulkarni
47014971b0 Update cinderclient to skip the additional GET during create
With change https://review.openstack.org/64945 cinder V2 API now
returns volume details. Updated do_create in cinderclient
to remove additional GET call.

Change-Id: I2a36f2fa865b52f228bad44e0a9c67d49228321e
Partial-Bug: #1265893
2014-01-08 13:37:41 +05:30
Jenkins
2d155ecb07 Merge "Updates .gitignore" 2014-01-07 09:31:34 +00:00
Jenkins
a33240f578 Merge "Updates .gitignore for environment files" 2013-12-31 20:41:38 +00:00
Igor A. Lukyanenkov
1fc1b4bea1 Fix RateLimit.__repr__ - self.method is undefined
Using self.verb instead of self.method, unit tests added to cover this fix.

Closes-bug: #1258489

Change-Id: I4a84179ff96c50b230afcaea7a19fb54613577fb
2013-12-31 18:00:24 +04:00
Zhenguo Niu
12ee7b72ff Fix inappropriate comment for volume update api
Change-Id: Id7a436cc864772bd2662fce0ef80d647c9e3dcf0
Closes-Bug: #1264415
2013-12-27 10:38:25 +08:00
Sushil Kumar
2e1d92bd6d Updates .gitignore for environment files
Adding ignore for Eclipse IDE environment files
These files .project and .pydevproject should be
ignored while pushing to repositories.

Change-Id: I44dbdaae71c3ed37c11122f1795d36c401dd431a
Closes-Bug: #1256043
2013-12-23 20:21:11 +00:00
Sushil Kumar
420a8fdcea Updates .gitignore
Remove files we don't generate in the sources.

Closes-Bug: #1256043

Closes-Bug: #1257279

Change-Id: I18552182958448baa040c988b02affc231cbf62b
2013-12-18 09:28:47 +00:00
Jenkins
a2b9bdd36c Merge "Discrepancy between README.rst and cinder help" 2013-12-17 07:14:51 +00:00
Jenkins
78a09e94d3 Merge "Updates tox.ini to use new features" 2013-12-17 03:54:07 +00:00
Chris Buccella
97f293fea2 Discrepancy between README.rst and cinder help
1) --version in README should be --os-volume-api-version

2) CINDER_URL should be OS_AUTH_URL

Change-Id: I409634f3025463f2ae9419ddd0d99fa50554a04d
Closes-Bug: 1251385
2013-12-15 10:25:26 +02:00
Jenkins
b6f9364f54 Merge "Fix broken argument name in v2 volume extend routine" 2013-12-12 19:47:05 +00:00
Jenkins
1c3c79b19e Merge "Reset-state and snapshot-reset-state for multiple objects" 2013-12-12 19:47:03 +00:00
OpenStack Jenkins
1cfd71c776 Updated from global requirements
Change-Id: I53edc66fe4d112ee6f341aa39943630a74c08a87
2013-12-10 23:45:12 +00:00