]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoValidate string, integer limit for input parameter
PranaliDeore [Wed, 17 Jun 2015 11:49:24 +0000 (04:49 -0700)]
Validate string, integer limit for input parameter

1. Below apis will return 500 error code on passing name or description
   parameters with more than 255 characters:
   a. consisgroup-create
   b. consisgroup-update
   c. cgsnapshot-create
   d. quota-class-update
   e. quota-update
   f. qos-create
   g. volume-manage
   h. volume-transfer

2. Below apis will return 500 error code on passing 'hard_limit' value
   greater than mysql INT type:
   a. quota-class-update
   b. quota-update
   c. encryption-type-create

3. Below apis accept name as string with whitespaces:
   a. consisgroup-create
   b. cgsnapshot-create
   c. qos-create
   d. volume-transfer

4. Type-key api will return 500 error code on passing key or value with
   more than 255 characters.

Added new method
1. validate_name_and_description() in
   cinder.api.openstack.wsgi.Controller to validate length of name and
   description and returned 400 if it exceeds the limit and removing
   leading or trailing whitespaces and string containing only
   whitespaces.
2. validate_string_length() in cinder.api.openstack.wsgi.Controller to
   validate length of string and returned 400 if it exceeds the limit.
3. validate_integer() method in cinder.utils to validate integer
   limit and returned 400 if limit exceeds.

APIImpact
1. For all above apis 400 response will be returned.
2. Earlier it was possible to pass only whitespaces or leading-trailing
   spaces to 'name' parameters and 'key' while updating key-value in
   type-key api.
   Now it will raise 400 error if only whitespaces are passed and will
   remove leading-trailing spaces if present in other cases.

Closes-Bug: 1466351
Closes-Bug: 1463379
Closes-Bug: 1465967
Change-Id: I0c0029d61ba2b293b579d1afffec0bdf062b22a8

9 years agoValidate name and description string
PranaliDeore [Mon, 11 May 2015 11:00:01 +0000 (04:00 -0700)]
Validate name and description string

If you pass name or description parameters with more than 255
characters to create and update apis of volume and snapshot
and create api of backup, then it returns 500 error code.

Added new method validate_name_and_description() in
cinder.api.openstack.wsgi.Controllera to validate string limit and
returned 400 if limit exceeds and also removing leading or trailing
whitespaces and string containing only whitespaces.

APIImpact
1. For all above APIs 400 response will be returned.
2. Earlier it was possible to pass only whitespaces or leading-trailing
   spaces to 'name' parameter.
   Now it will raise 400 error if only whitespaces are passed and will
   remove leading-trailing spaces if present in other cases.

Closes-Bug: 1454244
Change-Id: Iaf7159e816f69fd776a09828c3bc1d27fc9fdcdb

9 years agoMerge "Remove incorrect URLs from jenkins.rst"
Jenkins [Mon, 10 Aug 2015 01:36:11 +0000 (01:36 +0000)]
Merge "Remove incorrect URLs from jenkins.rst"

9 years agoMerge "Fixing notify message of manage_existing flow"
Jenkins [Mon, 10 Aug 2015 01:35:04 +0000 (01:35 +0000)]
Merge "Fixing notify message of manage_existing flow"

9 years agoMerge "Fix volume limit exceeded exception"
Jenkins [Mon, 10 Aug 2015 01:04:21 +0000 (01:04 +0000)]
Merge "Fix volume limit exceeded exception"

9 years agoMerge "Port Tintri driver to ABC driver model"
Jenkins [Mon, 10 Aug 2015 01:04:10 +0000 (01:04 +0000)]
Merge "Port Tintri driver to ABC driver model"

9 years agoMerge "Fix Python 3 issues in Hitachi HNAS tests"
Jenkins [Mon, 10 Aug 2015 01:04:00 +0000 (01:04 +0000)]
Merge "Fix Python 3 issues in Hitachi HNAS tests"

9 years agoMerge "Port remotefs driver to Python 3"
Jenkins [Mon, 10 Aug 2015 01:03:49 +0000 (01:03 +0000)]
Merge "Port remotefs driver to Python 3"

9 years agoMerge "Change default of option volume_driver to LVMVolumeDriver"
Jenkins [Mon, 10 Aug 2015 01:03:38 +0000 (01:03 +0000)]
Merge "Change default of option volume_driver to LVMVolumeDriver"

9 years agoMerge "Port IBM driver to Python 3"
Jenkins [Mon, 10 Aug 2015 01:03:28 +0000 (01:03 +0000)]
Merge "Port IBM driver to Python 3"

9 years agoMerge "VNX driver needs to return snapshot objects"
Jenkins [Mon, 10 Aug 2015 00:59:17 +0000 (00:59 +0000)]
Merge "VNX driver needs to return snapshot objects"

