]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "Fix webob.exc.HTTPForbidden parameter miss"
Jenkins [Mon, 24 Feb 2014 08:16:16 +0000 (08:16 +0000)]
Merge "Fix webob.exc.HTTPForbidden parameter miss"

10 years agoFix webob.exc.HTTPForbidden parameter miss
Haiwei Xu [Mon, 24 Feb 2014 11:39:19 +0000 (20:39 +0900)]
Fix webob.exc.HTTPForbidden parameter miss

HTTPForbidden should use the parameter 'explanation'
instead of 'detail'.
This patch fixes this bug.

Change-Id: I688145f7ea942277c7d3ed3221d6ff2bc7a852ad
Closes-Bug: #1283872

10 years agoMerge "Remove old driver mapping deprecation"
Jenkins [Sun, 23 Feb 2014 13:00:13 +0000 (13:00 +0000)]
Merge "Remove old driver mapping deprecation"

10 years agoMerge "Add HP MSA Fiber Channel driver"
Jenkins [Sat, 22 Feb 2014 05:05:11 +0000 (05:05 +0000)]
Merge "Add HP MSA Fiber Channel driver"

10 years agoMerge "Use six.moves cStringIO instead of cStringIO"
Jenkins [Sat, 22 Feb 2014 02:07:10 +0000 (02:07 +0000)]
Merge "Use six.moves cStringIO instead of cStringIO"

10 years agoRemove old driver mapping deprecation
Mike Perez [Tue, 18 Feb 2014 02:21:12 +0000 (18:21 -0800)]
Remove old driver mapping deprecation

This deprecation was introduced back in Grizzly, which will be EOL after
IceHouse. Removing to clean things up.

Change-Id: I509bb4115c3c88a7af7326125feb760f20847b8d

10 years agoMerge "Add support for qos_specs feature to 3PAR drivers"
Jenkins [Fri, 21 Feb 2014 19:15:22 +0000 (19:15 +0000)]
Merge "Add support for qos_specs feature to 3PAR drivers"

10 years agoMerge "Update 3PAR drivers to pass cert test"
Jenkins [Fri, 21 Feb 2014 19:10:05 +0000 (19:10 +0000)]
Merge "Update 3PAR drivers to pass cert test"

10 years agoMerge "Ensure return for db api functions"
Jenkins [Fri, 21 Feb 2014 00:18:54 +0000 (00:18 +0000)]
Merge "Ensure return for db api functions"

10 years agoMerge "Update gpfs driver volume creation process"
Jenkins [Thu, 20 Feb 2014 20:08:44 +0000 (20:08 +0000)]
Merge "Update gpfs driver volume creation process"

10 years agoMerge "Remove unused function"
Jenkins [Thu, 20 Feb 2014 16:35:58 +0000 (16:35 +0000)]
Merge "Remove unused function"

10 years agoAdd HP MSA Fiber Channel driver
Gauvain Pocentek [Thu, 13 Feb 2014 20:34:59 +0000 (21:34 +0100)]
Add HP MSA Fiber Channel driver

This commit implements a driver for the HP MSA arrays. Only Fiber
Channel is supported for now.

Implements: blueprint add-msa-2040-driver
DocImpact
Change-Id: I75232cafadf7f6d15c5959d6c054f2e0f4d14e2c

10 years agoEnsure return for db api functions
Avishay Traeger [Thu, 20 Feb 2014 11:22:37 +0000 (13:22 +0200)]
Ensure return for db api functions

Functions in db/api.py should return whatever the implementation of
those functions return. This is important for qos_specs_update which
returns something for the sqlalchemy implementation, but for others as
well for future implementations.

Added 'return' for functions that were missing it.

Change-Id: I384b1cf915b2d2238fd75d23b17558cae2cf9f50
Closes-Bug: #1272365

10 years agoMerge "HP LeftHand Backend assisted volume migrate"
Jenkins [Thu, 20 Feb 2014 10:11:35 +0000 (10:11 +0000)]
Merge "HP LeftHand Backend assisted volume migrate"

10 years agoMerge "IBM XIV and DS8000 Driver reorganizing (IBM dir)"
Jenkins [Thu, 20 Feb 2014 03:30:30 +0000 (03:30 +0000)]
Merge "IBM XIV and DS8000 Driver reorganizing (IBM dir)"

10 years agoMerge "GPFS: Implement volume backup and restore"
Jenkins [Wed, 19 Feb 2014 23:17:02 +0000 (23:17 +0000)]
Merge "GPFS:  Implement volume backup and restore"

10 years agoHP LeftHand Backend assisted volume migrate
Jim Branen [Sat, 15 Feb 2014 00:02:55 +0000 (16:02 -0800)]
HP LeftHand Backend assisted volume migrate

