]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoRemove an useless and wrong call
XinXiaohui [Tue, 1 Mar 2016 02:20:41 +0000 (10:20 +0800)]
Remove an useless and wrong call

In cinder/objects/service.py, the method
obj_make_compatible() of Class Service is
useless and it called convert_version_to_tuple()
incorrectly from utils from Cinder instead of
from versionutils from oslo_utils, just remove it.

Change-Id: I383ba2c793add02b83591cc44e4e4584d09c7ed5

8 years agoMerge "NetApp: Fix SSH Client File Creation in Unit Test"
Jenkins [Tue, 1 Mar 2016 02:51:05 +0000 (02:51 +0000)]
Merge "NetApp: Fix SSH Client File Creation in Unit Test"

8 years agoMerge "Huawei: Consider bandwidth when selecting port"
Jenkins [Tue, 1 Mar 2016 02:49:34 +0000 (02:49 +0000)]
Merge "Huawei: Consider bandwidth when selecting port"

8 years agoMerge "Adding general notes about rolling upgrades"
Jenkins [Tue, 1 Mar 2016 01:56:47 +0000 (01:56 +0000)]
Merge "Adding general notes about rolling upgrades"

8 years agoMerge "Trim 12s from disco unit tests"
Jenkins [Tue, 1 Mar 2016 01:56:27 +0000 (01:56 +0000)]
Merge "Trim 12s from disco unit tests"

8 years agoMerge "VMware: manage_existing for VMDK driver"
Jenkins [Mon, 29 Feb 2016 22:44:16 +0000 (22:44 +0000)]
Merge "VMware: manage_existing for VMDK driver"

8 years agoMerge "Re-enable -1 child limits for nested quotas"
Jenkins [Mon, 29 Feb 2016 22:17:44 +0000 (22:17 +0000)]
Merge "Re-enable -1 child limits for nested quotas"

8 years agoMerge "Clean up replication v2.1 (Cheesecake) RPC API"
Jenkins [Mon, 29 Feb 2016 20:54:50 +0000 (20:54 +0000)]
Merge "Clean up replication v2.1 (Cheesecake) RPC API"

8 years agoMerge "always use pip constraints"
Jenkins [Mon, 29 Feb 2016 18:45:29 +0000 (18:45 +0000)]
Merge "always use pip constraints"

8 years agoMerge "Move deprecation release notes to correct section"
Jenkins [Mon, 29 Feb 2016 16:47:46 +0000 (16:47 +0000)]
Merge "Move deprecation release notes to correct section"

8 years agoMerge "Check for service existance in capabilities API"
Jenkins [Mon, 29 Feb 2016 16:46:08 +0000 (16:46 +0000)]
Merge "Check for service existance in capabilities API"

8 years agoMerge "Remove unused pngmath sphinx extension"
Jenkins [Mon, 29 Feb 2016 16:29:09 +0000 (16:29 +0000)]
Merge "Remove unused pngmath sphinx extension"

8 years agoMerge "Huawei: delete_snapshot need not return any value"
Jenkins [Mon, 29 Feb 2016 16:28:50 +0000 (16:28 +0000)]
Merge "Huawei: delete_snapshot need not return any value"

8 years agoMerge "Add description when rename LUN in Huawei driver"
Jenkins [Mon, 29 Feb 2016 16:28:32 +0000 (16:28 +0000)]
Merge "Add description when rename LUN in Huawei driver"

8 years agoMerge "Match the ip more accurately in Huawei driver"
Jenkins [Mon, 29 Feb 2016 16:27:05 +0000 (16:27 +0000)]
Merge "Match the ip more accurately in Huawei driver"

8 years agoMerge "Modify the number of params of hypermetro in HuaweiDriver"
Jenkins [Mon, 29 Feb 2016 14:18:44 +0000 (14:18 +0000)]
Merge "Modify the number of params of hypermetro in HuaweiDriver"

8 years agoClean up replication v2.1 (Cheesecake) RPC API
Michał Dulko [Mon, 29 Feb 2016 13:25:54 +0000 (14:25 +0100)]
Clean up replication v2.1 (Cheesecake) RPC API

We've merged replication v2.1 (Cheesecake) code with two little issues
in RPC API layer:

 * volume.rcpapi have list_replication_targets method, which is unused
   and not handled by volume.manager.
 * There are no tests for new methods in test_volume_rpcapi module.

This commit sorts this out.

Change-Id: I2ba6ee68e1e729c9d391a846941ae6bdbbefbc9b
Related-Blueprint: replication-update

8 years agoMerge "Move anyjson to test-requirements"
Jenkins [Mon, 29 Feb 2016 13:35:40 +0000 (13:35 +0000)]
Merge "Move anyjson to test-requirements"