9 years agoIgnore InsecureReq warning in SolidFire Driver
John Griffith [Sun, 9 Aug 2015 16:00:51 +0000 (10:00 -0600)]
Ignore InsecureReq warning in SolidFire Driver

The python requests package logs the use of Insecure as
a warning.  Currently the use of http vs https is a
configurable option, and for those that use http, the
log files include a Warning message for every single
request to the SolidFire Cluster.

In our case we're explicitly providing the
option to use http instead of https, so we can safely
ignore this message and remove it from the logs.

Change-Id: I746b5f7d7351ef594bf0004ec76458fc1a633031

9 years agoMerge "Add connector object to create_export"
Jenkins [Sat, 8 Aug 2015 21:02:01 +0000 (21:02 +0000)]
Merge "Add connector object to create_export"

9 years agoMerge "Snap copy feature for EMC VNX Cinder driver"
Jenkins [Sat, 8 Aug 2015 01:07:16 +0000 (01:07 +0000)]
Merge "Snap copy feature for EMC VNX Cinder driver"

9 years agoMerge "VMware: Remove unused constants"
Jenkins [Fri, 7 Aug 2015 19:32:12 +0000 (19:32 +0000)]
Merge "VMware: Remove unused constants"

9 years agoMerge "Fix list comparison for empty list"
Jenkins [Fri, 7 Aug 2015 19:25:13 +0000 (19:25 +0000)]
Merge "Fix list comparison for empty list"

9 years agoMerge "GlusterFS: Using 'fallocate' instead of 'dd'"
Jenkins [Fri, 7 Aug 2015 19:25:01 +0000 (19:25 +0000)]
Merge "GlusterFS: Using 'fallocate' instead of 'dd'"

9 years agoMerge "Remove unit test migration logging"
Jenkins [Fri, 7 Aug 2015 18:28:59 +0000 (18:28 +0000)]
Merge "Remove unit test migration logging"

9 years agoRemove incorrect URLs from jenkins.rst
Yusuke Hayashi [Sun, 2 Aug 2015 08:49:19 +0000 (17:49 +0900)]
Remove incorrect URLs from jenkins.rst

Remove URLs from jenkins.rst which is no longer exist
and fix incorrect URLs.

Change-Id: I7418dbe35518987de96fa31bcedb85a5d92cdc2e
Closes-Bug: #1480012

9 years agoMerge "Fix lvm manage existing volume"
Jenkins [Fri, 7 Aug 2015 12:26:40 +0000 (12:26 +0000)]
Merge "Fix lvm manage existing volume"

9 years agoFix list comparison for empty list
ankitagrawal [Tue, 4 Aug 2015 11:20:12 +0000 (04:20 -0700)]
Fix list comparison for empty list

Replaced boolean expression with 'not fields' in "_filter" method.
Also updated unit test cases which calls "_filter" method with
expected value of fields in restore methods.

The unit test "test_restore_vol_meta" was failing for empty list
because after updating the volume metadata, container was passed
to the "_restore_vol_meta" method where "metadata" is expected.
So fixed this unit test by passing the expected value to the
"_restore_vol_meta" method.

Closes-Bug: 1482619
Change-Id: I95c3a390b0b75c0514a3d63699367081440bf414

9 years agoSnap copy feature for EMC VNX Cinder driver
Xi Yang [Thu, 21 May 2015 08:09:21 +0000 (04:09 -0400)]
Snap copy feature for EMC VNX Cinder driver

Currently in VNX Cinder driver, a full-copy will be performed
when creating a volume from snapshot or volume and it is
time-consuming. This patch is going to address this issue by
providing an alternative way which is performing a snap-copy
when creating a volume from snapshot or volume. This can
accelerate the proccess a lot. And if the user wants to perform
a full-copy on the snap-copy volume, migration or retype can be
triggered on it. And we implement update_migrated_volume to
support migration and retype on the snap-copy volume.

DocImpact
Change-Id: I134a2d2274b1e3b85ea08cbf5e034f47d98e97db
Closes-Bug: #1457274

9 years agoMerge "Add entry create and cast tasks to manage workflow"
Jenkins [Fri, 7 Aug 2015 00:05:31 +0000 (00:05 +0000)]
Merge "Add entry create and cast tasks to manage workflow"

9 years agoMerge "Fix wrong exception usage in cinder exception classes"
Jenkins [Thu, 6 Aug 2015 23:16:10 +0000 (23:16 +0000)]
Merge "Fix wrong exception usage in cinder exception classes"

9 years agoAdd connector object to create_export
Walter A. Boring IV [Thu, 16 Jul 2015 21:48:37 +0000 (14:48 -0700)]
Add connector object to create_export

