]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoMerge "Huawei: Check the QoS status before we use"
Jenkins [Wed, 16 Mar 2016 12:07:56 +0000 (12:07 +0000)]
Merge "Huawei: Check the QoS status before we use"

8 years agoMerge "Huawei: Check when attach hypermetro volume"
Jenkins [Wed, 16 Mar 2016 11:53:21 +0000 (11:53 +0000)]
Merge "Huawei: Check when attach hypermetro volume"

8 years agoMerge "Pass correct source_id to _handle_bootable_volume_glance_meta()"
Jenkins [Wed, 16 Mar 2016 05:52:48 +0000 (05:52 +0000)]
Merge "Pass correct source_id to _handle_bootable_volume_glance_meta()"

8 years agoMerge "LeftHand: Add default SSH timeout and key values"
Jenkins [Wed, 16 Mar 2016 05:43:25 +0000 (05:43 +0000)]
Merge "LeftHand: Add default SSH timeout and key values"

8 years agoMerge "Huawei: Implement v2.1 replication"
Jenkins [Wed, 16 Mar 2016 05:18:36 +0000 (05:18 +0000)]
Merge "Huawei: Implement v2.1 replication"

8 years agoMerge "Revert "VNX: Set timeout for naviseccli""
Jenkins [Wed, 16 Mar 2016 04:03:06 +0000 (04:03 +0000)]
Merge "Revert "VNX: Set timeout for naviseccli""

8 years agoHuawei: Check when attach hypermetro volume
huananhuawei [Wed, 24 Feb 2016 07:17:51 +0000 (15:17 +0800)]
Huawei: Check when attach hypermetro volume

Currently when we attach a hypermetro volume,
if the map info is none there is not logged
that is due to the array version does not
support hypermetro.

Change-Id: I51dc3e5b21fb0d44b00e498c4b2144e57b07e73c
Closes-Bug: #1549130

8 years agoHuawei: Check the QoS status before we use
Wilson Liu [Sat, 23 Jan 2016 02:46:56 +0000 (10:46 +0800)]
Huawei: Check the QoS status before we use

Currently we use a existing QoS without check
whether the QoS is for block storage or NAS,
but one QoS on the array should be used for either
block storage or NAS, not both. Also, we add
check with QoS parameter.

Closes-Bug: #1537301
Change-Id: I9842044249cc59d9c29e887b68d48cf97595efcc

8 years agoLeftHand: Add default SSH timeout and key values
Alex O'Rourke [Sat, 12 Mar 2016 00:05:00 +0000 (16:05 -0800)]
LeftHand: Add default SSH timeout and key values

Currently if ssh_conn_timeout or san_private_key is not specified
in the remote_array object, the client creation fails. This should not
be the case. Instead, we can add default values to allow the creation
to succeed.

In addition, this patch removes some redudent lines of code and
moves a call to a more logical place.

Change-Id: I0bb32c2ea9a16ea568059ff7a5a5f07a95c718eb
Closes-Bug: #1556331

8 years agoPass correct source_id to _handle_bootable_volume_glance_meta()
Mitsuhiro Tanino [Tue, 15 Mar 2016 22:56:59 +0000 (18:56 -0400)]
Pass correct source_id to _handle_bootable_volume_glance_meta()

When we create a new volume from existing volume which has
volume_image_metadata, volume_image_metadata was not copied
to cloned volume.

This is a regression from Liberty and the root cause of this
problem was introduced via commit
032032f0c329b4eddcbf2185399396ff4fd5f00d.

This patch fixed a problem to pass correct source_id to
_handle_bootable_volume_glance_meta().

Change-Id: Ife1e9a6a25704569f8a599d19eee893bc7c0a469
Closes-Bug: #1557783

8 years agoMerge "Use get_by_args instead of get_by_host_and_topic"
Jenkins [Tue, 15 Mar 2016 21:25:53 +0000 (21:25 +0000)]
Merge "Use get_by_args instead of get_by_host_and_topic"

8 years agoMerge "Fix volume migration VolumeType exception"
Jenkins [Tue, 15 Mar 2016 21:25:42 +0000 (21:25 +0000)]
Merge "Fix volume migration VolumeType exception"

8 years agoMerge "Fix retype failure when original has no volume type"
Jenkins [Tue, 15 Mar 2016 21:05:57 +0000 (21:05 +0000)]
Merge "Fix retype failure when original has no volume type"

