12272 Commits

Author SHA1 Message Date
Jenkins
0842264377 Merge "Adds API documentation for list and show hosts." 2017-04-11 04:16:03 +00:00
Jenkins
bb9692cb2c Merge "Add missing and incorrect response and error codes in cinder api-ref" 2017-04-11 04:15:55 +00:00
Jenkins
376f9b024d Merge "Adds missing return value to create_cloned_volume of Quobyte driver" 2017-04-11 04:15:46 +00:00
Jenkins
9eca9e3e1d Merge "Tests: Remove the redundant methods" 2017-04-10 17:11:54 +00:00
lijunbo
2f75fb91d9 Tests: Remove the redundant methods
This patch removes the redundant tearDown() methods in
order to keep the code clean, In the subclass, tearDown
methods has no benefit from that, the one in superclass
will satisfy that

Change-Id: Id38d2c9de2cde14f897d0e705ec6c086f691bbaf
2017-04-10 15:22:34 +00:00
Jenkins
3ed5f157a8 Merge "Fix config option volume_backend_name's invalid overridden value" 2017-04-10 15:22:27 +00:00
Jenkins
140dc8d00c Merge "SMBFS: enable Nova assisted volume snapshots" 2017-04-10 15:00:13 +00:00
ChangBo Guo(gcb)
2c938e9d9e Fix config option volume_backend_name's invalid overridden value
oslo.config made method set_override with enforce_type=True
by default[1], will try to convert override value according to config
option's type. Config option volume_backend_name is StrOpt[2], need
be overridden with string value.

Closes-Bug: #1681334

[1] https://review.openstack.org/#/c/328692/
[2] http://git.openstack.org/cgit/openstack/cinder/tree/cinder/volume/driver.py#n66

Change-Id: If246b5fd91c7fc2c381acc56ef499ada7f411741
2017-04-10 16:01:28 +08:00
OpenStack Proposal Bot
6fe71ea504 Updated from global requirements
Change-Id: I78c450de05bbb45f220c6cea361b57e2a50ef7bc
2017-04-08 03:55:38 +00:00
Jenkins
687b4976fb Merge "Mark QNAP volume driver as unsupported" 2017-04-08 02:58:25 +00:00
Jenkins
b071f46f23 Merge "Fixed wrongly catched multiple exception types" 2017-04-07 18:33:03 +00:00
Jenkins
a5f3addc8b Merge "Storwize: add CG capability to generic groups" 2017-04-07 15:35:12 +00:00
Jenkins
c85dcdbe21 Merge "Use HostAddressOpt for opts that accept IP and hostnames" 2017-04-07 03:13:58 +00:00
Jenkins
08eb26589e Merge "Remove mirror policy parameter from Huawei driver" 2017-04-06 08:17:09 +00:00
luqitao
0a7ce3b2d7 Use HostAddressOpt for opts that accept IP and hostnames
Some configuration options were accepting both IP addresses
and hostnames. Since there was no specific OSLO opt type to
support this, we were using ``StrOpt``. The change [1] that
added support for ``HostAddressOpt`` type was merged in Ocata
and became available for use with oslo version 3.22.

This patch changes the opt type of configuration options to use
this more relevant opt type - HostAddressOpt.