This patch adds the connector object as a parameter
to all driver create_export calls.  This will enable
drivers to actually use create_export method for doing
what they are now doing inside of initialize_connection.

Change-Id: Ia13897a3704080fc5da71e6c8445f308d474f64a
Implements: blueprint add-create-export-connector

9 years agoRemove unit test migration logging
Sean McGinnis [Thu, 6 Aug 2015 21:46:27 +0000 (16:46 -0500)]
Remove unit test migration logging

DB migration unit tests output a bunch of 'Loading script'
messages that are of little to no value. This patch raises
the default migrations module logging level to WARNING to
prevent these debug messages from cluttering the output.

Change-Id: Ib1bb5a0efc791a41f2d4cb1ea0e6eba4658097a8
Co-Authored-By: John Griffith <john.griffith@solidfire.com>
9 years agoMerge "Sync scheduler module from oslo-incubator"
Jenkins [Thu, 6 Aug 2015 12:34:32 +0000 (12:34 +0000)]
Merge "Sync scheduler module from oslo-incubator"

9 years agoFix wrong exception usage in cinder exception classes
Eli Qiao [Thu, 6 Aug 2015 08:50:52 +0000 (16:50 +0800)]
Fix wrong exception usage in cinder exception classes

We need to use message instead of msg_fmt if we want to pass a message
format to Base CinderException.

Closes-Bug: #1482128
Change-Id: Ib3d29e5f23a6eb2cbd3aed191d9d042dfc3022e0

9 years agoMerge "Fix PEP476 & format message of Oracle ZFSSA drivers"
Jenkins [Thu, 6 Aug 2015 07:57:06 +0000 (07:57 +0000)]
Merge "Fix PEP476 & format message of Oracle ZFSSA drivers"

9 years agoSync scheduler module from oslo-incubator
James Carey [Wed, 29 Jul 2015 22:55:03 +0000 (22:55 +0000)]
Sync scheduler module from oslo-incubator

The scheduler and scheduler.weights modules have not been
updated since early in the Icehouse release cycle.  This
patch brings the version in Cinder up to date with what is in
oslo-incubator.

Current HEAD in OSLO:
---------------------
commit 20d7dc57819a70abdff967299542068946d75ac1
Date:   Wed Jul 29 03:49:46 2015 +0000
    Updated from global requirements

    Change-Id: Iba0e4f9545fc9ba82f080a0fec672761dcfeaeec

Patches included with sync by file:
---------------------
base_filter.py
 - 2fbf5065 - Remove oslo.log code and clean up versionutils API
 - 5d40e143 - Remove code that moved to oslo.i18n
 - 2af88ece - Use _LI instead of _ for info message translation
 - 4a47188e - Allow filters to only run once per request if their data is static
 - fcf517d7 - Update oslo log messages with translation domains
 - cae33101 - Stop looping all filters if no objects return
 base_handler.py
 - 6fa29aee - Trivial: Make vertical white space after license header consistent
 - 35660dac7 - Enable hacking H401 test
 - 5dcc43b1 - Break out common functionality for filters and weights
base_weight.py
 - 825cb870 - Upgrade to hacking 0.10
 - a2fa4878 - Fix common.scheduler.base_weight.BaseWeigher to be Python3 compat
 - e47bc70e - Normalize Scheduler Weights

 Note: Key changes were made that impact cinder:
   (1) The weigher base class changed the name of _weight_mulitipler() to
       weight_multiplier() which impacted cinder/scheduler/weights/capacity.py
       and cinder/scheduler/weights/volume_number.py.
   (2) Application of the weight multiplier was moved from the weigher to the
       handler and normalization of the weights prior to applying the weight
       multiplier was added.  This impacted cinder weigher test cases which
       were checking for non-normalized weights.
   (3) The normalization does not support the use of infinite weights which
       are used by the cinder capacity weigher.  When an infinite value is
       used, it is not known what the other weights will be, so this adds an
       override to CapacityWeigher for the weigh_objects() method that wraps
       the parent method to use the returned complete set of weights to
       replace any infinite weights with values that are much larger than
       the largest non-infinite weight.

Change-Id: Iad9bb431f0876e4957598c0ac0d3c8d7f67199fc

9 years agoVNX driver needs to return snapshot objects
Tina [Thu, 6 Aug 2015 02:04:29 +0000 (22:04 -0400)]
VNX driver needs to return snapshot objects

Use snapshot objects instead of snapshot dictionaries of
create_cgsnapshot and delete_cgsnapshot.

Change-Id: I0794e1c30a1ef8f0a4bdf82c6cb850ae4415d164
Partially-Closes-Bug: #1458125