8 years agoMerge "Huawei: Creating hypermetro failed in the remote pool"
Jenkins [Tue, 15 Mar 2016 20:16:43 +0000 (20:16 +0000)]
Merge "Huawei: Creating hypermetro failed in the remote pool"

8 years agoMerge "Fix format in cinder/volume/drivers/netapp/dataontap/block_base.py"
Jenkins [Tue, 15 Mar 2016 18:01:57 +0000 (18:01 +0000)]
Merge "Fix format in cinder/volume/drivers/netapp/dataontap/block_base.py"

8 years agoMerge "NetApp E-Series: Volumes not added to consisgroup"
Jenkins [Tue, 15 Mar 2016 18:00:22 +0000 (18:00 +0000)]
Merge "NetApp E-Series: Volumes not added to consisgroup"

8 years agoUse get_by_args instead of get_by_host_and_topic
Ivy Zhang [Tue, 15 Mar 2016 09:25:36 +0000 (05:25 -0400)]
Use get_by_args instead of get_by_host_and_topic

We already changed to use get_by_args, but in init_host_with_rpc,
it still called get_by_host_and_topic instead of get_by_args.
Which would cause restart a disabled cinder-volume service failed

Change-Id: I10f562b4298e548f681030a71c828e3d2265e416
Closes-Bug: 1557366

8 years agoFix format in cinder/volume/drivers/netapp/dataontap/block_base.py
Andreas Jaeger [Tue, 15 Mar 2016 07:31:11 +0000 (08:31 +0100)]
Fix format in cinder/volume/drivers/netapp/dataontap/block_base.py

The format misses the conversion type. This break translation testing in
an interesting way, the translated string is not accepted as valid.

Change-Id: Ieb63e9efcc3ec38be115e1e9b32e6ef55d777ba6

8 years agoRevert "VNX: Set timeout for naviseccli"
Ryan Liang [Tue, 15 Mar 2016 01:39:45 +0000 (01:39 +0000)]
Revert "VNX: Set timeout for naviseccli"

EMC CI test failed.
It is not the fault of adding timeout option to naviseccli.
I made a mistake by adding wrong option format in code.
The command line should be
self.command = (navisecclipath, '-timeout', '120', '-address')
instead of
self.command = (navisecclipath, '-timeout 120', '-address')
Later, I will send out a new review for the right one,
after this is reverted.

This reverts commit 4fe875a199e407970686d6f4159e5f15de0528db.

Change-Id: I5c5003d83370bea0b9e06a3d7adc5a5c2a7e61f3

8 years agoMerge "IBM XIV/DS8K: Implement Replication v2.1"
Jenkins [Tue, 15 Mar 2016 03:46:37 +0000 (03:46 +0000)]
Merge "IBM XIV/DS8K: Implement Replication v2.1"

8 years agoMerge "VNX: Allow set migrate rate when migrating volumes"
Jenkins [Mon, 14 Mar 2016 22:06:25 +0000 (22:06 +0000)]
Merge "VNX: Allow set migrate rate when migrating volumes"

8 years agoMerge "VNX: Set timeout for naviseccli"
Jenkins [Mon, 14 Mar 2016 22:06:06 +0000 (22:06 +0000)]
Merge "VNX: Set timeout for naviseccli"

8 years agoMerge "Continue volume delete on encryption key delete errors"
Jenkins [Mon, 14 Mar 2016 21:54:16 +0000 (21:54 +0000)]
Merge "Continue volume delete on encryption key delete errors"

8 years agoNetApp E-Series: Volumes not added to consisgroup
Michael Price [Thu, 10 Mar 2016 17:17:18 +0000 (11:17 -0600)]
NetApp E-Series: Volumes not added to consisgroup

Volumes were not being added to a consistency group upon creation when the
consistencygroup_id is provided during the volume creation.

This patch adds functionality to relevant methods in library.py to add the newly
created volume to a consistency group when applicable.

Closes-Bug: #1555933
Change-Id: I6d09b81571ce7b5c07d155cb4a70079fe35ed945

8 years agoMerge "Wrong comment line in quotas.py"
Jenkins [Mon, 14 Mar 2016 17:48:00 +0000 (17:48 +0000)]
Merge "Wrong comment line in quotas.py"

8 years agoFix volume migration VolumeType exception
Ryan McNair [Mon, 14 Mar 2016 17:37:35 +0000 (17:37 +0000)]
Fix volume migration VolumeType exception

