]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoXtremIO fix remapping bug
Shay Halsband [Tue, 1 Sep 2015 05:35:21 +0000 (08:35 +0300)]
XtremIO fix remapping bug

1. formatting error
2. pass initiator group name(at index 1) instead of
   index(at index 2) to create_lun_map

Change-Id: I05b6468261fe352c80f6f8e115b8e69eea551089
Closes-bug: #1499207

9 years agoMerge "Add placholder for migration backports in Liberty"
Jenkins [Sat, 26 Sep 2015 00:11:23 +0000 (00:11 +0000)]
Merge "Add placholder for migration backports in Liberty"

9 years agoMerge "Remove duplicate keys from dictionary"
Jenkins [Fri, 25 Sep 2015 23:39:07 +0000 (23:39 +0000)]
Merge "Remove duplicate keys from dictionary"

9 years agoMerge "Revert use of netapp_lib from NetApp Drivers"
Jenkins [Fri, 25 Sep 2015 23:15:17 +0000 (23:15 +0000)]
Merge "Revert use of netapp_lib from NetApp Drivers"

9 years agoAdd placholder for migration backports in Liberty
John Griffith [Thu, 3 Sep 2015 02:54:08 +0000 (20:54 -0600)]
Add placholder for migration backports in Liberty

Adding 5 placeholders for migration backports.

Change-Id: Id3c4efbeee8bb1d800d71576d9de66ae9deb315a

9 years agoMerge "Python 3 incompatible expression fix"
Jenkins [Fri, 25 Sep 2015 17:25:11 +0000 (17:25 +0000)]
Merge "Python 3 incompatible expression fix"

9 years agoMerge "Port image_utils to Python 3"
Jenkins [Fri, 25 Sep 2015 17:02:30 +0000 (17:02 +0000)]
Merge "Port image_utils to Python 3"

9 years agoMerge "Port volume transfer to Python 3"
Jenkins [Fri, 25 Sep 2015 16:38:33 +0000 (16:38 +0000)]
Merge "Port volume transfer to Python 3"

9 years agoMerge "Missing configuration opts from cinder.sample.conf"
Jenkins [Fri, 25 Sep 2015 14:55:31 +0000 (14:55 +0000)]
Merge "Missing configuration opts from cinder.sample.conf"

9 years agoRevert use of netapp_lib from NetApp Drivers
Goutham Pacha Ravi [Fri, 25 Sep 2015 05:52:43 +0000 (01:52 -0400)]
Revert use of netapp_lib from NetApp Drivers

This patch cleanly reverts the changes made via the
commit: e681ba2a99995dcd999e6539bb1222f8a1ac8adc
cleanly and mitigates the conflicts that would
occur with git-revert on the said commit.

The revert is solely for changes pertaining to the use
of the external library, netapp_lib. Minor code refactors
from the prior change are retained.

Unit test coverage has been increased for ZAPI and REST
interface code in netapp/dataontap/client/api.py and
netapp/eseries/client.py.

Closes-Bug: #1499334
Change-Id: Icead7e168e1c7187840de87c69365d26aedd5924

9 years agoMerge "Use function capsulation in Huawei driver"
Jenkins [Fri, 25 Sep 2015 02:29:22 +0000 (02:29 +0000)]
Merge "Use function capsulation in Huawei driver"

9 years agoMerge "Check sio_storage_pools in check_for_setup_error"
Jenkins [Thu, 24 Sep 2015 21:16:24 +0000 (21:16 +0000)]
Merge "Check sio_storage_pools in check_for_setup_error"

9 years agoMissing configuration opts from cinder.sample.conf
Kendall Nelson [Mon, 21 Sep 2015 18:11:19 +0000 (13:11 -0500)]
Missing configuration opts from cinder.sample.conf

The logic for writing opts registered with register_opt() to the
auto-generated opts.py file was flawed in that the directories where
there were opts being registered with this method would be imported,
but the actual opt would be missed when looking through the file for
the name of the opt being registered. Now the singular opts are being
caught and written to opts.py for the oslo-config-generator to process.

The 'backend' section was added to generate_cinder_opts.py
due to some of the missing opts being a part of that section.

Also the way some of the opts that were being registered with groups
were incorrect and so this addresses those in both how they were
processed in generate_cinder_opts.py and the files in which they are being
registered.

There is also one change to the name of an opt in cinder/volume/api.py.
Instances such as this one will be caught by the in-progress hacking
check patch: https://review.openstack.org/#/c/223375/

Change-Id: I8d333d7529d40f3a3b3651ca3a52c0048d96b99a
Closes-Bug: #1498122

9 years agoUse function capsulation in Huawei driver
Wilson Liu [Sun, 13 Sep 2015 13:26:08 +0000 (21:26 +0800)]
Use function capsulation in Huawei driver

