]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
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 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 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 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"

9 years agoMerge "GET volumes API sorting enhancements common utilities"
Jenkins [Sat, 28 Feb 2015 08:22:01 +0000 (08:22 +0000)]
Merge "GET volumes API sorting enhancements common utilities"

9 years agoDell Storage Center Driver API bug
Tom Swanson [Fri, 27 Feb 2015 17:25:38 +0000 (11:25 -0600)]
Dell Storage Center Driver API bug

In later versions of the Dell Storage Center REST API
the index attribute is removed from the ScVolume object.
Referencing this caused an exception that failed volume
creation.  Replaced with instanceId.

Also _init_volume was mapping/unmapping to every server
that was currently up on the Storage Center rather than
a single server.  While this would certainly initialize
the volume it would create a lot of extra work on a busy
system.  We now break after the first map/unmap.

Changed copyright to 2015 to match when it will actually
be released.

Change-Id: I89f3967144d7effbb67d1498fc3b4a7a23042a59
Closes-Bug: 1426463

9 years agoPassword config options should be marked secret
Eric Brown [Tue, 24 Feb 2015 07:15:40 +0000 (23:15 -0800)]
Password config options should be marked secret

If passwords are not marked secret, there is the potential for
them to be logged in a world readable location.

SecImpact

Change-Id: I3204d12622cf0e5684e7e9ecc5f3755031503d3a

9 years agoClear migration_status from a destination volume if migration fails
Mitsuhiro Tanino [Mon, 9 Feb 2015 22:18:31 +0000 (17:18 -0500)]
Clear migration_status from a destination volume if migration fails

When some error happens during volume migration, cinder-volume
keeps remaining a destination volume because the volume copy may be
in the completing phase and a source volume may be deleted already.

In this case, the migration_status of the destination volume in
data base should be cleared. As a result, the volume can be handled
properly even if volume migration is failed. If the migration is
in the migrating phase, the volume should be deleted and an entry
of database is also destroyed because the source volume is remaining.

Also there is an another problem that a source volume is remaining
as migrating status if create_export raises exception. In this case,
source volume can't be deleted even if it will be unnecessary.

This change fixes these two problems.

Closes-Bug: #1403916
Change-Id: Ie4199bc1e804e5cbbb793f448a99487f9823f1a9

9 years agoRBD: Query volume features from ceph.conf
Jon Bernard [Tue, 24 Feb 2015 21:16:26 +0000 (16:16 -0500)]
RBD: Query volume features from ceph.conf

This patch enabled RADOSClient to query the local ceph.conf for rbd
features configuration, falling back to layering if nothing is found.
This allows users to disable default features or to opt in to upcoming
features that have not yet become default.

Change-Id: I758e028abd703942ceb1c5b63c4b734817bc5df3

9 years agoCorrect a few changes in the VMAX driver
Xing Yang [Fri, 27 Feb 2015 05:45:09 +0000 (00:45 -0500)]
Correct a few changes in the VMAX driver

The following patch made a few wrong changes in the VMAX driver.
https://review.openstack.org/#/c/145780/

The following two files contain the wrong changes:
https://review.openstack.org/#/c/145780/15/cinder/tests/
test_emc_vmax.py line 604
https://review.openstack.org/#/c/145780/15/cinder/volume/drivers/
emc/emc_vmax_https.py

This patch fixed them.

Change-Id: I3f078ec7915c904ab910eb9ef9f07ac351282489

9 years agoMerge "Update v1 deprecation warnings"
Jenkins [Fri, 27 Feb 2015 20:08:52 +0000 (20:08 +0000)]
Merge "Update v1 deprecation warnings"

9 years agoMerge "Fixed errors in docstrings in the VMAX driver"
Jenkins [Fri, 27 Feb 2015 20:06:20 +0000 (20:06 +0000)]
Merge "Fixed errors in docstrings in the VMAX driver"

9 years agoFix HNAS driver parsing errors
Erlon R. Cruz [Thu, 27 Nov 2014 18:44:23 +0000 (16:44 -0200)]
Fix HNAS driver parsing errors

Depending on some configurations of HNAS array, the driver returns an error
during volume creation or driver initialization. This patch adds some checks
to fix those parsing errors.

Closes-Bug: #1402771
Change-Id: I1700782153dfb780b9228de6e575dd2b32af6922