This patch implements volume migrate using native LeftHand APIs.

Limitations:
1. Same LeftHand backend
2. Volume cannot be attached
3. Volumes with snapshots cannot be migrated
4. Source and Destination clusters must be in the same management group
5. Volume re-type not supported

Change-Id: I503d5a10ee59db14130c676a5c3a07abf9a2b7af
Implements: blueprint native-lefthand-volume-migrate

10 years agoAdd support for qos_specs feature to 3PAR drivers
Kurt Martin [Wed, 12 Feb 2014 01:38:13 +0000 (17:38 -0800)]
Add support for qos_specs feature to 3PAR drivers

This patch includes the ability to set the qos-specs for the
existing 3PAR qos settings (maxIOP and maxBWS) in addition to
the new settingis listed below. We would prefer that the
new qos-specs associated to a volume type be used, but this
patch also supports setting these values the old way in extra-specs
for backwards compatibility.

This patch also adds two additional personas to the list of
valid personas that are now support by the 3PAR backends.

DocImpact: Implements new qos settings
minIOPS - The minimum IOPs per second
minBWS - The minimum bandwidth per second
latency - The QOS I/O target latency
priority - The QOS scheduling priority (high, normal, low)
The priority defaults to normal

Two new personas added include HPUX and WindowsServer

Change-Id: I7f94a493919dc2d34daac91d684369d1f51c974c
Implements: blueprint add-qosspec-support-to-3par-drivers

10 years agoMerge "Sync request_id, request_utils for cinder"
Jenkins [Wed, 19 Feb 2014 17:06:17 +0000 (17:06 +0000)]
Merge "Sync request_id, request_utils for cinder"

10 years agoUpdate 3PAR drivers to pass cert test
Walter A. Boring IV [Mon, 10 Feb 2014 21:09:28 +0000 (13:09 -0800)]
Update 3PAR drivers to pass cert test

This patch updates both the HP 3PAR Fibre Channel
and HP 3PAR iSCSI block storage drivers so that they
can pass the driver certification tests.  We also updated
the unit tests to use mock instead of mox.

These versions of the drivers require the new 3.0.0 hp3parclient,
which can be downloaded from the pypi repository:
https://pypi.python.org/pypi/hp3parclient
The new hp3parclient requires the 3.1.3 firmware on the HP 3PAR.

The driver certification results:
Related-Bug: #1278575
Related-Bug: #1278577

Closes-Bug: #1279137

Change-Id: I72e0a76c865e54c58e41cc4409555d9042e30267
DocImpact: Document new driver requirements.

10 years agoMerge "Implement retype in HP LeftHand driver"
Jenkins [Wed, 19 Feb 2014 16:58:21 +0000 (16:58 +0000)]
Merge "Implement retype in HP LeftHand driver"

10 years agoRemove unused function
Wu Wenxiang [Wed, 19 Feb 2014 13:58:48 +0000 (21:58 +0800)]
Remove unused function

Romove unused function stub_out_rate_limiting in
cinder/tests/api/fakes.py

Change-Id: Ib6fea599eacb140108ca4293cdd089b010a8b979
Closes-Bug: #1282098

10 years agoEnsures NetApp iSCSI driver correctly compares int values for size
Andrew Kerr [Tue, 18 Feb 2014 22:38:12 +0000 (17:38 -0500)]
Ensures NetApp iSCSI driver correctly compares int values for size

The NetApp iSCSI driver needs to verify that the new size requested
during an extend operation does not exceed the max_resize of the
lun.  However, the driver was doing a >= compare against str values
of the sizes rather than the int values.  This caused the incorrect
code path to be used in certain situations.

Change-Id: I8bc66c71db6b469c7adf00ce8b5091513fccb740
Closes-Bug: 1281279

10 years agoSync request_id, request_utils for cinder
Chris Buccella [Sat, 15 Feb 2014 02:29:43 +0000 (02:29 +0000)]
Sync request_id, request_utils for cinder

This is in preparation for work being done on request ID tracing across
OpenStack services.

Per discussion in blueprint cross-service-request-id , the standard header
name for the request ID across OpenStack projects should be
x-openstack-request-id. The request_id middleware was created for just this
purpose, as oslo change Ic7967cd62e7b743343d70f751b9238339171e013 . Using the
same middleware allows for consistency across projects.

There is an additional oslo module, request_utils, introduced as
change Id085c4444fee2bb68b80738bfe77ccb0ba1908ec to allow uniform logging of
request IDs. Bring that in as well so we have it when necessary.

Implements: blueprint add-standard-req-id-header
Change-Id: If080df2a323347924c93a912538dab5ffeffe982

