]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Replace os.unlink with delete_if_exists"
Jenkins [Thu, 15 Aug 2013 13:34:17 +0000 (13:34 +0000)]
Merge "Replace os.unlink with delete_if_exists"

11 years agoMerge "Tidy up the SSH call to avoid injection attacks for HP's driver"
Jenkins [Thu, 15 Aug 2013 13:34:15 +0000 (13:34 +0000)]
Merge "Tidy up the SSH call to avoid injection attacks for HP's driver"

11 years agoMerge "Raise exception when Glance metadata not found."
Jenkins [Thu, 15 Aug 2013 06:26:58 +0000 (06:26 +0000)]
Merge "Raise exception when Glance metadata not found."

11 years agoReplace os.unlink with delete_if_exists
John Griffith [Thu, 15 Aug 2013 02:06:05 +0000 (20:06 -0600)]
Replace os.unlink with delete_if_exists

Shouldn't care when doing unlink on our temp files
if they exist or not.  In fact this causes problems
when you do things like with tempfile/dir and happen
to try and unlink after it's already been removed.

This replaces these calls with the safer
common.fileutils.delete_if_exists which will
ignore the os exception of the object DNE.

Fixes bug: 1212502

Change-Id: Ica86c95f736411da486335aec5512e59247bfbc0

11 years agoMerge "Fixes some unseen flake8 violations."
Jenkins [Wed, 14 Aug 2013 14:49:16 +0000 (14:49 +0000)]
Merge "Fixes some unseen flake8 violations."

11 years agoMerge "Add tests for cinder/brick/initiator/connector"
Jenkins [Wed, 14 Aug 2013 14:49:06 +0000 (14:49 +0000)]
Merge "Add tests for cinder/brick/initiator/connector"

11 years agoMerge "Fixes docstring formats in connector.py."
Jenkins [Wed, 14 Aug 2013 10:06:43 +0000 (10:06 +0000)]
Merge "Fixes docstring formats in connector.py."

11 years agoAdd tests for cinder/brick/initiator/connector
Yuzlikeev Eduard [Wed, 14 Aug 2013 08:40:33 +0000 (12:40 +0400)]
Add tests for cinder/brick/initiator/connector

Add additional tests for ISCSIConnector.connect_volume
Fixed and added tests for InitiatorConnector.

Change-Id: Ice1b89637476609532f97d0802b7bd6647299909

11 years agoMerge "Add unit tests for cinder/api/contrib/quotas"
Jenkins [Wed, 14 Aug 2013 06:32:45 +0000 (06:32 +0000)]
Merge "Add unit tests for cinder/api/contrib/quotas"

11 years agoMerge "Added glance_request_timeout config option."
Jenkins [Wed, 14 Aug 2013 06:32:42 +0000 (06:32 +0000)]
Merge "Added glance_request_timeout config option."

11 years agoTidy up the SSH call to avoid injection attacks for HP's driver
Haomai Wang [Thu, 18 Jul 2013 15:05:43 +0000 (23:05 +0800)]
Tidy up the SSH call to avoid injection attacks for HP's driver

Let the command and arguments form up a list and avoid the extra arguments
attackers inserted to the command string.

And modify the interface of _cli_run, there is no need for a extra argument.

fix bug 1192971
Change-Id: Iff6a3ecb64feccae1b29164117576cab9943200a

11 years agoMerge "Adding the -online option to the 3PAR clone"
Jenkins [Wed, 14 Aug 2013 05:37:09 +0000 (05:37 +0000)]
Merge "Adding the -online option to the 3PAR clone"

11 years agoMerge "tox.ini: Change sitepackages to False"
Jenkins [Wed, 14 Aug 2013 04:46:25 +0000 (04:46 +0000)]
Merge "tox.ini: Change sitepackages to False"

11 years agoMerge "Interprete scoped key as nested tags"
Jenkins [Wed, 14 Aug 2013 04:27:23 +0000 (04:27 +0000)]
Merge "Interprete scoped key as nested tags"

11 years agoRaise exception when Glance metadata not found.
Zhiteng Huang [Tue, 13 Aug 2013 04:57:17 +0000 (12:57 +0800)]
Raise exception when Glance metadata not found.

It'd be better to raise exception when trying to copy Glance metadata
from source (volume/snapshot) to destination (volume/snapshot) rather
than silent failure, which is exactly the reason there's unspotted error
inside glance_meta unittest but it was able to pass.
With this fix, one should _not_ directly call glance_metadata_copy()
without looking at source's bootable flags.  This patch also refactors
_create_volume_from_snapshot() and _create_from_source_volume() to only
do Glance metadata copy when needed (bootable is True).