9 years agoRBD: remove non-layering support for antiquated versions
Jon Bernard [Mon, 23 Feb 2015 21:04:54 +0000 (16:04 -0500)]
RBD: remove non-layering support for antiquated versions

RBD layering was first included in Bobtail (Jan 2013) and all current
Cinder users are expected to have upgraded to a newer version by now.

This patch removes the logic necessary to accommodate Ceph versions that
predate Bobtail.

Change-Id: I335414868c0d0c8c5b15ca0aea9ab32bceeed6ac

9 years agoFixed errors in docstrings in the VMAX driver
Xing Yang [Fri, 20 Feb 2015 20:20:31 +0000 (15:20 -0500)]
Fixed errors in docstrings in the VMAX driver

This patch fixed errors in docstrings in the VMAX driver.

Change-Id: I7079ac25bd44e6faecc8a025c0522a7cd5837ef6

9 years agoMerge "Sync scheduler.filters module from oslo-incubator"
Jenkins [Fri, 27 Feb 2015 11:09:09 +0000 (11:09 +0000)]
Merge "Sync scheduler.filters module from oslo-incubator"

9 years agoMore validation logic for VNX CG creation
Jeegn Chen [Fri, 27 Feb 2015 06:59:48 +0000 (14:59 +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.

Change-Id: I221260217f875d39a119f06ce327f7ce6b5eb1ad
Closes-Bug: #1421163

9 years agoMerge "Limit volume copy bandwidth per backend"
Jenkins [Fri, 27 Feb 2015 00:14:01 +0000 (00:14 +0000)]
Merge "Limit volume copy bandwidth per backend"

9 years agoMerge "Fixes the import for Lefthand driver"
Jenkins [Thu, 26 Feb 2015 23:47:25 +0000 (23:47 +0000)]
Merge "Fixes the import for Lefthand driver"

9 years agoMerge "Change max_over_subscription_ratio default value"
Jenkins [Thu, 26 Feb 2015 23:46:03 +0000 (23:46 +0000)]
Merge "Change max_over_subscription_ratio default value"

9 years agoMerge "XtreamIO version 4.0 support"
Jenkins [Thu, 26 Feb 2015 21:55:25 +0000 (21:55 +0000)]
Merge "XtreamIO version 4.0 support"

9 years agoAdd flash cache policy to 3PAR driver
Rich Hagarty [Fri, 13 Feb 2015 16:19:42 +0000 (08:19 -0800)]
Add flash cache policy to 3PAR driver

3PAR now supports flash cache. Flash cache policy is set by the
extra spec key "hp3par:flash_cache", with value being true or false.

This feature requires SSD disks and 3PAR firmware version 3.2.1 MU2
or greater.

Change-Id: I6d6fdab982ede3676289e587071520c798f4ce0f
Implements: blueprint 3par-flash-cache

9 years agoUpdate v1 deprecation warnings
Mike Perez [Thu, 26 Feb 2015 20:07:22 +0000 (12:07 -0800)]
Update v1 deprecation warnings

As discussed on IRC and mailing lists, we're going to give more time for
deprecation of the v1 API. Since we introduced the deprecation of the v1
API in Juno, we can remove it after EOL of Juno, which will be the
release of Liberty.

Change-Id: I2d6013717d84f98a20ed64b4ebf09bac6bb0843e

9 years agoFixes the import for Lefthand driver
Walter A. Boring IV [Thu, 26 Feb 2015 19:43:13 +0000 (11:43 -0800)]
Fixes the import for Lefthand driver

Review 145780 broke the lefthand driver.  The author and reviewers
did not even bother to look at the 3rd party CI results that clearly
showed that this patch broke the hplefthand driver, due to changing
the imports.  The change removed an import to one of the hplefthandclient
modules, which was then later accessed.

Reviewers, please check 3rd party CI when a cinder patch touches a driver.

Authors of patches, if you touch a driver, you need to check the 3rd party
CI failures and make sure your patch changes aren't causing the failures.

Change-Id: Ie38f77fc9498915651c476ea10bc7bd7f49e393d
Partial-Bug: 1407162

9 years agoMerge "Replication status periodic task optimization"
Jenkins [Thu, 26 Feb 2015 18:15:43 +0000 (18:15 +0000)]
Merge "Replication status periodic task optimization"

9 years agoNetApp eseries implementation for manage/unmanage
Navneet Singh [Thu, 28 Aug 2014 18:39:17 +0000 (00:09 +0530)]
NetApp eseries implementation for manage/unmanage

This patch enables manage and unmanage support
for the eseries iscsi driver.

Implements: Blueprint eseries-manage-unmanage

Change-Id: I5a7f090300065d829bc94c81d8b976dcb541b2a0

9 years agoReplication status periodic task optimization
Steven Kaufer [Tue, 10 Feb 2015 21:12:16 +0000 (21:12 +0000)]
Replication status periodic task optimization

A periodic task exists to update the replication status for all volumes.
Currently, this task executes for all drivers and always retrieves all
volumes for the current host from the DB.

This patch set:
* Ensures that the periodic task is only activated if the driver actually
  supports replication
* Only retrieves volumes from the DB if 'replication_status'!='disabled' in
  the periodic task

Also, the driver documentation in cinder.volume.driver.VolumeDriver.
get_volume_stats() is updated to reflect that the 'replication' key indicates
that the driver supports replication; this is the key that was actually
implemented in the drivers that support replication.

Change-Id: I61fbc31567ad0b6908a00113adeaccf415343e8e
Closes-Bug: 1383524

9 years agoMerge "Sync 'threadgroup' from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 14:05:55 +0000 (14:05 +0000)]
Merge "Sync 'threadgroup' from oslo-incubator"

9 years agoMerge "Sync 'versionutils' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 11:18:08 +0000 (11:18 +0000)]
Merge "Sync 'versionutils' module from oslo-incubator"

9 years agoXtreamIO version 4.0 support
Shay Halsband [Wed, 14 Jan 2015 07:00:19 +0000 (09:00 +0200)]
XtreamIO version 4.0 support

* use new XMS Rest features to improve performance
* add support for manage/unmanage commands

Change-Id: Ib75ff304d5deff6ee44a0b74ba7264a060947537
Implements: blueprint emc-xtremio-driver-kilo-update

9 years agoMerge "Sync 'service' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 07:58:55 +0000 (07:58 +0000)]
Merge "Sync 'service' module from oslo-incubator"

9 years agoMerge "Update 'systemd' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 07:17:50 +0000 (07:17 +0000)]
Merge "Update 'systemd' module from oslo-incubator"

9 years agoMerge "Over subscription for Pure Storage iSCSI driver."
Jenkins [Thu, 26 Feb 2015 07:17:39 +0000 (07:17 +0000)]
Merge "Over subscription for Pure Storage iSCSI driver."

9 years agoMerge "Use oslo_config choices support"
Jenkins [Thu, 26 Feb 2015 07:06:33 +0000 (07:06 +0000)]
Merge "Use oslo_config choices support"

9 years agoMerge "Add CHAP persistence to SCST target helper"
Jenkins [Thu, 26 Feb 2015 04:52:43 +0000 (04:52 +0000)]
Merge "Add CHAP persistence to SCST target helper"

9 years agoMerge "Import only modules: H302"
Jenkins [Thu, 26 Feb 2015 04:24:02 +0000 (04:24 +0000)]
Merge "Import only modules: H302"

9 years agoMerge "EQLX: Consolidate CHAP config options"
Jenkins [Thu, 26 Feb 2015 04:09:33 +0000 (04:09 +0000)]
Merge "EQLX: Consolidate CHAP config options"

9 years agoChange max_over_subscription_ratio default value
Xing Yang [Thu, 26 Feb 2015 03:55:34 +0000 (22:55 -0500)]
Change max_over_subscription_ratio default value

Currently max_over_subscription_ratio is set to 2.0 by default.
This default value is too low for thin provisioning. Change it to 20.0.

Change-Id: I61147e53caa272be0c970507114f5e2b8494edca

9 years agoMerge "Fix for infinity capacity reporting in EQL driver"
Jenkins [Thu, 26 Feb 2015 00:02:22 +0000 (00:02 +0000)]
Merge "Fix for infinity capacity reporting in EQL driver"

9 years agoMerge "Use Unique SCST Group names in SCST cinder helper driver."
Jenkins [Wed, 25 Feb 2015 23:38:38 +0000 (23:38 +0000)]
Merge "Use Unique SCST Group names in SCST cinder helper driver."

9 years agoMerge "Revert "Remove retry_deactivation directive on lvremove""
Jenkins [Wed, 25 Feb 2015 20:27:45 +0000 (20:27 +0000)]
Merge "Revert "Remove retry_deactivation directive on lvremove""

9 years agoMerge "Custom zone name prefix not being used by brcd driver"
Jenkins [Wed, 25 Feb 2015 16:45:34 +0000 (16:45 +0000)]
Merge "Custom zone name prefix not being used by brcd driver"

9 years agoUse Unique SCST Group names in SCST cinder helper driver.
nikeshmahalka [Wed, 25 Feb 2015 15:14:13 +0000 (20:44 +0530)]
Use Unique SCST Group names in SCST cinder helper driver.

Currently, while setting up GROUPS under targets in scst.conf,
we are using the Initiator IQN as the group name. When we have
multiple targets and we want to connect LUN's from these multiple
targets to the same initiator, we are using the same GROUP name in
all the Target sections.

It would be good to provide a unique group name by prepending the
GROUP name with the target name. So the GROUP name will be
"Target name+Initiator IQN".

Change-Id: Ia0fbab18f792e602e1f4dae6f9ca0e607d0cfde3
Closes-Bug: #1424973

9 years agoAdd CHAP persistence to SCST target helper
nikeshmahalka [Thu, 19 Feb 2015 12:33:01 +0000 (18:03 +0530)]
Add CHAP persistence to SCST target helper

The SCST target helper currently does not have a mechanism to
persist CHAP records. Added this support so that LUNs will
get re-exported if Cinder service restarts.

Change-Id: I3daa48e7f460feef9764b79b47d7be308579fe40
Closes-Bug: #1421570

9 years agoFix for infinity capacity reporting in EQL driver
ArkadyKanevsky [Fri, 13 Feb 2015 16:22:38 +0000 (10:22 -0600)]
Fix for infinity capacity reporting in EQL driver

Updated default values for total and free capacity from infinity to 0.
No more usage of unknown or infinity.

Closes bug: #1421843

Change-Id: I8bebdb9f54642ffb6ab77e81f759549db3ab838a

9 years agoImport only modules: H302
Anton Arefiev [Thu, 8 Jan 2015 13:20:13 +0000 (15:20 +0200)]
Import only modules: H302

H302 PEP8 check should be enabled to make core more clean
and readable and consistent with OpenStack Hacking rules.

Change-Id: Ie189f2418d12800a46664705eacfc127e7269f45
Partial-Bug: #1407162

9 years agoMerge "Fix logging guideline violations in volume/api.py"
Jenkins [Wed, 25 Feb 2015 05:57:09 +0000 (05:57 +0000)]
Merge "Fix logging guideline violations in volume/api.py"

9 years agoMerge "Sync the 'fileutils' module from oslo-incubator"
Jenkins [Wed, 25 Feb 2015 05:53:37 +0000 (05:53 +0000)]
Merge "Sync the 'fileutils' module from oslo-incubator"

9 years agoRevert "Remove retry_deactivation directive on lvremove"
John Griffith [Wed, 25 Feb 2015 05:53:26 +0000 (05:53 +0000)]
Revert "Remove retry_deactivation directive on lvremove"

This reverts commit 3bc7ccdf95ef366d49a6c4e5924dde1327b1e9a6.

Long shot, but only related change in Cinder since this started was this one.  It's possible that the config specification on the cmd line does something "different".  Let's find out.

Change-Id: I61b05624ede4e86859789c332377c714925ef2e8

9 years agoMerge "Remove unused 'test' module from oslo-incubator"
Jenkins [Wed, 25 Feb 2015 05:30:59 +0000 (05:30 +0000)]
Merge "Remove unused 'test' module from oslo-incubator"

9 years agoMerge "Pass region name to Nova client"
Jenkins [Wed, 25 Feb 2015 05:30:05 +0000 (05:30 +0000)]
Merge "Pass region name to Nova client"

9 years agoOver subscription for Pure Storage iSCSI driver.
Daniel Wilson [Thu, 19 Feb 2015 18:35:05 +0000 (10:35 -0800)]
Over subscription for Pure Storage iSCSI driver.

Add support for over subscription in Pure Storage iSCSI driver.

Implements: blueprint pure-iscsi-over-subscription-thin-provisioning
Change-Id: Ia9de828ad718c0790f4f04ee2a2f1eb4c3fe2788

9 years agoUse oslo_config choices support
Eric Brown [Tue, 24 Feb 2015 07:02:50 +0000 (23:02 -0800)]
Use oslo_config choices support

The oslo_config library added support for a choices keyword argument in
version 1.2.0a3.  This commit leverages the use of choices for StrOpts in
Cinder's configuration.

References:
http://docs.openstack.org/developer/oslo.config/#a3
https://bugs.launchpad.net/oslo-incubator/+bug/1123043

Change-Id: Id94904d9b15bc1c52f47aafe7e59ec738d93f966

9 years agoMerge "FCZM fix reading of cinder config entries"
Jenkins [Tue, 24 Feb 2015 22:36:20 +0000 (22:36 +0000)]
Merge "FCZM fix reading of cinder config entries"

9 years agoCustom zone name prefix not being used by brcd driver
Angela Smith [Tue, 24 Feb 2015 21:04:02 +0000 (13:04 -0800)]
Custom zone name prefix not being used by brcd driver

Config file setting for zone name prefix and activate flag were
not being picked up by the brocade zone driver.  Modified the
way the config options are used for each fabric for these config
options.

Closes-Bug: #1373130
Change-Id: Ib5598e58589aa4316e6c8b9b495beec9db2a4b96

9 years agoGET volumes API sorting REST/volume/DB updates
Steven Kaufer [Mon, 15 Dec 2014 20:18:42 +0000 (20:18 +0000)]
GET volumes API sorting REST/volume/DB updates

This change is to support updating the v2 /volumes and /volumes/detail
APIs to support multiple sort keys and sort directions.

Contains:
* Updates to the v2 REST API to pass multiple sort keys and directions
  to the volume API
* Volume API updates to accept and pass the sort information the DB layer
* API signature updates on the DB layer to accept a list of sort keys and
  directions

Note that the defaulting of the sort keys and directions is done in
the dependent patch set in the new 'process_sort_params' function
(invoked in db.sqlalchemy.api); by default, the sort keys are
'created_at' and 'id' in the 'desc' direction.

Partially Implements: blueprint cinder-pagination
APIImpact

Change-Id: I02bd8104b501b496148f95b0a5045fa2b64c8802

9 years agoGET volumes API sorting enhancements common utilities
Steven Kaufer [Mon, 15 Dec 2014 19:10:25 +0000 (19:10 +0000)]
GET volumes API sorting enhancements common utilities

This change is to support updating the v2 /volumes and /volumes/detail
APIs to support multiple sort keys and sort directions using the single
'sort' parameter, see API working group guidelines for syntax and
examples:
https://github.com/openstack/api-wg/blob/master/guidelines/
pagination_filter_sort.rst

Note that the existing 'sort_key' and 'sort_dir' parameters are being
deprecated and they cannot be used with the new 'sort' parameter.

This patch set contains utility functions to:
* Process the input sorting parameters on the request
* Process the sort keys and directions to include the default keys

The main complexity in this change deals with defaulting the sort keys
and directions so that volume order does not change for existing
paths. A new 'process_sort_params' function is created to consistently
process the sort parameters that will be passed from the REST API and
down to the DB API. This utility function will be invoked when the
sort params need to be processed (and defaulted) in the DB sqlalchemy
layer (prior to invoking the common paginate_query function).

These functions will be consumed in the subsequent change set:
https://review.openstack.org/#/c/141915/

Partially Implements: blueprint cinder-pagination
APIImpact

Change-Id: I538ad35d5c7d6be74a4792a28c02820fc44e5286

9 years agoMerge "Generic filter support for volume queries"
Jenkins [Tue, 24 Feb 2015 19:08:01 +0000 (19:08 +0000)]
Merge "Generic filter support for volume queries"

9 years agoFCZM fix reading of cinder config entries
Walter A. Boring IV [Tue, 24 Feb 2015 16:23:03 +0000 (08:23 -0800)]
FCZM fix reading of cinder config entries

The zone manager and the lookup service had some cruft code that
was incorrectly reading the cinder.conf sections it needed.
When cinder.conf was configured to use the Cisco driver, the zone
manager would never see it, because it was reading from the wrong
section of cinder.conf.

Change-Id: I4a48bc39e55d4b7e9a149a3ec3aa3947980360ea
Closes-Bug: 1424852

9 years agoMerge "Tests: Fix cxt target tests opening files"
Jenkins [Tue, 24 Feb 2015 09:44:30 +0000 (09:44 +0000)]
Merge "Tests: Fix cxt target tests opening files"

9 years agoMerge "LVM: Fix thin provisioning and mirrors stats reporting"
Jenkins [Tue, 24 Feb 2015 08:37:39 +0000 (08:37 +0000)]
Merge "LVM: Fix thin provisioning and mirrors stats reporting"

9 years agoMerge "Remove retry_deactivation directive on lvremove"
Jenkins [Tue, 24 Feb 2015 08:37:29 +0000 (08:37 +0000)]
Merge "Remove retry_deactivation directive on lvremove"

9 years agoMerge "Make Interval and Retries Configurable for VMAX"
Jenkins [Tue, 24 Feb 2015 08:36:49 +0000 (08:36 +0000)]
Merge "Make Interval and Retries Configurable for VMAX"

9 years agoMerge "Fixed 3PAR driver load balancing during migration"
Jenkins [Tue, 24 Feb 2015 04:16:07 +0000 (04:16 +0000)]
Merge "Fixed 3PAR driver load balancing during migration"

9 years agoSync scheduler.filters module from oslo-incubator
Jay S. Bryant [Mon, 23 Feb 2015 23:14:57 +0000 (17:14 -0600)]
Sync scheduler.filters module from oslo-incubator

The scheduler.filters module hasn't been updated since
January of 2014.  As a result there are a number of changes
that we should pull into Cinder's copy.

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 by file:

__init__.py
be81d6ba - Cleanup unused log related code

availability_zone_filter.py
4a47188e -  Allow filters to only run once per request if their data is static

capabilities_filter.py
2fbf5065 - Remove oslo.log code and clean up versionutils API
dacc065a - Merge "Update oslo log messages with translation domains"
86707cd5 - Remove None for dict.get()
fcf517d7 - Update oslo log messages with translation domains

extra_specs_ops.py
ac17de97 - Use oslo_utils instead of deprecated oslo.utils
6ff6b4b4 - Switch oslo-incubator to use oslo.utils and remove old modules

ignore_attempted_hosts_filter.py
2fbf5065 - Remove oslo.log code and clean up versionutils API
39625e18 - Set pbr 'warnerrors' option for doc build
dacc065a - Merge "Update oslo log messages with translation domains"
86707cd5 - Remove None for dict.get()
fcf517d7 - Update oslo log messages with translation domains

json_filter
262279b1 - switch to oslo_serialization
6c706c5c - Delete graduated serialization files
86707cd5 - Remove None for dict.get()

Change-Id: Ida01f1a6518dcd3a977c524c15dfe9f6979a4ead

9 years agoMerge "Remove warnings for long vgs and lvs calls"
Jenkins [Mon, 23 Feb 2015 22:13:36 +0000 (22:13 +0000)]
Merge "Remove warnings for long vgs and lvs calls"

9 years agoLimit volume copy bandwidth per backend
Tomoki Sekiyama [Mon, 19 Jan 2015 21:34:18 +0000 (16:34 -0500)]
Limit volume copy bandwidth per backend

Currently, by setting volume_copy_bps_limit in cinder.conf,
volume/image copy can be throttled to mitigate slow down of
instances' volume access during the copy. However, this is a global
setting and applied to all the backends.
This change enables admins to configure volume_copy_bps_limit to
different values among backends by specifying it in each backend
section.

In addition, with this change, the bps limit will be divided when
multiple volume copy operations run concurrently on the same backend.
For example, if volume_copy_bps_limit is set to 100MB/s, and 2 copies
are running on a backend, each copy can use up to 50MB/s.
This behavior will be useful for QoS which ensures a certain amount
of bandwidth is kept for instances' volume access.

This introduces Throttle classes to count volume copies in a backend
and setup bandwidth limit.

Change-Id: Ie390b46538556fa704b06ffc79cd6cc000bd5936
Implents: blueprint limit-volume-copy-bps-per-backend

9 years agoGeneric filter support for volume queries
Steven Kaufer [Thu, 12 Feb 2015 14:45:18 +0000 (14:45 +0000)]
Generic filter support for volume queries

DB functions exist to get all volumes, to get all volumes in a particular
project, to get all volumes in a particular group, and to get all volumes
hosted on a particular host. See the following functions in the DB API:

* volume_get_all
* volume_get_all_by_project
* volume_get_all_by_group
* volume_get_all_by_host

Only the queries that get all volumes and that get all volumes by project
support additional filtering.

The purpose of this patch set is to make the filtering support consistent
across these APIs, adding it to the volume_get_all_by_group and the
volume_get_all_by_host APIs.

Change-Id: I6af9b4de9e70ec442e7e61c6b0baa9b02798a06d
Implements: blueprint db-volume-filtering

9 years agoRemove warnings for long vgs and lvs calls
John Griffith [Thu, 19 Feb 2015 23:07:17 +0000 (16:07 -0700)]
Remove warnings for long vgs and lvs calls

We put some warning statements in a while back for
lvs and vgs commands that lasted more than 60 seconds
so we could easily query issues in the gate.

Since then we've made a number of changes to improve our
LVM interactions including the use of an LVM conf file with
a filter for only the VG's Cinder uses.

There's one issue remaining however where during the instance
rescue test in Nova where LVM get's stuck trying to open
devices that no longer exist.  Part of this I think is due
to some manipulation that Nova/KVM does on the attached volume
when the test is run, but also the rescue process in Nova
uses LVM volumes as well and does some moving around and mounting
of devices.

The result is that LVM calls can take quite a while
(greater than 100 seconds) to complete during the rescue process.
This doesn't result in any failures, just that the rescue process
slows things down dramatically and is a pretty heavy process.

Also, the newer versions of process utils include completion
timing in the logs so we don't really need this any longer eve
to query timings and get info.

This patch removes those log statements, and proposes we
document somewhere that rescue operations on a setup that
includes c-vol service and nova-compute service on the same
node will temporarily impact LVM performance.

Change-Id: Iddc8318ba23725990512f5a5945406561818c5ba

9 years agoMerge "Fix exceptions logging in TgtAdm"
Jenkins [Mon, 23 Feb 2015 06:07:58 +0000 (06:07 +0000)]
Merge "Fix exceptions logging in TgtAdm"

9 years agoMerge "Manage/unmanage impl for NetApp ONTAP iscsi driver"
Jenkins [Sat, 21 Feb 2015 23:07:06 +0000 (23:07 +0000)]
Merge "Manage/unmanage impl for NetApp ONTAP iscsi driver"

9 years agoMerge "NetApp E-series: Allow scheduling by disk"
Jenkins [Sat, 21 Feb 2015 23:06:08 +0000 (23:06 +0000)]
Merge "NetApp E-series: Allow scheduling by disk"

9 years agoMerge "IBM GPFS Consistency Group Implementation"
Jenkins [Sat, 21 Feb 2015 19:42:43 +0000 (19:42 +0000)]
Merge "IBM GPFS Consistency Group Implementation"

9 years agoMerge "Fix exception error on HNAS drivers"
Jenkins [Sat, 21 Feb 2015 18:38:28 +0000 (18:38 +0000)]
Merge "Fix exception error on HNAS drivers"

9 years agoMerge "Sync 'loopingcall' module from oslo-incubator"
Jenkins [Sat, 21 Feb 2015 03:03:06 +0000 (03:03 +0000)]
Merge "Sync 'loopingcall' module from oslo-incubator"

9 years agoMerge "Sync 'eventlet_backdoor' module from oslo-incubator"
Jenkins [Sat, 21 Feb 2015 03:02:55 +0000 (03:02 +0000)]
Merge "Sync 'eventlet_backdoor' module from oslo-incubator"

9 years agoMerge "Change exception message in volume api"
Jenkins [Sat, 21 Feb 2015 01:51:03 +0000 (01:51 +0000)]
Merge "Change exception message in volume api"

9 years agoFix exceptions logging in TgtAdm
Ivan Kolodyazhny [Fri, 20 Feb 2015 23:14:54 +0000 (01:14 +0200)]
Fix exceptions logging in TgtAdm

Use six.text_type(e) to not get UnicodeError on log message formatting.
Fixed logging according to the Logging guidelines.

Change-Id: Ic5dde17d2668d4b9ff2bea5cc0599f4c8b51362d
Closes-Bug: #1402078

9 years agoSync 'versionutils' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 23:12:49 +0000 (17:12 -0600)]
Sync 'versionutils' module from oslo-incubator

The versionutils module hasn't had a sync since November of 2014.
There have been namespace changes and changes to enable moving to
the new oslo_log library.  So, we need this sync so that we can
move forward with those changes.

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:
---------------------
9bf01f9d - Switch from oslo.config to oslo_config
2fbf5065 - Remove oslo.log code and clean up versionutils API

Change-Id: I4344ed8fb234135a199649c5ef7620e4166fbb12