]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "Fix sqlalchemy reuse in multi-backend children"
Jenkins [Thu, 12 Mar 2015 18:24:23 +0000 (18:24 +0000)]
Merge "Fix sqlalchemy reuse in multi-backend children"

9 years agoFix sqlalchemy reuse in multi-backend children
Eric Harney [Wed, 11 Mar 2015 18:00:44 +0000 (14:00 -0400)]
Fix sqlalchemy reuse in multi-backend children

Multi-backend breaks because sqlalchemy objects
are shared between child backends.

When creating a new service (Base), call dispose
to reset the sqlalchemy object and connection.

Change-Id: I9d937c5b2fa850edc5523f26e031f59cad5a9e7e
Closes-Bug: #1417018

9 years agoUpdate hacking check for oslo_log
Jay S. Bryant [Thu, 12 Mar 2015 15:06:23 +0000 (10:06 -0500)]
Update hacking check for oslo_log

With commit 5980da5d we moved Cinder to using the olso.log
library.  We also moved to the new oslo_log namespace.  With that
change we should have also updated the hacking checks to include
looking for old uses of oslo.log.

This change adds the necessary hacking check.

Change-Id: I6a5d4b66d3258dbd01543be03810a8f84040e660

9 years agoMerge "Add config option to override url for versions"
Jenkins [Thu, 12 Mar 2015 13:38:40 +0000 (13:38 +0000)]
Merge "Add config option to override url for versions"

9 years agoMerge "Unset auth token before trying to login to Datera"
Jenkins [Thu, 12 Mar 2015 11:50:38 +0000 (11:50 +0000)]
Merge "Unset auth token before trying to login to Datera"

9 years agoDatera driver looks for lun-0 instead lun-1 now
Mike Perez [Thu, 12 Mar 2015 06:37:38 +0000 (23:37 -0700)]
Datera driver looks for lun-0 instead lun-1 now

In exports this changed for the Datera solution. This was done to
support older systems.

Closes-Bug: #1431175
Change-Id: If5ef68bd065b98d0f8b991344a1c001a21dbf4da

9 years agoMerge "Allow scheduler to receive volume stats when starting service"
Jenkins [Thu, 12 Mar 2015 06:08:33 +0000 (06:08 +0000)]
Merge "Allow scheduler to receive volume stats when starting service"

9 years agoUse oslo.log instead of oslo-incubator
Ivan Kolodyazhny [Thu, 19 Feb 2015 16:43:42 +0000 (18:43 +0200)]
Use oslo.log instead of oslo-incubator

log module was removed from oslo-incubator after oslo.log released.

Change-Id: I205d0625c502cb462919edc76d12091edcc21b1b
Implements: blueprint port-oslo-incubator-to-oslo-log
Partial-Bug: #1381563

9 years agoMerge "NFS backup driver"
Jenkins [Wed, 11 Mar 2015 22:43:11 +0000 (22:43 +0000)]
Merge "NFS backup driver"

9 years agoMerge "Add multiattach capabilities injection"
Jenkins [Wed, 11 Mar 2015 21:32:55 +0000 (21:32 +0000)]
Merge "Add multiattach capabilities injection"

9 years agoMerge "Update volume type name for volume type API"
Jenkins [Wed, 11 Mar 2015 20:46:18 +0000 (20:46 +0000)]
Merge "Update volume type name for volume type API"

9 years agoUnset auth token before trying to login to Datera
Mike Perez [Wed, 11 Mar 2015 19:27:32 +0000 (12:27 -0700)]
Unset auth token before trying to login to Datera

After a token expires, the Datera driver would try to login, and pass
along the expired token. This would fail because the receiving server
will authorize anytime it's given an auth token, even for endpoints that
don't require it. This change unsets the auth token when logging in, so
it's not passed a long.

Closes-Bug: #1430978
Change-Id: Id445718e3e73b676e3af8005b8fdd1a028ef2b0e

9 years agoNFS backup driver
Tom Barron [Mon, 19 Jan 2015 17:58:02 +0000 (12:58 -0500)]
NFS backup driver