Fix bug: 1211632

Change-Id: I28f065e21cf24c81f98b00e171fcbe4f64ec76b6

11 years agoMerge "Fixes volume clone from volume"
Jenkins [Wed, 14 Aug 2013 03:49:08 +0000 (03:49 +0000)]
Merge "Fixes volume clone from volume"

11 years agoMerge "Ignore purge_props for v2 Glance api and fix upload"
Jenkins [Wed, 14 Aug 2013 03:43:52 +0000 (03:43 +0000)]
Merge "Ignore purge_props for v2 Glance api and fix upload"

11 years agoMerge "Add support for API message localization"
Jenkins [Wed, 14 Aug 2013 03:43:46 +0000 (03:43 +0000)]
Merge "Add support for API message localization"

11 years agoInterprete scoped key as nested tags
XueChendi [Mon, 12 Aug 2013 16:25:43 +0000 (00:25 +0800)]
Interprete scoped key as nested tags

Current codes in xml_util.py does not support REST xml
so well when one tagname contains delimiter, it fails
to be interpreted. So this patch is to interprete one
tagname like "<a:b>1</a:b>" as a nested tag like
"<a><b>1</a></b>".

Fix bug:1205983

Change-Id: Ia3e1f4d6b6a739898b51bf052a784fa36ab7695e

11 years agoAdding the -online option to the 3PAR clone
Kurt Martin [Tue, 13 Aug 2013 20:51:15 +0000 (13:51 -0700)]
Adding the -online option to the 3PAR clone

The 3PAR drivers had to wait while the clone was being performed
and this would take a considerable amount of time for large volumes.
This patch takes advantage of the 3PAR backend by using the -online
option in the command that we were calling to perform the copy. This
allows us to remove the sleep in the driver. Using the -online
option forced us to change some of the delete_volume code because
the 3PAR backend will not allow a volume that was copied to be added
to a virtual volume set.

DocImpact

Change-Id: I47d72063c858e2eee10756be4f74febdd1603179
Fixes: bug 1208586
11 years agoMerge "Fix signature of _create_volume() in ThinLVMVolumeDriver"
Jenkins [Tue, 13 Aug 2013 19:18:44 +0000 (19:18 +0000)]
Merge "Fix signature of _create_volume() in ThinLVMVolumeDriver"

11 years agoFixes some unseen flake8 violations.
Walter A. Boring IV [Tue, 13 Aug 2013 18:53:06 +0000 (11:53 -0700)]
Fixes some unseen flake8 violations.

The failures aren't visible when run from
cinder.  Nova has different settings for
flake8.  This patch fixes the violations
that nova's flake8 tests.

fixes Bug #1211935

Change-Id: I80209130de23842a0a35cacb7d59f166e7dba89f

11 years agoMerge "Merge from oslo-incubator for notifier"
Jenkins [Tue, 13 Aug 2013 17:42:57 +0000 (17:42 +0000)]
Merge "Merge from oslo-incubator for notifier"

11 years agoFixes volume clone from volume
Edward Hope-Morley [Tue, 13 Aug 2013 17:09:45 +0000 (18:09 +0100)]
Fixes volume clone from volume

Cloning a volume from another volume appeared
to have been broken by new create_volume
taskflow. Clone from snapshot was not affected.

Also added a unit test this scenario.

Change-Id: I4f174e1616f6944cce64f8d522fa42a9f00f55eb
Fixes: bug #1211709
11 years agoFixes docstring formats in connector.py.
Dietmar Noll [Tue, 13 Aug 2013 17:02:36 +0000 (10:02 -0700)]
Fixes docstring formats in connector.py.

Docstrings should now comply with HACKING.rst

Change-Id: Ia75ee0e4ceb32f312a2dc7e3c89379b5f2708767
Fixes: bug #1211861
11 years agoMerge "Clone_image method added image_id as parameter."
Jenkins [Tue, 13 Aug 2013 16:37:43 +0000 (16:37 +0000)]
Merge "Clone_image method added image_id as parameter."

11 years agoMerge "Fixes files with wrong bitmode"
Jenkins [Tue, 13 Aug 2013 15:25:23 +0000 (15:25 +0000)]
Merge "Fixes files with wrong bitmode"