9 years agoMerge "Add multiple pools support to VMAX driver"
Jenkins [Thu, 6 Aug 2015 02:48:56 +0000 (02:48 +0000)]
Merge "Add multiple pools support to VMAX driver"

9 years agoMerge "RemoteFS: Fix the offline snapshot delete operation"
Jenkins [Thu, 6 Aug 2015 02:45:32 +0000 (02:45 +0000)]
Merge "RemoteFS: Fix the offline snapshot delete operation"

9 years agoMerge "Add bandit for security static analysis testing"
Jenkins [Thu, 6 Aug 2015 01:19:39 +0000 (01:19 +0000)]
Merge "Add bandit for security static analysis testing"

9 years agoMerge "Refactor api.v2.volumes unit tests"
Jenkins [Wed, 5 Aug 2015 17:23:13 +0000 (17:23 +0000)]
Merge "Refactor api.v2.volumes unit tests"

9 years agoMerge "Set driver version in Sheepdog driver"
Jenkins [Wed, 5 Aug 2015 16:00:58 +0000 (16:00 +0000)]
Merge "Set driver version in Sheepdog driver"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 5 Aug 2015 14:51:23 +0000 (14:51 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Dell SC: Add check of current value on retype"
Jenkins [Wed, 5 Aug 2015 08:19:25 +0000 (08:19 +0000)]
Merge "Dell SC: Add check of current value on retype"

9 years agoVMware: Remove unused constants
Vipin Balachandran [Wed, 5 Aug 2015 07:28:20 +0000 (12:58 +0530)]
VMware: Remove unused constants

This patch removes unused constants in the volumeops module
of vmdk driver. These became unused after integration with
oslo.vmware.

Change-Id: Ib223b09b4ef833b2bd1e23ae54627790dc37073d

9 years agoFix volume limit exceeded exception
Vipin Balachandran [Tue, 4 Aug 2015 06:33:25 +0000 (12:03 +0530)]
Fix volume limit exceeded exception

The VolumeLimitExceeded exception contains the wrong limit when
the number of volumes exceeds the quota corresponding to a volume
type. It always contains the limit of quota 'volumes'. This patch
fixes the limit in both exception and log message. It also adds
the quota name to exception and log message for better clarity.

Change-Id: I3e2d4fa00fe49f64b2153930e901fccd8015483e
Closes-Bug: #1481182

9 years agoRefactor api.v2.volumes unit tests
Vipin Balachandran [Fri, 31 Jul 2015 12:20:48 +0000 (17:50 +0530)]
Refactor api.v2.volumes unit tests

This patch refactors api.v2.volumes unit tests to use helper
methods added in commit I7c4225de5d32ecd0ad78fc7c0ff847a8bee7b7da.
It also fixes the order of assertEquals in refactored tests.

Partial-Bug: #1277104
Change-Id: I5b5aa9baea07fd46a52bb6c15897949a42748847

9 years agoMerge "Add SmartX support for Huawei driver"
Jenkins [Wed, 5 Aug 2015 00:34:48 +0000 (00:34 +0000)]
Merge "Add SmartX support for Huawei driver"

9 years agoDell SC: Add check of current value on retype
Sean McGinnis [Mon, 27 Jul 2015 14:18:44 +0000 (09:18 -0500)]
Dell SC: Add check of current value on retype

The recently merged retype code for the Dell Storage
Center driver does not check if the new Storage Profile
value is different than the currently set value. While
this is mostly harmless since there isn't a lot of overhead
to setting the Storage Profile to its existing value, it
is still extra overhead and API calls that need to be
performed to complete the operation.

This adds a simple check to compare the current value against
the requested value to decide whether or not to perform the
retype operation. We only support retyping of the Storage
Profile, so if they are the same, just return true to
prevent a migration from happening.

Change-Id: I2d16b4129170cc8ecedfd3674b609badb27b9095

9 years agoMerge "Port NetApp NFS drivers to use ABC driver model"
Jenkins [Tue, 4 Aug 2015 20:44:32 +0000 (20:44 +0000)]
Merge "Port NetApp NFS drivers to use ABC driver model"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 4 Aug 2015 18:14:09 +0000 (18:14 +0000)]
Updated from global requirements

Change-Id: I0566ed07f359a0b993009a9dd08a01f16fc1b312

9 years agoMerge "Over subscription for HP LeftHand iSCSI driver"
Jenkins [Tue, 4 Aug 2015 16:54:10 +0000 (16:54 +0000)]
Merge "Over subscription for HP LeftHand iSCSI driver"

9 years agoFix PEP476 & format message of Oracle ZFSSA drivers
Diem Tran [Wed, 1 Jul 2015 21:12:48 +0000 (21:12 +0000)]
Fix PEP476 & format message of Oracle ZFSSA drivers