10 years agoIBM XIV and DS8000 Driver reorganizing (IBM dir)
erikzaadi [Mon, 10 Feb 2014 11:01:36 +0000 (13:01 +0200)]
IBM XIV and DS8000 Driver reorganizing (IBM dir)

    * renamed:    cinder/volume/drivers/xiv_ds8k.py
                  -> cinder/volume/drivers/ibm/xiv_ds8k.py
    * updated all references to old xiv_ds8k paths
    * regenerated sample.conf

Change-Id: Iab094c78a0e4eb1753fe8809089ba1337d95e2e0
Partially implements: blueprint ibm-volume-driver-reorg

10 years agoMerge "Add support for backing up volume metadata"
Jenkins [Tue, 18 Feb 2014 03:04:16 +0000 (03:04 +0000)]
Merge "Add support for backing up volume metadata"

10 years agoGPFS: Implement volume backup and restore
Bill Owen [Wed, 12 Feb 2014 23:41:38 +0000 (16:41 -0700)]
GPFS:  Implement volume backup and restore

Add support in gpfs driver for volume backup interface
to backup or restore a volume using backup service
specified in cinder.conf.

Implements: blueprint gpfs-volume-backup
Change-Id: I6f6730bab87c7e7547a66e1b57909f761f87d347

10 years agoUse six.moves cStringIO instead of cStringIO
He Yongli [Mon, 17 Feb 2014 06:41:25 +0000 (14:41 +0800)]
Use six.moves cStringIO instead of cStringIO

to keep Python 3.x compatibility, use six.moves.cStringIO to
replace StringIO

Change-Id: Id89c6156d9bba0007e8b16cd2cc28413a7cc5fd3
Closes-Bug: #1280964

10 years agoMerge "Add searchDepth when getClusterInfo called."
Jenkins [Sat, 15 Feb 2014 20:29:42 +0000 (20:29 +0000)]
Merge "Add searchDepth when getClusterInfo called."

10 years agoMerge "Fix wrong example of "nova_endpoint_template""
Jenkins [Sat, 15 Feb 2014 19:30:57 +0000 (19:30 +0000)]
Merge "Fix wrong example of "nova_endpoint_template""

10 years agoMerge "Replace assertEqual(None, *) with assertIsNone in tests"
Jenkins [Sat, 15 Feb 2014 19:28:50 +0000 (19:28 +0000)]
Merge "Replace assertEqual(None, *) with assertIsNone in tests"