Since Iabf9c3fab56ffef50695ce45745f193273822b39 modified the default
loaded attributes, the obj_attr_is_set check in finish_volume_migration
is now True for VolumeType. This should not get copied to the new
volume (since it's lazy-loaded based on the volume_type_id), so
this patch adds volume_type to the list of keys to ignore. To get
test coverage, test_finish_volume_migration is updated to use the
default expected_attributes and dict comprehension is updated so
it succeeds without glance_metadata being present.

Change-Id: Id3670dba79afb0d9d1b686ac2772c955372e97af
Closes-Bug: #1555862
Depends-On: I2caf4d3f4aa088d099548e6e88d1776b4cc5810c

8 years agoMerge "Fix ScaleIO driver does not honor clone size"
Jenkins [Mon, 14 Mar 2016 16:28:06 +0000 (16:28 +0000)]
Merge "Fix ScaleIO driver does not honor clone size"

8 years agoFix retype failure when original has no volume type
Tom Barron [Fri, 19 Feb 2016 23:19:14 +0000 (18:19 -0500)]
Fix retype failure when original has no volume type

cinder.objects.volume.Volume.finish_volume_migration()
should skip the volume_type_id field when swapping fields
between "source" and "dest" volumes.  The "dest" volume
has already been created with appropriate volume_type_id
and the "source" may have not have a volume type.

This commit also changes a LOG.error() to a LOG.exception()
in where finish_volume_migration is called in order to
show the exception traceback in its calling context.

Change-Id: I2caf4d3f4aa088d099548e6e88d1776b4cc5810c
Closes-bug: #1547546

8 years agoIBM XIV/DS8K: Implement Replication v2.1
Alon Marx [Thu, 3 Mar 2016 16:15:38 +0000 (18:15 +0200)]
IBM XIV/DS8K: Implement Replication v2.1

This patch implements cinder Replication version 2.1 as proposed in
https://blueprints.launchpad.net/cinder/+spec/replication

The driver implements:
1. freeze_backend - notify the backend that it's frozen
2. thaw_backend - notify the backend that it's not frozen
3. host_failover - failover a backend to a secondary replication target

Also removed v1.0 and v2.0 functions

DocImpact
Change-Id: I50498180c63725ab0f524ff8d55952446800570f
Closes-Bug: #1543600

8 years agoHuawei: Implement v2.1 replication
neochin [Sat, 12 Mar 2016 18:11:46 +0000 (02:11 +0800)]
Huawei: Implement v2.1 replication

This patch implements the v2.1 replication in the HuaweiDriver.
All function in replication v2 are removed. A new function,
failover_host, is added to support failover between backends.

When error occurred on primary backend, you can failover to
the secondary backend. But it's strongly recommended to recover
the primary backend.

After failover backend, the operations on the secondary backend
are limited. A simple example, if you create a new volume on
secondary, after failback, it can't be used. So, You should not
do that, such as create, delete, extend volumes, etc.

But you can detach volume if it's in in-use status, then do
attach to vm to make replication volumes R&W.

The configuration for v2.1 is almost the same as v2. Except that,
only one backend configuration is needed. A simple example as
follows:

[replica]
volume_driver =
    cinder.volume.drivers.huawei.huawei_driver.HuaweiISCSIDriver
    cinder_huawei_conf_file = /etc/cinder/cinder_huawei_conf.xml
    replication_device = backend_id:huawei-replica-1,
        storage_pool:pool_1,
        san_address:san_url_1;san_url_2,
        iscsi_default_target_ip:192.168.1.100,
        san_user:admin,san_password:passwd

Change-Id: Ib555707e9751f78ce00c9dcdbbe370a18ed0ae6c
Closes-Bug: #1556450

8 years agoMerge "Host selection in backup service"
Jenkins [Mon, 14 Mar 2016 14:47:53 +0000 (14:47 +0000)]
Merge "Host selection in backup service"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Mon, 14 Mar 2016 14:46:45 +0000 (14:46 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Remove circular import to fix config generation"
Jenkins [Mon, 14 Mar 2016 14:46:29 +0000 (14:46 +0000)]
Merge "Remove circular import to fix config generation"

8 years agoMerge "Add the key 'replication' and set the correct 'replication_status'"
Jenkins [Mon, 14 Mar 2016 13:24:06 +0000 (13:24 +0000)]
Merge "Add the key 'replication' and set the correct 'replication_status'"

8 years agoMerge "Trival: Remove 'MANIFEST.in'"
Jenkins [Mon, 14 Mar 2016 13:13:52 +0000 (13:13 +0000)]
Merge "Trival: Remove 'MANIFEST.in'"

8 years agoRemove circular import to fix config generation
Gorka Eguileor [Mon, 14 Mar 2016 11:54:58 +0000 (12:54 +0100)]
Remove circular import to fix config generation

Patch https://review.openstack.org/278354 created a circular import when
added an "import cinder.db" line to cinder/api/common.py since
cinder/db/api.py imports cinder.api.common back, which breaks genconfig.

Change-Id: Ic60866822e74687101a3885f6000f89d901bb17a
Closes-Bug: #1556889

8 years agoWrong comment line in quotas.py
WenjunWang1992 [Mon, 14 Mar 2016 09:10:16 +0000 (17:10 +0800)]
Wrong comment line in quotas.py

The commonts are not suitable in the code below:
1)in function "show"
origin:
        :param id:target project id that needs to be updated
change to:
        :param id:target project id that needs to be shown
2)in function "delete"
origin:
        :param id:target project id that needs to be updated
