]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoExtend unit tests for backup get_all
Eric Harney [Tue, 25 Aug 2015 17:54:29 +0000 (13:54 -0400)]
Extend unit tests for backup get_all

With ddt we can easily unit test the range of
expected inputs for these calls.

Change-Id: I6f2783dfec9aaae46a77f946f5ac8f99a698a2c8

9 years agoFix backup list all_tenants=0 filtering for admin
Gorka Eguileor [Tue, 18 Aug 2015 09:29:15 +0000 (11:29 +0200)]
Fix backup list all_tenants=0 filtering for admin

When a user with admin role lists backups specifying all_tenants=0 in
the request, it will not behave as expected, it will return backups for
all tenants just as if all_tenants=1 had been specified.

This patch fixes this issue and will only return all tenants in backup
listings if all_tenants is set to a value meaning True (1, true, yes,
y).

Change-Id: Ia74bc258a86f6dc48483dfe17bf5a312aec4058d
Closes-Bug: #1485900

9 years agoMerge "Cinder replication V2"
Jenkins [Tue, 25 Aug 2015 08:31:52 +0000 (08:31 +0000)]
Merge "Cinder replication V2"

9 years agoMerge "Add volume retype support for Huawei driver"
Jenkins [Tue, 25 Aug 2015 08:31:41 +0000 (08:31 +0000)]
Merge "Add volume retype support for Huawei driver"

9 years agoMerge "Port 3PAR drivers to use ABCMeta driver model"
Jenkins [Tue, 25 Aug 2015 01:58:55 +0000 (01:58 +0000)]
Merge "Port 3PAR drivers to use ABCMeta driver model"

9 years agoCinder replication V2
John Griffith [Thu, 9 Jul 2015 21:11:54 +0000 (21:11 +0000)]
Cinder replication V2

This adds a scaled back replication implementation
that leaves the bulk of the work up to the driver.
We just provide basic admin API methods to do things
like enable/disable and fail-over.  Set up and
specification of replication targets for a specific
back end are now intended to be part of the cinder.conf
in the driver section itself.

Replication targets are configured via the cinder.conf
file in their associated driver section.  See the devref
doc included in this commit for details on the format.

The next step in configuration is to create a volume-type
with replication info in the extra-specs.
    extra-specs = replication=enable, volume_backend_name=foo

This instructs the driver to utilize replication, default is
up to the driver but would suggest single way rep and in the case
of multiple targets, driver could choose or have a default.

If the back end doesn't report replication=enabled in it's stats
updates the scheduler will fail to place the volume due to invalid
host, or no hosts available.

Vendors can easily modify extra-specs or their own config settings
to modify this behavior, any vendor-unique adaptation can be
provided through the use of scoped keys.  Suggested examples
will be published in docs.

See doc/source/devref/replication.rst for more info

Implements BP: replication-v2
DocImpact

Change-Id: I406390e4d5f3c9947df1c4f2de68821e0fd7f75b

9 years agoMerge "Dell SC: Added logging for the find_wwns functions"
Jenkins [Mon, 24 Aug 2015 20:34:14 +0000 (20:34 +0000)]
Merge "Dell SC: Added logging for the find_wwns functions"

9 years agoMerge "Fix bad except clauses order"
Jenkins [Mon, 24 Aug 2015 16:30:10 +0000 (16:30 +0000)]
Merge "Fix bad except clauses order"

9 years agoMerge "Add version columns to services table"
Jenkins [Mon, 24 Aug 2015 15:53:40 +0000 (15:53 +0000)]
Merge "Add version columns to services table"

9 years agoMerge "Fix URLs to admin-guide-cloud"
Jenkins [Mon, 24 Aug 2015 15:50:46 +0000 (15:50 +0000)]
Merge "Fix URLs to admin-guide-cloud"

9 years agoMerge "Add backup/restore methods to Sheepdog driver"
Jenkins [Mon, 24 Aug 2015 15:16:20 +0000 (15:16 +0000)]
Merge "Add backup/restore methods to Sheepdog driver"

9 years agoFix bad except clauses order
masahiro ikeda [Fri, 21 Aug 2015 05:31:24 +0000 (14:31 +0900)]
Fix bad except clauses order

In wbem_request() method, 'socket.error' superclass of exception
class ' socket.sslerror' has already been caught.

Moved the except 'socket.sslerror' block up above 'socket.error'
so that if there is any error due to ssl it is caught correctly.

Closes-Bug: #1487320

Change-Id: I1de1642e47fc7ba39e6666fca1aa6e8d0dde57d7