8 years agoMerge "Add pip-missing-reqs tox env"
Jenkins [Mon, 29 Feb 2016 12:59:30 +0000 (12:59 +0000)]
Merge "Add pip-missing-reqs tox env"

8 years agoalways use pip constraints
Andreas Jaeger [Fri, 26 Feb 2016 18:44:07 +0000 (19:44 +0100)]
always use pip constraints

This flips the tox.ini to always use constraints installation for
all targets. It drops the extra -constraints targets in the process.
This makes it so there is no developer change required to operate in our
new world order.

Change-Id: I2b56835edb2d75b7c871aae030e909578dbb958d
Depends-On: Iecd35d6bc3b1e9e0ed31b48a34e4149d34d55ac2

8 years agoMerge "Propoerly call oslo's Service stop and wait"
Jenkins [Mon, 29 Feb 2016 10:29:23 +0000 (10:29 +0000)]
Merge "Propoerly call oslo's Service stop and wait"

8 years agoMerge "Remove unused kill method from Service"
Jenkins [Mon, 29 Feb 2016 10:29:05 +0000 (10:29 +0000)]
Merge "Remove unused kill method from Service"

8 years agoMerge "replace deprecated oslo_messaging _impl_messaging"
Jenkins [Mon, 29 Feb 2016 10:05:05 +0000 (10:05 +0000)]
Merge "replace deprecated oslo_messaging _impl_messaging"

8 years agoMerge "Delete volumes with snapshots"
Jenkins [Mon, 29 Feb 2016 05:40:34 +0000 (05:40 +0000)]
Merge "Delete volumes with snapshots"

8 years agoMerge "Improve logging to debug invalid "extra_specs" entries"
Jenkins [Mon, 29 Feb 2016 03:14:25 +0000 (03:14 +0000)]
Merge "Improve logging to debug invalid "extra_specs" entries"

8 years agoMerge "Handle OverQuota exception during volume transfer"
Jenkins [Mon, 29 Feb 2016 03:14:13 +0000 (03:14 +0000)]
Merge "Handle OverQuota exception during volume transfer"

8 years agoMerge "Return all target_wwpns for FC storwize"
Jenkins [Mon, 29 Feb 2016 02:51:18 +0000 (02:51 +0000)]
Merge "Return all target_wwpns for FC storwize"

8 years agoMerge "Disable multi-attach for RBD"
Jenkins [Mon, 29 Feb 2016 02:42:19 +0000 (02:42 +0000)]
Merge "Disable multi-attach for RBD"

8 years agoMerge "Huawei: Judgement failure when creating hypermetro"
Jenkins [Mon, 29 Feb 2016 01:56:38 +0000 (01:56 +0000)]
Merge "Huawei: Judgement failure when creating hypermetro"

8 years agoMerge "Fix race condition in RemoteFS create_snapshot_online"
Jenkins [Mon, 29 Feb 2016 01:29:46 +0000 (01:29 +0000)]
Merge "Fix race condition in RemoteFS create_snapshot_online"

8 years agoMerge "VMware: manage_existing_get_size for VMDK driver"
Jenkins [Mon, 29 Feb 2016 01:27:51 +0000 (01:27 +0000)]
Merge "VMware: manage_existing_get_size for VMDK driver"

8 years agoMerge "Updated from global requirements"
Jenkins [Sun, 28 Feb 2016 21:32:24 +0000 (21:32 +0000)]
Merge "Updated from global requirements"

8 years agoRemove unused pngmath sphinx extension
Andreas Jaeger [Sun, 28 Feb 2016 19:38:22 +0000 (20:38 +0100)]
Remove unused pngmath sphinx extension

The extension is not used, remove it.

Change-Id: I0720058e8d2235772b5bb82224b68b1b52e6060d

8 years agoMerge "Add basic workflow of attach/detach to devref"
Jenkins [Sun, 28 Feb 2016 16:09:13 +0000 (16:09 +0000)]
Merge "Add basic workflow of attach/detach to devref"

8 years agoDelete volumes with snapshots
Eric Harney [Thu, 7 Jan 2016 21:25:52 +0000 (16:25 -0500)]
Delete volumes with snapshots

This adds the 'cascade' parameter to volume delete,
which deletes snapshots along with a volume in
one call.

This is done in the volume manager, and not in
a driver-optimized way, which will be a later
improvement.

Blueprint: del-vols-with-snaps
Change-Id: I33d15b76d4bd0de14c635d404b2c97096c977a58

8 years agoMerge "Fix error message in cinder type-update"
Jenkins [Sun, 28 Feb 2016 01:35:13 +0000 (01:35 +0000)]
Merge "Fix error message in cinder type-update"