Use a function _get_id_from_result() instead of lots of
duplicated code.

Closes-Bug: #1495231
Change-Id: I8ae7d27cb977110109fa26bd6b3ddcbc7298fbc1

9 years agoMerge "Create volume in cg enhancement in VNX driver"
Jenkins [Thu, 24 Sep 2015 00:54:10 +0000 (00:54 +0000)]
Merge "Create volume in cg enhancement in VNX driver"

9 years agoMerge "Open Mitaka development"
Jenkins [Wed, 23 Sep 2015 19:06:21 +0000 (19:06 +0000)]
Merge "Open Mitaka development"

9 years agoMerge "Fix URL format in Huawei driver"
Jenkins [Wed, 23 Sep 2015 17:49:03 +0000 (17:49 +0000)]
Merge "Fix URL format in Huawei driver"

9 years agoOpen Mitaka development
Thierry Carrez [Wed, 23 Sep 2015 15:11:30 +0000 (17:11 +0200)]
Open Mitaka development

Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: Icb57e22104f70a9b5d8c1c0b56b3156e51c60b4a

9 years agoCreate volume in cg enhancement in VNX driver
Tina [Thu, 17 Sep 2015 04:04:42 +0000 (00:04 -0400)]
Create volume in cg enhancement in VNX driver

VNX driver queries whether a LUN is in CG after adding it into
CG. However, as long as the LUN is added successfully, the LUN
will be in CG. The additional query is useless. This patch removes
the additional query.

Change-Id: I1ca43616d41169ceb1f8fde460f7ec4a616c5d56
Closes-Bug: #1497900

9 years agoMerge "Fixing create CG from Cgsnapshot bug in VNX driver"
Jenkins [Wed, 23 Sep 2015 06:31:27 +0000 (06:31 +0000)]
Merge "Fixing create CG from Cgsnapshot bug in VNX driver"

9 years agoRemove duplicate keys from dictionary
ankitagrawal [Tue, 22 Sep 2015 13:01:19 +0000 (06:01 -0700)]
Remove duplicate keys from dictionary

There are few places where duplicate keys are added in the dictionary.
Removed all such occurrences throughout the code.

TrivialFix

Change-Id: I5db553d4d9f161b513520c87b6ad17b7ca6a0782

9 years agoMerge "Make rpc_client method private for VolumeCommands"
Jenkins [Wed, 23 Sep 2015 04:31:59 +0000 (04:31 +0000)]
Merge "Make rpc_client method private for VolumeCommands"

9 years agoMerge "Allow c-vol backends to start when some backends fail to load"
Jenkins [Wed, 23 Sep 2015 04:24:55 +0000 (04:24 +0000)]
Merge "Allow c-vol backends to start when some backends fail to load"

9 years agoFix URL format in Huawei driver
Wilson Liu [Wed, 23 Sep 2015 03:43:06 +0000 (11:43 +0800)]
Fix URL format in Huawei driver

Some of the URL format are not standard,
this patch will fix them.

Change-Id: I3caf49e6ca7f5f6f2caa1b56ba2dc2af2cafdcea
Close-Bug: #1498484

9 years agoMerge "Fix use of wrong storage pools for NetApp Drivers"
Jenkins [Tue, 22 Sep 2015 23:59:53 +0000 (23:59 +0000)]
Merge "Fix use of wrong storage pools for NetApp Drivers"

9 years agoMerge "Replace soft_delete in volume_type_access_remove"
Jenkins [Tue, 22 Sep 2015 22:28:50 +0000 (22:28 +0000)]
Merge "Replace soft_delete in volume_type_access_remove"

9 years agoMerge "Ignore Forbidden error on quotas-get for nested projects"
Jenkins [Tue, 22 Sep 2015 19:55:25 +0000 (19:55 +0000)]
Merge "Ignore Forbidden error on quotas-get for nested projects"

9 years agoAllow c-vol backends to start when some backends fail to load
Eric Harney [Mon, 21 Sep 2015 18:29:19 +0000 (14:29 -0400)]
Allow c-vol backends to start when some backends fail to load

Currently, if a c-vol backend fails to load due to an error in
the module startup process (like a volume driver's __init__ or
dependency import failure), the c-vol process halts completely.

Instead, catch that backend failure, log it, and allow other
backends in enabled_backends to still start up and run.

Note that this is not applicable for failures that allow
drivers to load and remain "uninitialized" -- this is for
failures that occur prior to that point.

Closes-Bug: #1497413

Change-Id: If183b9e3d21777cddf713c2dc88dc80ae7cfe01d