11 years agoMerge "Fix handling ImageUnacceptable in create_volume"
Jenkins [Tue, 13 Aug 2013 14:11:19 +0000 (14:11 +0000)]
Merge "Fix handling ImageUnacceptable in create_volume"

11 years agoFixes files with wrong bitmode
Zhongyue Luo [Tue, 13 Aug 2013 12:11:49 +0000 (20:11 +0800)]
Fixes files with wrong bitmode

Some modules have bitmode 755. Changed to 644

Change-Id: I6a968f465b3767cfd9cbf0d425cb7b5738b138bb

11 years agoAdd unit tests for cinder/api/contrib/quotas
Elena Ezhova [Mon, 12 Aug 2013 12:59:06 +0000 (16:59 +0400)]
Add unit tests for cinder/api/contrib/quotas

Add tests for serializator in QuotaTemplate class

Add tests for the following functions in QuotaSetsController class:
    -show
    -update
    -defaults

Change-Id: I615440277a54140eb245651d87a225231151083a

11 years agoMerge "remove Brick deps on cinder.exception"
Jenkins [Mon, 12 Aug 2013 21:09:51 +0000 (21:09 +0000)]
Merge "remove Brick deps on cinder.exception"

11 years agoMerge "Remove Brick iser dependency on cinder"
Jenkins [Mon, 12 Aug 2013 21:07:35 +0000 (21:07 +0000)]
Merge "Remove Brick iser dependency on cinder"

11 years agoMerge "Move resource usage sync functions to db backend"
Jenkins [Mon, 12 Aug 2013 19:08:21 +0000 (19:08 +0000)]
Merge "Move resource usage sync functions to db backend"

11 years agoremove Brick deps on cinder.exception
Walter A. Boring IV [Thu, 8 Aug 2013 22:50:22 +0000 (15:50 -0700)]
remove Brick deps on cinder.exception

This patch removes more cinder.exception
dependencies from brick.  This involves
moving some exceptions into brick's
exception module.

Change-Id: I577d403f02c2fd0d727d2694776008e1e9791453

11 years agoRemove Brick iser dependency on cinder
Walter A. Boring IV [Thu, 8 Aug 2013 22:29:54 +0000 (15:29 -0700)]
Remove Brick iser dependency on cinder

This patch removes the brick iser.py's dependency
on cinder exceptions and volume_utils.
This required moving some exceptions out of cinder's
exception.py that the iser.py raises.  Also had
to create a BrickException and refactor existing
brick exceptions to use the new BrickException model.

Fixes Bug #1210312

Change-Id: I672375807fed4952e5321fbcd9b57b9ef369f68f

11 years agoMerge "Upgrade Scality driver to match minimum features"
Jenkins [Mon, 12 Aug 2013 17:12:59 +0000 (17:12 +0000)]
Merge "Upgrade Scality driver to match minimum features"

11 years agoFix handling ImageUnacceptable in create_volume
Jay S. Bryant [Mon, 12 Aug 2013 16:46:06 +0000 (11:46 -0500)]
Fix handling ImageUnacceptable in create_volume

In the create_volume flow ImageUnacceptable exceptions are
not properly handled.  _copy_image_to_volume can receive an
ImageUnacceptable exception from copy_image_to_volume if fetch_to_raw
is used.  Currently the ImageUnacceptable exception is changed to
a generic ImageCopyFailure exception which does not make the cause
of the excpetion clear.

This change adds handling and raising ImageUnacceptable exceptions
in _copy_image_to_volume.  It also adds the exception to
no_reschedule_types as it doesn't make sense to keep retrying the
copy if the image was found to be unacceptable.

fixes bug 1209021

Change-Id: I9aacf23dfaaa1a4df0a869d1c9544c376488f01b

11 years agoMerge "Fix ratelimiting"
Jenkins [Mon, 12 Aug 2013 12:35:40 +0000 (12:35 +0000)]
Merge "Fix ratelimiting"

11 years agoMerge from oslo-incubator for notifier
Andreas Jaeger [Mon, 12 Aug 2013 09:29:11 +0000 (11:29 +0200)]
Merge from oslo-incubator for notifier

Goal: merge oslo-incubator change
I282d4ae3311bc3fcda6be8e5a1fceecfc8ddb115

Done via:
python update.py --nodeps --base cinder --dest-dir ../cinder \
 --modules notifier

Change-Id: I0cb982b3b45eb63941f9bfe5407c93af280c452a