* Handles the PEP 476 by opting out certificate verification.
* Fix debug format messages in restclient.py

Change-Id: Iaf9e546f0aed6b57fe9c2bf43aa2ce003a05ddf8
Closes-Bug: #1460156

9 years agoMerge "Clone CG"
Jenkins [Tue, 4 Aug 2015 15:25:21 +0000 (15:25 +0000)]
Merge "Clone CG"

9 years agoMerge "Fix order of arguments in assertEqual"
Jenkins [Tue, 4 Aug 2015 15:24:22 +0000 (15:24 +0000)]
Merge "Fix order of arguments in assertEqual"

9 years agoMerge "Fix status comparison for attached volume backup"
Jenkins [Tue, 4 Aug 2015 12:44:08 +0000 (12:44 +0000)]
Merge "Fix status comparison for attached volume backup"

9 years agoAdd SmartX support for Huawei driver
chenzongliang [Fri, 5 Jun 2015 10:21:16 +0000 (18:21 +0800)]
Add SmartX support for Huawei driver

This patch aims to add SmartX features for Huawei driver,
including SmartQos, SmartTier, SmartPartition and SmartCache.

Co-Authored-By: Bob-OpenStack liuxinguo@huawei.com
Change-Id: I4bc8b227ff0b24847b8c8b30174d23b4e6d51af1
Implements: blueprint support-smartx-for-huawei-volume-driver

9 years agoFix order of arguments in assertEqual
appsdesh [Tue, 28 Jul 2015 04:23:36 +0000 (21:23 -0700)]
Fix order of arguments in assertEqual

Some tests used incorrect order assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed).

This patch does not cover v1 api tests and vendor unit tets.

Change-Id: Icb0636143cfc48d5189bcb0faa6e643f68c32f5e
Partial-Bug: #1259292

9 years agoMerge "NetApp ESeries: fix delete of non-existent volume"
Jenkins [Tue, 4 Aug 2015 00:53:37 +0000 (00:53 +0000)]
Merge "NetApp ESeries: fix delete of non-existent volume"

9 years agoMerge "Fix get default quota values for subprojects"
Jenkins [Mon, 3 Aug 2015 20:36:34 +0000 (20:36 +0000)]
Merge "Fix get default quota values for subprojects"

9 years agoAdd multiple pools support to VMAX driver
Xing Yang [Wed, 10 Jun 2015 00:57:32 +0000 (20:57 -0400)]
Add multiple pools support to VMAX driver

This patch adds multiple pools support to the VMAX driver.

Also changed \ to () in a few places.

implements blueprint emc-vmax-multiple-pools

Change-Id: Iae0c658c808168fa5279b8dbcc6734632a98642d

9 years agoFix status comparison for attached volume backup
Lin Yang [Mon, 3 Aug 2015 07:28:15 +0000 (15:28 +0800)]
Fix status comparison for attached volume backup

1) When do backup for an attached volume, its previous_status should be
'in-use' instead of 'in_use'.
2) Added more assertions in corresponding unittest case for this function
to make sure it enter this if-block. Previous test case was passed even
with the incorrect status.

Change-Id: I80385aa593aea5d749409bf591e5a3c5f8ed478f
Closes-Bug: #1480734

9 years agoMerge "Add mock cases for IBM FlashSystem"
Jenkins [Sun, 2 Aug 2015 19:57:34 +0000 (19:57 +0000)]
Merge "Add mock cases for IBM FlashSystem"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 2 Aug 2015 19:57:23 +0000 (19:57 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Set VERSION on the Nimble driver."
Jenkins [Sun, 2 Aug 2015 18:16:49 +0000 (18:16 +0000)]
Merge "Set VERSION on the Nimble driver."

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 1 Aug 2015 23:39:49 +0000 (23:39 +0000)]
Updated from global requirements

Change-Id: I28ca73bbf23d2a29fb58af4ce9975f0707d2639d

9 years agoMerge "VMware: Fix protocol in backend stats"
Jenkins [Sat, 1 Aug 2015 16:00:27 +0000 (16:00 +0000)]
Merge "VMware: Fix protocol in backend stats"

9 years agoMerge "Fix multi-line docstrings to meet hacking rules"
Jenkins [Fri, 31 Jul 2015 22:24:40 +0000 (22:24 +0000)]
Merge "Fix multi-line docstrings to meet hacking rules"

9 years agoOver subscription for HP LeftHand iSCSI driver
Kurt Martin [Wed, 29 Jul 2015 22:53:25 +0000 (15:53 -0700)]
Over subscription for HP LeftHand iSCSI driver

Add support for over subscription in the HP LeftHand iSCSI driver.

DocImpact

Change-Id: Ibaef68264edd8019a4afd72fea4d8f002254adbb
Implements: blueprint over-subscription-lefthand