9 years agoFix use of wrong storage pools for NetApp Drivers
Goutham Pacha Ravi [Fri, 26 Jun 2015 16:32:06 +0000 (12:32 -0400)]
Fix use of wrong storage pools for NetApp Drivers

When using NetApp drivers, all available flexvols on
a datastore are being reported to the Cinder Scheduler
as available storage pools. This allows Cinder volumes
to be created on flexvols not designated for OpenStack.

This commit fixes the problem by delimiting which pools are
eligible for provisioning via a configuration parameter
'netapp_pool_name_search_pattern'. This allows
the Cinder drivers to operate against a restricted
set of storage containers.

DocImpact
Co-Authored-By: Rushil Chugh <rushil@netapp.com>
Co-Authored-By: Michael Price <michael.price@netapp.com>
Closes-Bug: #1493399
Change-Id: I7b6f2205470ecbbcb165889db19e1168117dd0b2

9 years agoMerge "Change ignore-errors to ignore_errors"
Jenkins [Tue, 22 Sep 2015 07:32:33 +0000 (07:32 +0000)]
Merge "Change ignore-errors to ignore_errors"

9 years agoMerge "Fix way of getting LUN id in Huawei driver"
Jenkins [Tue, 22 Sep 2015 02:22:35 +0000 (02:22 +0000)]
Merge "Fix way of getting LUN id in Huawei driver"

9 years agoMerge "Fix MITM vulnerability for Brocade FC SAN lookup"
Jenkins [Tue, 22 Sep 2015 02:19:54 +0000 (02:19 +0000)]
Merge "Fix MITM vulnerability for Brocade FC SAN lookup"

9 years agoMerge "NetApp volume/snapshot delete performance fix"
Jenkins [Mon, 21 Sep 2015 23:44:07 +0000 (23:44 +0000)]
Merge "NetApp volume/snapshot delete performance fix"

9 years agoMake rpc_client method private for VolumeCommands
Ivan Kolodyazhny [Mon, 21 Sep 2015 18:51:35 +0000 (21:51 +0300)]
Make rpc_client method private for VolumeCommands

"rpc_client" is not sub-command and should not be in the help for
'cinder-manage volume' command.

Change-Id: Ie94554b3fade09e32269c96fcb4a7d2b91062119
Closes-Bug: #1498136

9 years agoIgnore Forbidden error on quotas-get for nested projects
Ivan Kolodyazhny [Mon, 21 Sep 2015 15:15:31 +0000 (18:15 +0300)]
Ignore Forbidden error on quotas-get for nested projects

Keystone API v2 requires admin permissions for project_get method.
We ignore Forbidden exception for non-admin users.

Change-Id: Ia0a17a9377219d3bf92dbbfd6e88077209a22a95
Closes-Bug: #1491495

9 years agoChange ignore-errors to ignore_errors
Monty Taylor [Mon, 21 Sep 2015 14:25:17 +0000 (14:25 +0000)]
Change ignore-errors to ignore_errors

Needed for coverage 4.0

Change-Id: I2775006f79929f2e64a58f84c384e0587ff5ad24

9 years agoNetApp volume/snapshot delete performance fix
Tom Barron [Mon, 14 Sep 2015 21:38:40 +0000 (17:38 -0400)]
NetApp volume/snapshot delete performance fix

cDOT NFS NetApp drivers back cinder volumes with array-side files and
use array-side cloning techniques when creating snapshots and when
creating volumes from glance images.  Customers have experienced
performance issues on the array when deleting many of these in
in quick succession, especially for large volumes.

This commit addresses these performance issues by overriding parent
class volume and snapshot delete methods, which use OS "rm" command to
delete volume backing files, with methods that use DOT API to delete
these files, and which invoke the optimized file deletion engine
available in DOT 8.3.

Closes-bug: 1497258
Change-Id: I44428d0840f6584f93ca214a2a607869b345554c

9 years agoReplace soft_delete in volume_type_access_remove
Michal Dulko [Mon, 21 Sep 2015 13:58:01 +0000 (15:58 +0200)]
Replace soft_delete in volume_type_access_remove

This commit replaces oslo.db's soft_delete used in
volume_type_access_remove in db.api with a simple update setting
deleted column to True.

As deleted column is boolean it is represented in the DB by TINYINT,
which max value is 127. This introduces problems when removing records
with id higher than that, because soft_delete sets deleted column to the
value of id. This commit fixes the issue and adds unit tests for such
case.

Change-Id: I484e66125b5a29f490c070696b336be4a2693b3e
Closes-Bug: 1496747

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 21 Sep 2015 08:36:02 +0000 (08:36 +0000)]
Merge "Updated from global requirements"

9 years agoFix way of getting LUN id in Huawei driver
liuxinguo [Thu, 6 Aug 2015 04:08:54 +0000 (12:08 +0800)]
Fix way of getting LUN id in Huawei driver