change to:
        :param id:target project id that needs to be deleted

Change-Id: I5b14c400a3b0117e43f1192c3deac76cb81c2c1b
Closes-Bug: #1556761

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Mon, 14 Mar 2016 06:26:03 +0000 (06:26 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie8b2605ed4e5a1cb5c12f4011f6fdf1fa11783e2

8 years agoVNX: Set timeout for naviseccli
Ryan LIANG [Wed, 3 Feb 2016 08:40:03 +0000 (00:40 -0800)]
VNX: Set timeout for naviseccli

Add -timeout option to all naviseccli commands,
the value is 120 sec.

Change-Id: Ib3b35da6766b5db69395b89debd50c54d69eec00
Closes-Bug: 1546412

8 years agoVNX: Allow set migrate rate when migrating volumes
peter_wang [Mon, 28 Dec 2015 05:56:18 +0000 (13:56 +0800)]
VNX: Allow set migrate rate when migrating volumes

VNX driver is leveraging LUN migration functionality when
clone/migrate/retype volume. The migration rate is set to 'high'
by hard code.

This patch will allow admin to control the migration rate by
adding volume metadata before triggering any operations involving
LUN migration.

The required metadata key is 'migrate_rate', available metadata
values are 'high', 'asap', 'low' and 'medium'.

DocImpact
Change-Id: Ie9a875dd63dd60351e46a66c99977d9b6fd23244
Closes-Bug: 1529553

8 years agoMerge "DRBD driver: resize volume if cloned image is larger"
Jenkins [Sun, 13 Mar 2016 20:57:30 +0000 (20:57 +0000)]
Merge "DRBD driver: resize volume if cloned image is larger"

8 years agoMerge "Delete deprecated configuration in NFS tests"
Jenkins [Sun, 13 Mar 2016 19:53:35 +0000 (19:53 +0000)]
Merge "Delete deprecated configuration in NFS tests"

8 years agoFix ScaleIO driver does not honor clone size
Matan Sabag [Sun, 13 Mar 2016 11:19:49 +0000 (04:19 -0700)]
Fix ScaleIO driver does not honor clone size

Fixed a bug that when creating a volume from source the driver didn't honor the new volume size.
Added unit test.

Change-Id: I3a39953002432ac70a4ee2eccedd6737d9c3b019
Closes-Bug: #1554777

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sun, 13 Mar 2016 06:33:39 +0000 (06:33 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ia0b6cf6b58b5798254271d2f5bf8e19243375a87

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Sat, 12 Mar 2016 14:31:36 +0000 (14:31 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Remove remaining oslo-incubator code from Cinder"
Jenkins [Sat, 12 Mar 2016 11:17:32 +0000 (11:17 +0000)]
Merge "Remove remaining oslo-incubator code from Cinder"

8 years agoHuawei: Creating hypermetro failed in the remote pool
liuke2 [Sat, 20 Feb 2016 09:02:50 +0000 (17:02 +0800)]
Huawei: Creating hypermetro failed in the remote pool

Create the hypermetro failed when use the remote pools on the
huawei driver, the log print get pool id fail. The 'pool_id'
is not exist in the LUN property dictionary, so the 'pool_id'
should be modified to 'PARENTID' to save the remote pool id.

Closes-Bug:#1547798
Change-Id:Ic99531dad4fab5e22e295e19bbfa94c789247d93

8 years agoDelete deprecated configuration in NFS tests
zhangguoqing [Sat, 12 Mar 2016 07:10:05 +0000 (07:10 +0000)]
Delete deprecated configuration in NFS tests

Change-Id: Ica13ca935fdee62511c85f3d9f62b29955653845

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sat, 12 Mar 2016 06:33:54 +0000 (06:33 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Idcfbb5ad74036755b51e6c633b0ffa79f4495512

8 years agoMerge "Allow clone volume with different size"
Jenkins [Sat, 12 Mar 2016 05:47:19 +0000 (05:47 +0000)]
Merge "Allow clone volume with different size"

8 years agoMerge "register the config generator default hook with the right name"
Jenkins [Sat, 12 Mar 2016 02:47:01 +0000 (02:47 +0000)]
Merge "register the config generator default hook with the right name"

8 years agoMerge "Fixup stats key for replication in init_host_with_pc"
Jenkins [Sat, 12 Mar 2016 01:50:01 +0000 (01:50 +0000)]
Merge "Fixup stats key for replication in init_host_with_pc"

8 years agoMerge "Remove empty directories and unused files from unit tests"
Jenkins [Sat, 12 Mar 2016 00:36:58 +0000 (00:36 +0000)]
Merge "Remove empty directories and unused files from unit tests"

8 years agoMerge "RBD: remove duplicate clone test"
Jenkins [Sat, 12 Mar 2016 00:24:31 +0000 (00:24 +0000)]
Merge "RBD: remove duplicate clone test"

8 years agoMerge "Dell SC: Incorrect values in REST API Login call"
Jenkins [Sat, 12 Mar 2016 00:24:08 +0000 (00:24 +0000)]
Merge "Dell SC: Incorrect values in REST API Login call"

8 years agoMerge "Fixup for Pure drivers cheesecake replication setup"
Jenkins [Sat, 12 Mar 2016 00:23:51 +0000 (00:23 +0000)]
Merge "Fixup for Pure drivers cheesecake replication setup"

8 years agoMerge "Fix for Pure drivers not checking full client version"
Jenkins [Sat, 12 Mar 2016 00:23:37 +0000 (00:23 +0000)]
Merge "Fix for Pure drivers not checking full client version"

8 years agoFixup stats key for replication in init_host_with_pc
Patrick East [Fri, 11 Mar 2016 23:28:27 +0000 (15:28 -0800)]
Fixup stats key for replication in init_host_with_pc

We were looking for just ‘replication’ in stats, but that key isn’t
used by anyone and would always be false. We instead want to be keying
off of just replication_enabled.

Change-Id: I8f4ef8d5c6594c1548958ebac2ff63b79429cd0b
Closes-Bug: #1556315

8 years agoMerge "Cleanup 3PAR/LeftHand failover_host exceptions"
Jenkins [Fri, 11 Mar 2016 23:22:42 +0000 (23:22 +0000)]
Merge "Cleanup 3PAR/LeftHand failover_host exceptions"

8 years agoAdd the key 'replication' and set the correct 'replication_status'
Vincent Hou [Fri, 11 Mar 2016 21:25:18 +0000 (16:25 -0500)]
Add the key 'replication' and set the correct 'replication_status'

This patch fixes the minor issues following the implementation
of replication v2.1 for storwize driver. It adds the key
'replication' to make sure of that the cinder-volume service
can have a successful restart and sets the 'replication_status
'back to enabled for failback.

Change-Id: I1ddb715e72336378434b7ee5ffe617cbb94cd16b
Closes-Bug: #1556285

8 years agoregister the config generator default hook with the right name
Doug Hellmann [Fri, 11 Mar 2016 21:06:11 +0000 (16:06 -0500)]
register the config generator default hook with the right name

No config generator hooks should ever be registered with a name that
belongs to another project. In this case, using oslo.middleware.cors
means that *every other project* that loads the middleware gets this
application's defaults when the generator is run on a system with
everything installed (such as a dev box with devstack). Use the name
of the app instead, to ensure that the defaults are only set when this
app's sample config and documentation are being generated.

Change-Id: I6a8c7d44b9db9325003ff2fdb667b0ced7739e96
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
8 years agoMerge "Fix 500 error if 'offset' is out of range"
Jenkins [Fri, 11 Mar 2016 20:32:19 +0000 (20:32 +0000)]
Merge "Fix 500 error if 'offset' is out of range"

8 years agoFix for Pure drivers not checking full client version
Patrick East [Fri, 11 Mar 2016 18:27:50 +0000 (10:27 -0800)]
Fix for Pure drivers not checking full client version

We were only looking at major and minor versions… we needed to be
looking at the whole thing. This change allows for checking against
all three version parts, and for even differing schemes as time goes on.

Change-Id: Ib369d1d67fab5ba07d66c60f3fbc9c02afcbf3d4
Closes-Bug: #1556234

8 years agoFixup for Pure drivers cheesecake replication setup
Patrick East [Fri, 11 Mar 2016 17:59:56 +0000 (09:59 -0800)]
Fixup for Pure drivers cheesecake replication setup

We had a remnant of the past replication design left behind in the setup
methods which was causing the arrays to be setup with bi-directional
replication. With the switch to cheesecake we do not need the secondary
arrays to be replicating to the primary. This change removes the step
which would configure that.

Change-Id: I5a0472bec8ccdf3af1e7ce42163b42289b1810bb
Closes-Bug: #1556211

8 years agoMerge "Use googleapiclient import instead of apiclient"
Jenkins [Fri, 11 Mar 2016 17:47:12 +0000 (17:47 +0000)]
Merge "Use googleapiclient import instead of apiclient"

8 years agoMerge "Block subtractive operations in DB migrations"
Jenkins [Fri, 11 Mar 2016 17:28:03 +0000 (17:28 +0000)]
Merge "Block subtractive operations in DB migrations"

8 years agoMerge "EMC VMAX - SnapVX and other snapshot improvements"
Jenkins [Fri, 11 Mar 2016 16:50:14 +0000 (16:50 +0000)]
Merge "EMC VMAX - SnapVX and other snapshot improvements"

8 years agoRemove empty directories and unused files from unit tests
Ivan Kolodyazhny [Fri, 11 Mar 2016 16:14:06 +0000 (18:14 +0200)]
Remove empty directories and unused files from unit tests

1. Files from cinder/tests/unit/var are not used anywhere
2. cinder/tests/unit/wsgi/ and cinder/tests/unit/xenapi/ contain only
empty __init__.py files

Change-Id: I14e1b1cc345f84db007819349d9671dd9651cf11

8 years agoCleanup 3PAR/LeftHand failover_host exceptions
Alex O'Rourke [Fri, 11 Mar 2016 00:09:01 +0000 (16:09 -0800)]
Cleanup 3PAR/LeftHand failover_host exceptions

The 3PAR and LeftHand drivers were raising the wrong exception,
VolumeBackendAPIException, instead of InvalidReplicationTarget,
which was putting the host in an unrecoverable state,

Change-Id: I1c0ee4adb399dd1e89669477c53f79332a9f79ef
Closes-Bug: #1556150

8 years agoMerge "VNX: Update replication for v2.1"
Jenkins [Fri, 11 Mar 2016 15:04:33 +0000 (15:04 +0000)]
Merge "VNX: Update replication for v2.1"

8 years agoMerge "Enable api.view.test_versions unit tests"
Jenkins [Fri, 11 Mar 2016 14:31:05 +0000 (14:31 +0000)]
Merge "Enable api.view.test_versions unit tests"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 11 Mar 2016 14:30:43 +0000 (14:30 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "rbd: Change capacity calculation from integer to float"
Jenkins [Fri, 11 Mar 2016 14:04:25 +0000 (14:04 +0000)]
Merge "rbd: Change capacity calculation from integer to float"

8 years agoMerge "Pass new volume size when cloning (blockbridge)"
Jenkins [Fri, 11 Mar 2016 13:57:28 +0000 (13:57 +0000)]
Merge "Pass new volume size when cloning (blockbridge)"

8 years agoMerge "Allow api_version_request.matches to accept a string"
Jenkins [Fri, 11 Mar 2016 12:00:50 +0000 (12:00 +0000)]
Merge "Allow api_version_request.matches to accept a string"

8 years agoUse googleapiclient import instead of apiclient
Thomas Bechtold [Fri, 11 Mar 2016 10:20:59 +0000 (11:20 +0100)]
Use googleapiclient import instead of apiclient

apiclient alias will be removed upstream in the future according
to the changelog.

Change-Id: I896a52c5e17632ab7a65cf0f9b894cccf0f5687b
Closes-Bug: #1556020

8 years agoEnable api.view.test_versions unit tests
Tom Barron [Fri, 11 Mar 2016 10:55:02 +0000 (05:55 -0500)]
Enable api.view.test_versions unit tests

This commit adds a init file so that this unit test module gets run
and modifies test_generate_href_defaults so that it works with our
codebase.

Change-Id: I39bbdb0ca5da5dd5867923491ca8e843289a476a

8 years agoAllow clone volume with different size
peter_wang [Fri, 11 Mar 2016 09:39:38 +0000 (04:39 -0500)]
Allow clone volume with different size

Previously when cloning new volume, VNX driver ignores the size
of new volume, and take the size of source volume.

This fix will allow new size to be set for new cloned volume.

Closes-bug: #1554776
Change-Id: Ib75e1b5caa434746864b66bb79b532120aed0f20

8 years agoDRBD driver: resize volume if cloned image is larger
Danny Al-Gaaf [Thu, 10 Mar 2016 12:45:09 +0000 (13:45 +0100)]
DRBD driver: resize volume if cloned image is larger

Extend volume if during create_cloned_volume() the new
volume is larger than the image it was cloned from.

Closes-Bug: #1554756

Change-Id: Id43e18c32c241a30cb35effe1fab8effe4517ba9
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoFix 500 error if 'offset' is out of range
Dinesh Bhor [Tue, 9 Feb 2016 11:20:26 +0000 (03:20 -0800)]
Fix 500 error if 'offset' is out of range

If large value is passed as offset to snapshots, volumes,
backups, consistencygroups and qos_specs list api then it
throws 500 internal server error.

Moved existing validate_integer() method from
cinder.api.openstack.wsgi.Controller to cinder.utils so
that it can also be used for validating offset param for
integer value in _get_offset_param() method and return 400
error if value is out of range.

Please refer:
https://bugs.launchpad.net/cinder/+bug/1535708/comments/1

APIImpact: Return 400 status code if offset is out of range.

Closes-Bug: #1535708
Change-Id: I07a5292645f24c381217d43b71510b3352964b8b

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 11 Mar 2016 06:48:28 +0000 (06:48 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I46c051ac9f979b1caeacc64a3331d817b55194e1

8 years agoMerge "Move replication_status update to init_with_rpc"
Jenkins [Fri, 11 Mar 2016 05:29:42 +0000 (05:29 +0000)]
Merge "Move replication_status update to init_with_rpc"

8 years agoMerge "Add release note for delete volume with snaps"
Jenkins [Fri, 11 Mar 2016 01:44:52 +0000 (01:44 +0000)]
Merge "Add release note for delete volume with snaps"

8 years agoMerge "Fix up failover_host exceptions to preserve states"
Jenkins [Fri, 11 Mar 2016 01:44:36 +0000 (01:44 +0000)]
Merge "Fix up failover_host exceptions to preserve states"

8 years agoMerge "Permit volume type operations for policy authorized users"
Jenkins [Fri, 11 Mar 2016 00:57:32 +0000 (00:57 +0000)]
Merge "Permit volume type operations for policy authorized users"

8 years agoMerge "Correcting thin provisioning behavior"
Jenkins [Thu, 10 Mar 2016 23:15:28 +0000 (23:15 +0000)]
Merge "Correcting thin provisioning behavior"

8 years agoFix up failover_host exceptions to preserve states
Alex O'Rourke [Thu, 10 Mar 2016 21:33:20 +0000 (13:33 -0800)]
Fix up failover_host exceptions to preserve states

UnableToFailOver and InvalidReplicationTarget do not save the state
of replication_status currently. This patch adds host.save() in
order to write the change to the db.

In addition, the manager should honor the current replication state
of the host when InvalidReplicationTarget is raised instead of forcing
it into 'enabled' state.

Change-Id: I01af6d70539e518936c74e425c3fad60f4b94581

8 years agoMerge "Dell SC: Active_backend_id wrong type"
Jenkins [Thu, 10 Mar 2016 22:31:28 +0000 (22:31 +0000)]
Merge "Dell SC: Active_backend_id wrong type"

8 years agoAdd release note for delete volume with snaps
Eric Harney [Thu, 10 Mar 2016 16:57:04 +0000 (11:57 -0500)]
Add release note for delete volume with snaps

Blueprint: del-vols-with-snaps

Change-Id: Iaa2c2c05986575f2067ddcb4ad14cdb0e028a09b

8 years agoRBD: remove duplicate clone test
Jon Bernard [Thu, 10 Mar 2016 21:00:41 +0000 (16:00 -0500)]
RBD: remove duplicate clone test

A more robust test for clone() recently added and there is no need to
keep the lesser (and nearly duplicate) version.

Change-Id: I34675f40b2bfdc709d985415454881b502d0436f

8 years agoEMC VMAX - SnapVX and other snapshot improvements
Helen Walsh [Sat, 13 Feb 2016 12:12:47 +0000 (12:12 +0000)]
EMC VMAX - SnapVX and other snapshot improvements

Using snapVX VMAX3 for creating snapshot and volume from
snapshot. Improvements in wait_for_sync to determine when
the max number of retries has been reached.

Change-Id: Ifc5f80637ef7b86a6d3719b3a1b152556c6919a6
Closes-Bug: #1522821

8 years agoMove replication_status update to init_with_rpc
John Griffith [Wed, 9 Mar 2016 23:43:14 +0000 (16:43 -0700)]
Move replication_status update to init_with_rpc

We were using host_init to read replication_status from the
driver and update the service entry in the DB.  It turns out
that on a fresh install this doesn't actually work, because
while we have multiple init methods for the backend, the
Service entry isn't actually created in a fresh deploy until
AFTER init_host.  The result was that in some cases we were
trying to update a column on a non-existent Service in the
DataBase.

This patch moves the replication_status updates for the
service into the init_with_rpc method.  That method was
just a noop stub in the parent manager class, so we just
implement it in cinder.volume.manager and do what we need
with the replication update info.

Change-Id: I18b2658e2f93959f74377ccb86ce8b01b6970c60
Closes-Bug: #1555370

8 years agoMerge "NetApp: volume resize using clone fails with QoS"
Jenkins [Thu, 10 Mar 2016 17:08:42 +0000 (17:08 +0000)]
Merge "NetApp: volume resize using clone fails with QoS"

8 years agoMerge "Show qos_specs_id based on policy"
Jenkins [Thu, 10 Mar 2016 17:02:46 +0000 (17:02 +0000)]
Merge "Show qos_specs_id based on policy"

8 years agoMerge "Switch failover-host from rpc call to cast"
Jenkins [Thu, 10 Mar 2016 17:02:30 +0000 (17:02 +0000)]
Merge "Switch failover-host from rpc call to cast"

8 years agoMerge "DRBD: Policy-based waiting for completion"
Jenkins [Thu, 10 Mar 2016 17:02:02 +0000 (17:02 +0000)]
Merge "DRBD: Policy-based waiting for completion"

8 years agoMerge "Add volume_type to volume object expected_attrs"
Jenkins [Thu, 10 Mar 2016 17:01:45 +0000 (17:01 +0000)]
Merge "Add volume_type to volume object expected_attrs"

8 years agoMerge "Moved CORS middleware configuration into oslo-config-generator"
Jenkins [Thu, 10 Mar 2016 16:59:46 +0000 (16:59 +0000)]
Merge "Moved CORS middleware configuration into oslo-config-generator"

8 years agoPermit volume type operations for policy authorized users
Mitsuhiro Tanino [Fri, 29 Jan 2016 17:48:33 +0000 (12:48 -0500)]
Permit volume type operations for policy authorized users

Currently, following volume type operations are not
permitted for non admin users because these db operations
require admin context.

* create
* update
* delete
* type-access-add
* type-access-remove

In order to allow a cloud operator to use the policy based
user access control for these operations, a context during
these operations should be elevated before db operations.

After applying this change, the cloud operator can manage
policy for volume type operations like this.

1. To permit volume type operations for specific user,
   add "storage_type_admin" role.

2. Add "admin_or_storage_type_admin" rule to policy.json.
   "admin_or_storage_type_admin":
       "is_admin:True or role:storage_type_admin",

3. Modify rule for types_manage.
   "volume_extension:types_manage":
       "rule:admin_or_storage_type_admin",

Change-Id: I1e91ad6573f78cfa35c36209944ea1d074a17604
Closes-Bug: #1538305

8 years agoMerge "Cleanup Mitaka release notes"
Jenkins [Thu, 10 Mar 2016 16:48:48 +0000 (16:48 +0000)]
Merge "Cleanup Mitaka release notes"