9 years agoAdd volume retype support for Huawei driver
zhongjun [Tue, 14 Jul 2015 10:06:51 +0000 (18:06 +0800)]
Add volume retype support for Huawei driver

Add retype volume function for Huawei driver, including
SmartQos, SmartTier, SmartPartition and SmartCache,
SmartThin/Thick.

This commit adds the following qualified extra-specs:
  * capabilities:smarttier='<is> True'
    smarttier:policy='X'(X:0,1,2,3)"(default value is 1)
  * capabilities:smartpartition='<is> True'
    smartpartition:partitionname=test_partition_name
  * capabilities:smartcache='<is> True'
    smartcache:cachename=test_cache_name
  * capabilities:thin_provisioning='<is> True'
  * capabilities:thick_provisioning='<is> True'

Implements: blueprint huawei-driver-support-retype
Change-Id: I6bd1d39aca5a368594ca39c75c86eaf6ab20b00c

9 years agoFix URLs to admin-guide-cloud
Andreas Jaeger [Sun, 23 Aug 2015 08:48:20 +0000 (10:48 +0200)]
Fix URLs to admin-guide-cloud

The content of the admin-guide-cloud has been changed and thus URLs are
moved. Replace outdated URLs with current ones.

The reorg of admin-guide-cloud was done as part of
http://specs.openstack.org/openstack/docs-specs/specs/liberty/reorganise-user-guides.html.

Implements blueprint reorganise-user-guides

Change-Id: I6f980021824e57df973e62d6023b27feb0fa703b

9 years agoMerge "Prevent volume already in CG to be added to another"
Jenkins [Sun, 23 Aug 2015 15:07:01 +0000 (15:07 +0000)]
Merge "Prevent volume already in CG to be added to another"

9 years agoMerge "Fix Pure create volume from cgsnapshot"
Jenkins [Sun, 23 Aug 2015 04:44:22 +0000 (04:44 +0000)]
Merge "Fix Pure create volume from cgsnapshot"

9 years agoMerge "Update provider_id column on SolidFire init"
Jenkins [Sat, 22 Aug 2015 18:52:16 +0000 (18:52 +0000)]
Merge "Update provider_id column on SolidFire init"

9 years agoMerge "EMC VMAX Create CG from CG Snapshot"
Jenkins [Sat, 22 Aug 2015 18:47:57 +0000 (18:47 +0000)]
Merge "EMC VMAX Create CG from CG Snapshot"

9 years agoMerge "Add missing space to logged error in create volume"
Jenkins [Sat, 22 Aug 2015 17:32:55 +0000 (17:32 +0000)]
Merge "Add missing space to logged error in create volume"

9 years agoMerge "Add ability to update provider_id during init"
Jenkins [Sat, 22 Aug 2015 11:39:15 +0000 (11:39 +0000)]
Merge "Add ability to update provider_id during init"

9 years agoMerge "Validate value when user update quota"
Jenkins [Sat, 22 Aug 2015 07:08:17 +0000 (07:08 +0000)]
Merge "Validate value when user update quota"

9 years agoMerge "Avoid returning volume metadata in DotHill driver"
Jenkins [Sat, 22 Aug 2015 01:27:16 +0000 (01:27 +0000)]
Merge "Avoid returning volume metadata in DotHill driver"

9 years agoMerge "Return multiple iSCSI portals in VNX Cinder driver"
Jenkins [Fri, 21 Aug 2015 23:55:22 +0000 (23:55 +0000)]
Merge "Return multiple iSCSI portals in VNX Cinder driver"

9 years agoDell SC: Added logging for the find_wwns functions
Tom Swanson [Fri, 21 Aug 2015 22:00:23 +0000 (17:00 -0500)]
Dell SC: Added logging for the find_wwns functions

Added additional LOG.debug() statements to find_wwns and associated
functions.  Right now there aren't enough bread crumbs to easily triage
a problem with the return for the FC intitialize_connection function.

Change-Id: Ia283ae16b028395bbb699da5c38f355e6cb24cfe

9 years agoAdd missing space to logged error in create volume
Eric Harney [Fri, 21 Aug 2015 21:23:20 +0000 (17:23 -0400)]
Add missing space to logged error in create volume

Currently this reads:
  Originating source volume status must
  be one of'available, in-use' values

Change-Id: I5c387ff83670672e882ee7f155edceb4d8a8a7f8

9 years agoMerge "Fix _LI() to _LW() in LOG.warning message"
Jenkins [Fri, 21 Aug 2015 17:48:47 +0000 (17:48 +0000)]
Merge "Fix _LI() to _LW() in LOG.warning message"