Get the LUN id first from the volume['provider_location'],
and only if volume['provider_location'] is None, query the
backend to get the LUN id.

Also change function name "mapping_hostgroup_and_lungroup"
to "do_mapping".

Closes-Bug: #1482030
Change-Id: Ie94ea2284c572e842a64f962cc10b1a2b8145d3c

9 years agoFixing create CG from Cgsnapshot bug in VNX driver
Tina [Wed, 16 Sep 2015 03:38:03 +0000 (23:38 -0400)]
Fixing create CG from Cgsnapshot bug in VNX driver

When creating a consistency group from a cgsnapshot, VNX driver
didn't force a poll to the VNX system. This caused the creation
to fail because the out-of-date status was returned. This patch
forces a poll to the VNX system to get rid of this issue.

Change-Id: I710bd0ac2a6049a79fce0d552ad8fba2c9fbde67
Closes-Bug: #1496660

9 years agoMerge "Remove the unnecassary volume_api.get(context, volume_id)"
Jenkins [Sat, 19 Sep 2015 20:05:50 +0000 (20:05 +0000)]
Merge "Remove the unnecassary volume_api.get(context, volume_id)"

9 years agoMerge "Enable certificate verification during image copy"
Jenkins [Sat, 19 Sep 2015 19:50:18 +0000 (19:50 +0000)]
Merge "Enable certificate verification during image copy"

9 years agoMerge "Correctly report multiattach in Pure drivers"
Jenkins [Sat, 19 Sep 2015 15:02:32 +0000 (15:02 +0000)]
Merge "Correctly report multiattach in Pure drivers"

9 years agoDynamically create cinder.conf.sample
Kendall Nelson [Thu, 13 Aug 2015 15:17:36 +0000 (10:17 -0500)]
Dynamically create cinder.conf.sample

As it stands, the opts.py file that is passed into
oslo-config-generator isn't being generated dynamically
and the old way of generating the cinder.conf.sample is
dependent on oslo-incubator which Cinder is trying to
move away from. oslo-config-generator works differently
than oslo-incubator so a number of changes had to be made
in order to make this switch.

This patch adds the config directory to Cinder and in it
are two files:

    -generate_cinder_opts.py that will take the
     results of a grep command to create the opts.py
     file to be passed into oslo-config-generator.

    -cinder.conf which is the new configuration for
     oslo-config-generator. The file is inside the config
     directory to be consistent with other projects.

Some changes were made to the generate_sample.sh file in
order to give the base directories and target directories
to the generate_cinder_opts.py program.

tox.ini was edited to remove the checkonly option because
all that needs to happen in check_uptodate.sh is a check to
ensure that the cinder.conf.sample is actually being
generated with no issues.

All options were removed from the check_uptodate.sh
because they were unnecessary given the new, more simple
way of generating the cinder.conf.sample.

setup.cfg was also edited in order to add information
oslo-config-generator needs to run.

Co-Authored By: Jay Bryant <jsbryant@us.ibm.com>
Co-Authored By: Jacob Gregor <jgregor@us.ibm.com>

Change-Id: I643dbe5675ae9280e204f691781e617266f570d5
Closes-Bug: 1473768
Closes-Bug: 1437904
Closes-Bug: 1381563

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 18 Sep 2015 16:37:17 +0000 (16:37 +0000)]
Updated from global requirements

Change-Id: I0dbe12dc8517e72a4bf00e811ca68fb07dc822c8

9 years agoFix MITM vulnerability for Brocade FC SAN lookup
Ryan McNair [Thu, 27 Aug 2015 20:51:14 +0000 (20:51 +0000)]
Fix MITM vulnerability for Brocade FC SAN lookup

Refactor the Brocade FC SAN lookup service implementation to use
common SSH utilities which already avoid MITM vulnerabilities.
This is a follow-up to https://review.openstack.org/#/c/138526/
which reverted an incomplete fix for the MITM issues for Brocade.

Change-Id: I2d87b55f56f08208f0da11cac40682d51da5b536
Closes-Bug: #1391311

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 18 Sep 2015 02:13:03 +0000 (02:13 +0000)]
Merge "Imported Translations from Zanata"

9 years agoMerge "NetApp: Fix volume extend with E-Series"
Jenkins [Thu, 17 Sep 2015 21:07:37 +0000 (21:07 +0000)]
Merge "NetApp: Fix volume extend with E-Series"

9 years agoMerge "Fix netapp_enable_multiattach default for E-Series"
Jenkins [Thu, 17 Sep 2015 21:04:26 +0000 (21:04 +0000)]
Merge "Fix netapp_enable_multiattach default for E-Series"

