]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoMerge "Return BadRequest for invalid unicode names (continued)"
Jenkins [Wed, 2 Mar 2016 12:26:11 +0000 (12:26 +0000)]
Merge "Return BadRequest for invalid unicode names (continued)"

8 years agoMerge "Update Pure replication to cheesecake"
Jenkins [Wed, 2 Mar 2016 11:15:27 +0000 (11:15 +0000)]
Merge "Update Pure replication to cheesecake"

8 years agoMerge "Capture warnings into logs"
Jenkins [Wed, 2 Mar 2016 11:03:36 +0000 (11:03 +0000)]
Merge "Capture warnings into logs"

8 years agoMerge "Move replication volume manager warnings to info"
Jenkins [Wed, 2 Mar 2016 07:08:50 +0000 (07:08 +0000)]
Merge "Move replication volume manager warnings to info"

8 years agoMerge "Trim 50s from huawei ISCSIDriver unit tests"
Jenkins [Wed, 2 Mar 2016 05:52:29 +0000 (05:52 +0000)]
Merge "Trim 50s from huawei ISCSIDriver unit tests"

8 years agoMerge "Remove unused columns from Service ORM model"
Jenkins [Wed, 2 Mar 2016 04:35:10 +0000 (04:35 +0000)]
Merge "Remove unused columns from Service ORM model"

8 years agoMerge "Updating Datera DataFabric Driver to v2 of Datera DataFabric API"
Jenkins [Wed, 2 Mar 2016 01:55:04 +0000 (01:55 +0000)]
Merge "Updating Datera DataFabric Driver to v2 of Datera DataFabric API"

8 years agoMerge "Return BadRequest for invalid Unicode names"
Jenkins [Wed, 2 Mar 2016 00:12:09 +0000 (00:12 +0000)]
Merge "Return BadRequest for invalid Unicode names"

8 years agoMerge "Fix HTTP sessions left open in Brocade zone driver"
Jenkins [Wed, 2 Mar 2016 00:11:27 +0000 (00:11 +0000)]
Merge "Fix HTTP sessions left open in Brocade zone driver"

8 years agoMerge "Use is_int_like method from oslo_utils"
Jenkins [Wed, 2 Mar 2016 00:05:17 +0000 (00:05 +0000)]
Merge "Use is_int_like method from oslo_utils"

8 years agoMerge "Huawei: Code cleanup"
Jenkins [Tue, 1 Mar 2016 23:37:46 +0000 (23:37 +0000)]
Merge "Huawei: Code cleanup"

8 years agoUpdate Pure replication to cheesecake
Patrick East [Fri, 5 Feb 2016 23:52:31 +0000 (15:52 -0800)]
Update Pure replication to cheesecake

Migration to cheesecake replication. This basically
modifies any of the existing replication code to work on the whole
backend instead of the specified volume.

It also completes the transition to allow swapping the underlying array
being managed by cinder upon failover. In the v2 implementation it was
conditional on some operations where things *could* be on the other
array. Now it is all driver operations.

This also switches the target_device_id to backend_id in the config for
replication devices.

Change-Id: I7f2580f4d764266b62a755cb4529c290e639984c
Closes-Bug: #1542100

8 years agoMerge "Copy unit tests for StandardLogging fixture from Nova"
Jenkins [Tue, 1 Mar 2016 21:20:33 +0000 (21:20 +0000)]
Merge "Copy unit tests for StandardLogging fixture from Nova"

8 years agoMerge "EMC VMAX - get iscsi ip from port in existing MV"
Jenkins [Tue, 1 Mar 2016 17:51:51 +0000 (17:51 +0000)]
Merge "EMC VMAX - get iscsi ip from port in existing MV"

8 years agoMerge "IBM Storwize with pool-aware-cinder-scheduler"
Jenkins [Tue, 1 Mar 2016 16:38:10 +0000 (16:38 +0000)]
Merge "IBM Storwize with pool-aware-cinder-scheduler"

8 years agoMove replication volume manager warnings to info
Eric Harney [Tue, 1 Mar 2016 15:44:52 +0000 (10:44 -0500)]
Move replication volume manager warnings to info

These two messages are printing at the warning level
when starting c-vol.

Since these don't seem to be something that demands
attention, they should be logged at a lower level.

Change-Id: I3db6ed3956348895b3534cdc9f3f72bb4c878aca

8 years agoTrim 50s from huawei ISCSIDriver unit tests
Tom Barron [Sun, 21 Feb 2016 12:00:54 +0000 (07:00 -0500)]
Trim 50s from huawei ISCSIDriver unit tests

The HuaweiISCSIDriver unit tests take almost a minute to run
on my machine because several negative test cases wait for
timeouts.

This commit leverages the utility method introduced in [1]
as well as the ZeroIntervalLoopingCall for mocks in the Huawei
unit tests to reduce total execution time for this set of
tests from about a minute to under 10s