9 years agoMerge "Use prefix for SolidFire template account"
Jenkins [Fri, 31 Jul 2015 15:35:59 +0000 (15:35 +0000)]
Merge "Use prefix for SolidFire template account"

9 years agoMerge "sqlalchemy exception kills FixedIntervalLoopingCall thread"
Jenkins [Fri, 31 Jul 2015 13:48:00 +0000 (13:48 +0000)]
Merge "sqlalchemy exception kills FixedIntervalLoopingCall thread"

9 years agoMerge "RBD: use user-configured value for max_clone_depth"
Jenkins [Fri, 31 Jul 2015 13:22:54 +0000 (13:22 +0000)]
Merge "RBD: use user-configured value for max_clone_depth"

9 years agoMerge "Remove deprecated SimpleScheduler"
Jenkins [Fri, 31 Jul 2015 13:22:38 +0000 (13:22 +0000)]
Merge "Remove deprecated SimpleScheduler"

9 years agoMerge "Fix error message in cinder/api/v2/volumes.py"
Jenkins [Fri, 31 Jul 2015 12:21:17 +0000 (12:21 +0000)]
Merge "Fix error message in cinder/api/v2/volumes.py"

9 years agoMerge "Fix concurrent attaches on HNAS iSCSI driver"
Jenkins [Fri, 31 Jul 2015 04:54:46 +0000 (04:54 +0000)]
Merge "Fix concurrent attaches on HNAS iSCSI driver"

9 years agoMerge "Add I/T mapping check for IBM FlashSystem"
Jenkins [Thu, 30 Jul 2015 21:57:33 +0000 (21:57 +0000)]
Merge "Add I/T mapping check for IBM FlashSystem"

9 years agoMerge "Posix backup driver"
Jenkins [Thu, 30 Jul 2015 21:57:10 +0000 (21:57 +0000)]
Merge "Posix backup driver"

9 years agoMerge "Add iSCSI multipath support for Huawei driver"
Jenkins [Thu, 30 Jul 2015 21:51:06 +0000 (21:51 +0000)]
Merge "Add iSCSI multipath support for Huawei driver"

9 years agoUse prefix for SolidFire template account
John Griffith [Thu, 30 Jul 2015 17:43:00 +0000 (11:43 -0600)]
Use prefix for SolidFire template account

The SolidFire template account was not using the
account_prefix setting when the account was created.

This means that if a deployment is configured to use
the prefix, that calls to make the actual clone will fail
because the clone routine prepends the prefix from the
config settings on every lookup.

This patch just adds the same account adjustment that
we use in our regular account creation routines.

Change-Id: I4d3c22f96c9ca90192b88f1802997c8680b81483
Closes-Bug: #1479897

9 years agoFix multi-line docstrings to meet hacking rules
Cindy Pallares [Thu, 21 May 2015 15:54:34 +0000 (10:54 -0500)]
Fix multi-line docstrings to meet hacking rules

According to the PEP8(H405), multi-line docstring summaries
should be separated by an empty line.

Change-Id: I5cd8a9064dcefc504e85946ecdf1f56f10145d35
Closes-bug: #1407162

9 years agosqlalchemy exception kills FixedIntervalLoopingCall thread
scottda [Thu, 30 Jul 2015 16:08:41 +0000 (16:08 +0000)]
sqlalchemy exception kills FixedIntervalLoopingCall thread

Transient DB errors should not kill the thread for FixedIntervalLoopingCall.
This was noticed and fixed for the DBError case in Bug#1466991, but the
exception from sqlalchemy is not handled. Basically, self.model_disconnected
should be set to True, but the looping thread should carry on regardless of
the error.

Change-Id: I4bf04392269a2c33b77166b6c7408b38e1bc992d
Closes-Bug: #1478971

9 years agoMerge "Fix exception on uploading a volume to image with glance v2 API"
Jenkins [Thu, 30 Jul 2015 11:29:34 +0000 (11:29 +0000)]
Merge "Fix exception on uploading a volume to image with glance v2 API"

9 years agoMerge "Move update_migrated_volume() to BaseVD"
Jenkins [Thu, 30 Jul 2015 11:24:15 +0000 (11:24 +0000)]
Merge "Move update_migrated_volume() to BaseVD"

9 years agoVMware: Fix protocol in backend stats
Vipin Balachandran [Thu, 30 Jul 2015 08:58:01 +0000 (14:28 +0530)]
VMware: Fix protocol in backend stats

The VMDK driver reports the protocol as 'LSI Logic SCSI' in
backend stats. This patch changes the protocol to 'vmdk'
which is in sync with driver support matrix at:
https://wiki.openstack.org/wiki/CinderSupportMatrix