9 years agoMerge "Attaching enhancement for EMC VNX driver"
Jenkins [Thu, 17 Sep 2015 21:02:06 +0000 (21:02 +0000)]
Merge "Attaching enhancement for EMC VNX driver"

9 years agoMerge "Fix cinder-all binary"
Jenkins [Thu, 17 Sep 2015 12:18:06 +0000 (12:18 +0000)]
Merge "Fix cinder-all binary"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 17 Sep 2015 06:19:43 +0000 (06:19 +0000)]
Imported Translations from Zanata

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

Change-Id: I438ad26c586f382ab669bea9fa2556ea0a40c189

9 years agoMerge "Fix issue of volume after host-assisted migration"
Jenkins [Thu, 17 Sep 2015 00:11:51 +0000 (00:11 +0000)]
Merge "Fix issue of volume after host-assisted migration"

9 years agoFix cinder-all binary
Ivan Kolodyazhny [Tue, 15 Sep 2015 22:01:37 +0000 (01:01 +0300)]
Fix cinder-all binary

1. Add rpc.init for cinder-api service
2. Add multi-backend support for cinder-volume service

Closes-Bug: #1496154
Change-Id: I91626bd74fc224302e131c5235030a02431a04c1

9 years agoMerge "Check for None on service's updated_at"
Jenkins [Wed, 16 Sep 2015 21:47:23 +0000 (21:47 +0000)]
Merge "Check for None on service's updated_at"

9 years agoMerge "Extra specs may not be in volume types"
Jenkins [Wed, 16 Sep 2015 20:36:11 +0000 (20:36 +0000)]
Merge "Extra specs may not be in volume types"

9 years agoMerge "Fix QoS keys not being available to scheduler"
Jenkins [Wed, 16 Sep 2015 20:34:18 +0000 (20:34 +0000)]
Merge "Fix QoS keys not being available to scheduler"

9 years agoNetApp: Fix volume extend with E-Series
Michael Price [Tue, 25 Aug 2015 22:36:44 +0000 (17:36 -0500)]
NetApp: Fix volume extend with E-Series

Thin provisioned volumes were being converted to thick provisioned
volumes by extend_volume. When thin provisioning support was added,
the extend_volume method was not updated to use the correct API
for performing the capacity expansion operation.

This patch changes the volume extension strategy when a volume is
thin provisioned to use the correct API. With a thick provisioned
volume, a clone will be created with the new capacity, and the old
volume removed, but a thin provisioned volume's capacity can simply
be expanded directly, because that is merely the capacity that the user
sees, as opposed to the backend provisioned capacity.

Closes-Bug: 1493874
Change-Id: Iec25f29381d5fba3409d1de83bf6816ae1a9ac22

9 years agoFix netapp_enable_multiattach default for E-Series
Michael Price [Wed, 2 Sep 2015 18:48:05 +0000 (13:48 -0500)]
Fix netapp_enable_multiattach default for E-Series

The E-Series driver erroneously changed the netapp_enable_multiattach
option to default to True. This option should default to False to
ensure backwards-compatibility with upgrades.

DocImpact
Closes-Bug: #1491580
Change-Id: Iafb4d80bd83c2de0a5b77178206c7f3028ac6554

9 years agoCheck for None on service's updated_at
Michal Dulko [Tue, 15 Sep 2015 13:52:57 +0000 (15:52 +0200)]
Check for None on service's updated_at

We weren't checking if service's updated_at is None when passing it to
timeutils.normalize_time which caused an exception. This commit adds
the check to cinder-manage and cinder-api (services and hosts). Also
regression unit tests are added.

Change-Id: Ia6ee28dc2cd20cece1e21d07692f47e3858d707d
Closes-Bug: 1495938

9 years agoFix issue of volume after host-assisted migration
peter_wang [Fri, 21 Aug 2015 05:33:44 +0000 (01:33 -0400)]
Fix issue of volume after host-assisted migration

In host-assisted migration, Cinder framework currently doesn't
update name_id and provider_location when the driver doesn't provide
name_id or provider_location in update_migrated_volume

This changes previous Cinder behavior which will update name_id and
provider_location anyway. Any operation against this volume will not
be successful; for example, volume deletion cannot delete it's
underlying LUN.

This fix will update name_id and provider_location if driver doesn't
return them.

Closes-Bug: #1487952
Change-Id: Ice72fc792f0ea8909c027e6df99cff9bbeef5e48

9 years agoMerge "Tests: Split VolumeTestCase into separate classes"
Jenkins [Wed, 16 Sep 2015 10:57:40 +0000 (10:57 +0000)]
Merge "Tests: Split VolumeTestCase into separate classes"