8 years agoMerge "Misprint in policy.json"
Jenkins [Sun, 28 Feb 2016 00:35:40 +0000 (00:35 +0000)]
Merge "Misprint in policy.json"

8 years agoNetApp: Fix SSH Client File Creation in Unit Test
Chuck Fouts [Sat, 27 Feb 2016 18:46:59 +0000 (13:46 -0500)]
NetApp: Fix SSH Client File Creation in Unit Test

A bug was introduced where ssh_known_hosts file is created when the unit
tests in test_netapp.py are run. This patch adds mocks to the ssh init
calls to prevent this file creation.

Change-Id: Ie8ac4e7a5236e6735c7c2f4f50c5383f5f23d38e
Closes-bug: #1550542

8 years agoTrim 12s from disco unit tests
Tom Barron [Sat, 27 Feb 2016 10:20:18 +0000 (05:20 -0500)]
Trim 12s from disco unit tests

The unit tests under cinder/tests/unit/volume/drivers/disco
contain three "timeout" tests, each of which runs more than 4s
while waiting for timeouts to expire.

This commit mocks time.time() in those tests using a utility
method that ensures an immediate timeout.

Change-Id: I8453e0231d7563d70732816bd3931140bcc01f4f

8 years agoMerge "Enable all unit tests on Python 3.4"
Jenkins [Sat, 27 Feb 2016 14:02:25 +0000 (14:02 +0000)]
Merge "Enable all unit tests on Python 3.4"

8 years agoMisprint in policy.json
Evgeny Antyshev [Sat, 27 Feb 2016 12:14:37 +0000 (12:14 +0000)]
Misprint in policy.json

Erroneous space in "rule: admin_api" was introduced in change Ibbd6f47c370d8f10c08cba358574b55e3059dcd1
oslo_policy regards space as a separator,
and fails to parse this rule: http://paste.openstack.org/show/488452/

Change-Id: I5de45c97a06b7ddecb36c2a1793c4f3fd5fd21d6

8 years agoRe-enable -1 child limits for nested quotas
Ryan McNair [Tue, 16 Feb 2016 17:12:53 +0000 (17:12 +0000)]
Re-enable -1 child limits for nested quotas

Add back support for -1 limits of child projects. The way that we
support the -1 child limits requires the following changes:
  * Continue quota validation up the hierarchy if the current limit is
    -1 until we hit a hard limit or no more parents, and update the
    any relevant parents' allocated value along the way
  * When updating limits, special care needs to be taken when updating
    child limit to be -1, or when changing from a -1 limit
  * Enable support for creating reservations for "allocated" values
    to support the scenario that:
      - a volume is created on a project with a limit of -1
      - the parent's allocated value has been updated appropriately
      - the volume create fails and the child's in_use quota rolls back
      - now we must also rollback the parent's allocated value

NOTE: There is a race condition between validation the NestedQuotas
and when the driver may be switched into use, and if -1 quotas are used
the validation could be out of date. Will look into better support for
switching on of NestedQuotas on live deployment with -1 limits, which
would likely leverage the "allocated" reservation system.

Closes-Bug: #1548645
Closes-Bug: #1544774
Closes-Bug: #1537189
Change-Id: I2d1dba87baf3595cc8f48574e0281ac17509fe7d

8 years agoMerge "EMC VMAX - Changing PercentSynced to CopyState in isSynched"
Jenkins [Sat, 27 Feb 2016 03:10:40 +0000 (03:10 +0000)]
Merge "EMC VMAX - Changing PercentSynced to CopyState in isSynched"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 27 Feb 2016 02:42:33 +0000 (02:42 +0000)]
Updated from global requirements

Change-Id: Iea494af5b9112af93030f5e8b86c907551e9ee40

8 years agoMerge "Volume manage/unmanage support to ZFSSA drivers"
Jenkins [Sat, 27 Feb 2016 02:21:54 +0000 (02:21 +0000)]
Merge "Volume manage/unmanage support to ZFSSA drivers"

8 years agoMerge "Change frozen error messages from _LE to _"
Jenkins [Sat, 27 Feb 2016 02:20:04 +0000 (02:20 +0000)]
Merge "Change frozen error messages from _LE to _"

8 years agoHuawei: delete_snapshot need not return any value
Wilson Liu [Thu, 25 Feb 2016 03:27:19 +0000 (11:27 +0800)]
Huawei: delete_snapshot need not return any value

Currently delete_snapshot return True or False to indicate
whether the snapshot is really deleted on the array. This
is useless and just write for unit tests. Now we will remove
the return value and add another unit test for delete_snapshot.

Closes-Bug: #1549584
Change-Id: I17fea61e3c0f5565ab04bc82f172e638480f45dc