11 years agoUse native methods for list manipulation
Zhongyue Luo [Mon, 12 Aug 2013 02:41:59 +0000 (10:41 +0800)]
Use native methods for list manipulation

It's better to append a item to a list rather than creating a list instance
and extending it. Also the list class has its native method for extension.

Change-Id: If492c35822cd7d83b509692c2226612e565204d3

11 years agoMerge "Add support for volume cloning to Nexenta driver"
Jenkins [Sun, 11 Aug 2013 17:54:56 +0000 (17:54 +0000)]
Merge "Add support for volume cloning to Nexenta driver"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 11 Aug 2013 05:57:23 +0000 (05:57 +0000)]
Merge "Imported Translations from Transifex"

11 years agoFix signature of _create_volume() in ThinLVMVolumeDriver
Eric Harney [Sat, 10 Aug 2013 20:12:59 +0000 (16:12 -0400)]
Fix signature of _create_volume() in ThinLVMVolumeDriver

create_volume_from_snapshot will call _create_volume() with the
wrong parameters when using ThinLVMVolumeDriver.  It should be
compatible with LVMVolumeDriver's _create_volume() method.

Fixes bug: 1210853

Change-Id: I18f7baf60601b3bcf01425b505a0579a826f072e

11 years agoAdd H233 to ignores in tox.ini
John Griffith [Sat, 10 Aug 2013 18:24:56 +0000 (12:24 -0600)]
Add H233 to ignores in tox.ini

The auto-pull of updated libs added to devstack
will result in the python 3.3 print checks being
added which we're not ready for.

Temporarily add this to our tox.ini ignore list
until we have a chance to go through and fix these.

Change-Id: Ie6e0e28433e9b1240b94ed4a323a97a85e475a17

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 10 Aug 2013 18:10:31 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I309dc017cb888a77a531dd7e01b6574fb0a345e5

11 years agoAdd support for volume cloning to Nexenta driver
Victor Rodionov [Thu, 1 Aug 2013 14:43:37 +0000 (18:43 +0400)]
Add support for volume cloning to Nexenta driver

This patch implements missing functionality for Havana.

Change-Id: I39d838e955f25b8438a24f6aff5ec97fb3c14e4b

11 years agoMerge "Fix the multi-backend storge issue for ZMQ."
Jenkins [Sat, 10 Aug 2013 05:42:55 +0000 (05:42 +0000)]
Merge "Fix the multi-backend storge issue for ZMQ."

11 years agoFix ratelimiting
Seif Lotfy [Fri, 9 Aug 2013 13:37:38 +0000 (13:37 +0000)]
Fix ratelimiting

Current master does now respect ratelimiting, since parsing of the
api-paste.ini was faulty. api-paste.ini limited user limiting by
setting a line as follows:
user:<user-id>:(GET, *, ".*", 4, minute) which was passed to the
Limiter as kwargs with "user" as a key. Thus multiple user limiting
was not possible as well as extracting the id of the user was bound
to fail, since we checked on the key with startswith("user:")

An example config in the api-paste.ini has to look as follows:
limits = (POST, "*", .*, 10, MINUTE)
limits.<user-id1>:(GET, "*", .*, 4, minute)
limits.<user-id2>:(GET, "*", .*, 2, minute)

Fixes bug: 1206976

Change-Id: I4adbe3dbe3a0bd607d6e675f230b0442b08ec791

11 years agoUpgrade Scality driver to match minimum features
Jean-Marc Saffroy [Thu, 8 Aug 2013 18:49:28 +0000 (20:49 +0200)]
Upgrade Scality driver to match minimum features

The Scality driver needs an upgrade to match minimum features:
- Havana: Clone Volume
- Icehouse: Extend Volume

Also, some features (Copy Image to Volume, Copy Volume to Image) already work but need automated tests.

Change-Id: Iac5ac2c58fd5ce62823f829a0a014decb4ad4958
Fixes: bug 1210240
11 years agoIgnore purge_props for v2 Glance api and fix upload
Edward Hope-Morley [Fri, 9 Aug 2013 12:06:46 +0000 (13:06 +0100)]
Ignore purge_props for v2 Glance api and fix upload

The V2 Glance API image schema does not contain
purge_props. While this may be a bug in Glance,
we will ignore this property in cinder when
glance_api_version=2. This will not change behaviour
since Glance defaults this property to True, Cinder
never sets it to False and the v2 client appears to
ignore it anyway.