Implements an NFS backup service in accord with the NFS backup driver
blueprint spec (https://review.openstack.org/#/c/130858).

Currently the NFS backup driver inherits directly from the abstract
chunked backup driver.  It should be straightforward to abstract out
of this code a posix filesystem backup driver, without dynamic mount
capabilities, which itself inherits from the chunked backup driver.
When that is done, most of the code in this implementation can be
removed and it can be modified to inherit from the posix filesystem
backup driver itself.

Implements: blueprint nfs-backup

Change-Id: I01ce30c25e7239e68cc7c70038f4f880218cb66a

9 years agoMerge "Adjust Cinder to support FCP on System z systems"
Jenkins [Wed, 11 Mar 2015 16:53:55 +0000 (16:53 +0000)]
Merge "Adjust Cinder to support FCP on System z systems"

9 years agoMerge "Add volume multi attach support"
Jenkins [Wed, 11 Mar 2015 16:36:03 +0000 (16:36 +0000)]
Merge "Add volume multi attach support"

9 years agoAdd multiattach capabilities injection
Walter A. Boring IV [Thu, 26 Feb 2015 22:59:13 +0000 (22:59 +0000)]
Add multiattach capabilities injection

This patch is a follow up to the multiattach patch that adds
the ability to the scheduler to be able to filter capabilities
on the volume multiattach flag.   When a volume creation request
comes in with the multiattach flag set on a volume, there was no
way to filter out backends that don't support attaching a volume
to more than one host.   By defaut, no host supports it.  When
The Nova side lands, we can adjust drivers to add the new
multiattach:True capability reporting.

Change-Id: Ia426a2bf2ab8214f52fb6e70a3a1deff68d13d98

9 years agoMerge "Namespace updates for _i18n and imageutils & fileutils"
Jenkins [Wed, 11 Mar 2015 09:59:45 +0000 (09:59 +0000)]
Merge "Namespace updates for _i18n and imageutils & fileutils"

9 years agoAllow scheduler to receive volume stats when starting service
Zhiteng Huang [Tue, 24 Feb 2015 09:05:46 +0000 (17:05 +0800)]
Allow scheduler to receive volume stats when starting service

Filter scheduler relies on volume services to report their stats in
order to make decisions - this nature makes scheduler service a bit
special when it starts because it can't really do anything without
knowning stats of avilable volume backend.  So the original
implementation of Filter Scheduler added a hook in init_host() to
ask all volume services to send their stats immediately (volume RPC
call 'publish_service_capabitlies()'), this reduced the chance of a
new volume being set to 'error' state because scheduler has no
knowledge of backends to minimum.

             Scheduler       RPC Exchanges    Volume Service(s)
service start | RPC init                          |
              | init_host()                       |
              | --pub_src_caps()-->|  ----------> | (vol fanout)
              |     <-------------  |<-vol stats--| (sch fanout)

However, commit 65fa80c361f71158cc492dfc520dc4a63ccfa419 moved
init_host() ahead of service RPC initialization because for volume
services, service initialization should be done before the service
starts accepting RPC requests.  This change unfortunately invalidated
scheduler service's init_host() because that needs to be done *AFTER*
RPC is ready (a queue is bound to scheduler fanout exchange).  The
result is scheduler asks vol service to send update, but it misses
the information it asked for because its queue hasn't been created
and bound to the fanout queue yet.  So scheduler always has to wait
for the next update from volume services to be able to work properly.

             Scheduler       RPC Exchanges    Volume Service(s)
service start | init_host()                       |
              | --pub_src_caps()-->|  ----------> | (vol fanout)
              |   (vol stats lost)  |<-vol stats--| (sch fanout)
              | RPC init                          |

This change adds a new hook to Manager class called init_hook_with_rpc()
to allow services like scheduler to do something once RPC is ready.
This should restore scheduler's behavior before commit
65fa80c361f71158cc492dfc520dc4a63ccfa419.

Change-Id: If6cf9030eb44c39a06ec501ac5c049d460782481
Partial-bug: #1409012

9 years agoMerge "Fixes VNX NotImplementedError of unmanage"
Jenkins [Wed, 11 Mar 2015 05:01:53 +0000 (05:01 +0000)]
Merge "Fixes VNX NotImplementedError of unmanage"

9 years agoMerge "Dell FC driver inheritance order causing failures"
Jenkins [Wed, 11 Mar 2015 04:49:44 +0000 (04:49 +0000)]
Merge "Dell FC driver inheritance order causing failures"

9 years agoAdjust Cinder to support FCP on System z systems
Stefan Amann [Mon, 26 Jan 2015 12:49:16 +0000 (13:49 +0100)]
Adjust Cinder to support FCP on System z systems

There are some platform specific changes needed to allow Cinder to
support FCP on System z: the System z specific format of the device file
paths, adding and removing devices explicitely, and ignoring vHBAs which
are offline.

Partial-Implements blueprint linux-systemz

Change-Id: Ia61c37246235bec618de5bb7f718e8b5520bc9ae

9 years agoRefactor Swift backup driver and introduce chunking driver
Tom Barron [Thu, 15 Jan 2015 23:03:16 +0000 (18:03 -0500)]
Refactor Swift backup driver and introduce chunking driver

Abstract out a "chunked" backup driver class between the top
abstract backup driver class and the Swift backup driver class
which implements common functionality for backup drivers that
store volume data in multiple "chunks" in a backup repository
when the size of the backed up cinder volume exceeds the size
of a backup repository "chunk."

The Swift driver itself is reworked to extend the chunked
backup driver and implement abstract methods defined in the
chunked backup driver.  It is expected that posix filesystem
and NFS backup drivers will also extend the chunked backup
driver.

Co-authors: Kevin Fox <kevin@efox.cc>
            Tom Barron <tpb@dyncloud.net>

Implements: blueprint chunked-backup-base-class

Change-Id: Ifbd1462ceb9b98bd8a6d72e5725399474eedf60e

9 years agoNamespace updates for _i18n and imageutils & fileutils
Jay S. Bryant [Fri, 20 Feb 2015 21:21:55 +0000 (15:21 -0600)]
Namespace updates for _i18n and imageutils & fileutils

The _i18n and imageutils modules only have changes
to move oslo.utils to the oslo_utils namespace and
oslo.i18n to oslo_i18n.  So, I have lumped these
two small changes into this one patch.

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
_i18n.py
  0cc741a9 - switch to oslo_i18n
imageutils.py
  ac17de97 - Use oslo_utils instead of deprecated oslo.utils
fileutils.py
  ac17de97 - Use oslo_utils instead of deprecated oslo.utils

Change-Id: I749dd8869bbc07d980300e0acbf3903ff7b297cd

9 years agoDell FC driver inheritance order causing failures
Sean McGinnis [Tue, 10 Mar 2015 16:20:25 +0000 (11:20 -0500)]
Dell FC driver inheritance order causing failures

After commit 610c672998c87e2bf2f919a4fdea86749c748a1f merged
the third party CI test runs for the Dell Storage Center fibre
channel driver started failing. This appeared to be a change
in get_volume_stats calls.

After isolating the cause of this problem it was identified
that the order of the inherited classes for the driver was
resulting in the wrong overridden get_volume_stats call to be
called.

This patch fixes this be just switching the order of the two
parent classes DellCommonDriver and FibreChannelDriver. Swapping
these two results in the correctly overridden call to be made
and CI tests to pass successfully.

Change-Id: I58ec1fde585179037aeca8d449e74d0333fb013d
Closes-Bug: 1430421

9 years agoMerge "Update Datera's export to avoid deprecated keys"
Jenkins [Tue, 10 Mar 2015 15:55:39 +0000 (15:55 +0000)]
Merge "Update Datera's export to avoid deprecated keys"

9 years agoMerge "Improve error handling in refactored Tgt driver"
Jenkins [Tue, 10 Mar 2015 15:51:48 +0000 (15:51 +0000)]
Merge "Improve error handling in refactored Tgt driver"

9 years agoMerge "Replace assertEqual(True, *) -> assertTrue(*)"
Jenkins [Tue, 10 Mar 2015 15:50:46 +0000 (15:50 +0000)]
Merge "Replace assertEqual(True, *) -> assertTrue(*)"

9 years agoAdd volume multi attach support
Walter A. Boring IV [Wed, 10 Dec 2014 01:03:39 +0000 (01:03 +0000)]
Add volume multi attach support

This patch includes the Cinder changes needed
to support volume multiple attaches.  Nova and
python-cinderclient also need patches associated
to provide support for multiple attachments.

This adds the multiattach flag to volumes.  When a
volume is created, a multiattach flag can be set,
which allows a volume to be attached to more than
one Nova instance or host.  If the multiattach flag is
not set on a volume, it cannot be attached to more
than one Nova instance or host

Each volume attachment is tracked in a
new volume_attachment table.  The attachment id is
the unique identifier for each attachment to an
instance or host.

When a volume is to be detached the attachment
uuid must be passed in to the detach call in
order to determine which attachment should be
removed.  Since a volume can be attached to an
instance and a host, the attachment id is used
as the attachment identifier.

Nova:
https://review.openstack.org/#/c/153033/
https://review.openstack.org/#/c/153038/

python-cinderclient:
https://review.openstack.org/#/c/85856/

Change-Id: I950fa00ed5a30e7758245d5b0557f6df42dc58a3
Implements: blueprint multi-attach-volume
APIImpact

9 years agoFixes VNX NotImplementedError of unmanage
peter_wang [Mon, 9 Mar 2015 00:38:25 +0000 (20:38 -0400)]
Fixes VNX NotImplementedError of unmanage

When unmanaging a volume, cinder would call unmanage.
This fix is to add unmanage to avoid NotImplementedError.

Change-Id: I11539cc945d432e23bebf085cacb0023b9a6a1e3
Closes-Bug: 1429702

9 years agoReplace assertEqual(True, *) -> assertTrue(*)
Kallebe Monteiro [Mon, 9 Mar 2015 19:05:36 +0000 (16:05 -0300)]
Replace assertEqual(True, *) -> assertTrue(*)

Inspired by Dave Chen's change request on keystone about this, I
decided to check in cinder code to see if there were many cases.

Since unittest provides assertTrue and assertFalse, it is better
to use assertTrue(var) instead of assertEqual(True, var) and the same
thing applies to assertFalse.

I used these commands to search the occurrences:
* grep -PRIn "assertEqual\(True"
* grep -PRIn "assertEqual\(False"
* grep -PRIn "assertEqual\(\w+\s*,\s*True"
* grep -PRIn "assertEqual\(\w+\s*,\s*False"

Closes-Bug: #1430262

Change-Id: Ie92ce744d68a473b9ecc5214ed322bf2c5f5e000

9 years agoMerge "Adds pool aware scheduling for HNAS drivers"
Jenkins [Tue, 10 Mar 2015 08:20:54 +0000 (08:20 +0000)]
Merge "Adds pool aware scheduling for HNAS drivers"

9 years agoUpdate Datera's export to avoid deprecated keys
Mike Perez [Mon, 9 Mar 2015 21:38:50 +0000 (14:38 -0700)]
Update Datera's export to avoid deprecated keys

The export call has been updated in Datera. The old location for the IQN
has moved. This updates the Kilo driver with support of looking in the
new location. The Juno driver will remain using the old location.

Closes-Bug: #1430024
Change-Id: I28a76ef849c2d3a0e4d08c5d0707e28d9617f534

9 years agoImprove error handling in refactored Tgt driver
Anish Bhatt [Tue, 10 Feb 2015 23:59:04 +0000 (15:59 -0800)]
Improve error handling in refactored Tgt driver

Only allow IOError to fall through when file not found is
acceptable. Cleanup a few error messages, remove uses of six as
this is not required

Closes-Bug: 1422095
Change-Id: I8a8f1ee561b15b38860b31cae1b444527e998869

9 years agoMerge "PureISCSIDriver consistency group updates."
Jenkins [Mon, 9 Mar 2015 20:23:26 +0000 (20:23 +0000)]
Merge "PureISCSIDriver consistency group updates."

9 years agoAdds pool aware scheduling for HNAS drivers
Erlon R. Cruz [Mon, 12 Jan 2015 18:59:10 +0000 (16:59 -0200)]
Adds pool aware scheduling for HNAS drivers

This commit adds the pool aware feature for HNAS drivers. Now, each service
label in HNAS XML config will be considered as a pool unit. In order to be able
to cast a volume to a service, the admin must create 'volume_type's and each
volume type need to have the 'service_label' with the same tag set in the XML
config, and then the user can create a volume with the desired volume_type.

Implements:  blueprint hds-hnas-pool-aware-sched
Change-Id:  Iddff7ad606b06454458fc53bfc7b812f9815f0e1

9 years agoPureISCSIDriver consistency group updates.
Patrick East [Fri, 13 Feb 2015 21:35:51 +0000 (13:35 -0800)]
PureISCSIDriver consistency group updates.

This will enable the driver to add and remove volumes from Purity
protection groups that correspond to Cinders consistency groups, as well
as create a consistency group from a cgsnapshot.

Implements: blueprint pure-iscsi-update-cg
Change-Id: I662e705a1b531a64900304782183041600e13354

9 years agoHP lefthand driver filter and evalautor function
Anthony Lee [Tue, 3 Mar 2015 01:49:52 +0000 (17:49 -0800)]
HP lefthand driver filter and evalautor function

This patch implements the merged change in the scheduler
https://review.openstack.org/#/c/129987/ in HP lefthand driver.

1. Added filter_function and goodness_function strings

2. Added 2 stats total_volumes and capacity_utilization so they can be
used as the part of the formula in filter_function or goodness_function
string.

implements: blueprint hplefthand-driver-supplies-filtering-weighing-functions
Change-Id: I6193196ba1930f9d07865c062f12573e1570f290

9 years agoMerge "Add consistency group support for XIV/DS8K cinder driver proxy"
Jenkins [Mon, 9 Mar 2015 00:56:12 +0000 (00:56 +0000)]
Merge "Add consistency group support for XIV/DS8K cinder driver proxy"

9 years agoMerge "HP 3par driver filter and evaluator function"
Jenkins [Sun, 8 Mar 2015 23:11:06 +0000 (23:11 +0000)]
Merge "HP 3par driver filter and evaluator function"

9 years agoMerge "Don't fail target_delete if ACL's don't exist"
Jenkins [Sat, 7 Mar 2015 20:23:00 +0000 (20:23 +0000)]
Merge "Don't fail target_delete if ACL's don't exist"

9 years agoMerge "Fix "rtsllib" -> "rtslib" typos"
Jenkins [Sat, 7 Mar 2015 20:17:03 +0000 (20:17 +0000)]
Merge "Fix "rtsllib" -> "rtslib" typos"

9 years agoMerge "Use snapshot object in create_volume flow"
Jenkins [Sat, 7 Mar 2015 16:17:07 +0000 (16:17 +0000)]
Merge "Use snapshot object in create_volume flow"

9 years agoMerge "Adds SSH communication to HNAS drivers"
Jenkins [Sat, 7 Mar 2015 05:44:24 +0000 (05:44 +0000)]
Merge "Adds SSH communication to HNAS drivers"

9 years agoAdd consistency group support for XIV/DS8K cinder driver proxy
Chao Zheng CZ Li [Thu, 9 Apr 2015 07:10:39 +0000 (15:10 +0800)]
Add consistency group support for XIV/DS8K cinder driver proxy

Change-Id: I0850255a59997dbe44d9a7202ab5f947a3d91a3b
Implements: blueprint xiv-ds8k-consistency-group

9 years agoMerge "Change log level for no object attribute found"
Jenkins [Sat, 7 Mar 2015 02:13:00 +0000 (02:13 +0000)]
Merge "Change log level for no object attribute found"

9 years agoDon't fail target_delete if ACL's don't exist
Mike Perez [Sat, 7 Mar 2015 01:24:00 +0000 (17:24 -0800)]
Don't fail target_delete if ACL's don't exist

Seen in the gate a bit where a target delete is called and fails because
the ACL's don't exist for that target. If we're deleting a target and
the ACL's don't exist, it's probably safe to move on.

This patch adds a check for this specific case, logs a warning, and
continues rather than raising an exception.

Closes-Bug: #1425310
Change-Id: Ideada8ddea8624aff7add95e9caad2aba4e31ae3

9 years agoMerge "Add Manage/Unmanage support to NetApp NFS drivers"
Jenkins [Sat, 7 Mar 2015 00:26:27 +0000 (00:26 +0000)]
Merge "Add Manage/Unmanage support to NetApp NFS drivers"

9 years agoChange log level for no object attribute found
Mike Perez [Fri, 6 Mar 2015 21:47:34 +0000 (13:47 -0800)]
Change log level for no object attribute found

The operator shouldn't be exposed to this information, this should just
work and continue. Changing this to debug level for developers.

Change-Id: Ic6d40ceb8c28cafc5be6474a6caedad7e13f03d1

9 years agoAdd Manage/Unmanage support to NetApp NFS drivers
Glenn M. Gobeli [Mon, 23 Feb 2015 12:35:34 +0000 (04:35 -0800)]
Add Manage/Unmanage support to NetApp NFS drivers

This change adds support for the Cinder Manage and Unmanage API calls
to the NetApp NFS drivers. This does not add the support for the generic
NFS driver.

Partially-Implements: Blueprint nfs-manage-unmanage

Change-Id: I26eceae948bc151e28bf0c7af5de58cf86bcb605

9 years agoMerge "Add support to incremental backups in cinder"
Jenkins [Fri, 6 Mar 2015 19:48:11 +0000 (19:48 +0000)]
Merge "Add support to incremental backups in cinder"

9 years agoUse snapshot object in create_volume flow
Thang Pham [Thu, 5 Mar 2015 23:18:33 +0000 (18:18 -0500)]
Use snapshot object in create_volume flow

create_volume flow was making a call to db.snapshot_get to get
a snapshot dict and passing it onto drivers in
create_volume_from_snapshot() instead of an object. This causes
a conflict for some drivers, since create_snapshot and
create_volume_from_snapshot methods have two different snapshot
types (object vs. dict). The following patch fixes this by using
objects in create_volume flow and allows drivers to be updated
appropriately to use snapshot objects.

Change-Id: I262eaef9ac9f5f03d3f00f9a2c1fbfbd6c418676
Closes-Bug: #1428609

9 years agoFix "rtsllib" -> "rtslib" typos
Eric Harney [Fri, 6 Mar 2015 17:27:27 +0000 (12:27 -0500)]
Fix "rtsllib" -> "rtslib" typos

The correct name is "rtslib", fix up test
names.

Change-Id: I774d408f0b2493626b22e9b429c561252dd7750c

9 years agoMerge "Update Datera's Authentication method"
Jenkins [Fri, 6 Mar 2015 06:49:34 +0000 (06:49 +0000)]
Merge "Update Datera's Authentication method"

9 years agoMerge "Make objects behave more like our old dictionaries"
Jenkins [Fri, 6 Mar 2015 02:53:10 +0000 (02:53 +0000)]
Merge "Make objects behave more like our old dictionaries"

9 years agoHP 3par driver filter and evaluator function
Anthony Lee [Tue, 24 Feb 2015 11:34:06 +0000 (03:34 -0800)]
HP 3par driver filter and evaluator function

This patch implements the merged change in the scheduler
https://review.openstack.org/#/c/129987/ in HP 3par driver.

1. Added a way to get filter_function and goodness_function strings from
cinder.conf in the base class VolumeDriver,  for example

filter_function =
"capabilities.total_volumes < 600 && capabilities.capacity_utilization < 80"
goodness_function = "capabilities.capacity_utilization < 40 ? 80 : 60"

The strings can be got from the [DEFAULT] section or a driver instance group
section.

If the string can not be found in the cinder.conf, it will try to find a
default filter_fuction or a default goodness_function which can be specified
in the driver code. HP3par drivers don't provide default values. However if
other driver want to provide default values, it can be done by overwriting
get_default_filter_function and get_default_goodness_function.

2. Also added goodness_function and filter_function to the
_update_volume_stats in ISCSIDriver, FibreChannelDriver, FakeISCSIDriver
and LVMVolumeDriver.

3. Added 2 stats total_volumes and capacity_utilization so they can be
used as the part of the formula in filter_function or goodness_function
string.

4. Fixed free_capacity for limited cpg to include SDUsage's usedMiB as part of
the calcuation so it is consistent with unlimited cpg and capacity_utilization
looks better.

5. Added total_volumes capability to the LVM driver.

Implements: blueprint hp3par-driver-supplies-filtering-weighing-functions
Change-Id: I4ce77c9c1b1e14de82465bb94068b2ff10c19b91

9 years agoAdd support to incremental backups in cinder
Xing Yang [Mon, 12 Jan 2015 19:16:28 +0000 (14:16 -0500)]
Add support to incremental backups in cinder

1. Added a new option to create backup to support incremental backups.
   New CLI option added for "cinder backup": --incremental or --incr
   By default, it is full backup.
   Add the following to API: 'incremental': True or False
   (False is the default)
2. swift.py creates sha256file for every backup to calculate deltas

DocImpact
APIImpact
Co-Authored-By: Xing Yang <xing.yang@emc.com>
Implements: blueprint incremental-backup
Change-Id: I98f3765f7afa47bda6a8c7004f809c3cc4d1bd4b

9 years agoMerge "Add CHAP support to PureISCSIDriver"
Jenkins [Thu, 5 Mar 2015 23:18:11 +0000 (23:18 +0000)]
Merge "Add CHAP support to PureISCSIDriver"

9 years agoMerge "Add DB table for driver specific data"
Jenkins [Thu, 5 Mar 2015 23:17:21 +0000 (23:17 +0000)]
Merge "Add DB table for driver specific data"

9 years agoMerge "Adding manage/unmanage support for LeftHand driver"
Jenkins [Thu, 5 Mar 2015 19:51:52 +0000 (19:51 +0000)]
Merge "Adding manage/unmanage support for LeftHand driver"

9 years agoAdds SSH communication to HNAS drivers
Erlon Cruz [Thu, 12 Jun 2014 10:55:38 +0000 (07:55 -0300)]
Adds SSH communication to HNAS drivers

This commit adds SSH communication to HNAS iSCSI and NFS drivers. The user now
has the option to export the server public keys to HNAS and configure the
authentication via public keys. This avoid exposing HNAS passwords in the plain text
config file and exposing the private HNAS internal network.

Implements: blueprint hds-hnas-ssh-backend
Change-Id: Iafb5d7a4b8607128437b4e606e9ed478c24a43a0

9 years agoMerge "CG Modification Support in EMC VNX Cinder Driver"
Jenkins [Thu, 5 Mar 2015 17:29:58 +0000 (17:29 +0000)]
Merge "CG Modification Support in EMC VNX Cinder Driver"

9 years agoAdd CHAP support to PureISCSIDriver
Patrick East [Fri, 20 Feb 2015 02:49:23 +0000 (18:49 -0800)]
Add CHAP support to PureISCSIDriver

This change adds support for iSCSI CHAP with randomly generated
secrets for each initiator. Due to some restrictions with storing meta
data in the backend these secrets need to be stored someplace accessible
from the driver. We will use the driver specific initiator data in the
Cinder DB to store them.

Implements: blueprint pure-iscsi-chap-support
Change-Id: I5dfc29602a41ed565af074368947c99aafdc0ab8

9 years agoMerge "Two choices for iscsi_helper is missing"
Jenkins [Thu, 5 Mar 2015 16:04:01 +0000 (16:04 +0000)]
Merge "Two choices for iscsi_helper is missing"

9 years agoMake objects behave more like our old dictionaries
John Griffith [Tue, 3 Mar 2015 21:27:27 +0000 (21:27 +0000)]
Make objects behave more like our old dictionaries

Prior to Cinder Objects we passed a dictionary representation
of a Cinder resource around. There are a few places where we
abuse this a bit and do things like "ref_dict.get('some-key', None)"
to reuse some code and determine if for example the object is
a snapshot or a volume (based on it's keys). This is probably
a pretty lazy/bad idea, but we have cases where we do it,
such as in the SolidFire driver and it looks like maybe some
calls in the profiler.

For now, we just make the compatibility shim in Object base truly
compatible and return None for non-existent attributes rather
than raising. Follow up work would be to clean up all of our
usage to strictly use objects and get rid of the compatibility
shim altogether.

Change-Id: Ia640c912700d9569c6b522b77fc357fb026269b1
Closes-Bug: #1427851

9 years agoMerge "Dell SC API change fails snapshot creation"
Jenkins [Thu, 5 Mar 2015 05:47:51 +0000 (05:47 +0000)]
Merge "Dell SC API change fails snapshot creation"

9 years agoTwo choices for iscsi_helper is missing
nikeshmahalka [Wed, 4 Mar 2015 09:04:42 +0000 (14:34 +0530)]
Two choices for iscsi_helper is missing

In the cinder/volume/driver.py, scstadmin and ietadm were missing from
the choices for iscsi_helper. This will cause SCST and IET target helper
functionality to not work properly.

Change-Id: Ia455e61384d283a47f796466615139361ac9e83e
Closes-Bug: #1428034

9 years agoUpdate Datera's Authentication method
Mike Perez [Sat, 28 Feb 2015 07:48:46 +0000 (23:48 -0800)]
Update Datera's Authentication method

Previous auth-token/client verification auth method is deprecated. It's
supported until Liberty release. This also supports the new method,
which is using san_login and san_password, which will fetch an
auth-token to use.

blueprint datera-auth-update
Change-Id: I31648409d8a86f6d826a9294f7d6329ff2c7ec03

9 years agoMerge "More validation logic for VNX CG creation"
Jenkins [Wed, 4 Mar 2015 23:59:50 +0000 (23:59 +0000)]
Merge "More validation logic for VNX CG creation"

9 years agoCG Modification Support in EMC VNX Cinder Driver
peter_wang [Wed, 11 Feb 2015 03:04:40 +0000 (22:04 -0500)]
CG Modification Support in EMC VNX Cinder Driver

BP consistency-groups-kilo-update is introducing CG Modification
support. This patch is adding EMC VNX support for the new API.

Change-Id: I9f9a59aa21402b2010fa754d70a2b6127d35da19
Implements: blueprint cg-modification-vnx

9 years agoDell SC API change fails snapshot creation
Tom Swanson [Wed, 4 Mar 2015 19:56:13 +0000 (13:56 -0600)]
Dell SC API change fails snapshot creation

The Dell Storage Center driver is failing snapshot creation on
later versions of the Dell REST API.

The doNotExpire option was removed in API 15.3.1.110.  We were
setting this so that the replays are not expired and removed when
Cinder expects them to still be there.  This has been replaced by
setting expiretime to 0.  We were doing this already so the fix
was to simply remove doNotExpire from the REST request payload.

This will fail on every future release of the Dell Storage Center
so this is a critical fix.

Closes-Bug 1428259

Change-Id: I51fbf599e29e30793cdd1e6014e876d749732fd3

9 years agoMerge "Use subunit-trace to enable output during unit test runs"
Jenkins [Wed, 4 Mar 2015 19:36:47 +0000 (19:36 +0000)]
Merge "Use subunit-trace to enable output during unit test runs"

9 years agoAdding manage/unmanage support for LeftHand driver
Anthony Lee [Wed, 11 Feb 2015 17:19:32 +0000 (09:19 -0800)]
Adding manage/unmanage support for LeftHand driver

Added the needed methods needed to support manage/unmanage
in the HP LeftHand driver.

A minimum version check needed to be added as previous
versions of the LeftHand API won't support the manage/unmanage
feature.

Implements: blueprint lefthand-manage-unmanage
Change-Id: I1d118f579e19c04ee535de0f615de8a919fc3f80

9 years agoMore validation logic for VNX CG creation
Jeegn Chen [Wed, 4 Mar 2015 13:10:34 +0000 (21:10 +0800)]
More validation logic for VNX CG creation

In VNX array, compressed LUNs cannot be added into a Consistency Group.

VNX Cinder Driver should check the volume types.
If storagetype:provisioning=compressed is specified,
VNX Cinder Driver should reject the CG creation operation.

When parsing group['volume_type_id'], the trailing comma should be
considered.

Change-Id: Ie683935f8aa03f04e0c353bdebadc0f410ada08e
Closes-Bug: #1421163

9 years agoMerge "Fix HNAS driver parsing errors"
Jenkins [Wed, 4 Mar 2015 07:54:19 +0000 (07:54 +0000)]
Merge "Fix HNAS driver parsing errors"

9 years agoAdd DB table for driver specific data
Patrick East [Fri, 22 Aug 2014 23:43:20 +0000 (16:43 -0700)]
Add DB table for driver specific data

This will allow drivers to store key/value pairs in the database for any
needs they have requiring persisted storage for initiator information
across cinder service hosts.

Implements: blueprint driver-private-data
Change-Id: Ib5d80dcdda6df26f07c7a98c4dfd0135cb55d72c

9 years agoMerge "Move oslo.messaging to the oslo_messaging namespace"
Jenkins [Tue, 3 Mar 2015 23:38:42 +0000 (23:38 +0000)]
Merge "Move oslo.messaging to the oslo_messaging namespace"

9 years agoMerge "Create Consistency Group from CG Snapshot API"
Jenkins [Tue, 3 Mar 2015 22:21:45 +0000 (22:21 +0000)]
Merge "Create Consistency Group from CG Snapshot API"

9 years agoMerge "Modify Consistency Group API"
Jenkins [Tue, 3 Mar 2015 22:20:42 +0000 (22:20 +0000)]
Merge "Modify Consistency Group API"

9 years agoMerge "Failover to alternative iSCSI portals on login failure"
Jenkins [Tue, 3 Mar 2015 18:53:35 +0000 (18:53 +0000)]
Merge "Failover to alternative iSCSI portals on login failure"

9 years agoMerge "Dell Storage Center Driver API bug"
Jenkins [Tue, 3 Mar 2015 18:46:22 +0000 (18:46 +0000)]
Merge "Dell Storage Center Driver API bug"

9 years agoMove oslo.messaging to the oslo_messaging namespace
Jay S. Bryant [Tue, 3 Mar 2015 03:31:46 +0000 (21:31 -0600)]
Move oslo.messaging to the oslo_messaging namespace

This is the sixth in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no
instances of oslo.messaging sneak back in.

Change-Id: Id028f8968717bed49386864081cf150397a6ec5f
Partial-bug: 1409733

9 years agoMerge "Passing privileged user to create nova assisted snapshots"
Jenkins [Tue, 3 Mar 2015 08:57:43 +0000 (08:57 +0000)]
Merge "Passing privileged user to create nova assisted snapshots"

9 years agoCreate Consistency Group from CG Snapshot API
Xing Yang [Tue, 24 Feb 2015 02:38:14 +0000 (21:38 -0500)]
Create Consistency Group from CG Snapshot API

This patch addressed the following:
* Added a new create Consistency Group from CG Snapshot API.
  - Note this is separate from the Create Consistency Group
    API which requires volume types as the input.
* Added a corresponding driver API.

Conflicts:
cinder/volume/rpcapi.py

Partial-Implements: blueprint consistency-groups-kilo-update
Change-Id: I3a5f55d9dfd3fd4d70833824b29ebbd71986c143

9 years agoModify Consistency Group API
Xing Yang [Wed, 31 Dec 2014 02:27:56 +0000 (21:27 -0500)]
Modify Consistency Group API

This patch addressed the following:

* Modify Consistency Group
  * Added an API that supports adding existing volumes to CG and removing
    volumes from CG after it is created. It also allows the name and the
    description to be modified.
  * Added a volume driver API accordingly.

Change-Id: I473cff65191e6e16dc22110f23efd376bfd3178a
Implements: blueprint consistency-groups-kilo-update

9 years agoRemove useless storage_availability_zone import
Guan Qiang [Mon, 9 Feb 2015 06:18:35 +0000 (14:18 +0800)]
Remove useless storage_availability_zone import

Config 'storage_availability_zone' have been removed from cinder.volume.manager
long time ago, but Still been imported by cinder.volume.api and
cinder.consistencygroup.api.

Closes-Bug: #1426205
Change-Id: I9595f69f3d9cdf43002ccb0ed2d52f4b021b5448

9 years agoFailover to alternative iSCSI portals on login failure
Tomoki Sekiyama [Tue, 9 Dec 2014 22:09:43 +0000 (17:09 -0500)]
Failover to alternative iSCSI portals on login failure

When the main iSCSI portal is unreachable by network failure etc.,
volume attach will fail even if the array has the other portal
addresses alive. To enable nova-compute and brick (with corresponding
patches) to fall-back to alternative portals, this patch makes Cinder
to contains the multiple portal addresses and corresponding IQNs and
LUNs in connection_info returned by initialize_connection API.
The main portal information is also returned in target_portal,
target_iqn, target_lun for backward compatibility. For example:

 {"connection_info": {
    "driver_volume_type": "iscsi", ...
    "data": {"target_portal": "10.0.1.2:3260",
             "target_portals": ["10.0.1.2:3260",
                                "10.0.2.2:3260"],
             "target_iqn": "iqn.2014-2.org.example:vol1-1",
             "target_iqns":["iqn.2014-2.org.example:vol1-1",
                            "iqn.2014-2.org.example:vol1-2"],
             "target_lun": 1,
             "target_luns": [1, 2],
             ...}}}

This patch makes LVM iSCSI backend return multiple portals,
iqns, and luns when iscsi_secondary_ip_addresses is specified in
cinder.conf.

It also make brick/initiator/connector.py to failover to alternative
paths, if specified, when it fails to establish the main path.

In addition, to unify the data structure, target_portal, target_iqn,
target_lun will also be included even if 'multipath=True' is specified
in connector information.

Change-Id: I55600496487dfaa72301621d1269e50044d9b5dc
Partially Implements: blueprint iscsi-alternative-portal

9 years agoMerge "Clear migration_status from a destination volume if migration fails"
Jenkins [Mon, 2 Mar 2015 21:07:54 +0000 (21:07 +0000)]
Merge "Clear migration_status from a destination volume if migration fails"

9 years agoMerge "RBD: Query volume features from ceph.conf"
Jenkins [Mon, 2 Mar 2015 20:58:22 +0000 (20:58 +0000)]
Merge "RBD: Query volume features from ceph.conf"

9 years agoMerge "RBD: remove non-layering support for antiquated versions"
Jenkins [Mon, 2 Mar 2015 20:45:58 +0000 (20:45 +0000)]
Merge "RBD: remove non-layering support for antiquated versions"

9 years agoMerge "More validation logic for VNX CG creation"
Jenkins [Mon, 2 Mar 2015 20:42:47 +0000 (20:42 +0000)]
Merge "More validation logic for VNX CG creation"

9 years agoMerge "Snapshot and volume objects"
Jenkins [Mon, 2 Mar 2015 20:40:58 +0000 (20:40 +0000)]
Merge "Snapshot and volume objects"

9 years agoMerge "Cinder objects base"
Jenkins [Mon, 2 Mar 2015 20:40:47 +0000 (20:40 +0000)]
Merge "Cinder objects base"

9 years agoUpdate volume type name for volume type API
Gloria Gu [Wed, 10 Dec 2014 22:58:21 +0000 (14:58 -0800)]
Update volume type name for volume type API

This continues the change for updating volume type to
include changing name.

- Updated the following APIs and tests for volume type

* update volume type
PUT http://<openstackhost>:8776/v2/${tenant_id}/types/${vol_type_id}
body
{
    "volume_type": {
      "name": "test_updated",
      "description":"updated_desc"
    }
}

** user can update name
** if update name, name can not be empty spaces.
** if update name, can not change the name to be the same as the one
in another volume type
** name and description can not be both None

Implements: blueprint volume-type-description
Change-Id: Idc08f796932df709ff20c17f6bc8d4753d85ad3c

9 years agoMerge "NetApp eseries implementation for manage/unmanage"
Jenkins [Mon, 2 Mar 2015 09:12:24 +0000 (09:12 +0000)]
Merge "NetApp eseries implementation for manage/unmanage"

9 years agoMerge "Add flash cache policy to 3PAR driver"
Jenkins [Mon, 2 Mar 2015 09:04:47 +0000 (09:04 +0000)]
Merge "Add flash cache policy to 3PAR driver"

9 years agoAdd config option to override url for versions
wanghao [Thu, 26 Feb 2015 08:50:31 +0000 (16:50 +0800)]
Add config option to override url for versions

The versions url returns the wrong data when cinder api is behind
a proxy. This adds a new config option so it can be set properly.

DocImpact

Change-Id: I46a90120b21e43bf8dca9e5f0efdf339f0d3e8e6
Closes-Bug: #1384379

9 years agoSnapshot and volume objects
Thang Pham [Mon, 10 Nov 2014 22:38:42 +0000 (17:38 -0500)]
Snapshot and volume objects

Abstract volumes and volume snapshots into objects.
Get, create, and delete snapshot APIs were changed to
use new snapshot objects.  A skeleton volume object was
created, but cinder internals were not changed to use
the volume object, although volume is referenced and
used by the snapshot object.  The internals will be
changed to use volume object in a subsequent patch.

Change-Id: I387018e80c8539565e99454db65d976030002c0f
Implements: blueprint cinder-objects

9 years agoCinder objects base
Thang Pham [Mon, 10 Nov 2014 22:02:02 +0000 (17:02 -0500)]
Cinder objects base

This patch is to insert the objects code base, currently based
on nova.objects.  It will be later based on
oslo_versionedobjects once it is available.  This is done
to make progress on changing cinder internals to use objects,
since nova.objects and oslo.versionedobjects are similar.

Inserted objects code base into cinder and modified cinder services
to use object-aware serializer.

Change-Id: I42a6cc43da19ca29db4cfb33cbf794afed18f758
Implements: blueprint cinder-objects

9 years agoMerge "Password config options should be marked secret"
Jenkins [Sat, 28 Feb 2015 16:14:58 +0000 (16:14 +0000)]
Merge "Password config options should be marked secret"

9 years agoMerge "GET volumes API sorting REST/volume/DB updates"
Jenkins [Sat, 28 Feb 2015 08:22:13 +0000 (08:22 +0000)]
Merge "GET volumes API sorting REST/volume/DB updates"