8 years agoMatch the ip more accurately in Huawei driver
Wilson Liu [Tue, 16 Feb 2016 03:24:23 +0000 (11:24 +0800)]
Match the ip more accurately in Huawei driver

Currently we didn't match the ip in the iqn accurately,
now we will fix this in this patch.

Closes-Bug: #1545914
Change-Id: I32232fcc6cad733b0dd8fa8c323297f6fbac3137

8 years agoMerge "Replication v2.1 (Cheesecake)"
Jenkins [Sat, 27 Feb 2016 01:50:21 +0000 (01:50 +0000)]
Merge "Replication v2.1 (Cheesecake)"

8 years agoHuawei: Consider bandwidth when selecting port
Wilson Liu [Mon, 22 Feb 2016 08:09:33 +0000 (16:09 +0800)]
Huawei: Consider bandwidth when selecting port

Currently we count the weight of each FC port when
selecting port for zoning, but if all the weights
are equal, for example, at the very beginning when
all ports' weight are zero, we should select the
ports which have the bigger bandwidth.

Closes-Bug: #1548220
Change-Id: I59b3f0bb9adb1038f54b2f4a3c1dfa8bdc520ae9

8 years agoAdd description when rename LUN in Huawei driver
Wilson Liu [Sat, 23 Jan 2016 02:58:46 +0000 (10:58 +0800)]
Add description when rename LUN in Huawei driver

Sometimes when we rename a LUN on the array, we should
add some description to record some information like
volume id on cinder side. This patch will enable this.

Closes-Bug: #1537304
Change-Id: Ib156e61b5b1e305c41426cf5c6001dd44770140c

8 years agoModify the number of params of hypermetro in HuaweiDriver
GaoZqiang [Wed, 17 Feb 2016 00:47:26 +0000 (08:47 +0800)]
Modify the number of params of hypermetro in HuaweiDriver

When attaching or detaching hypermetro volume, the initialization
instance has three parameters, but the function definition has five
parameters.

Change-Id: I8343a7b75e02962c321a838de148acc54498f952
Closes-Bug: #1545971

8 years agoMerge "Fix NoneType error in service_get_all"
Jenkins [Fri, 26 Feb 2016 22:51:09 +0000 (22:51 +0000)]
Merge "Fix NoneType error in service_get_all"

8 years agoEMC VMAX - Changing PercentSynced to CopyState in isSynched
Helen Walsh [Wed, 18 Nov 2015 15:40:11 +0000 (15:40 +0000)]
EMC VMAX - Changing PercentSynced to CopyState in isSynched

In SE 8.x PercentSynced no longer works for VMAX3 as a criteria to
determine whether a device is synched or not. Luckily 'CopyState'
works for both VMAX2 and VMAX3 and is backward compatible with 7.6.x.

Change-Id: I443e5f17f3c0e779ebdfd868bcd05cb85b52f525
Closes-Bug: #1517103

8 years agoMerge "LeftHand: Updating minimum client version"
Jenkins [Fri, 26 Feb 2016 21:34:13 +0000 (21:34 +0000)]
Merge "LeftHand: Updating minimum client version"

8 years agoAdd basic workflow of attach/detach to devref
John Griffith [Fri, 26 Feb 2016 17:59:34 +0000 (10:59 -0700)]
Add basic workflow of attach/detach to devref

This is something that confuses folks and isn't centrally
located.  So... add it to the devref docs and hope that
developers read it.

There's tons of detail we can add in the future of course,
but this at least clears up some of the common misconceptions
that exist currently.

Change-Id: Ic5fb8da06d18fac3369a91a525accc75c1d28100

8 years agoChange frozen error messages from _LE to _
John Griffith [Thu, 25 Feb 2016 17:15:07 +0000 (10:15 -0700)]
Change frozen error messages from _LE to _

The super secret formula states that the error messages should
use '_' instead of '_LE'.  This patch changes the ones introduced
in Replication V2.1.

Change-Id: I9a4b87421eeda69ca918cbf869f2990ef113e158

8 years agoReplication v2.1 (Cheesecake)
John Griffith [Wed, 3 Feb 2016 16:11:58 +0000 (16:11 +0000)]
Replication v2.1 (Cheesecake)

This focuses the replication work on a specific use case,
and eliminates some of the ambiguity in earlier versions.

Additionally this implementation addresses needs for
devices that do replication based on the whole backend-device
or on Pools.

Use case:
  DR scenario, where a storage device is rendered inoperable.
  This implementation allows the preservation of user data
  for those volumes that are of type replication-enabled.

  The goal is NOT to make failures completely transparent
  but instead to preserve data access while an Admin tries
  to rebuild/recover his/her cloud.