9 years agoMerge "Snapmirror targets should not be reported as pools"
Jenkins [Wed, 16 Sep 2015 10:57:29 +0000 (10:57 +0000)]
Merge "Snapmirror targets should not be reported as pools"

9 years agoMerge "Change check method for 'all_tenants'"
Jenkins [Wed, 16 Sep 2015 10:57:18 +0000 (10:57 +0000)]
Merge "Change check method for 'all_tenants'"

9 years agoMerge "Create CG needs extra specs"
Jenkins [Wed, 16 Sep 2015 10:55:09 +0000 (10:55 +0000)]
Merge "Create CG needs extra specs"

9 years agoAttaching enhancement for EMC VNX driver
Xi Yang [Wed, 9 Sep 2015 08:26:20 +0000 (04:26 -0400)]
Attaching enhancement for EMC VNX driver

Remove the lun list command after adding the lun into a storage
group. This could improve the performance of initialize connection.

Change-Id: Id49725f50cd0e7600feb2ffc98a5b1ef14bc531c
Closes-Bug: #1495806

9 years agoMerge "Local img-cache files ignored for image transfers"
Jenkins [Wed, 16 Sep 2015 05:14:05 +0000 (05:14 +0000)]
Merge "Local img-cache files ignored for image transfers"

9 years agoTests: Split VolumeTestCase into separate classes
Eric Harney [Mon, 13 Jul 2015 15:20:56 +0000 (11:20 -0400)]
Tests: Split VolumeTestCase into separate classes

Organize the large VolumeTestCase class into a few
subclasses.

Change-Id: I1538445533bc6c14668177443cbc8f676731896d

9 years agoMerge "Fix NetApp clone from glance failure"
Jenkins [Tue, 15 Sep 2015 19:26:46 +0000 (19:26 +0000)]
Merge "Fix NetApp clone from glance failure"

9 years agoLocal img-cache files ignored for image transfers
Mike Rooney [Mon, 31 Aug 2015 15:29:53 +0000 (11:29 -0400)]
Local img-cache files ignored for image transfers

The cDOT NFS driver will only attempt to use the local img-cache-*
files if the copy offload path is defined in the cinder.conf file.
This should be attempted regardless of copy-offload's configuration.

Change-Id: I29e19da7c1e083e9c76cbcea1f397deefe30b016
Closes-Bug: #1490641

9 years agoSnapmirror targets should not be reported as pools
Mike Rooney [Mon, 22 Jun 2015 17:58:12 +0000 (13:58 -0400)]
Snapmirror targets should not be reported as pools

Snapmirror targets that were being reported to the Cinder
scheduler as available pools are now no longer reported as such.

Change-Id: I04faa9d7c448b91e66192770b09db84df78a8ae1
Closes-Bug: #1468004

9 years agoChange check method for 'all_tenants'
liyuanyuan [Thu, 10 Sep 2015 05:52:00 +0000 (05:52 +0000)]
Change check method for 'all_tenants'

Replaced with calls to get_bool_param from utils,
so it supports any boolean value like the rest of the API methods.

APIImpact: The API will also allow to pass 'yes', 'no', 'y', 'n'
as valid boolean strings in addition.

Change-Id: I397b0dfb688e0e6278eac75978df28bf6f99d0a9
Closes-Bug: #1494130

9 years agoEnable certificate verification during image copy
Vipin Balachandran [Tue, 25 Aug 2015 11:36:16 +0000 (17:06 +0530)]
Enable certificate verification during image copy

The VMDK driver config options 'vmware_ca_file' and 'vmware_insecure'
are ignored while copying sparse or preallocated vmdk images to vCenter
datastores for volume creation. Therefore, the vCenter certificate is
not verified during image copy.

This patch sets appropriate parameters in the oslo.vmware API (for
copying images) call to enable vCenter certificate verification.

Closes-bug: #1493331
Change-Id: I04f6a6def9867a573258b0d37693b1824e415838

9 years agoMerge "Fix volume lookups in SolidFire template caching"
Jenkins [Tue, 15 Sep 2015 03:20:10 +0000 (03:20 +0000)]
Merge "Fix volume lookups in SolidFire template caching"

9 years agoFix NetApp clone from glance failure
Tom Barron [Thu, 10 Sep 2015 23:53:29 +0000 (19:53 -0400)]
Fix NetApp clone from glance failure

When glance and cinder are backed by the same NetApp DOT flexvol
container, exposed as an NFS share, a direct clone is attempted
of the backing files rather than a copy.  With the advent of
kilo 2015.1.1, this clone operation fails with the message:
"Image cloning unsuccessful ... need more than 2 values to unpack."