Also fixed image upload which is a seperate client
call to update in v2 (v1 update does both).

Change-Id: I0ba1d7d920984cface57795ace160ec300ff75e2
Fixes: bug #1210467
11 years agoMerge "3PAR drivers creating incorrect comment data"
Jenkins [Fri, 9 Aug 2013 06:47:38 +0000 (06:47 +0000)]
Merge "3PAR drivers creating incorrect comment data"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 9 Aug 2013 06:04:05 +0000 (06:04 +0000)]
Merge "Imported Translations from Transifex"

11 years agoAdd support for API message localization
Luis A. Garcia [Mon, 8 Jul 2013 23:11:05 +0000 (23:11 +0000)]
Add support for API message localization

Add support for doing language resolution for a request, based on the
Accept-Language HTTP header.

Using the lazy gettext functionality from oslo gettextutils, it is now
possible to use the resolved language to translate an exception message
to the user requested language and return that translation from the API.

Partially implements bp user-locale-api

Change-Id: Ib2c8360372996d53b50542df54a52d92b07295ca

11 years agoMerge "Ignore stmf target must be offline exception"
Jenkins [Fri, 9 Aug 2013 04:12:17 +0000 (04:12 +0000)]
Merge "Ignore stmf target must be offline exception"

11 years agoMerge "Add minimum features in HDS driver (for Havana & Icehouse)"
Jenkins [Thu, 8 Aug 2013 21:56:34 +0000 (21:56 +0000)]
Merge "Add minimum features in HDS driver (for Havana & Icehouse)"

11 years ago3PAR drivers creating incorrect comment data
Kurt Martin [Thu, 8 Aug 2013 21:14:56 +0000 (14:14 -0700)]
3PAR drivers creating incorrect comment data

The 3PAR volumes created from a shapshot had incorrect comment data
that gets added in the comment section of the volumes on the backend.
This patch fixes the display name and description by getting the correct
data when the volume is created. This patch also fixes the inconsistency
in how the keys (name vs. display_name) were used in the comments.

Change-Id: I61af8ceb08d862f2b9dea2d9bb44c803e0b75a10
Fixes: bug 1210245
11 years agoMerge "Refactoring of create_volume to use taskflow."
Jenkins [Thu, 8 Aug 2013 18:54:08 +0000 (18:54 +0000)]
Merge "Refactoring of create_volume to use taskflow."

11 years agoMerge "Set lock_path in tests"
Jenkins [Thu, 8 Aug 2013 18:45:43 +0000 (18:45 +0000)]
Merge "Set lock_path in tests"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 8 Aug 2013 18:10:40 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ib68f2c11e8eac9002407b5bfc2f07547620acd98

11 years agoMerge "Use utils.safe_minidom_parse_string in extensions"
Jenkins [Thu, 8 Aug 2013 16:07:54 +0000 (16:07 +0000)]
Merge "Use utils.safe_minidom_parse_string in extensions"

11 years agoUse utils.safe_minidom_parse_string in extensions
Thierry Carrez [Thu, 8 Aug 2013 10:13:52 +0000 (12:13 +0200)]
Use utils.safe_minidom_parse_string in extensions

Use utils.safe_minidom_parse_string in extensions that were still
using potentially-unsafe minidom.

Fixes bug 1190229

Change-Id: I43afb2e188bbea99ea30fe6cb2eb1aeedc4ddfd4

11 years agoMove resource usage sync functions to db backend
Sergey Skripnick [Wed, 10 Jul 2013 08:55:24 +0000 (11:55 +0300)]
Move resource usage sync functions to db backend

Resource usage sync functions was declared in cinder/quota.py, and
using db.api public methods. This functions was moved to database
backend implementation, so now sync functions can use private
methods of database backend, and session attribute can be removed
from this public methods.

Blueprint: db-session-cleanup

Change-Id: If5386e3dc1e0d6e3127732aeb5b35bbd96bc93f0

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 8 Aug 2013 06:11:09 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I857c5d49cf1dc44f902952a15a3b2abeff70dd99

11 years agoRefactoring of create_volume to use taskflow.
Joshua Harlow [Thu, 1 Aug 2013 19:08:04 +0000 (12:08 -0700)]
Refactoring of create_volume to use taskflow.

Move the create_volume workflow to using taskflow and
split that workflow into three major pieces (each with
there own workflow) and create tasks that perform the
individual required actions to accomplish the pieces
desired outcome.