10 years agoMerge "Add EMC SMI-S FC Driver in Cinder"
Jenkins [Sat, 15 Feb 2014 19:28:42 +0000 (19:28 +0000)]
Merge "Add EMC SMI-S FC Driver in Cinder"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 15 Feb 2014 18:50:25 +0000 (18:50 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Cast the quota set values to integer before checking their validity"
Jenkins [Sat, 15 Feb 2014 18:45:43 +0000 (18:45 +0000)]
Merge "Cast the quota set values to integer before checking their validity"

10 years agoMerge "Remove dependent module py3kcompat"
Jenkins [Sat, 15 Feb 2014 18:45:35 +0000 (18:45 +0000)]
Merge "Remove dependent module py3kcompat"

10 years agoAdd support for backing up volume metadata
Edward Hope-Morley [Tue, 15 Oct 2013 18:01:06 +0000 (19:01 +0100)]
Add support for backing up volume metadata

This commit adds a new versioned api to the backup driver base
class which all backup driver implementations should use in order
to support backing up volume metadata as well as data. The general
rule here is that we backup all metadata from a set of db tables
and can then be selective about what we restore.

As part of this commit, Ceph backup driver implements the new api
to backup volume metadata (including glance metadata) thus
supporting restoring volumes as bootable.

It is expected that the other backup driver implementations will
follow suit and adopt this approach.

Implements: blueprint cinder-backup-volume-metadata-support
Fixes: bug 1137908
Change-Id: Icf2f1202d827d2435e09f5dad0f6f022f35dceee

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 15 Feb 2014 06:17:16 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: Id20fd023c69d84a929f432304ab15e6c80c81b3b

10 years agoMerge "Remove unused exception"
Jenkins [Sat, 15 Feb 2014 06:03:46 +0000 (06:03 +0000)]
Merge "Remove unused exception"

10 years agoReplace assertEqual(None, *) with assertIsNone in tests
llg8212 [Sat, 15 Feb 2014 04:42:56 +0000 (12:42 +0800)]
Replace assertEqual(None, *) with assertIsNone in tests

Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: Iac9462620bf4ae338998fa6aea7f1514a945059b
Closes-Bug:#1280522

10 years agoMerge "lvm: unhandled exception when migrating volume"
Jenkins [Sat, 15 Feb 2014 02:21:20 +0000 (02:21 +0000)]
Merge "lvm: unhandled exception when migrating volume"

10 years agoMerge "Fix cinder-backup volume restore with ceph driver"
Jenkins [Sat, 15 Feb 2014 01:19:10 +0000 (01:19 +0000)]
Merge "Fix cinder-backup volume restore with ceph driver"

10 years agoImplement retype in HP LeftHand driver
Jim Branen [Fri, 14 Feb 2014 17:24:53 +0000 (09:24 -0800)]
Implement retype in HP LeftHand driver

This adds the ability to modify the
type of an existing HP LeftHand volume to
another type supported on the same backend.

Main use case for this is changing provisioning,
(full vs. thin), adaptive optimization and data
protections settings for a volume on-demand.

Change-Id: I78e53431708bcb3151c5dc4016e65d1a655e03c6
Implements: blueprint retype-support-for-hplefthand-driver

10 years agoCast the quota set values to integer before checking their validity
Sylvain Baubeau [Fri, 14 Feb 2014 17:13:50 +0000 (18:13 +0100)]
Cast the quota set values to integer before checking their validity

Change-Id: I56409607d435a5e2ff702ccb9f19c5d12b432570
Closes-Bug: #1280159

10 years agoRemove dependent module py3kcompat
llg8212 [Fri, 14 Feb 2014 08:34:01 +0000 (16:34 +0800)]
Remove dependent module py3kcompat

Module py3kcompat was removed from oslo-incubator, we can use
six directly.

Change-Id: I6c4266b71312ae53ecaedbd2ce1a865e60eb8d50
Closes-Bug: #1280033

10 years agoAdd EMC SMI-S FC Driver in Cinder
Xing Yang [Tue, 11 Feb 2014 05:00:53 +0000 (00:00 -0500)]
Add EMC SMI-S FC Driver in Cinder

Add an EMC SMI-S FC Driver in Cinder. It supports all required
driver features.
Also made enhancements to the existing SMI-S iSCSI Driver
(performance enhancement, multiple pool support and thick/thin
provisioning, extend volume).
emc_smis_common.py is the common code used by both iSCSI driver
(emc_smis_iscsi.py) and FC driver (emc_smis_fc.py).

Implements blueprint emc-fibre-channel-volume-driver

Change-Id: Idace398ef60863811911511bcbbfcecb3bf58270

10 years agoFix wrong example of "nova_endpoint_template"
ruichen [Thu, 13 Feb 2014 11:12:21 +0000 (19:12 +0800)]
Fix wrong example of "nova_endpoint_template"

In cinder.conf

e.g. http://localhost:8774/v2/%(tenant_id)s

should be

e.g. http://localhost:8774/v2/%(project_id)s

Change-Id: I7dd3be9bc9d2e8f26619b00b5bdbc66505a984b2
Closes-Bug: #1279747

10 years agoUpdate gpfs driver volume creation process
Bill Owen [Thu, 13 Feb 2014 00:37:36 +0000 (17:37 -0700)]
Update gpfs driver volume creation process

Modify gpfs driver to set file permissions in
a more consistent way.

Modify image_utils.resize_image to allow caller
to request it be run as root.

SecurityImpact
Change-Id: Ic01d91c0d660c74095e8d2b212279b39b9b9dc05
Partial-Bug: #1260679

10 years agoMerge "Add update support to volume type encryption"
Jenkins [Thu, 13 Feb 2014 14:43:06 +0000 (14:43 +0000)]
Merge "Add update support to volume type encryption"

10 years agoMerge "Rename Openstack to OpenStack"
Jenkins [Thu, 13 Feb 2014 12:11:24 +0000 (12:11 +0000)]
Merge "Rename Openstack to OpenStack"

10 years agoMerge "GlusterFS: Fix create/restore backup"
Jenkins [Thu, 13 Feb 2014 06:23:29 +0000 (06:23 +0000)]
Merge "GlusterFS: Fix create/restore backup"

10 years agoRemove unused exception
KIYOHIRO ADACHI [Thu, 13 Feb 2014 05:10:21 +0000 (14:10 +0900)]
Remove unused exception

 o class WillNotSchedule(CinderException):

   This exception was removed in the following commit.

    commit cea7fe21cecfcd28ede3ba411b8ab8b36c9a7c15
    Author: Zhiteng Huang <zhithuang@ebaysf.com>
    Date:   Thu Jan 2 15:44:30 2014 +0800

        Drop Chance/SimpleScheduler Implementation

Change-Id: I8f5f8e6c5c844a67607dae9fb63524aef7069133

10 years agoMerge "Allow operators to customize max header size"
Jenkins [Thu, 13 Feb 2014 05:06:20 +0000 (05:06 +0000)]
Merge "Allow operators to customize max header size"

10 years agoMerge "Changes to cast variable as integer as XML API fails."
Jenkins [Thu, 13 Feb 2014 04:25:21 +0000 (04:25 +0000)]
Merge "Changes to cast variable as integer as XML API fails."

10 years agoMerge "Move create_, remove_ and ensure_export from drivers"
Jenkins [Thu, 13 Feb 2014 02:00:43 +0000 (02:00 +0000)]
Merge "Move create_, remove_ and ensure_export from drivers"

10 years agoMerge "Ceph backup driver tidyup"
Jenkins [Thu, 13 Feb 2014 01:19:14 +0000 (01:19 +0000)]
Merge "Ceph backup driver tidyup"

10 years agoAdd searchDepth when getClusterInfo called.
Jay Lee [Sat, 8 Feb 2014 01:43:27 +0000 (01:43 +0000)]
Add searchDepth when getClusterInfo called.

Without searchDepth, getClusterInfo shows every volume and
snapshot. It's an unused information and takes very long time.

Change-Id: Id590e3023f4446f01b965baf4e8ac61980101067
Closes-Bug: 1276388

10 years agoMerge "Check type argument on create from source and snap"
Jenkins [Wed, 12 Feb 2014 20:19:29 +0000 (20:19 +0000)]
Merge "Check type argument on create from source and snap"

10 years agoMerge "Removed unused context in _extend_snapshot method"
Jenkins [Wed, 12 Feb 2014 19:00:52 +0000 (19:00 +0000)]
Merge "Removed unused context in _extend_snapshot method"

10 years agoMerge "Add notifier events to cinder volume rename, reset-state"
Jenkins [Wed, 12 Feb 2014 16:29:02 +0000 (16:29 +0000)]
Merge "Add notifier events to cinder volume rename, reset-state"

10 years agoCheck type argument on create from source and snap
john-griffith [Mon, 10 Feb 2014 21:42:43 +0000 (14:42 -0700)]
Check type argument on create from source and snap

Currently the create from snap and create from source
options will set the volume-type when specified in the
create call.

This is actually wrong, because clone and create from snap
MUST be performed on the same backend as the parent volume.  The
result is that if the specified type doesn't match the specs for
it's parent, and actually needs to be on a different backend
the new volume will "appear" to have the correct type, but it's
actually invalid.

The --volume-type argument should be rejected when --source-volid
or --snapshot-id are used, and the parent type-id just picked up
and used.  Then the user can retype if desired.

Auto failing this strictly causes backward compatability issues though
so we'll just check for a mismatch and raise an exception in that case.
This way if the user knows what they're doing and they're explicit
in the command we still allow it and things are fine.

Change-Id: Ia822cfe48a948045ccea6533bcf92e68ed97ef37
Closes-Bug: 1276787

10 years agoRename Openstack to OpenStack
tanlin [Wed, 12 Feb 2014 07:54:03 +0000 (15:54 +0800)]
Rename Openstack to OpenStack

Change-Id: I074a734cc7bd5db60aeb08a42a4f36432b6f3163

10 years agoMerge "Fix LVM migrate_volume tests"
Jenkins [Wed, 12 Feb 2014 07:40:30 +0000 (07:40 +0000)]
Merge "Fix LVM migrate_volume tests"

10 years agoMerge "Dont set error_extending status on API extend call"
Jenkins [Wed, 12 Feb 2014 07:30:19 +0000 (07:30 +0000)]
Merge "Dont set error_extending status on API extend call"

10 years agoRemoved unused context in _extend_snapshot method
ling-yun [Wed, 12 Feb 2014 02:02:54 +0000 (10:02 +0800)]
Removed unused context in _extend_snapshot method

Input parameter 'context' of _extend_snapshot method in
cinder/api/extended_snapshot_attributes.py is not being used, so remove
this 'context' parameter.

Change-Id: I8577e3938d5ed5bfb143a605320063a6b17c3be0
Closes-bug: #1279146

10 years agoMerge "Storwize/SVC: Check wwpn not None"
Jenkins [Tue, 11 Feb 2014 21:44:47 +0000 (21:44 +0000)]
Merge "Storwize/SVC: Check wwpn not None"

10 years agoStorwize/SVC: Check wwpn not None
Avishay Traeger [Tue, 11 Feb 2014 20:34:24 +0000 (22:34 +0200)]
Storwize/SVC: Check wwpn not None

If the storage doesn't have WWPN information for a host but gets it in
the connector, initialize_connection can fail because it does
wwpn.lower(), and wwpn can be None. Make sure it isn't before calling
lower().

Change-Id: I9923f5c87a1e596e35116bfcbf08c181b75bba35
Closes-bug: 1279061

10 years agoMerge "Remove tox locale overrides"
Jenkins [Tue, 11 Feb 2014 19:52:50 +0000 (19:52 +0000)]
Merge "Remove tox locale overrides"

10 years agoMerge "New HP LeftHand array iSCSI driver"
Jenkins [Tue, 11 Feb 2014 19:39:55 +0000 (19:39 +0000)]
Merge "New HP LeftHand array iSCSI driver"

10 years agoChanges to cast variable as integer as XML API fails.
Glenn M. Gobeli [Tue, 11 Feb 2014 18:03:13 +0000 (13:03 -0500)]
Changes to cast variable as integer as XML API fails.

Code change to ensure that the type of the size variable is correct
when cinder is invoked through XML API. The extend volume code path
differs from volume create where the flow portion verifies that the
size variable is an integer; for extend the earliest place to cast
the size variable is in volume_actions.py.

Change-Id: Iaaed463f988769b8093604cd3b677b270dd2c5cd
Closes-bug: 1277233

10 years agoMerge "Storwize/SVC: Fix races in host-related functions"
Jenkins [Tue, 11 Feb 2014 13:11:57 +0000 (13:11 +0000)]
Merge "Storwize/SVC: Fix races in host-related functions"

10 years agoCeph backup driver tidyup
Edward Hope-Morley [Thu, 6 Feb 2014 11:06:02 +0000 (11:06 +0000)]
Ceph backup driver tidyup

Fixed typos and cleaned up log messages and docstrings.

Closes-Bug: 1276969
Change-Id: Idb1ba4f3315edb76fefc993b38b0590b4794345b

10 years agoMove create_, remove_ and ensure_export from drivers
Ann Kamyshnikova [Tue, 27 Aug 2013 12:17:25 +0000 (16:17 +0400)]
Move create_, remove_ and ensure_export from drivers

create_export, remove_export, ensure_export are almost the same in
LVM and BlockDevice drivers. So they should be moved to
a common cinder.volume.iscsi module.

Change-Id: Id7aa0e10d6b346356312416aee179a1fe8bacef1

10 years agoMerge "Add method for unit tests to set logging level"
Jenkins [Tue, 11 Feb 2014 09:07:47 +0000 (09:07 +0000)]
Merge "Add method for unit tests to set logging level"

10 years agoMerge "Move clear_volume back to it's own method"
Jenkins [Tue, 11 Feb 2014 09:07:39 +0000 (09:07 +0000)]
Merge "Move clear_volume back to it's own method"

10 years agoMerge "Fixes cinder failed to create/restore a backup with NFS driver"
Jenkins [Tue, 11 Feb 2014 08:03:19 +0000 (08:03 +0000)]
Merge "Fixes cinder failed to create/restore a backup with NFS driver"

10 years agoMerge "Implement retype in SolidFire driver"
Jenkins [Tue, 11 Feb 2014 07:56:17 +0000 (07:56 +0000)]
Merge "Implement retype in SolidFire driver"

10 years agoMerge "Remove SSH code from 3PAR drivers"
Jenkins [Tue, 11 Feb 2014 00:30:08 +0000 (00:30 +0000)]
Merge "Remove SSH code from 3PAR drivers"

10 years agoNew HP LeftHand array iSCSI driver
Jim Branen [Tue, 7 Jan 2014 00:14:35 +0000 (16:14 -0800)]
New HP LeftHand array iSCSI driver

This driver is intended to replace the current OpenStack Block
Storage HP LeftHand (LH) StoreVirtual iSCSI Driver,
(cinder.volume.drivers.san.HpSanISCSIDriver), by moving the
existing SSH interface into the new driver to maintain backwards
compatibility, and add the new LH REST interface for new driver
features.

We have the driver broken into 3 files:
hp_lefthand_iscis.py (common interface)
hp_lefthand_cliq_proxy.py (old SSH interface)
hp_lefthand_rest_proxy.py (new REST interface)

The reason we are doing this is because the SSH interface on LH
array has connections and performance limitations. These problems
will be resolved by moving to the new LH OS REST interface. Also,
new LeftHand array capabilities will only be supported in the
REST(hplefthandclient) interface.

To support new driver capabilities (create cloned volume), the
python REST client (hplefthandclient) is required and can be
downloaded from the pypi repository:
  http://pypi.python.org/pypi/hplefthandclient.
This REST client requires LeftHand firmware version 11.5 or
greater.

The SSH interface will be phased out over time.

Driver cert test results;
Related-Bug: 1276809

Closes-Bug: 1277339

DocImpact: Document new driver configuration.

Implements blueprint lefthand-cinder-driver

Change-Id: Id557cab69022c3f7851be14cd82bdab0e4157e55

10 years agoGlusterFS: Fix create/restore backup
Eric Harney [Fri, 7 Feb 2014 17:58:35 +0000 (12:58 -0500)]
GlusterFS: Fix create/restore backup

Allow create_backup for GlusterFS volumes, but
only when snapshots do not exist.  (For now.)

Restore is a no-op for the driver, so allow it.

Related-Bug: 1247743
Closes-Bug: 1275977

Change-Id: I50b8f6cac684c967c7374bb43247a396ce936157

10 years agoAllow operators to customize max header size
Florent Flament [Fri, 17 Jan 2014 10:54:27 +0000 (10:54 +0000)]
Allow operators to customize max header size

HTTP messages max header line size has been increased from 8K to 16K
by default to allow using tokens including up to 14-15 catalog
entries.  The same issue
(https://bugs.launchpad.net/swift/+bug/1190149) may occur again in
the future, if keystone's catalog grows further.

Allowing operators to customize the max header size, will allow them
to have Cinder working whatever the size of the catalog (if the option
is properly set).

Change-Id: Iac269d96fadc96c1e9383dc03422f2d87196dd9d
Related-Bug: #1190149
DocImpact

10 years agoFixup persistence file not found on tgt remove
John Griffith [Mon, 10 Feb 2014 05:21:18 +0000 (05:21 +0000)]
Fixup persistence file not found on tgt remove

After commit: beecd769af02ba5915be827d28a7b46d970e41b0
we're experiencing a race in the tempest gating tests.

It appears that there are certain cases where a detach
and a delete call can overlap causing a race in the
remove_iscsi_target method.  The result is that when
the slower method gets around to the final removal of
the persistence file it's no longer there, so we
hit an unhandled exception.

This patch does two things:
1. It adds the volume lock to the detach_volume
method in the manager (already in place for delete).
This should mitigate the race and allow us to avoid it.

2. In the iscsi_remove_target method check if the
persist file has already been removed when we get
to the last check.  The fact is that if it was somehow
removed before we got here we don't really care, we're
just going to delete it anyway.

Change-Id: Ied45e1a66c8fb79c95ada66f8c59bd2839e200ad
Closes-Bug: 1277362

10 years agoRemove tox locale overrides
Jeremy Stanley [Mon, 10 Feb 2014 02:57:24 +0000 (02:57 +0000)]
Remove tox locale overrides

* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Ib970a2d3cf62619378792d295b4e2e7216e05181
Closes-Bug: #1277495

10 years agoAdd method for unit tests to set logging level
Bill Owen [Sun, 9 Feb 2014 21:46:50 +0000 (14:46 -0700)]
Add method for unit tests to set logging level

Implements: blueprint cinder-testcase-set-loglevel
Change-Id: Id4bb7023659eda593cc5ac451aa580f68a1a6b9d

10 years agoStorwize/SVC: Fix races in host-related functions
Avishay Traeger [Sat, 8 Feb 2014 20:59:58 +0000 (22:59 +0200)]
Storwize/SVC: Fix races in host-related functions

In the Storwize/SVC driver, initialize_connection checks if a host
object exists on the storage, and if not, creates one. Similarly,
terminate_connection checks if there are any more mappings for this
host, and deletes the host object if there are none. Consequently, there
exist races between two initialize_connection calls, two
terminate_connection calls, or one and one.

The easy solution here is to use locks. Because locks are files on the
local machine, this implies that all cinder-volume processes managing a
given Storwize/SVC contoller run on the same machine.

Change-Id: I62cd992e7150e7d16f1a2b2be6ef61c64b638858
Closes-Bug: #1274123

10 years agoFix cinder-backup volume restore with ceph driver
Edward Hope-Morley [Thu, 6 Feb 2014 13:06:44 +0000 (13:06 +0000)]
Fix cinder-backup volume restore with ceph driver

Restore operations currently break if restoring to
the backup source volume, that volume is an rbd and
the associated backup was incremental.

Change-Id: Ieafe6ab2d1a15cad2b534a3aab0df29eb8591306
Closes-Bug: 1276977

10 years agoMerge "Brick fix BrickException message formatting"
Jenkins [Sat, 8 Feb 2014 05:04:21 +0000 (05:04 +0000)]
Merge "Brick fix BrickException message formatting"

10 years agoDont set error_extending status on API extend call
john-griffith [Sat, 8 Feb 2014 04:55:22 +0000 (21:55 -0700)]
Dont set error_extending status on API extend call

Recent change (Ifd523ac5e9039861cf87711dc5c4842b5cb524c2)
moved the quota check on extend_volume to the API layer
in order to provide feedback to caller if the quota check
failed.

The problem is that change still sets the volume status to
error_extending if the quota check fails.  There's no reason
to do this if we're now giving immediate feedback that the call
failed.

I'm also unclear on what the purpose of adding the reservations
to the rpc call are, but I'll double check on that before changing.

This patch leaves most of the previous change in place but
removes the setting of error_extending to the volumes status
on the quota fail.

Change-Id: I8521c876b8d5c344713f211fa0c8c0c58a12a879

10 years agoMerge "Fix misspellings in cinder"
Jenkins [Sat, 8 Feb 2014 04:16:15 +0000 (04:16 +0000)]
Merge "Fix misspellings in cinder"

10 years agoFix misspellings in cinder
Shane Wang [Fri, 7 Feb 2014 06:45:43 +0000 (14:45 +0800)]
Fix misspellings in cinder

Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I4780a9cdd4a2aff5a3dbc55c87e93b0972d907db
Closes-Bug: #1257295

10 years agoFixes cinder failed to create/restore a backup with NFS driver
Jeff Applewhite [Thu, 30 Jan 2014 19:11:08 +0000 (14:11 -0500)]
Fixes cinder failed to create/restore a backup with NFS driver

The action cinder backup-create fails when trying to backup a newly
created volume when using cinder.volume.drivers.nfs.NfsDriver. This
patch removes not implemented stubs for backup_volume and
restore_volume. The inherited methods in cinder/volume/driver.py
succeed in creating a backup and in restoring it. After manual
testing of this change backups/restores succeed without the not
implemented stubs. This change also adds the not implemented
stubs to the glusterfs driver until a fix is submitted.

Closes-Bug: #1247743

Change-Id: I5478d00442ce855c91a7f04c5ba2b40733d44902

10 years agoMerge "Validate the quota in the API layer for volume extend"
Jenkins [Sat, 8 Feb 2014 00:34:21 +0000 (00:34 +0000)]
Merge "Validate the quota in the API layer for volume extend"

10 years agoMerge "Brick connector fix for GlusterFS"
Jenkins [Sat, 8 Feb 2014 00:19:02 +0000 (00:19 +0000)]
Merge "Brick connector fix for GlusterFS"

10 years agoMerge "RBD unit test improvements"
Jenkins [Fri, 7 Feb 2014 23:24:29 +0000 (23:24 +0000)]
Merge "RBD unit test improvements"

10 years agoBrick fix BrickException message formatting
Walter A. Boring IV [Fri, 31 Jan 2014 19:33:17 +0000 (11:33 -0800)]
Brick fix BrickException message formatting

This patch fixes an issue when passing in a
formatting key and value for formatted
text messages for all Brick exceptions.

Added unit tests for brick's exception

Change-Id: I76dcfc6872ca20305d1844162dd0ae28c4bb565c
Related-Bug: 1238085

10 years agoMerge "Rename self.tgtadm to self.target_helper"
Jenkins [Fri, 7 Feb 2014 16:39:28 +0000 (16:39 +0000)]
Merge "Rename self.tgtadm to self.target_helper"

10 years agolvm: unhandled exception when migrating volume
git-harry [Fri, 7 Feb 2014 13:37:59 +0000 (13:37 +0000)]
lvm: unhandled exception when migrating volume

Catches the StopIteration exception if the destination volume group
does not exist when attempting to migrate a volume.

Change-Id: I0b5dd15e4c7198fe54abf1aa917a60554adcd568
Closes-Bug:  #1277512

10 years agoImplement retype in SolidFire driver
John Griffith [Thu, 6 Feb 2014 06:33:58 +0000 (23:33 -0700)]
Implement retype in SolidFire driver

This just adds the ability to modify the
type of an existing SolidFire volume to
another type suppported on the same backend.

Main use case for this is changing QoS settings
for a volume on-demand.

Also updates the internal attributes to store the
deltas between the old-type and new-type.

Change-Id: I65a4c34cbec17d0f3987c1d964e6ad1bafea3601
Implements: blueprint retype-support-for-solidfire-driver

10 years agoMerge "Don't use shred for volume_clear=zero"
Jenkins [Fri, 7 Feb 2014 02:53:30 +0000 (02:53 +0000)]
Merge "Don't use shred for volume_clear=zero"

10 years agoMerge "Add time_type dictionary to test_migrations"
Jenkins [Fri, 7 Feb 2014 02:43:57 +0000 (02:43 +0000)]
Merge "Add time_type dictionary to test_migrations"

10 years agoValidate the quota in the API layer for volume extend
Vincent Hou [Wed, 8 Jan 2014 07:52:54 +0000 (02:52 -0500)]
Validate the quota in the API layer for volume extend

The user needs a friendly message feedback if the quota exceeds when
the volume is about to extend.

Change-Id: Ifd523ac5e9039861cf87711dc5c4842b5cb524c2
Closes-Bug: #1256763