The issue here is that the clone path code is calling the parent
nfs class _is_share_eligible() method to see if there is enough
space on the destination flexvol and this method calls _get_capacity_info()
expecting a three-tuple to be returned.  However, commit
e52f304313efc695f7dd89c222041bffd53c131a deliberately changed the return
values of _get_capacity_info() within the NetApp drivers to return
a 2-tuple, based on API calls to obtain capacity information from
the NetApp storage arrays. That commit missed that this method
would also be invoked by the parent nfs class _is_share_eligible()
method, which expects a different signature.

The fix in this commit is to replace the call to the parent
_is_share_eligible() method with a more appropriate NetApp class
specific _share_has_space_for_clone() method.  This new method
uses the NetApp version of _get_capacity_info to get space information
from the arrays via NetApp apis and expects a 2-tuple to be returned
from this method.

Change-Id: Ib0c69e5ea7b32d17930fe0bdcdb9357fd4e4a244
Closes-bug: 1490845

9 years agoMerge "Fix usage of novaclient"
Jenkins [Tue, 15 Sep 2015 01:52:53 +0000 (01:52 +0000)]
Merge "Fix usage of novaclient"

9 years agoMerge "Remove driver.set_execute()"
Jenkins [Tue, 15 Sep 2015 01:50:39 +0000 (01:50 +0000)]
Merge "Remove driver.set_execute()"

9 years agoMerge "Storwize: Fix format string"
Jenkins [Mon, 14 Sep 2015 23:37:11 +0000 (23:37 +0000)]
Merge "Storwize: Fix format string"

9 years agoMerge "Fix order of arguments in assertEqual"
Jenkins [Mon, 14 Sep 2015 22:25:42 +0000 (22:25 +0000)]
Merge "Fix order of arguments in assertEqual"

9 years agoStorwize: Fix format string
Eric Harney [Mon, 14 Sep 2015 17:12:15 +0000 (13:12 -0400)]
Storwize: Fix format string

String accidentally used %{count}s instead of %(count)s.

Change-Id: Ibe54927f4847f947f3a3053150ee3593e04595ee

9 years agoFix usage of novaclient
Ivan Kolodyazhny [Fri, 11 Sep 2015 11:23:02 +0000 (14:23 +0300)]
Fix usage of novaclient

We should use 'client interface' for initialization of novaclient
instead of direct import of some specific client.

Change-Id: I51254e20151fe1d6771897e64a8d0bdf2d674d03
Closes-Bug: #1493576

9 years agoMerge "Check for empty attributes on SF volume"
Jenkins [Mon, 14 Sep 2015 16:25:55 +0000 (16:25 +0000)]
Merge "Check for empty attributes on SF volume"

9 years agoCheck for empty attributes on SF volume
John Griffith [Sun, 13 Sep 2015 14:52:53 +0000 (08:52 -0600)]
Check for empty attributes on SF volume

This should not happen, but; we should be more strict
about our dict reading/checking and always make sure
the key item actually comes back and exists.

In the case of volume['attributes'] we were always
assuming this to be present which should be "ok", but
it's better to verify if rather than assuming, so this
patch adds a simple verification step before trying to
fetch on volume['attributes'].

Change-Id: I37a134a735aaf043aed1230d57fe458bb3a60240
Closes-Bug: #1495247

9 years agoMerge "Add consistency group tests to test_volume_rpcapi"
Jenkins [Mon, 14 Sep 2015 07:14:26 +0000 (07:14 +0000)]
Merge "Add consistency group tests to test_volume_rpcapi"

9 years agoMerge "Remove empty rules from policies for API access"
Jenkins [Mon, 14 Sep 2015 06:56:15 +0000 (06:56 +0000)]
Merge "Remove empty rules from policies for API access"

9 years agoMerge "Huawei: fix multi REST-URLs bug"
Jenkins [Mon, 14 Sep 2015 06:51:55 +0000 (06:51 +0000)]
Merge "Huawei: fix multi REST-URLs bug"

9 years agoMerge "Don't rely on provider_id for resource deletion"
Jenkins [Sun, 13 Sep 2015 02:06:30 +0000 (02:06 +0000)]
Merge "Don't rely on provider_id for resource deletion"

9 years agoMerge "Retrieve volume in update_migrated_volume"
Jenkins [Sat, 12 Sep 2015 23:47:01 +0000 (23:47 +0000)]
Merge "Retrieve volume in update_migrated_volume"

9 years agoMerge "Fix Pure get pgroup volume snapshot name"
Jenkins [Sat, 12 Sep 2015 19:13:03 +0000 (19:13 +0000)]
Merge "Fix Pure get pgroup volume snapshot name"

9 years agoFix volume lookups in SolidFire template caching
John Griffith [Fri, 11 Sep 2015 19:57:32 +0000 (19:57 +0000)]
Fix volume lookups in SolidFire template caching