1. An api workflow composed of the following tasks:
  - Extracting volume request (which checks types, values) and creates a
    standard output for other tasks to work on (allowing further tasks to be
    plugged in the chain without having to worry about other tasks output
    formats).
  - Quota reservation (rolled back on failure).
  - Database entry creation.
  - Quota committing.
  - Volume RPC casting to volume scheduler or to targeted volume manager.
2. A scheduler workflow composed of the following tasks:
  - Extracting scheduler request specification for further tasks to use.
  - Change status & notify (activated only on failure).
  - Create volume scheduler driver call (which will itself RPC cast to a
    targeted volume manager).
3. A manager workflow composed of the following tasks:
  - Extract volume request specification from incoming request for
    further tasks to use. This also breaks up the incoming request into the 4
    volume types that can be created later.
  - Change status & notify on failure or reschedule on failure, this is
    dependent on if rescheduling is enabled *and* which exception types are
    thrown from the volume creation code.
  - Create volume from specification
    - This contains the code to create from image, create raw volume, create
      from source volume, create from snapshot using the extracted volume
      specification.
  - Change status & notify success.

Key benefits:
  - Handled exceptions in a easier to understand, easier to review and more
    reliable way than they are currently being handled.
  - Rescheduling is now easier to understand.
  - Easier to understand structure with tasks that consume inputs, take some
    action on them and produce outputs and revert on subsequent failure using
    whatever they produced to know how to revert.
  - Ability to add new unit tests that can test individual task actions by
    providing mock task inputs and validating expected task outputs.

Future additions:
  - Eventual addition of resumption logic to recover from operations stopped
    halfway through.
  - Ability to centrally orchestrate the tasks and pick and choice how
    reconciliation of failures based on code or policies.

Part of bp: cinder-state-machine

Change-Id: I96b688511b35014a8c006e4d30b875dcaf409d93

11 years agoAdd minimum features in HDS driver (for Havana & Icehouse)
Lakhinder Walia [Thu, 1 Aug 2013 23:43:45 +0000 (16:43 -0700)]
Add minimum features in HDS driver (for Havana & Icehouse)

* Add create_cloned_volume() api.
* Add extend_volume() api.
* Reorganized some connection state keeping into _loc_info() function.
  Earlier this logic was spread out in various calls.
* New self tests for #1 and #2 above.

Change-Id: I6a88164ee0a427519c7fab6f6a852d46ec46176c
Fixes: bug #1207560
11 years agoMerge "Add test for brick.local_dev.lvm"
Jenkins [Wed, 7 Aug 2013 20:26:50 +0000 (20:26 +0000)]
Merge "Add test for brick.local_dev.lvm"

11 years agoIgnore stmf target must be offline exception
Victor Rodionov [Thu, 1 Aug 2013 20:41:24 +0000 (00:41 +0400)]
Ignore stmf target must be offline exception

Patch to ignore

"NexentaJSONException: : Unable to add member to targetgroup:
    stmfadm: STMF target must be offline"

This error happens when targetgroup is already configured and busy.

fixed bug 1209305

Change-Id: I275dcf465934c99d30f85932fe72e8b1818ef870

11 years agoAdded glance_request_timeout config option.
Edward Hope-Morley [Wed, 31 Jul 2013 16:26:32 +0000 (17:26 +0100)]
Added glance_request_timeout config option.

The glanceclient supports a timeout for http/https
connections but this is not configurable in cinder.
This patch adds a glance_request_timeout
option to cinder.conf. If unset, None is applied thus
allowing glanceclient to use its default value (600).

Change-Id: Ic689ecb5d5ee8257964b341b5a7980d5733343dc
Fixes: bug #1206992
Co-authored-by: Takahiro Shida <shida@intellilink.co.jp>
11 years agoSet lock_path in tests
Ben Nemec [Wed, 7 Aug 2013 15:54:34 +0000 (10:54 -0500)]
Set lock_path in tests

This is required to sync a locking fix from Oslo.

Change-Id: I1f71d7137eab2509a24c5e1397da653142561f10
Related-Bug: 1065531

11 years ago3PAR volumes created from snaps failed to attach
Kurt Martin [Tue, 6 Aug 2013 20:25:36 +0000 (13:25 -0700)]
3PAR volumes created from snaps failed to attach