It's very important to note that we're no longer interested in
dealing with replication in Cinder at a Volume level.  The concept
of have "some" volumes failover, and "others" left behind, proved
to not only be overly complex and difficult to implement, but we
never identified a concrete use-case where one would use failover
in a scenario where some volumes would stay and be accessible on
a primary but other may be moved and accessed via a secondary.

In this model, it's host/backend based.  So when you failover,
you're failing over an entire backend.  We heavily leverage
existing resources, specifically services, and capabilities.

Implements: blueprint replication-update

Change-Id: If862bcd18515098639f94a8294a8e44e1358c52a

8 years agoMerge "EMC ScaleIO - fix bug in extend volume"
Jenkins [Fri, 26 Feb 2016 19:45:52 +0000 (19:45 +0000)]
Merge "EMC ScaleIO - fix bug in extend volume"

8 years agoMerge "Huawei: Fix create volume with prefetch value error"
Jenkins [Fri, 26 Feb 2016 19:25:37 +0000 (19:25 +0000)]
Merge "Huawei: Fix create volume with prefetch value error"

8 years agoMerge "EMC VMAX - not cleaning up HW Resource WWPN initiators"
Jenkins [Fri, 26 Feb 2016 18:21:07 +0000 (18:21 +0000)]
Merge "EMC VMAX - not cleaning up HW Resource WWPN initiators"

8 years agoMerge "Huawei: Don't fail when port group does not exist"
Jenkins [Fri, 26 Feb 2016 18:19:54 +0000 (18:19 +0000)]
Merge "Huawei: Don't fail when port group does not exist"

8 years agoMerge "NetApp: Implement CGs for ONTAP Drivers"
Jenkins [Fri, 26 Feb 2016 18:16:05 +0000 (18:16 +0000)]
Merge "NetApp: Implement CGs for ONTAP Drivers"

8 years agoMerge "Huawei: Log the IP when login fails"
Jenkins [Fri, 26 Feb 2016 18:15:38 +0000 (18:15 +0000)]
Merge "Huawei: Log the IP when login fails"

8 years agoMerge "Correct iscsi lun type"
Jenkins [Fri, 26 Feb 2016 16:41:59 +0000 (16:41 +0000)]
Merge "Correct iscsi lun type"

8 years agoCheck for service existance in capabilities API
Ivan Kolodyazhny [Sat, 23 Jan 2016 11:35:15 +0000 (13:35 +0200)]
Check for service existance in capabilities API

We have to return 404 error code if requested backend
is not found and 502 if request failed with timeout.

APIImpact

Change-Id: Ia392973121800278751642f0a22ee817b3a69b74
Closes-Bug: #1520077

8 years agoEnable all unit tests on Python 3.4
Victor Stinner [Wed, 24 Feb 2016 17:34:43 +0000 (18:34 +0100)]
Enable all unit tests on Python 3.4

* Remove tests-py3.txt: all unit tests now pass on Python 3
* tox.ini: remove specific command for py34 test environment, it now
  inherits testenv commands (same command than Python 2.7)

Partial-Implements: blueprint cinder-python3
Change-Id: I52c68a63740b3ae6097fad419b59a9c29422b525

8 years agoAdding general notes about rolling upgrades
Michał Dulko [Fri, 26 Feb 2016 09:27:07 +0000 (10:27 +0100)]
Adding general notes about rolling upgrades

There are some known problems that may happen during rolling (live)
upgrade. Even though feature is considered a tech-preview there's no
harm in communicating them in the release notes.

This commits adds also a note on the fact that now Cinder services
detect lowest RPC version and that it is needed to keep the `services`
table up to date.

Change-Id: Ic4c9188fb0bbd375d809c7dedd9e07df049ae648
Related-Blueprint: rpc-object-compatibility

8 years agoMove deprecation release notes to correct section
Michał Dulko [Fri, 26 Feb 2016 08:29:24 +0000 (09:29 +0100)]
Move deprecation release notes to correct section

During the cycle reno was updated to include "deprecations" section. We
should use this one instead of "upgrades" to add release notes about
deprecations of features or config options.

This commit moves deprecation relase notes added during the cycle to
this section.

Change-Id: I7f1a868215fc7410b44481e3434253fb8157f321

8 years agoTests: Don't assert on LOG.warn
Eric Harney [Thu, 25 Feb 2016 17:01:43 +0000 (12:01 -0500)]
Tests: Don't assert on LOG.warn

Lots of code can use LOG.warn, tests wanting to
verify this should do a more robust check to ensure
that specific text is logged or not logged.

Change-Id: Id996ce761d90f1648f1f37c74a33df02d04cf3a3
Closes-bug: #1550102