9 years agoUpdate provider_id column on SolidFire init
John Griffith [Thu, 20 Aug 2015 19:09:57 +0000 (19:09 +0000)]
Update provider_id column on SolidFire init

This patch just implements an init routine to update
the cinder db with provider_id mappings to known/active
volumes on the SolidFire cluster.

Now that we have added a mapping feature in the DB, we need
to go back and populate these columns on an upgrade.  It's
also helpful to have this mechanism for internal mappings on
init, that's why it's here as an init routine instead of part
of an upgrade migration or cinder-manager script.

Change-Id: I1e4da2adff2ae85a3020b38167c8c63fc56b8417

9 years agoAdd ability to update provider_id during init
John Griffith [Thu, 20 Aug 2015 16:45:03 +0000 (10:45 -0600)]
Add ability to update provider_id during init

During the Liberty release we added the ability to store
a provider_id for a volume in the Cinder database.  This
simplifies a number of things for back ends when accessing
volumes.

One missing piece here however is that we have no way to
populate this data for existing deployments if/when they
upgrade.

This patch provides a simple solution that issues an update
call to the drivers on host init.  It works by fetching a
list of volumes for the specific host, and passes those in
to the driver.  The driver can do nothing, or it can go
through and sync up the Cinder ID's with it's internal
ID's and return the provider update info.

Change-Id: Ib3b078a6f492afada24e534f380f5f014033d603

9 years agoMerge "Update deprecated version of novaclient"
Jenkins [Fri, 21 Aug 2015 09:54:57 +0000 (09:54 +0000)]
Merge "Update deprecated version of novaclient"

9 years agoMerge "Add SolidFire svip to config options"
Jenkins [Fri, 21 Aug 2015 09:54:33 +0000 (09:54 +0000)]
Merge "Add SolidFire svip to config options"

9 years agoMerge "Switch to the oslo_utils.fileutils"
Jenkins [Fri, 21 Aug 2015 09:54:00 +0000 (09:54 +0000)]
Merge "Switch to the oslo_utils.fileutils"

9 years agoMerge "RemoteFS: Fix doc for locked_volume_id_operation"
Jenkins [Fri, 21 Aug 2015 07:25:33 +0000 (07:25 +0000)]
Merge "RemoteFS: Fix doc for locked_volume_id_operation"

9 years agoFix _LI() to _LW() in LOG.warning message
Furuta Tomonori [Thu, 23 Jul 2015 08:33:28 +0000 (17:33 +0900)]
Fix _LI() to _LW() in LOG.warning message

Closes-Bug: #1477535
Change-Id: If33cc839d6d3ac5b479cfeaabc50405c9274f7cb

9 years agoMerge "Parse out SolidFire account from api response"
Jenkins [Fri, 21 Aug 2015 03:49:05 +0000 (03:49 +0000)]
Merge "Parse out SolidFire account from api response"

9 years agoMerge "Rename free_virtual in capacity filter"
Jenkins [Fri, 21 Aug 2015 03:43:35 +0000 (03:43 +0000)]
Merge "Rename free_virtual in capacity filter"

9 years agoValidate value when user update quota
wanghao [Thu, 2 Jul 2015 09:41:17 +0000 (17:41 +0800)]
Validate value when user update quota

Cinder currently doesn't check the existing resource
when user lowers the quota sets. It should have an optional
action that doesn't allow to update the quota of resources
lower than current usage.

This patch adds code to validate the update value of quota and
ensure the value can't be lower than existing resource.

APIImpact
Add an optional boolean argument 'skip_validation' with default value True.
{
  "quota_set": {xxxx},
  "skip_validation": 'True'/'False'
}
If skip_validation=False and the update value is lower than existing resource,
API will return 400 Bad Request.

Change-Id: I24428ce53e5d10e77235f372bb6d0b70ea672412
Closes-Bug: #1304234

9 years agoMerge "Dell SC: Better exception handling in init_conn"
Jenkins [Fri, 21 Aug 2015 01:37:00 +0000 (01:37 +0000)]
Merge "Dell SC: Better exception handling in init_conn"

9 years agoAdd SolidFire svip to config options
John Griffith [Thu, 20 Aug 2015 21:49:59 +0000 (15:49 -0600)]
Add SolidFire svip to config options

The SolidFire driver uses a simple method of gathering
the Storage Virtual IP, it just queries the Cluster and
asks for the SVIP. This is great almost all the time,
BUT it doesn't take into consideration that the deployer
may be using VLAN's and accessing the cluster from multiple
clouds, or multiple networks.

This patch just adds a config option to specify an SVIP
if the admin has configured VLANs in their environment and
on their cluster.  The default behavior is to still use the
global SVIP.