[1] c2166876d85b17872c6fe32916c6d0d1dc974847

Change-Id: If17466ebabc391ebca57667200de072ede3ecc0c

8 years agoCopy unit tests for StandardLogging fixture from Nova
Matt Riedemann [Tue, 1 Mar 2016 14:44:22 +0000 (09:44 -0500)]
Copy unit tests for StandardLogging fixture from Nova

This comes from commit f96ec4411ce89606cf52211061003c14306dcfa1
in Nova by Sean Dague <sean@dague.net>.

The StandardLogging fixture was already merged into Cinder,
this adds the unit tests that were missed when copying over
the fixture.

Change-Id: I2fbe25ec71138e4b96ff175af72a2a56c1c8f52a
Related-Bug: #1551325

8 years agoMerge "Use of metadata id instead of metadata name"
Jenkins [Tue, 1 Mar 2016 14:35:19 +0000 (14:35 +0000)]
Merge "Use of metadata id instead of metadata name"

8 years agoMerge "Add ability to failback for replication V2.1"
Jenkins [Tue, 1 Mar 2016 12:44:44 +0000 (12:44 +0000)]
Merge "Add ability to failback for replication V2.1"

8 years agoMerge "Storwize SVC multiple management IPs"
Jenkins [Tue, 1 Mar 2016 12:42:53 +0000 (12:42 +0000)]
Merge "Storwize SVC multiple management IPs"

8 years agoMerge "Add os-brick rootwrap filter for privsep"
Jenkins [Tue, 1 Mar 2016 12:41:27 +0000 (12:41 +0000)]
Merge "Add os-brick rootwrap filter for privsep"

8 years agoMerge "Copy StandardLogging fixture from Nova"
Jenkins [Tue, 1 Mar 2016 11:45:58 +0000 (11:45 +0000)]
Merge "Copy StandardLogging fixture from Nova"

8 years agoMerge "NetApp: Add Consistency Group support for E-Series"
Jenkins [Tue, 1 Mar 2016 11:23:37 +0000 (11:23 +0000)]
Merge "NetApp: Add Consistency Group support for E-Series"

8 years agoUse is_int_like method from oslo_utils
srushti [Fri, 26 Feb 2016 07:30:46 +0000 (07:30 +0000)]
Use is_int_like method from oslo_utils

This patch removes is_int_like method from
utils.py and replaces it with is_int_like
method from oslo_utils.strutils to eliminate
duplicate code.

TrivialFix
Change-Id: Ia81da8b0208bb2a30ab301519cfc714f26480edd

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 agoCopy StandardLogging fixture from Nova
Matt Riedemann [Mon, 29 Feb 2016 17:31:22 +0000 (12:31 -0500)]
Copy StandardLogging fixture from Nova

This code was originally written for Nova by Joe Gordon
<joe.gordon0@gmail.com> and Sean Dague <sean@dague.net>.

This enables debug logging that is exercised by unit test
runs to be handled and detect formatting errors. The debug
logging does not actually go to the console unless the
OS_DEBUG environment variable is set.

As a result, a few formatting errors are detected and
cleaned up with this change.

This also fixes a problem where debug logging from stevedore
is dumped to the console every time an extension is loaded,
which in a gate-cinder-python27 job is 65K+ times.

Change-Id: I989f9d591d1483a56a1bab3c20de583e85997562
Closes-Bug: #1551325

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 agoAdd ability to failback for replication V2.1
John Griffith [Fri, 26 Feb 2016 01:09:21 +0000 (01:09 +0000)]
Add ability to failback for replication V2.1

Initially we had setup replication V2.1 (Cheesecake) to NOT
do fail-back at least in the initial version.

It turns out that fail-back in the Cinder code is rather easy,
we just enable calling failover-host on a host that's already
failed-over and use the *special* keyword of "default" as the
backend_id argument which signifies we want to switch back to
whatever is configured as the default in the cinder.conf file.

To do this we just add some logic that checks the secondary_backend_id
param in volume.manager:failover_host and set service fields
appropriately.  Note that we're sending the call to the driver
first and giving it a chance to raise an exception if it can't
satisfy the request at the current time.

We also needed to modify the volume.api:failover_host to allow
failed-over as a valid transition state, and again update the
Service query to include disabled services.

It's up to drivers to figure out if they want to require some
extra admin steps and document exactly how this works.  It's also
possible that during an initial failover that you might want to
return a status update for all volumes NOT replicated and mark
their volume-status to "error".

Expected behavior is depicted in the service output here:
    http://paste.openstack.org/show/488294/

Change-Id: I4531ab65424a7a9600b2f93ee5b5e1a0dd47d63d

8 years agoStorwize SVC multiple management IPs
Jacob Gregor [Wed, 24 Feb 2016 17:06:32 +0000 (11:06 -0600)]
Storwize SVC multiple management IPs