8 years agoReturn all target_wwpns for FC storwize
Yucong Feng [Fri, 19 Feb 2016 21:25:19 +0000 (22:25 +0100)]
Return all target_wwpns for FC storwize

Storwize FC terminate_connection was using 'lsfabric' to lookup
target_wwpns, active on the fabric, to be used to terminate
the connection. However during a delete of a NPIV VM, the target_wwpns
is no longer active, it is not logged onto the fabric. The target list
will return empty. Fix is to return all the available wwpns
from 'storage_nodes'.

Change-Id: I39897f5583c878cc6243683d4bd60f800ea588af
Closes-Bug: #1546281

8 years agoFix error message in cinder type-update
dineshbhor [Thu, 25 Feb 2016 09:25:29 +0000 (09:25 +0000)]
Fix error message in cinder type-update

TrivialFix

Change-Id: Ic2ef327156cca0e977cb2e5a7275fe8d18ec093e

8 years agoMerge "Fix HNAS iSCSI driver attachment"
Jenkins [Thu, 25 Feb 2016 02:51:21 +0000 (02:51 +0000)]
Merge "Fix HNAS iSCSI driver attachment"

8 years agoMerge "Tintri image cache cleanup"
Jenkins [Thu, 25 Feb 2016 02:50:07 +0000 (02:50 +0000)]
Merge "Tintri image cache cleanup"

8 years agoFix NoneType error in service_get_all
lisali [Thu, 25 Feb 2016 02:19:13 +0000 (02:19 +0000)]
Fix NoneType error in service_get_all

When calling service_get_all without filters,
it raises NoneType error which is imported by
this patch I21775106693176ca128dbfd9db0d43cfc58de00a.

Change-Id: I473a9bbd2caea21c6fcd82b483bece1337ab6535
Closes-Bug: 1549563

8 years agoMerge "cinder-api-microversions code"
Jenkins [Thu, 25 Feb 2016 00:38:03 +0000 (00:38 +0000)]
Merge "cinder-api-microversions code"

8 years agoLeftHand: Updating minimum client version
Anthony Lee [Thu, 14 Jan 2016 18:50:04 +0000 (10:50 -0800)]
LeftHand: Updating minimum client version

Updated HPE LeftHand driver to have a minimum client
version of 2.1.0.

This is a follow up to the following patches:
https://review.openstack.org/#/c/255002/
https://review.openstack.org/#/c/255544/
https://review.openstack.org/#/c/255015/

DocImpact
Change-Id: I85f49116bfb669673d090c12e80d8d363730ab9e

8 years agoNetApp: Implement CGs for ONTAP Drivers
Mike Rooney [Thu, 17 Dec 2015 22:01:05 +0000 (17:01 -0500)]
NetApp: Implement CGs for ONTAP Drivers

This patch includes the driver changes necessary for NetApp 7mode and
CDOT backends to support all consistency group and cgsnapshot
functionality.

Co-Authored-By: Alex Meade <mr.alex.meade@gmail.com>
Co-Authored-By: Chuck Fouts <fchuck@netapp.com>
DocImpact
Implements: blueprint cinder-consistency-groups
Change-Id: Ia74c634835958876d97daf6766f2ef110b33ddc4

8 years agoMerge "NetApp: Support iSCSI CHAP Uni-directional Auth"
Jenkins [Wed, 24 Feb 2016 19:54:47 +0000 (19:54 +0000)]
Merge "NetApp: Support iSCSI CHAP Uni-directional Auth"

8 years agoMerge "Avoid hardcoding value from oslo library"
Jenkins [Wed, 24 Feb 2016 19:34:10 +0000 (19:34 +0000)]
Merge "Avoid hardcoding value from oslo library"

8 years agoMerge "Force target_lun to be int type to make os-brick happy"
Jenkins [Wed, 24 Feb 2016 18:14:32 +0000 (18:14 +0000)]
Merge "Force target_lun to be int type to make os-brick happy"

8 years agoFix HNAS iSCSI driver attachment
Adriano Rosso [Wed, 24 Feb 2016 13:13:38 +0000 (10:13 -0300)]
Fix HNAS iSCSI driver attachment

Currently, the HNAS iSCSI driver returns the logical unit number
related to the iSCSI target as a string while initializing the
connection.
This is breaking the attachment feature because os-brick expects
a numeric type.
This patch converts the LUN from string to int in order to solve
this problem.

Change-Id: I33958a93a6261b7d77e4becafa3efd5180e5d091
Closes-Bug: 1549375

8 years agoMerge "Port netapp dataontap driver to Python 3"
Jenkins [Wed, 24 Feb 2016 16:50:16 +0000 (16:50 +0000)]
Merge "Port netapp dataontap driver to Python 3"