Change-Id: I10b784f903cd8d16580110f01d338a3ad867eada
Closes-Bug: #1487194

9 years agoReturn multiple iSCSI portals in VNX Cinder driver
Tina [Wed, 5 Aug 2015 03:15:03 +0000 (23:15 -0400)]
Return multiple iSCSI portals in VNX Cinder driver

Return multiple iSCSI portals (using keys target_portals, target_iqns
and target_luns) in VNX Cinder driver whether the multipath option
is used or not. A single portal is continuously being returned in
target_portal, target_iqn and target_lun for drivers other than
libvirt driver.

Change-Id: Ibfd989d10a65a3b87647f3d7a4ff3596d822eec9
Closes-Bug: #1482017

9 years agoAvoid returning volume metadata in DotHill driver
nikeshm [Thu, 20 Aug 2015 20:47:12 +0000 (02:17 +0530)]
Avoid returning volume metadata in DotHill driver

DotHill driver returns volume metadata on create volume.
It is not needed and causing CI failures.

Change-Id: Idbe16fcff60ed0c3cfa1f4ba66ca549c6dd9a1d8
Closes-Bug: #1487165
Co-Authored-By: Lakshman <lakshminarayanat@vedams.com>
9 years agoPort 3PAR drivers to use ABCMeta driver model
Kurt Martin [Thu, 20 Aug 2015 15:37:19 +0000 (08:37 -0700)]
Port 3PAR drivers to use ABCMeta driver model

Use new ABCMeta driver model for 3PAR drivers.

Change-Id: I51051afbe9aa6135a34dfb927ed0153482810187
Implements: blueprint abc-driver-update

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 20 Aug 2015 11:20:08 +0000 (11:20 +0000)]
Updated from global requirements

Change-Id: I7614637649ed8f31862a240cb1be71529a501248

9 years agoMerge "Adds the random option to cinder retry function"
Jenkins [Thu, 20 Aug 2015 10:06:11 +0000 (10:06 +0000)]
Merge "Adds the random option to cinder retry function"

9 years agoSwitch to the oslo_utils.fileutils
Sergey Vilgelm [Wed, 8 Jul 2015 12:18:13 +0000 (15:18 +0300)]
Switch to the oslo_utils.fileutils

fileutils is graduated in the oslo.utils library.
Use the open function from builtins instead of fileutils.file_open.
Change the test_backup_volume (test_scality module) and
test_restore_backup (test_scality, test_volume) functions to use
mock library instead of mox.

Implements: blueprint graduate-fileutils[1]
[1] https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-fileutils

Change-Id: I7abf0273bf2b90c72f51ebf4896808eaabb91969

9 years agoMerge "Update devref unit tests doc"
Jenkins [Thu, 20 Aug 2015 07:14:21 +0000 (07:14 +0000)]
Merge "Update devref unit tests doc"

9 years agoMerge "Make migration's volume source deletion async"
Jenkins [Thu, 20 Aug 2015 05:45:51 +0000 (05:45 +0000)]
Merge "Make migration's volume source deletion async"

9 years agoMerge "Refactor to remove duplicate code"
Jenkins [Thu, 20 Aug 2015 04:34:28 +0000 (04:34 +0000)]
Merge "Refactor to remove duplicate code"

9 years agoMerge "Remove duplicate keys from dictionary"
Jenkins [Thu, 20 Aug 2015 03:26:46 +0000 (03:26 +0000)]
Merge "Remove duplicate keys from dictionary"

9 years agoMerge "Corrects the order of AssertEquals params in Quobyte tests"
Jenkins [Thu, 20 Aug 2015 03:25:53 +0000 (03:25 +0000)]
Merge "Corrects the order of AssertEquals params in Quobyte tests"

9 years agoParse out SolidFire account from api response
John Griffith [Wed, 19 Aug 2015 21:07:49 +0000 (21:07 +0000)]
Parse out SolidFire account from api response

In the SolidFire create-cache account routine we broke the response
check and are trying to use the entire api response as if it were an
account object.

This patch just pulls the actual account object out of the response
instead of using the entire API response.

Change-Id: Ief2d9ae494475f5ba3688c521e11d51a244b5c28
Closes-Bug: #1486744

9 years agoMerge "Test whether sample config generation works"
Jenkins [Wed, 19 Aug 2015 19:59:16 +0000 (19:59 +0000)]
Merge "Test whether sample config generation works"

9 years agoDell SC: Better exception handling in init_conn
Tom Swanson [Tue, 18 Aug 2015 19:36:38 +0000 (14:36 -0500)]
Dell SC: Better exception handling in init_conn