Right now Storwize SVC does not support multiple management IPs.
This patch adds this feature so that if the primary IP fails, it
will switch to the secondary IP that the user sets.

DocImpact
Adds config option 'storwize_san_secondary_ip'

Implements: blueprint storwize-add-support-for-multiple-management-ips
Change-Id: Ib82ba5b43e92027bfe39873a556baec796bb457e

8 years agoUpdating Datera DataFabric Driver to v2 of Datera DataFabric API
Matt Smith [Thu, 25 Feb 2016 19:03:04 +0000 (11:03 -0800)]
Updating Datera DataFabric Driver to v2 of Datera DataFabric API

   Addressing gate pep8/flake8 and releasenote failures

Change-Id: Id88a2735a910dcecc0acf6142130d80f52b850cd
Implements: blueprint datera-cinder-driver-update

8 years agoCapture warnings into logs
Eric Harney [Thu, 25 Feb 2016 17:13:11 +0000 (12:13 -0500)]
Capture warnings into logs

Modules that issue warnings via the python
warnings module result in messages printed
to stderr.

This change results in them being captured
into Cinder logs instead.  This means that
logs from production environments contain
all of the relevant info for debugging
issues.

Change-Id: I16a31e1ef0df824dd513f43fd22d631fa647e004

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 agoReturn BadRequest for invalid unicode names (continued)
Eric Harney [Mon, 29 Feb 2016 20:22:07 +0000 (15:22 -0500)]
Return BadRequest for invalid unicode names (continued)

Follow-up to "Return BadRequest for invalid Unicode names",
we missed a couple of operations here:
  type-key set
  quota-class-update
  qos-create

Related-Bug: #1531400

Change-Id: Id966b74dce87acb15ede9cb4c02ae0f74d59b08c

8 years agoIBM Storwize with pool-aware-cinder-scheduler
Xiaoqin Li [Thu, 25 Feb 2016 08:36:11 +0000 (00:36 -0800)]
IBM Storwize with pool-aware-cinder-scheduler

Storwize cinder driver only supports config one pool
within one backend right now. This change adds support
for multi-pools aware for scheduler.
storwize_svc_volpool_name accepts a list of pools
separated by comma in cinder.conf now.

User-Visible Change
-------------------
DocImpact
The configuration flag storwize_svc_volpool_name
should be updated to a ListOpt.

Implements: bp Storwize-pool-aware-support
Change-Id: If6f1decf4d6244b1e04b05b8662d891fb16c6790

8 years agoFix HTTP sessions left open in Brocade zone driver
Angela Smith [Wed, 24 Feb 2016 19:18:42 +0000 (11:18 -0800)]
Fix HTTP sessions left open in Brocade zone driver

Add missing call to logout html page on FC switch to close the HTTP
session on the FC switch in HTTP connector.  Also, move the session
cleanup calls in the zone driver so that it is invoked for all code
paths.

Change-Id: Id08c1b1f1e75188cacfb9b5586519a7fee827602

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 agoRemove unused columns from Service ORM model
Michał Dulko [Tue, 16 Feb 2016 14:16:02 +0000 (15:16 +0100)]
Remove unused columns from Service ORM model

rpc_available_version and object_available_version columns were part of
previous design of our RPC API compatibility layer. We've decided to go
in a little different direction so these two are currently unused.

With our live-schema-upgrades guidelines (related to rolling upgrades
support) it's a lot easier to readd something to the DB than to drop it.
Let's take the chance to actually drop these unused DB columns in early
Newton. To do that we need to remove them from the SQLAlchemy model in
Mitaka and this commit does so.

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

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 agoEMC VMAX - get iscsi ip from port in existing MV
Helen Walsh [Mon, 16 Nov 2015 20:31:53 +0000 (20:31 +0000)]
EMC VMAX - get iscsi ip from port in existing MV

This patch fixes bug in getting the iscsi ip address from
an existing masking view.  In this scenario we must query
the port(s) in the portgroup belonging to the masking view
and not the random port group from the xml file.

Change-Id: I4f8bea5c9f8c07a793aa1053678a7a915d565d22
Closes-Bug: #1504460

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 agoHuawei: Code cleanup
Wilson Liu [Mon, 22 Feb 2016 02:50:12 +0000 (10:50 +0800)]
Huawei: Code cleanup

Some codes are useless, we need to clean them up:
1. add_host_with_check have been called at line 1653
   to get host_id in huawei_driver.py, the another
   two are no longer need.
2. Remove duplicated codes in test_huawei_drivers.py,
   also change FACK_XXX to FAKE_XXX.
3. Two constants in constants.py are not used anywhere,
   need to delete them.

Closes-Bug: #1548158
Change-Id: I03d49e9194223dbea162be4239fa339ab0a0ff4b

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"