8 years agoMerge "Scalable backup service - Liberty compatibility"
Jenkins [Wed, 24 Feb 2016 16:49:48 +0000 (16:49 +0000)]
Merge "Scalable backup service - Liberty compatibility"

8 years agoNetApp: Support iSCSI CHAP Uni-directional Auth
Chuck Fouts [Thu, 4 Jun 2015 14:28:23 +0000 (10:28 -0400)]
NetApp: Support iSCSI CHAP Uni-directional Auth

This change adds iSCSI CHAP uni-directional authentication support for
NetApp cDOT and 7-Mode iSCSI driver.

Enabling CHAP authentication does not impact an existing iSCSI session.
The iSCSI session needs to be reestablished before CHAP authentication
is initiated.

Co-Authored-By: Dustin Schoenbrun <dustin.schoenbrun@netapp.com>
Co-Authored-By: Alex Meade <mr.alex.meade@gmail.com>
Implements: blueprint netapp-add-chap-authentication-iscsi

DocImpact
Change-Id: I8c481fa09aee02b5472f02819b1a342a3c3e7f71

8 years agoMerge "Port infortrend driver to Python 3"
Jenkins [Wed, 24 Feb 2016 15:47:46 +0000 (15:47 +0000)]
Merge "Port infortrend driver to Python 3"

8 years agoMerge "Fix service-list filter"
Jenkins [Wed, 24 Feb 2016 15:02:44 +0000 (15:02 +0000)]
Merge "Fix service-list filter"

8 years agoAvoid hardcoding value from oslo library
Davanum Srinivas [Wed, 24 Feb 2016 14:48:05 +0000 (06:48 -0800)]
Avoid hardcoding value from oslo library

In I65b40b9906b75146a0085bbe168f1e6bcae82f21, the
wsgi_default_pool_size was lowered from 1000 to
100. We should not be using internal details of
the oslo libraries.

Change-Id: I84f01df3e212165176c633a680161a9a9da311ea

8 years agocinder-api-microversions code
scottda [Wed, 16 Sep 2015 12:57:35 +0000 (12:57 +0000)]
cinder-api-microversions code

Many changes to the Cinder REST API require changes to the consumers of the API.
For example, If we need to add a required parameter to a method that is called
 by Nova, we'd need both the Nova calling code and the cinderclient that
Nova uses to change. But newer Cinder versions with the change must work with
older Nova versions, and there is no mechanism for this at the moment. Adding
microversions will solve this problem.
With microversions, the highest supported version will be negotiated by a field
in the HTTP header that is sent to the Cinder API. In the case where the field
'versions' is not sent (i.e. clients and scripts that pre-date this change),
then the lowest supported version would be used. In order to ensure that the
API consumer is explicitly asking for a microversioned API, a new endpoint v3
is added, which is identical to API version v2. This means that our new
Cinder API v3 would be the default, and consumers of the API that wished to
use a newer version could do so by using that endpoint and a microversion in
the HTTP header.
New tests for microversioned API features on endpoint /v3 should be added to
cinder/tests/unit/api/v3/ directory. Existing functionality will be tested via
the .../v2/ unit tests.

DocImpact
APIImpact
Implements: https://blueprints.launchpad.net/cinder/+spec/cinder-api-microversions
Change-Id: I48cdbbc900c2805e59ee9aebc3b1c64aed3212ae

8 years agoPort netapp dataontap driver to Python 3
Victor Stinner [Mon, 15 Feb 2016 15:51:20 +0000 (16:51 +0100)]
Port netapp dataontap driver to Python 3

With this change, all unit tests on volume drivers pass on Python 3.

Changes:

* Replace a/b with a//b to get an integer on Python 3.
* Replace map(...) and filter(...) with a list-comprehension to get a
  list on Python 3.
* Replace dict.keys() with list(dict.keys()) to get a list
  on Python 3.
* Replace (str, int, float, long) with
  six.integer_types + (str, float): long type was removed
  from Python 3.
* decode_base32_to_hex(): on Python 3, decode encode_hex_to_base32()
  to return a Unicode string.
* convert_es_fmt_to_uuid(): encode/decode on Python 3 to pass the
  right types to base64.b32decode() (bytes) and uuid.UUID()
  (Unicode).
* fakes.py: Change type of XML document from Unicode to bytes: add
  b prefix to literal strings (b'...').
* Replace range(a, b) with list(range(a, b)) to get a list
  on Python 3.
* tests-py3.txt: add cinder.tests.unit.volume.drivers, all volume
  drivers tests now pass on Python 3.

Partial-Implements: blueprint cinder-python3
Change-Id: Iee609f72bbbef3789fa5e970d209047a113d005c