Change-Id: I8f9255088ce3d25a6b0d7f38dcbabfd15082ff32
Closes-Bug: #1479693

9 years agoFix error message in cinder/api/v2/volumes.py
lisali [Thu, 30 Jul 2015 03:18:25 +0000 (11:18 +0800)]
Fix error message in cinder/api/v2/volumes.py

Minor fix.

Change-Id: I1269e271581cc523368b3e59fe4b8ced4febf9de
Closes-Bug: #1479598

9 years agoFix concurrent attaches on HNAS iSCSI driver
Erlon R. Cruz [Fri, 10 Jul 2015 18:36:22 +0000 (15:36 -0300)]
Fix concurrent attaches on HNAS iSCSI driver

It might happen that multiple cinder nodes/backends are trying to add
volumes to the same target. In this situation, the driver can get an
error trying to add a volume to a hlun just taken by other instance.
This patch fix this avoiding concurrency using mutual exclusion and adds
retries to the failed attempts to cover scenarios where multiple cinder
hosts are used.

Closes-bug: #1475007
Change-Id: Ie2d3b286eecbf0299ac0c0e32d3e098bb5d11e4f

9 years agoMerge "LVM: Support efficient data copy for LVM driver"
Jenkins [Wed, 29 Jul 2015 17:38:26 +0000 (17:38 +0000)]
Merge "LVM: Support efficient data copy for LVM driver"

9 years agoMerge "Windows iSCSI: Add CHAP authentication support"
Jenkins [Wed, 29 Jul 2015 05:36:04 +0000 (05:36 +0000)]
Merge "Windows iSCSI: Add CHAP authentication support"

9 years agoMerge "Add deactivate step to extend_lv"
Jenkins [Wed, 29 Jul 2015 05:32:46 +0000 (05:32 +0000)]
Merge "Add deactivate step to extend_lv"

9 years agoGlusterFS: Using 'fallocate' instead of 'dd'
Bharat Kumar Kobagana [Wed, 1 Apr 2015 10:20:26 +0000 (15:50 +0530)]
GlusterFS: Using 'fallocate' instead of 'dd'

As 'fallocate' preallocates space to a volume, we can use it to
create raw formatted volume instead of 'dd' command.

This patch also introduces a new configuration parameter
'nas_volume_prov_type', which can be set to either 'thin' or 'thick'.

DocImpact
Co-Authored-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: If9691b7b9fcb90254d8c108f633aeea4ed4f956d

9 years agoFixing notify message of manage_existing flow
wanghao [Mon, 27 Jul 2015 04:20:21 +0000 (12:20 +0800)]
Fixing notify message of manage_existing flow

Use manage_existing.end instead of create.end to send notify
when process of managing existing is finished.

Change-Id: If3a56eb0ddba045851f6790230a8d35fb1a0b11a
Closes-Bug: #1478758

9 years agoClone CG
Xing Yang [Mon, 20 Jul 2015 03:18:58 +0000 (23:18 -0400)]
Clone CG

This patch modifies the existing "create CG from source" API
to take an existing CG as a source, in addition to a CG snapshot.

APIImpact
DocImpact
implements blueprint clone-cg

Change-Id: Ieabc190a5d9a08e2c84e42140192e6ee3dac9433

9 years agoFix get default quota values for subprojects
Erickson Santos [Mon, 27 Jul 2015 17:52:47 +0000 (14:52 -0300)]
Fix get default quota values for subprojects

When getting the default quota value for a project, the DBQuotaDriver
is just checking if the default_quota_class CONF is set to True.
But this conf should not be considered when getting default quota
values for subprojects.

Previously, when we asked for the default quota values of a
subproject, the default quota values of the root project was returned.