Now re-raising VolumeBackendAPIExceptions in initialize_connection.
And logging any other exceptions as VolumeBackendAPIException.  This
preserves the actual failure in the logs.

Also updated the version history.

Change-Id: Ib2421a9b701445e14095bea2415d7bbfaf54854c

9 years agoMerge "Adds manage/unmanage methods for HNAS drivers."
Jenkins [Wed, 19 Aug 2015 17:01:24 +0000 (17:01 +0000)]
Merge "Adds manage/unmanage methods for HNAS drivers."

9 years agoMerge "Tests: Fix zfssa TestRestClientURL.test_request"
Jenkins [Wed, 19 Aug 2015 16:52:24 +0000 (16:52 +0000)]
Merge "Tests: Fix zfssa TestRestClientURL.test_request"

9 years agoCorrects the order of AssertEquals params in Quobyte tests
Silvan Kaiser [Wed, 19 Aug 2015 13:42:25 +0000 (15:42 +0200)]
Corrects the order of AssertEquals params in Quobyte tests

Closes-Bug: 1486566

Change-Id: I29bd0ea93d0c432da97d761d7955336a80fff2de

9 years agoAdds the random option to cinder retry function
Adriano Rosso [Mon, 10 Aug 2015 19:19:31 +0000 (16:19 -0300)]
Adds the random option to cinder retry function

The current retry functionality in Cinder, always uses fixed
numbers to define the time to wait before performing the next
attempts. This behaviour can make the retries of multiple
requisitions to collide in each attempt as they will wait the
same amount of time and try to use the same resource together
again.

This patch changes the behaviour of cinder.utils.retry() to
receive a parameter that allows the function to implement
randomly generated wait intervals.

Change-Id: If746434e4a19895d649529e9e9f267410a1a1c48
Closes-bug: 1486142

9 years agoMerge "Dell SC: Fix error causing missed log message"
Jenkins [Wed, 19 Aug 2015 09:24:43 +0000 (09:24 +0000)]
Merge "Dell SC: Fix error causing missed log message"

9 years agoMerge "Configure space reservation on NetApp Data ONTAP"
Jenkins [Wed, 19 Aug 2015 07:01:48 +0000 (07:01 +0000)]
Merge "Configure space reservation on NetApp Data ONTAP"

9 years agoMerge "Register the volume_opts config options in remotefs.py"
Jenkins [Wed, 19 Aug 2015 07:01:22 +0000 (07:01 +0000)]
Merge "Register the volume_opts config options in remotefs.py"

9 years agoMerge "LeftHand driver is ignoring reserved_percentage"
Jenkins [Wed, 19 Aug 2015 07:01:10 +0000 (07:01 +0000)]
Merge "LeftHand driver is ignoring reserved_percentage"

9 years agoRemove duplicate keys from dictionary
Yuji Hagiwara [Tue, 18 Aug 2015 05:00:49 +0000 (14:00 +0900)]
Remove duplicate keys from dictionary

There are several places where duplicate keys are added in the dictionary.

Remove all such occurrences throughout the code.

Change-Id: Ib1e6cccb82fdfcde9e3080afca7bebdb61d6f5ad
Closes-Bug: #1485846

9 years agoMerge "Revert "mark oslo.vmware as optional dependency""
Jenkins [Wed, 19 Aug 2015 02:00:48 +0000 (02:00 +0000)]
Merge "Revert "mark oslo.vmware as optional dependency""

9 years agoLeftHand driver is ignoring reserved_percentage
Kurt Martin [Tue, 18 Aug 2015 23:15:28 +0000 (16:15 -0700)]
LeftHand driver is ignoring reserved_percentage

The LH driver was hard coding the reserved_percentage parameter to 0.
The LeftHand driver should be reading this value from the cinder
configuration file as it's used in the capacity filter for calculating
capacities.

DocImpact

Change-Id: Ib76c191f75300f9607811727b0f08ed09deb06c0
Closes-Bug: 1486267

9 years agoUpdate devref unit tests doc
John Griffith [Tue, 18 Aug 2015 23:08:13 +0000 (17:08 -0600)]
Update devref unit tests doc

Simple update for our painfully out of date devref docs.

Just a short refresh on unit_tests, there's a lot that could
and probably should be added there, but this change just gets
rid of the obsolete references to Nose and adds info regarding
tox and how to use it.

Change-Id: Ib1ff174ee9ccb8ecb258558d77202062204dfec3