There's a number of issues with the SolidFire template caching
code.  There are a number of metadata items that aren't consistent
between Glance API V1 and V2, there's also some problems with how
the code is dealing with it's internal volume and just flat out
wrong account checking.

This patch focuses mainly on fixing up the account and volumeID
issues.  The _do_clone method currently expects to find the src
volume under the same account as the dest volume.  That's fine
for most cases, but doesn't work for either the SolidFire template
caching, or for the use of generic image caching in Cinder.

We fix that easily by modifying the _get_sf_volume call to have an
option to search all active volumes on the Cluster instead of just
those for a specified account.  For now we only change the clone
methods, as they're the only case where we fall into the case of
cross-ownership of volumes in the same context.

The other issue is around the cleanup/delete in the case of a
failed template-volume create.  In this case we were passing in
the Cinder UUID to a direct SolidFire API delete cmd, which
is wrong.  The direct call for the SolidFire API call requires
that the actual SolidFire ID be used.  So we leverage the modified
_get_sf_volume call here as well.

Another issue that was introduced was the introduction of
a connector object to the intialize_connection call.  We
got around this once already by just passing in a fake
connector that was actually a string.  That was fine, but
the initialize_connection routine also now checks the connector
for multi_attach, so it fails the _get call on a string.  We
fix that by just building a dict and using that instead of
a fake string.

Finally, the method of relying on the Glance metadata virt size
has been problematic, it's not set by default, it's not accurate
and it's a bit inefficient.  There have been a number of issues
with this method of size determination, so we'll dump that and
just leverage the image_utils methods directly.

Change-Id: Icfd6668389049d3d5686acdb832847aa2d2fce52
Closes-Bug: #1494830
Closes-Bug: #1494927

9 years agoDon't rely on provider_id for resource deletion
John Griffith [Fri, 11 Sep 2015 06:21:40 +0000 (06:21 +0000)]
Don't rely on provider_id for resource deletion

Provider_id info isn't necessarily reliable when dealing
with failure cases.  There are a number of cases where the
info in the Cinder database may not be updated.

This change uses the old delete routines instead of trying
to use the provider_id info.  There are ways to do both,
however it's probably not that beneficial for now.

Change-Id: Idbfd98b19f3c7f1b231ed26a2cc6c98aa2899e2a
Closes-Bug: #1494597

9 years agoMerge "Lenovo driver fix access to common opts"
Jenkins [Fri, 11 Sep 2015 22:37:41 +0000 (22:37 +0000)]
Merge "Lenovo driver fix access to common opts"

9 years agoMerge "HPMSA fix access to common options"
Jenkins [Fri, 11 Sep 2015 22:37:31 +0000 (22:37 +0000)]
Merge "HPMSA fix access to common options"

9 years agoMerge "Dothill fix options access"
Jenkins [Fri, 11 Sep 2015 22:37:21 +0000 (22:37 +0000)]
Merge "Dothill fix options access"

9 years agoMerge "LeftHand Add update_migrated_volume to drivers"
Jenkins [Fri, 11 Sep 2015 22:19:33 +0000 (22:19 +0000)]
Merge "LeftHand Add update_migrated_volume to drivers"

9 years agoFix Pure get pgroup volume snapshot name
Patrick East [Fri, 11 Sep 2015 21:12:03 +0000 (14:12 -0700)]
Fix Pure get pgroup volume snapshot name

When creating a volume from a consistency group snapshot we have to go
look up the volume level snapshot from the group. Previously we could
just directly get to the cgsnapshot model from the snapshot. After we
switched to using the snapshot objects however we cannot do that (at
least not until we have cgsnapshot objects too).

As an interim solution we did a query to the REST API on the array to
just list all of the snapshots. Unfortunately that doesn’t work on all
versions of the Purity REST API. To have a more usable solution we need
to do a db lookup to get the pgsnapshot.

It’s not ideal, and will be removed ASAP, but for now we need to at
least not regress in functionality.

Change-Id: I73a4ad5883bf33ce282b5a49aa8acba66ffcb84f
Closes-Bug: #1494934

9 years agoMerge "LVM: add the exception handling to volume copy"
Jenkins [Fri, 11 Sep 2015 21:46:52 +0000 (21:46 +0000)]
Merge "LVM: add the exception handling to volume copy"

9 years agoMerge "Hacking log format arg check"
Jenkins [Fri, 11 Sep 2015 21:25:44 +0000 (21:25 +0000)]
Merge "Hacking log format arg check"

9 years agoMerge "Add ConsistencyGroup object entries to linstack.py"
Jenkins [Fri, 11 Sep 2015 19:33:25 +0000 (19:33 +0000)]
Merge "Add ConsistencyGroup object entries to linstack.py"