Co-Authored-By: Vilobh Meshram <vilobhmm@yahoo-inc.com>
Change-Id: Ib88bafca915dfd387086c353c25b2af037e6d50f
Closes-bug: #1478651

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 28 Jul 2015 21:15:23 +0000 (21:15 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Adding NFS support to the GPFS Driver"
Jenkins [Tue, 28 Jul 2015 21:11:04 +0000 (21:11 +0000)]
Merge "Adding NFS support to the GPFS Driver"

9 years agoAdd deactivate step to extend_lv
Curt Bruns [Mon, 6 Jul 2015 15:09:41 +0000 (15:09 +0000)]
Add deactivate step to extend_lv

Extending a linear LVM volume that has a snapshot requires
that the LV be deactivated explicitly prior to extending.

This adds a deactivate_lv method and calls it prior to
issuing the extend call. If auto_activation_volume_list
is not defined lvm.conf, then volumes will be reactivated
automatically after the extend.  If auto_activation_volume_list
is defined, then volumes that should be automatically
reactivated should be added to the auto_activation_volume_list
or they won't be activated automatically.
NOTE: This doesn't apply to thin provisioned LVs as they don't
require the deactivation step.

DocImpact: When a user extends LVM Volumes with a snapshot, the
volumes will be deactivated.  Their re-activation is automatic,
unless auto_activation_volume_list is defined in lvm.conf.
See lvm.conf for more info.  Thin provisioned LVM Volumes
will not be deactivated as they don't require it.

Co-Authored-By: John Griffith <john.griffith8@gmail.com>
Change-Id: If746625cfe658c3528525dc7f4bf869f1c9704dc
Closes-Bug: #1470558

9 years agoFix exception on uploading a volume to image with glance v2 API
Tomoki Sekiyama [Tue, 28 Jul 2015 18:08:15 +0000 (14:08 -0400)]
Fix exception on uploading a volume to image with glance v2 API

This fixes an exception on uploading a volume to image when
the glance v2 api is enabled. Also, this adds the unit tests
for updating metadata and data both with glance API v1 and v2.

Change-Id: Id70eff82837c0af1f033a2bb749ef367cd9e32fb
Closes-bug: #1478737

9 years agoSet VERSION on the Nimble driver.
Sonia Ghanekar [Tue, 28 Jul 2015 17:11:50 +0000 (10:11 -0700)]
Set VERSION on the Nimble driver.

The Nimble driver does not set the VERSION variable
causing its version to be logged as N/A. This patch
updates that variable so that the correct version
number is reflected in the log.

Change-Id: I922257cf79e1a65247fd5384fa1fa746660efae3
Closes-Bug: #1476859

9 years agoMerge "Remove deprecated config options for Liberty"
Jenkins [Tue, 28 Jul 2015 16:49:55 +0000 (16:49 +0000)]
Merge "Remove deprecated config options for Liberty"

9 years agoLog which service is down
Eric Harney [Mon, 27 Jul 2015 17:24:36 +0000 (13:24 -0400)]
Log which service is down

This changes the message "Manager for service cinder-volume
is reporting problems..." to
"Manager for service cinder-volume myhost@backend1 is
reporting problems..."

This makes it more clear in the log file which backend this
message is referring to.

Change-Id: I62172080084a01c0324ffb6ab8a0e4af2b47fb85

9 years agoMove update_migrated_volume() to BaseVD
Erlon R. Cruz [Tue, 7 Jul 2015 14:30:15 +0000 (11:30 -0300)]
Move update_migrated_volume() to BaseVD

The update_migrated_volume() function on volume/manager.py
calls the update_migrated_volume() from the driver. If the
driver does not implement the function, the manager falls
back (by catching the NotImplementedError exception) and
implements a default behavior, not renaming the volume.  If
the driver does not have the function implemented, the
migration will fail as in this case, an AttributeError
exception can be raised.

We fix this by implementing the method
update_migrate_volume() in the BaseVD driver so all drivers
now throw the proper exception.

Change-Id: I9f3cbdc5ae1cdcbf8fe61168abf35b985d4182c6
Closes-Bug: #1471807

9 years agoPosix backup driver
Kevin Fox [Thu, 12 Mar 2015 19:27:56 +0000 (12:27 -0700)]
Posix backup driver

Add Posix backup driver. Supports simple nas too.

Co-Authored-By: Bharat Kumar Kobagana <bharat.kobagana@redhat.com>
Partially Implements: blueprint nfs-backup
Change-Id: I99383aa23b6dda217c8df6b33561111a8823b452

9 years agoMerge "Port StorwizeSVCDriver to use ABCMeta driver model"
Jenkins [Tue, 28 Jul 2015 10:22:13 +0000 (10:22 +0000)]
Merge "Port StorwizeSVCDriver to use ABCMeta driver model"

9 years agoMerge "EMC VMAX Modify CG"
Jenkins [Tue, 28 Jul 2015 08:32:13 +0000 (08:32 +0000)]
Merge "EMC VMAX Modify CG"

9 years agoAdd mock cases for IBM FlashSystem
YuanHui Xu [Mon, 27 Jul 2015 04:13:49 +0000 (23:13 -0500)]
Add mock cases for IBM FlashSystem

This patch adds the mock method into create_volume for the IBM
FlashSystem unittest code.

* Case for create_volume with mocked empty return value
* Case for create_volume with mocked error message for storage backend

Closes-Bug: #1477820
Change-Id: Ic96551b19ccde18943279f979b952d8eea45f1f7

9 years agoMerge "Fix cleanup_temp_volume_snapshots for missing vol"
Jenkins [Tue, 28 Jul 2015 00:08:02 +0000 (00:08 +0000)]
Merge "Fix cleanup_temp_volume_snapshots for missing vol"