An error would occur if you attempted to attach a volume that
was created from a snapshot. The 3PAR backends does not have a
'userCPG' entry in the volume data on the backend, it instead
has a 'snapCPG' field. This patch will now look for the 'snapCPG'
entry and use that CPG when attaching the volume created from a
snapshot.

Change-Id: Ic7dab730a68339edb4273e4fbb6f8e45e37808b3
Fixes: bug 1207913
11 years agoMerge "Remove usage of obsolete oslo.exception"
Jenkins [Wed, 7 Aug 2013 11:44:32 +0000 (11:44 +0000)]
Merge "Remove usage of obsolete oslo.exception"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 7 Aug 2013 09:06:12 +0000 (09:06 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Remove locals() from iser"
Jenkins [Wed, 7 Aug 2013 07:15:40 +0000 (07:15 +0000)]
Merge "Remove locals() from iser"

11 years agoMerge "Remove Brick's iscsi dependency on cinder"
Jenkins [Wed, 7 Aug 2013 07:12:04 +0000 (07:12 +0000)]
Merge "Remove Brick's iscsi dependency on cinder"

11 years agoAdd test for brick.local_dev.lvm
Alexander Gorodnev [Tue, 6 Aug 2013 12:31:51 +0000 (08:31 -0400)]
Add test for brick.local_dev.lvm

Add positive and negative tests for LVM.lv_has_snapshot() method

Change-Id: Ibb261365eae97d8e3843ff48f7389f759226d2af

11 years agoMerge "Add support for volume extension to Nexenta Systems volume driver"
Jenkins [Wed, 7 Aug 2013 07:02:10 +0000 (07:02 +0000)]
Merge "Add support for volume extension to Nexenta Systems volume driver"

11 years agoMerge "Create key manager interface"
Jenkins [Wed, 7 Aug 2013 06:41:50 +0000 (06:41 +0000)]
Merge "Create key manager interface"

11 years agoMerge "GPFS Verify min release level for mmclone command"
Jenkins [Wed, 7 Aug 2013 06:41:49 +0000 (06:41 +0000)]
Merge "GPFS Verify min release level for mmclone command"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 7 Aug 2013 06:10:54 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I084e9bcbbd956bc2d7c7e5d6aca8ea5ca7fb535e

11 years agoMerge "Fixes create rbd volume from image v1 glance api"
Jenkins [Wed, 7 Aug 2013 05:48:07 +0000 (05:48 +0000)]
Merge "Fixes create rbd volume from image v1 glance api"

11 years agoRemove Brick's iscsi dependency on cinder
Walter A. Boring IV [Tue, 6 Aug 2013 23:22:24 +0000 (16:22 -0700)]
Remove Brick's iscsi dependency on cinder

This patch removes Brick's iscsi/iscsi.py's
dependence on cinder.  Brick can't contain
cinder dependencies as it will be used in nova.

Fixes Bug #1209012

Change-Id: I046b5a53baecce81ba184cb7f30ec450f4738dae

11 years agoRemove locals() from iser
Walter A. Boring IV [Tue, 6 Aug 2013 21:43:35 +0000 (14:43 -0700)]
Remove locals() from iser

This patch removes the locals() call
to fix a flake8 violation.

Fixes Bug #1209006

Change-Id: Ida4b498544a2c28ffb4912d402579f8bb7372309

11 years agoMove volume_clear and clear_size opts up to driver
John Griffith [Tue, 6 Aug 2013 20:58:02 +0000 (14:58 -0600)]
Move volume_clear and clear_size opts up to driver

The block_device driver pulled in the clear and clear_size
options for it's own use and broke the inheritance model needed
for multiple backend configs.

This change moves the two configs up higher in the heirarchy to
driver.py so that it can be shared/used by all drivers if they desire.

This means that they are now set properly in volume_opts.  At some
point we shoudl restructure this a bit to allow multi-backends to
specify independent settings for these configs.

Fixes bug: 1208964

Change-Id: I6afbdecea637f7e7d3417be537ab71fe97bffda3

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 6 Aug 2013 20:39:39 +0000 (20:39 +0000)]
Merge "Imported Translations from Transifex"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 6 Aug 2013 18:10:32 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ica6a1b2c73bd1827ec77ef7f8e070e3281c5b93f

11 years agoSet the concurrent connections on the 3PAR array
Kurt Martin [Mon, 5 Aug 2013 21:23:52 +0000 (14:23 -0700)]
Set the concurrent connections on the 3PAR array

Currently, the 3PAR backend has a limit to the number of concurrent
connections that can be made to the WS API Server. This patch is
setting this limit to 15 connections, the highest possible.