8 years agoMerge "HNAS driver: Fix SSH and cluster_admin_ip0 bug"
Jenkins [Wed, 24 Feb 2016 11:45:06 +0000 (11:45 +0000)]
Merge "HNAS driver: Fix SSH and cluster_admin_ip0 bug"

8 years agoMerge "NetApp: E-Series remove snapshot limitations"
Jenkins [Wed, 24 Feb 2016 10:47:13 +0000 (10:47 +0000)]
Merge "NetApp: E-Series remove snapshot limitations"

8 years agoScalable backup service - Liberty compatibility
LisaLi [Fri, 19 Feb 2016 08:28:36 +0000 (09:28 +0100)]
Scalable backup service - Liberty compatibility

To support rolling upgrades we need to make sure that Mitaka's services
are running fine with Liberty's. It gets complicated with backups as
we've strongly reworked them. Main difference is that Mitaka c-bak can
handle backup/restore of any volume and Liberty was restricted to
operate only on volumes placed on the same node.

Now when running in version heterogeneous environment we need to use old
way of backup jobs scheduling and switch to new one (round robin) only
when everything is running Mitaka.

This commit implements that by adding a dummy backup RPC API version
(1.3) that marks the beginning of scalable backups era. Jobs are
scheduled the new way only if every c-bak reports that (or higher)
version.

There are also small changes to volume.rpcapi - to fail fast if some
c-vol services aren't supporting new calls required by scalable backups
feature. This allows us to error out backups with proper message when
upgrade was done in an improper way (in Mitaka we require c-vols to be
upgraded before c-baks).

This commit also includes small changes to CinderObjectSerializer to
block tries to "forwardport" an object when sending it over RPC. If a
service receives an older object it should handle it explicitly.

Related-Blueprint: scalable-backup-service
Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Change-Id: I45324336ba00726d53cfa012e8bd498868919a8c

8 years agoHuawei: Log the IP when login fails
Wilson Liu [Wed, 24 Feb 2016 07:48:56 +0000 (15:48 +0800)]
Huawei: Log the IP when login fails

Now we support configuring multi-ips,
if one ip login fails, we will try to
connect to other ips. The problem is,
if one ip login fails, the log message
did not tell users which ip fails.

Closes-Bug: #1549157
Change-Id: I4aa933c37b1fe20438c330fd86b2a67524834e8d

8 years agoHuawei: Fix create volume with prefetch value error
huyang [Wed, 24 Feb 2016 08:12:19 +0000 (16:12 +0800)]
Huawei: Fix create volume with prefetch value error

In Huawei driver, when we create volume with
prefetch configurated in xml, the prefetch value
on the array is incorrect. So fix it.

Change-Id: I69b81eec47ae7663857cfb461aba32109746dbc0
Closes-Bug: #1549161

8 years agoHuawei: Don't fail when port group does not exist
Wilson Liu [Sat, 23 Jan 2016 02:32:43 +0000 (10:32 +0800)]
Huawei: Don't fail when port group does not exist

Currently when we request a port group but the
port group does not exist, an error will be raised.
This is not appropriate, because port group not
exists is a normal case.

Closes-Bug: #1536040
Change-Id: I0614163574dac384167ce2bce8887f674f3a97b5

8 years agoMerge "Include allocated quota value in the quota reserve"
Jenkins [Wed, 24 Feb 2016 03:30:16 +0000 (03:30 +0000)]
Merge "Include allocated quota value in the quota reserve"

8 years agoForce target_lun to be int type to make os-brick happy
Richard Hedlind [Wed, 24 Feb 2016 00:51:01 +0000 (17:51 -0700)]
Force target_lun to be int type to make os-brick happy

The X-IO driver was returning the target_lun field as a string
from initialize_connection. It has to be an int to not cause
breakage later on.

Change-Id: I41c91b78753a2007c243ed30731f0a0cd92e68b5
Closes-Bug: #1549048

8 years agoMerge "Huawei: Fixed url range"
Jenkins [Tue, 23 Feb 2016 22:56:48 +0000 (22:56 +0000)]
Merge "Huawei: Fixed url range"

8 years agoVolume manage/unmanage support to ZFSSA drivers
Kedar Vidvans [Fri, 22 Jan 2016 16:44:06 +0000 (11:44 -0500)]
Volume manage/unmanage support to ZFSSA drivers

This change for ZFSSA iSCSI and NFS drivers will allow cinder to
manage existing volumes on a ZFSSA backend and also unmanage them.

Change-Id: I2f280a2dfdb9cc6ce739b340eefa562f98d4038f
Implements: blueprint oracle-zfssa-volume-manage-unmanage
DocImpact