[1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb

Change-Id: Ia5df1e10dbe76040b89b989b8914b2a9b77ad856
2017-04-05 22:19:06 -04:00
Jenkins
022fde1fc3 Merge "DS8K driver: change the design of CG" 2017-04-06 01:39:30 +00:00
Jenkins
152ad2df45 Merge "Fix attach issue for failed-over volume" 2017-04-05 21:16:06 +00:00
Jenkins
bb681ad4ba Merge "Add sem-ver flag so pbr generates correct version" 2017-04-05 19:48:22 +00:00
Jenkins
5fb341ea25 Merge "Add CG capability to generic groups in Huawei driver" 2017-04-05 17:42:17 +00:00
Jia Min
d94651db18 DS8K driver: change the design of CG
When making consistency group snapshot, flashcopy in DS8K needs
to freeze the whole LSS which holds volumes. So it will affect
volumes not belonging to the CG if they are in the LSS used by
volumes belonging to CG. In order to dedicate LSS to CG, we need
to allocate volume not belonging to CG in other LSSs.

On the other hand, this change switches to generic volume group
from consistency group at the same time, but generic volume group
driver interfaces are added in another review, please refer to
https://review.openstack.org/#/c/445860.

DocImpact
Depends-On: Id9964f868c2dc14aaee37e4bcbba330fb4575492
Closes-Bug: #1655841
Change-Id: Ic6406a558c035ebb34177f87076adaec55b08f65
2017-04-05 16:07:06 +00:00
Emilien Macchi
045d4c97df Add sem-ver flag so pbr generates correct version
tl;dr : without this Ocata and Pike have the same version causing
packaging issues.


https://docs.openstack.org/developer/pbr/#version

Because projects don't push a tag before milestone 1 (pike-1 here),
downstream packages are still building packages by using the version
from Ocata and it causes problems to distros because they can't test
the upgrades from Ocata to Pike.

Bumping the semver will allow us to test packages upgrades.
Note: When your version is X.Y.Z, api-break will bump X, and feature
will bump Y. In this patch, we bump X because this is the way you
bump tags over releases.


Change-Id: I9a82715ab47791d1dcebe0d17ebcad1c60d70654
Sem-Ver: api-break
2017-04-05 11:41:27 +00:00
Gábor Antal
b4d492d08e Fixed wrongly catched multiple exception types
In the file volume/drivers/netapp/eseries/library.py [1], multiple
exception types is being catched, but wrongly, see example at [2].

According to Python's documentation [3], the correct form is:
"An except clause may name multiple exceptions as a parenthesized tuple"

In this patched, this is fixed.

[1]: https://github.com/openstack/cinder/blob/master/cinder/volume/drivers/netapp/eseries/library.py#L442
[2]: https://bugs.launchpad.net/cinder/+bug/1659791
[3]: https://docs.python.org/2/tutorial/errors.html#handling-exceptions

TrivialFix
Closes-Bug: #1659791

Change-Id: I80df724b7a2091e39777a63665fd7641c521fe65
2017-04-05 09:51:48 +00:00
Xiaoqin Li
103870f40d Storwize: add CG capability to generic groups
This patch adds consistency group capability to generic volume
groups in Storwize driver. Re-use the CG implementations if it
is a CG type group. And if the group being created isn't a CG
then we bail out and the generic volume groups will take care of it.

Implements: blueprint storwize-generic-group
Change-Id: I64a7a29fd6620c3c8ea848c84bd564c9a632d307
2017-04-05 10:57:52 +08:00
Peter Wang
ff30688ee5 Fix attach issue for failed-over volume
VNX driver currently doesn't support attaching of failed-over volume,
if user try to do this, a error will pop up like:
    VNXAluNotFoundError: Error: storagegroup command failed

This fix address above issue, user can attach/detach any failed-over
volume.

Closes-bug: 1677956
Change-Id: I7802b7c57e438c27e4df225fb03ca4cda84e2620
2017-04-05 09:43:37 +08:00
Jenkins
506e31f253 Merge "[Trivial]Fix some incorrect annotations" 2017-04-04 22:57:42 +00:00
Jenkins
19c1a637c0 Merge "Huawei: disable certificate verification" 2017-04-04 17:41:58 +00:00
Jenkins
1993726397 Merge "Reduce code duplication" 2017-04-04 16:20:44 +00:00
Jenkins
96d3f33215 Merge "Add more specific error message" 2017-04-04 16:10:35 +00:00
Béla Vancsics
886ee08106 Reduce code duplication
Reduced source code by extracting duplicated code
(in volume/drivers/dell_emc/vmax/utils.py)

Change-Id: I3d68e360ab2030aa55cfb66f9663fc3772b141e1
2017-04-04 10:22:13 +00:00
Jenkins
641864b662 Merge "Add two response parameters in the api-ref of getting capabilities" 2017-04-01 03:36:20 +00:00
Ivan Kolodyazhny
e49cf7a18f Remove 'verbose' config option initialization
'verbose' option was removed from the config, so we don't need to set in
in the functional tests.

Change-Id: I11e7f5adb2ee0cca3334764ec08904e8149a2e42
Closes-Bug: #1678094
2017-03-31 15:10:16 +03:00
huyang
2e06995ad5 Add CG capability to generic groups in Huawei driver
This patch adds the consistency group capability to generic group in
Huawei driver. Consistency groups will be used as generic groups.

DocImpact:
Implements: blueprint huawei-generic-group
Change-Id: I16937c0ccd9f5a4ffad79f35c49ab32ee6092620
2017-03-31 10:20:13 +08:00
liucheng
9ed6fac24c Huawei: disable certificate verification
Globally disable verification by monkeypatching the ssl
module in version of Python that enable certificate verification
by default for stdlib http clients.

Change-Id: If672933e581f06ffcd4c8d64921d061f42de23dc
Closes-Bug: #1672288
2017-03-31 01:44:49 +00:00
Jenkins
39e7f70dee Merge "VMAX driver - Live Migration is dropping connection" 2017-03-31 00:18:15 +00:00
Jenkins
b0b25af300 Merge "Hitachi: Mark HBSD and VSP as unsupported" 2017-03-31 00:15:41 +00:00
Adriano Rosso
595c8d3f85 Hitachi: Mark HBSD and VSP as unsupported
As per the message sent to the mailing list [1], the HBSD and
VSP drivers should be marked as unsupported.

[1]http://lists.openstack.org/pipermail/openstack/2017-March/018812.html
DocImpact

Change-Id: I921d1a16b28a2f310a483283069ae819ad498228
2017-03-30 17:07:03 -03:00
Jenkins
04ad974984 Merge "Remove XML description from media-types" 2017-03-30 19:16:20 +00:00
Jenkins
d6882838af Merge "Add an optional db session argument to cinder.db.sqlalchemy.api. quota_allocated_get_all_by_project(). Then in quota_reserve() pass the session that is fetched for that method so that a new session does not have to be made. This can avoid DB timeouts and retries when a lot of concurrent operations are hitting quota_reserve()." 2017-03-30 17:55:41 +00:00
Jenkins
5679ae2644 Merge "HNAS: Mark NFS driver as unsupported" 2017-03-30 17:01:30 +00:00
Jenkins
aa13d63d1b Merge "ScaleIO: Fixing support for SIO 1.3x" 2017-03-30 16:29:11 +00:00
Jenkins
d47eda3a3b Merge "Support for HostAddress opt" 2017-03-30 16:18:31 +00:00
Jenkins
c6a940b885 Merge "Fix some format error in docstrings" 2017-03-30 15:34:30 +00:00
Jenkins
9caf2d8531 Merge "Fix error status check when create backup" 2017-03-30 14:33:31 +00:00
Jenkins
c17c8d67b1 Merge "Remove unused CG code" 2017-03-30 14:32:00 +00:00
Adriano Rosso
c37fcfa374 HNAS: Mark NFS driver as unsupported
As per the message sent to the mailing list [1], the Hitachi NAS
Platform driver should be marked as unsupported.

[1]http://lists.openstack.org/pipermail/openstack/2017-March/018812.html
DocImpact

Change-Id: I2a56b43d818cd4828fb15dcec75b2af6adda5837
2017-03-30 10:56:47 -03:00
wanghao
4608a9df43 Support for HostAddress opt
Since Oslo has introduced the new opt HostAddress opt[1].
This would ensure that an invalid IP does not pass as
a valid hostname and at the same time retains the
rules required to be followed for the validation of
an acceptable hostname.

[1]:https://review.openstack.org/#/c/358045/

Change-Id: I8cb46f6a55cbece5cecce495de76b6ff06459470
2017-03-30 21:37:17 +08:00
Carl Pecinovsky
25d6d0848c Add an optional db session argument to cinder.db.sqlalchemy.api.
quota_allocated_get_all_by_project(). Then in quota_reserve()
pass the session that is fetched for that method so that a new
session does not have to be made. This can avoid DB timeouts
and retries when a lot of concurrent operations are hitting
quota_reserve().

Added session to method mocking in the UT cases and removed a
mocking instance that was dead code since it was already mocked
in the specific tests needed.

Change-Id: I43b5035926eb8b65e7913ac0a8c58e6b9ebb5619
Closes-Bug: #1676574
2017-03-30 09:12:21 -04:00
Helen Walsh
069dd5b80d VMAX driver - Live Migration is dropping connection
When Live migrating from one compute node to another the connection
drops and requires the instance to be rebooted. To prevent this
from happening we need to share the storage group and port group
between masking views.

Change-Id: I1483ca38362c5ff1724940c2abf1179e75e02c8e
Closes-Bug: #1676459
2017-03-30 10:16:24 +01:00
yuhui_inspur
da73909143 [Trivial]Fix some incorrect annotations
Change-Id: Ie1c7fa935fb06d07ff901eae1a9024069a250a1b
2017-03-30 03:42:11 +00:00
XieYingYun
1293e25115 Fix some format error in docstrings
Probably the most common format for documenting arguments is reST field
lists [1]. This change updates some docstrings to comply with the field
lists syntax.

[1] http://sphinx-doc.org/domains.html#info-field-lists

Change-Id: I0fe2d2faa7a1abd6d5e84f05e7fdbb13661a94dc
2017-03-30 10:01:18 +08:00