Change-Id: Ibb8618c2fc896e0164a5f6a151d6a870cd662527

11 years agoCreate key manager interface
Joel Coffman [Tue, 30 Jul 2013 14:06:28 +0000 (10:06 -0400)]
Create key manager interface

This interface provides a thin wrapper around an underlying key
management implementation such as Barbican or a KMIP server. The key
manager interface is used by the volume encryption code to retrieve
keys for volumes.

This change is a copy-paste of the key manager interface accepted by
Nova. The major modifications are to the module imports (i.e.,
nova -> cinder).

Change-Id: I8f79165d66d67ad8faaca60946959c5a61811c59
Implements: blueprint encrypt-cinder-volumes

11 years agoMerge "Sync gettextutils from oslo"
Jenkins [Tue, 6 Aug 2013 09:16:20 +0000 (09:16 +0000)]
Merge "Sync gettextutils from oslo"

11 years agoRemove usage of obsolete oslo.exception
Julien Danjou [Wed, 31 Jul 2013 09:36:08 +0000 (11:36 +0200)]
Remove usage of obsolete oslo.exception

Change-Id: I6f46f90bd74cc26fc01667e467e3dab38037eec3
Closes-Bug: #1208734

11 years agoMerge "Add eclipse project files to .gitignore"
Jenkins [Tue, 6 Aug 2013 08:37:18 +0000 (08:37 +0000)]
Merge "Add eclipse project files to .gitignore"

11 years agoFixes create rbd volume from image v1 glance api
Edward Hope-Morley [Mon, 5 Aug 2013 21:57:09 +0000 (22:57 +0100)]
Fixes create rbd volume from image v1 glance api

The RBD driver supports two methods of image cloning;
thin copy i.e. copy-on-write (requires v2 Glance API)
and full copy (default if v2 Glance API is not available).

clone_image() was failing in the Glance V1 API case because
it was not returning a tuple, as expected by the volume
manager. Glance V2 support works fine.

Fixes: bug #1208617
Change-Id: I2e8605eaacfe8b65bdf47cb6ea40ef62d6f6b895

11 years agoMerge "Add bin directory to flake8 when not in venv"
Jenkins [Tue, 6 Aug 2013 07:39:18 +0000 (07:39 +0000)]
Merge "Add bin directory to flake8 when not in venv"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 6 Aug 2013 07:34:03 +0000 (07:34 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Remove Storage Manager from cinder-manage"
Jenkins [Tue, 6 Aug 2013 07:33:56 +0000 (07:33 +0000)]
Merge "Remove Storage Manager from cinder-manage"

11 years agoMerge "Remove cinder.exception from Brick"
Jenkins [Tue, 6 Aug 2013 06:34:39 +0000 (06:34 +0000)]
Merge "Remove cinder.exception from Brick"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 6 Aug 2013 06:10:49 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I32f1b24bec8c4484799b008a0d24515b094c5072

11 years agoRemove Storage Manager from cinder-manage
Mike Perez [Tue, 6 Aug 2013 05:37:06 +0000 (22:37 -0700)]
Remove Storage Manager from cinder-manage

Removing leftover sm_backend manage code that was missed in the previous
code removal in 40cb16784f920387ef.

Fixes: bug #1207189
Change-Id: I52c44785924f489a85e4b5f947ed9b4adf679dd8

11 years agoMerge "Adding support for iSER transport protocol"
Jenkins [Mon, 5 Aug 2013 21:40:53 +0000 (21:40 +0000)]
Merge "Adding support for iSER transport protocol"

11 years agoRemove cinder.exception from Brick
Walter A. Boring IV [Mon, 29 Jul 2013 23:21:46 +0000 (16:21 -0700)]
Remove cinder.exception from Brick

This patch fixes an issue that made
Brick's connector module dependent on cinder's
exception module.

Adds a new brick exceptions module to store brick
wide exceptions.

fixes bug #1206288

Change-Id: I070d08f07c7bc488b24b0d68531bb2e0a5461422

11 years agoAdd bin directory to flake8 when not in venv
John Griffith [Mon, 5 Aug 2013 19:43:24 +0000 (13:43 -0600)]
Add bin directory to flake8 when not in venv

If doing run_tests.sh -N -p we only check cinder*
This patch adds a directive to also check the files
in bin/

Change-Id: Ia68073e16067df978475db058c9c0693f35df81c