9 years agoTests: Fix zfssa TestRestClientURL.test_request
Eric Harney [Tue, 18 Aug 2015 22:10:58 +0000 (18:10 -0400)]
Tests: Fix zfssa TestRestClientURL.test_request

This test can currently fail with mismatched parameters
to urlopen.  Just ensure that urlopen is called so
that this works across all environments/versions.

Closes-Bug: #1486245

Change-Id: Icec5d208a979ba62b9dfef2b499a00bacec841d3

9 years agoMerge "Add volume migration support for Huawei driver"
Jenkins [Tue, 18 Aug 2015 21:51:39 +0000 (21:51 +0000)]
Merge "Add volume migration support for Huawei driver"

9 years agoTest whether sample config generation works
Eric Harney [Tue, 18 Aug 2015 21:09:50 +0000 (17:09 -0400)]
Test whether sample config generation works

Adds --checkonly to tools/config/check_uptodate.sh.

This allows verifying that a configuration file was
generated.

We have had a number of issues introduced which
have caused config file generation to fail since we
removed the sample config file check in the gate.
This does not add back checks to ensure that the file
has been updated, it only checks to ensure that it is
still possible to update the sample file.

Change-Id: I2e0e376fbdec5a1bb584c6739231649e1d0f5d8e

9 years agoMerge "Adapt SnapshotController to view builder"
Jenkins [Tue, 18 Aug 2015 20:35:37 +0000 (20:35 +0000)]
Merge "Adapt SnapshotController to view builder"

9 years agoRevert "mark oslo.vmware as optional dependency"
Eric Harney [Tue, 18 Aug 2015 20:22:01 +0000 (16:22 -0400)]
Revert "mark oslo.vmware as optional dependency"

This reverts commit e67adc385ce6997249fbf70e9402264f758fc6f4.

Adding optional dependency tracking would be nice,
but Cinder is not yet in a place to do this.

- Cinder supports tox 1.6 (minversion in tox.ini)
- This functionality does not work on 1.6, requires 1.7.  Tox
  fails to build a test environment if using tox 1.6.
- We have decided we can't move to tox 1.7 for now.
  ( https://review.openstack.org/#/c/211614/ )

This reverts commit 478e8e970e54aaf3a034dc6347605c1b18291d0d.
- Need to remove oslo.vmware from test-requirements.txt now, as
well.

Closes-Bug: #1484035

Change-Id: Icff52508ff1cd67e8c17964c840d3a5cdcfbbce3

9 years agoRegister the volume_opts config options in remotefs.py
Jay S Bryant [Tue, 18 Aug 2015 19:24:52 +0000 (14:24 -0500)]
Register the volume_opts config options in remotefs.py

With commit bc23e0bf415defb1956c9864ac33390bb4cc2017 a new
volume_opts configuration option list was added into
cinder/volume/drivers/remotefs.py.  This new list, however,
was never registered.  When an options list is not registered
genconfig cannot figure out the right place to put the config
options and will fail to generate the sample file.

To resolve this, the patch simply registers the new options
list in remotefs.py.  Once the list is registered we are,
once again, able to generate the sample file.

Change-Id: Ic2bb95d7e2296d893f8acc5b3119f0be6a4b5c74

9 years agoConfigure space reservation on NetApp Data ONTAP
Goutham Pacha Ravi [Thu, 23 Jul 2015 21:37:44 +0000 (17:37 -0400)]
Configure space reservation on NetApp Data ONTAP

This patchset allows configuring Cinder volumes on NetApp Data ONTAP
backends to be thick or thin provisioned.

DocImpact
Implements: blueprint netapp-thin-provisioned-luns

Change-Id: I1a2679c72ca0fb56edd0c9e39d361408022380e3

9 years agoMerge "GlusterFS backup driver"
Jenkins [Tue, 18 Aug 2015 13:45:13 +0000 (13:45 +0000)]
Merge "GlusterFS backup driver"

9 years agoDell SC: Fix error causing missed log message
Sean McGinnis [Tue, 18 Aug 2015 13:08:18 +0000 (08:08 -0500)]
Dell SC: Fix error causing missed log message

Extremely trivial fix. An extra comma at the end of a
logging line actually made it into a statement that
doesn't perform logging. This patch removes the extra
comma so that the message gets logged as expected.

Change-Id: I032d5cdd54e3ed8924115744671d8ef9231e62c0

9 years agoRename free_virtual in capacity filter
Vipin Balachandran [Tue, 18 Aug 2015 11:13:27 +0000 (16:43 +0530)]
Rename free_virtual in capacity filter

Capacity filter uses free_virtual capacity to filter out a host if
thin provisioning is enabled and over-subscription ratio is less
than or equal to max_oversubscription_ratio. The current formula
for free_virtual is not calculating the real free virtual capacity.
Rather it computes "adjusted" free virtual capacity which is the
current free capacity (after taking into account of reserved space)
we can over-subscribe. This patch adds necessary documentation and
renames free_virtual to adjusted_free_virtual to clarify this.

Change-Id: I4c2b32ade09583497cf670f6504b8e929e961293

9 years agoMake migration's volume source deletion async
Gorka Eguileor [Mon, 10 Aug 2015 16:37:27 +0000 (18:37 +0200)]
Make migration's volume source deletion async

Currently source volume deletion on a volume migration (and therefore on
retype with migration as well) is synchronous and that has 2 problems:

1. If the deletion takes more than rpc_response_timeout then when
performed on in-use volumes it will fail.

2. If the deletion fails then the volume will be left in the back-end
and Cinder will no longer have a reference of that volume in the DB.

This patch makes source volume deletion asynchronous resolving both
issues.

Closes-Bug: #1483155
Closes-Bug: #1483157
Change-Id: I55c3d86660f90044a56b8609bb5774d4f5481227

9 years agoMerge "3PAR: Adding Consistency Group Support"
Jenkins [Tue, 18 Aug 2015 03:07:36 +0000 (03:07 +0000)]
Merge "3PAR: Adding Consistency Group Support"

9 years agoMerge "Remove unused function volume_type_encryption_get"
Jenkins [Tue, 18 Aug 2015 02:32:43 +0000 (02:32 +0000)]
Merge "Remove unused function volume_type_encryption_get"

9 years agoMerge "Correct comment to be consistent with code"
Jenkins [Tue, 18 Aug 2015 01:32:23 +0000 (01:32 +0000)]
Merge "Correct comment to be consistent with code"

9 years agoAdds manage/unmanage methods for HNAS drivers.
Adriano Rosso [Wed, 8 Jul 2015 17:11:18 +0000 (14:11 -0300)]
Adds manage/unmanage methods for HNAS drivers.

Implements the support for the manage and unmanage features in HDS
HNAS drivers (NFS and ISCSI).

Implements: blueprint hnas-manage-unmanage
Change-Id: Ic222b8009a064824775aafb8713b4ddde38678f6

9 years agoUpdate deprecated version of novaclient
Yusuke Hayashi [Sat, 8 Aug 2015 14:12:18 +0000 (23:12 +0900)]
Update deprecated version of novaclient

Update novaclient v1.1 to v2
because warning messages are shown as below when executing run_test.sh:

UserWarning: Module novaclient.v1_1 is deprecated
(taken as a basis for novaclient.v2).
The preferable way to get client class or object
you can find in novaclient.client module.

Change-Id: I26602aceadac9a43d4fbaa14791bf6756eef9874
Partial-Bug: #1482873

9 years agoMerge "Cleanup for cinder tests with ConsistencyGroups"
Jenkins [Tue, 18 Aug 2015 00:12:26 +0000 (00:12 +0000)]
Merge "Cleanup for cinder tests with ConsistencyGroups"

9 years agoMerge "Implement Clone CG in Pure Volume Drivers"
Jenkins [Tue, 18 Aug 2015 00:12:15 +0000 (00:12 +0000)]
Merge "Implement Clone CG in Pure Volume Drivers"

9 years agoMerge "Add delete/update_volume_metadata policy rules"
Jenkins [Tue, 18 Aug 2015 00:12:03 +0000 (00:12 +0000)]
Merge "Add delete/update_volume_metadata policy rules"

9 years agoMerge "Fix backup init_host volume cleanup"
Jenkins [Tue, 18 Aug 2015 00:06:12 +0000 (00:06 +0000)]
Merge "Fix backup init_host volume cleanup"

9 years agoMerge "VMware: Bump driver version"
Jenkins [Tue, 18 Aug 2015 00:03:40 +0000 (00:03 +0000)]
Merge "VMware: Bump driver version"

9 years agoAdd version columns to services table
Thang Pham [Fri, 24 Jul 2015 14:56:32 +0000 (07:56 -0700)]
Add version columns to services table

The following patch is part of the cinder effort to
support rolling upgrade.  This patch adds columns
to the services table to track the RPC and
oslo_versionedobjects versions of each service.

Follow up patches will be made to have each service:
register its RPC and oslo_versionedobjects versions on
startup, make the RPC and oslo_versionedobjects versions
compatible with an older release, and update the versions
once all services are updated to the latest release.

Change-Id: Ifa6c6ac230988c75dcc4e5fe220bfc5ee70ac338
Partial-Implements: blueprint rpc-object-compatibility

9 years ago3PAR: Adding Consistency Group Support
Alex O'Rourke [Mon, 20 Jul 2015 17:05:40 +0000 (10:05 -0700)]
3PAR: Adding Consistency Group Support

Adds support for Consistency Groups to the HP 3PAR driver

Implements: blueprint hp-3par-add-consistency-groups
Change-Id: I31e74b55db0f9b813a9295378271715df4b839f4

9 years agoRemove unused function volume_type_encryption_get
Joel Coffman [Mon, 17 Aug 2015 15:27:03 +0000 (11:27 -0400)]
Remove unused function volume_type_encryption_get

This change removes the aforementioned function, which isn't used in
the existing code.

Change-Id: Iadac34d34c6824d4b2fc5e4db139ff563833f222

9 years agoRefactor to remove duplicate code
Joel Coffman [Mon, 17 Aug 2015 15:07:32 +0000 (11:07 -0400)]
Refactor to remove duplicate code

This change reuses the get_volume_type_encryption function for the
implementation of the is_encrypted function.

Change-Id: Ie6434016840c20229b3a32b676aa8fc994f9362b

9 years agoCorrect comment to be consistent with code
Joel Coffman [Tue, 4 Aug 2015 19:12:22 +0000 (15:12 -0400)]
Correct comment to be consistent with code

The volume_encryption_metadata_get function returns more than just
the encryption key id. This change generalizes the comment to refer
to all the metadata that is returned.

Change-Id: I3f154930cec5f065011b40026d3dbdb3a8a2f07d

9 years agoMerge "Allow 0 length name"
Jenkins [Mon, 17 Aug 2015 18:49:37 +0000 (18:49 +0000)]
Merge "Allow 0 length name"

9 years agoMerge "VMware: Change inventory folder hierarchy"
Jenkins [Mon, 17 Aug 2015 18:49:28 +0000 (18:49 +0000)]
Merge "VMware: Change inventory folder hierarchy"

9 years agoMerge "Port NetApp DATAONTAP blocks drivers to ABC model"
Jenkins [Mon, 17 Aug 2015 18:48:44 +0000 (18:48 +0000)]
Merge "Port NetApp DATAONTAP blocks drivers to ABC model"

9 years agoMerge "Fix 033 add encryption unique key migration"
Jenkins [Mon, 17 Aug 2015 18:05:43 +0000 (18:05 +0000)]
Merge "Fix 033 add encryption unique key migration"

9 years agoMerge "Use min and max on IntOpt option types"
Jenkins [Mon, 17 Aug 2015 16:50:17 +0000 (16:50 +0000)]
Merge "Use min and max on IntOpt option types"

9 years agoAllow 0 length name
John Griffith [Mon, 17 Aug 2015 14:08:14 +0000 (08:08 -0600)]
Allow 0 length name

There are currently cases where nova for example
creates volumes with a name of zero length.  We
can't just change that and break compatability.

This patch just modifes the wsgi module to allow
min length of zero again.

Change-Id: I829a8b4d6773d1c646d07cccb36994370e1dbce9
Closes-Bug: #1485198

9 years agoAdd volume migration support for Huawei driver
Liu Xinguo [Tue, 14 Jul 2015 03:25:46 +0000 (11:25 +0800)]
Add volume migration support for Huawei driver

If the target host and the original volume are on the same array,
then Huawei driver will do the migration now instead of having
it done by the general migration process.

Change-Id: Ife8fca765402e95778079fb0166b3abf9684d134
Implements: blueprint huawei-storage-volume-migration-support

9 years agoCleanup for cinder tests with ConsistencyGroups
Daniel Tadrzak [Thu, 30 Jul 2015 16:48:34 +0000 (18:48 +0200)]
Cleanup for cinder tests with ConsistencyGroups

Switch cinder tests to use ConsistencyGroup objects instead of directly
calls to db. Additionally switch over from dict to object notation.

Drivers tests need to be fixed in other patch.

Partial-Implements: blueprint cinder-objects
Change-Id: Ib3d4c791e095d89e7bc5e5e9a6b26e8433517ffb

9 years agoMerge "Enhance PureISCSIDriver multipath support"
Jenkins [Mon, 17 Aug 2015 12:05:44 +0000 (12:05 +0000)]
Merge "Enhance PureISCSIDriver multipath support"

9 years agoMerge "Over subscription for HP 3PAR drivers"
Jenkins [Mon, 17 Aug 2015 12:05:36 +0000 (12:05 +0000)]
Merge "Over subscription for HP 3PAR drivers"