]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoFix incorrect msgstr's to avoid translation errors
Jay S. Bryant [Wed, 21 Aug 2013 21:39:04 +0000 (16:39 -0500)]
Fix incorrect msgstr's to avoid translation errors

There are numerous msgstr's in the cinder.po files for en_US,
en_AU and en_GB that are incorrect translations of the associated
msgid.  It appears that there are a number that are the result of
problems with past fuzzy translations gone wrong and some may also be the
result of copy/paste mistakes.  Regardless of the origin it makes debug and
development very difficult if the string that is coming out in the
logs doesn't match what is expected.  This patch fixes the numerous
bad msgstr's.

Once this commit is merged, Transifex will catch the change to
the Cinder po files and then spin a new Transifex Translations import.

Fixes bug #1209317

Change-Id: Ia78f5ebb4bec996798798bb25ea1b97c47b5e50b

11 years agoMerge "Add accept_transfer to solidfire driver"
Jenkins [Wed, 21 Aug 2013 19:11:13 +0000 (19:11 +0000)]
Merge "Add accept_transfer to solidfire driver"

11 years agoMerge "Added need info to accept_transfer"
Jenkins [Wed, 21 Aug 2013 19:09:13 +0000 (19:09 +0000)]
Merge "Added need info to accept_transfer"

11 years agoMerge "Remove unused methods from cinder.utils"
Jenkins [Wed, 21 Aug 2013 19:07:12 +0000 (19:07 +0000)]
Merge "Remove unused methods from cinder.utils"

11 years agoMerge "Fix Fibre Channel attach for single WWN"
Jenkins [Wed, 21 Aug 2013 16:43:32 +0000 (16:43 +0000)]
Merge "Fix Fibre Channel attach for single WWN"

11 years agoMerge "Update Brick to use executor"
Jenkins [Wed, 21 Aug 2013 16:43:30 +0000 (16:43 +0000)]
Merge "Update Brick to use executor"

11 years agoRemove unused methods from cinder.utils
Vladislav Kuzmin [Mon, 19 Aug 2013 11:37:56 +0000 (15:37 +0400)]
Remove unused methods from cinder.utils

These methods were left over from the split from Nova and are unused still.

Remove methods:
is_valid_ipv4()
make_dev_path()
convert_to_list_dict()
partition_dict()
subset_dict()

Change-Id: Icb36aa6a2d1f607c440a2d524d3480de23d1cb7a

11 years agoMerge "Make the SolidFire driver api port configurable."
Jenkins [Wed, 21 Aug 2013 09:24:35 +0000 (09:24 +0000)]
Merge "Make the SolidFire driver api port configurable."

11 years agoMerge "GPFS support for various volume attributes"
Jenkins [Wed, 21 Aug 2013 06:11:52 +0000 (06:11 +0000)]
Merge "GPFS support for various volume attributes"

11 years agoUpdate Brick to use executor
Walter A. Boring IV [Thu, 15 Aug 2013 17:41:08 +0000 (10:41 -0700)]
Update Brick to use executor

modify existing modules in Brick
to make use of the Executor object,
so we don't replicated the same
set_execute() method everywhere.

Change-Id: Ib0363029557253ad86bae90e1db4fefd24a42df7

11 years agoMerge "Removed need for domain in 3PAR drivers"
Jenkins [Wed, 21 Aug 2013 05:56:25 +0000 (05:56 +0000)]
Merge "Removed need for domain in 3PAR drivers"

11 years agoMerge "Use FakeLoopingCall instead of the real one"
Jenkins [Tue, 20 Aug 2013 19:00:59 +0000 (19:00 +0000)]
Merge "Use FakeLoopingCall instead of the real one"

11 years agoMerge "Add root_helper param to get_connector_properties"
Jenkins [Tue, 20 Aug 2013 16:16:03 +0000 (16:16 +0000)]
Merge "Add root_helper param to get_connector_properties"

11 years agoFix Fibre Channel attach for single WWN
Avishay Traeger [Tue, 20 Aug 2013 15:53:47 +0000 (18:53 +0300)]
Fix Fibre Channel attach for single WWN

The code allowed for only a string of the WWN or a list of them.
Unfortunately unicode is also returned, for which the attach fails.
This patch allows for unicode as well.

Change-Id: I4d2809b41b24b2240e447a5c09f14e6438304cd6
Fixes: bug 1214413
11 years agoMake the SolidFire driver api port configurable.
Paul McMillan [Tue, 20 Aug 2013 00:58:02 +0000 (01:58 +0100)]
Make the SolidFire driver api port configurable.

Making the SolidFire driver api port configurable allows it to be
placed behind a transparent proxy.

Change-Id: I976ecfd5df11797722776faf65777ca1ffa5b0c4

11 years agoAdd accept_transfer to solidfire driver
John Griffith [Fri, 16 Aug 2013 23:21:21 +0000 (17:21 -0600)]
Add accept_transfer to solidfire driver

The SolidFire cluster is tenant aware and as such
needs to change account association on volume transfer.

We use the project_id to build this account, so read that
in here and create a new account if necessary and re-assign
the existing volume to the new tenant account.

Change-Id: I29879714c2d32a982918cd1305c8eb00718795fd

11 years agoAdded need info to accept_transfer
John Griffith [Fri, 16 Aug 2013 23:12:11 +0000 (17:12 -0600)]
Added need info to accept_transfer

Drivers that implement accept_transfer will need
things like the new user_id and project_id.  We were
not including this in the original add, in order for
drivers that are tenant aware this information will be
necessary.

Also the get_volume call in the transfer was using
the new user context, so the volume would never be
found.  We fix this here by providing an elevated
context to the get_volume call when accepting the
transfer.

Change-Id: I7b60c19950f85c4309a97bb842ff238bcf8e746a
Fixes: bug 1213275
11 years agoMerge "Standardize on ID for log messages"
Jenkins [Tue, 20 Aug 2013 09:58:28 +0000 (09:58 +0000)]
Merge "Standardize on ID for log messages"

11 years agoMerge "Reduce hidden effects of sqlalchemy objects"
Jenkins [Tue, 20 Aug 2013 09:43:46 +0000 (09:43 +0000)]
Merge "Reduce hidden effects of sqlalchemy objects"

11 years agoMerge "Allow Cinder to call Nova client"
Jenkins [Tue, 20 Aug 2013 05:12:09 +0000 (05:12 +0000)]
Merge "Allow Cinder to call Nova client"

11 years agoAdd root_helper param to get_connector_properties
Walter A. Boring IV [Fri, 16 Aug 2013 15:18:09 +0000 (08:18 -0700)]
Add root_helper param to get_connector_properties

This patch adds the ability to pass in a custom
root_helper for executing commands.  This is needed
for other projects that need a custom root-wrapper,
such as nova.

fixes Bug #1213135

Change-Id: Ie18276ae2e736bb2276d4e9c57385d2588441428

11 years agoStandardize on ID for log messages
John Griffith [Mon, 19 Aug 2013 21:04:15 +0000 (15:04 -0600)]
Standardize on ID for log messages

We have some places where logs use name to identify
a volume and others where we use ID.  Let's standardize
on the UUID here as that's typically the unique identifier
we use in most places anyway.  Even though name is a
derviative it seems better to be consistent with this
and use the UUID by itself.

Change-Id: Iaee3d146042780e4a526834db1e0be84a705f24b
Fixes: bug 1214140
11 years agoReduce hidden effects of sqlalchemy objects
Joshua Harlow [Mon, 19 Aug 2013 18:31:56 +0000 (11:31 -0700)]
Reduce hidden effects of sqlalchemy objects

The flows are currently holding onto sqlalchemy
due to bug #1214083 and this is causing a problem
with gettextutils which appears to be deepcopying
the raw objects, of which one of those is sqlalchemy
objects, which can't seem to be deepcopied.

Change-Id: Ie831738799a75e2a4a652c73900cad353a71e327

11 years agoRemoved need for domain in 3PAR drivers
Kurt Martin [Mon, 19 Aug 2013 18:14:42 +0000 (11:14 -0700)]
Removed need for domain in 3PAR drivers

The 3PAR drivers need to support CPGs that are not part of a
virtual domain on the 3PAR backend. This patch removes the need
for the CPG to be part of a domain and changes a few of the commands
that took the domain as an option.

DocImpact

Change-Id: I7e472e19e484e837c9216ea01455a4b8a85b19e5
Fixes: bug #1212328
11 years agoMerge "Remove strcmp_const_time"
Jenkins [Mon, 19 Aug 2013 15:41:37 +0000 (15:41 +0000)]
Merge "Remove strcmp_const_time"

11 years agoMerge "Update Nexenta ISCSI volume driver authors"
Jenkins [Mon, 19 Aug 2013 15:39:45 +0000 (15:39 +0000)]
Merge "Update Nexenta ISCSI volume driver authors"

11 years agoAllow Cinder to call Nova client
Avishay Traeger [Sun, 11 Aug 2013 16:40:10 +0000 (19:40 +0300)]
Allow Cinder to call Nova client

This code allows Cinder to call Nova client functions. This will be used
for online migration and guest-assisted snapshots, which are both in
progress.

Change-Id: I9c94917bddcf250b880ca730df463a8402fe6b1d

11 years agoUse FakeLoopingCall instead of the real one
Nikolay Sobolevskiy [Mon, 19 Aug 2013 07:48:03 +0000 (11:48 +0400)]
Use FakeLoopingCall instead of the real one

Decrease the execution time in brick's tests.

Change-Id: Idef19e91f593c2c276015d5bf9f9cc85cd6094ad

11 years agoMerge "Added missing import"
Jenkins [Sat, 17 Aug 2013 23:06:44 +0000 (23:06 +0000)]
Merge "Added missing import"

11 years agoRemove strcmp_const_time
Eric Harney [Sat, 17 Aug 2013 22:33:16 +0000 (18:33 -0400)]
Remove strcmp_const_time

This was carried over from Nova and isn't used in Cinder.  Removed
in Nova via commit 08a5066d with message:

"This function was used with deprecated auth and is no longer used
anywhere in the code, so just remove it."

Change-Id: I2b90a1a723265d9d23f89ec03246de8508d591e5

11 years agoMerge "Add more asserts to the limiter unit tests to test the RateLimit"
Jenkins [Fri, 16 Aug 2013 23:38:59 +0000 (23:38 +0000)]
Merge "Add more asserts to the limiter unit tests to test the RateLimit"

11 years agoRefactor LVM driver to use Brick VG utility
John Griffith [Mon, 22 Jul 2013 16:39:54 +0000 (10:39 -0600)]
Refactor LVM driver to use Brick VG utility

Refactor the LVM driver to utilize bricks LVM
module.  This includes significant modification to
tests and fake objects related to testing.

implements blueprint: refactor-lvm-and-iscsi-driver

Change-Id: I94e41abf90d0c5b77e732d40ed8b81b0a2f5d7dd

11 years agoMerge "Fixes SSH injection threat in 3PAR driver"
Jenkins [Fri, 16 Aug 2013 22:35:26 +0000 (22:35 +0000)]
Merge "Fixes SSH injection threat in 3PAR driver"

11 years agoMerge "Implement missing Coraid Driver functionality for Havana"
Jenkins [Fri, 16 Aug 2013 22:32:08 +0000 (22:32 +0000)]
Merge "Implement missing Coraid Driver functionality for Havana"

11 years agoAdded missing import
Walter A. Boring IV [Fri, 16 Aug 2013 22:18:05 +0000 (15:18 -0700)]
Added missing import

pep8 tests didn't find this one.
This patch adds the missing _ import

Fixes Bug #1213268

Change-Id: Ia0e688fc15ccc4d8b3f83516c517e9f9c83767a0

11 years agoMerge "Add support for encrypted volumes"
Jenkins [Fri, 16 Aug 2013 18:40:59 +0000 (18:40 +0000)]
Merge "Add support for encrypted volumes"

11 years agoFixes SSH injection threat in 3PAR driver
Kurt Martin [Fri, 16 Aug 2013 15:48:03 +0000 (08:48 -0700)]
Fixes SSH injection threat in 3PAR driver

The setqos ssh command was not built up correctly when the following
patch https://review.openstack.org/#/c/37697/ landed for cleaning up
the SSH calls from injection attacks in the 3PAR driver.

The command was in the following format causing the injection threat
due to the spaces in the second item in the list:
['setqos', '-io 5000 -bw 500M vvset:vvs-JOHB2Oj0QJ2UaWatwbe7Bg']
When it should actually be in the following format:
['setqos', '-io', '5000', '-bw', '500M', 'vvset:vvs-JOHB2Oj0QJ2UaWatwbe7Bg']

This patch fixes an append vs. extend that was introduced in patch
https://review.openstack.org/#/c/42241

Also fixes: bug 1212884

Change-Id: I28f84acd02397ee0d433a666375737145904d67e

11 years agoImplement missing Coraid Driver functionality for Havana
Nikolay Sobolevskiy [Thu, 1 Aug 2013 12:57:54 +0000 (16:57 +0400)]
Implement missing Coraid Driver functionality for Havana

Intorduce a brick connector for AoE protocol.
Refactoring Coraid Driver. Implement missing functionality for Havana:
- Copy Volume To Image
- Copy Image To Volume
- Clone Volume

Fix a bug with resize volume command.

Change-Id: I2af6a41dc44cb8bc4b74da752e0be9ed54a83cb1
Implements: blueprint coraid-driver-refactoring-for-havana

11 years agoMerge "Fix SSH injection threat in 3PAR driver"
Jenkins [Fri, 16 Aug 2013 13:38:35 +0000 (13:38 +0000)]
Merge "Fix SSH injection threat in 3PAR driver"

11 years agoMerge "Refactor Nexenta driver"
Jenkins [Fri, 16 Aug 2013 04:54:21 +0000 (04:54 +0000)]
Merge "Refactor Nexenta driver"

11 years agoMerge "refactor/unify driver version strings"
Jenkins [Fri, 16 Aug 2013 04:52:29 +0000 (04:52 +0000)]
Merge "refactor/unify driver version strings"

11 years agoMerge "Externalize error messages in the v2 API"
Jenkins [Fri, 16 Aug 2013 03:59:26 +0000 (03:59 +0000)]
Merge "Externalize error messages in the v2 API"

11 years agoFix SSH injection threat in 3PAR driver
Kurt Martin [Thu, 15 Aug 2013 23:22:31 +0000 (16:22 -0700)]
Fix SSH injection threat in 3PAR driver

The setqos ssh command was not built up correctly when the following
patch https://review.openstack.org/#/c/37697/ landed for cleaning up
the SSH calls from injection attacks in the 3PAR driver.

The command was in the following format causing the injection threat
due to the spaces in the second item in the list:
['setqos', '-io 5000 -bw 500M vvset:vvs-JOHB2Oj0QJ2UaWatwbe7Bg']
When it should actually be in the following format:
['setqos', '-io', '5000', '-bw', '500M', 'vvset:vvs-JOHB2Oj0QJ2UaWatwbe7Bg']

Change-Id: I69ed8dbca3af3ba56220891411b63331c1935373
Fixes: bug 1212884
11 years agorefactor/unify driver version strings
Walter A. Boring IV [Thu, 15 Aug 2013 22:54:30 +0000 (15:54 -0700)]
refactor/unify driver version strings

This patch updates each driver to provide
the same mechanism for reporting the version
of the driver.  It also includes fixing the
reported driver version at get_volume_stats()
time to be the version set in the driver.

When the manager starts the driver it now
logs the driver's name and version in the log file.

fixes Bug #1212878

Change-Id: Icefd065f885ad417735490e6ac90e2b21557d2dc

11 years agoRefactor Nexenta driver
Victor Rodionov [Fri, 9 Aug 2013 05:40:02 +0000 (09:40 +0400)]
Refactor Nexenta driver

Moving NEXENTA_OPTIONS out of nexenta/volume.py and splitting the
options. This change is to avoid duplication as the iSCSI and NFS driver
will use the same configuration options.

Change-Id: I3596fec9e852f07aea2ef7f2cd26023de07e7d0b

11 years agoMerge "Extract ISCSI tries option into connector module"
Jenkins [Thu, 15 Aug 2013 18:58:50 +0000 (18:58 +0000)]
Merge "Extract ISCSI tries option into connector module"

11 years agoUpdate Nexenta ISCSI volume driver authors
Victor Rodionov [Thu, 15 Aug 2013 18:53:14 +0000 (22:53 +0400)]
Update Nexenta ISCSI volume driver authors

Change-Id: Ib2981c336d479fb506a4db4a9d91e00c1cc6d4e8

11 years agoExtract ISCSI tries option into connector module
Nikolay Sobolevskiy [Thu, 15 Aug 2013 15:23:27 +0000 (19:23 +0400)]
Extract ISCSI tries option into connector module

The usage of this option occurred only in that module.
Rename this options to num_volume_device_scan_tries,
according to discussion on IRC.
The old one marked as depricated option.

DocImpact
Change-Id: Ib4a37237c2d95ca2dd6c05ce0a41f930b29ffd1c

11 years agoMerge "No need to declare the exception conf"
Jenkins [Thu, 15 Aug 2013 14:36:14 +0000 (14:36 +0000)]
Merge "No need to declare the exception conf"

11 years agoExternalize error messages in the v2 API
Luis A. Garcia [Wed, 10 Jul 2013 00:50:12 +0000 (00:50 +0000)]
Externalize error messages in the v2 API

This patch does more internationalization for the REST API error
messages that don't currently have it to take advantage of the new
support added by bp user-locale-api to show error messages in the locale
requested by the user through the Accept-Language HTTP header.

We only do v2 because consumers have used the response error message in
the past for error checks, so changing it in v1 too would break them.

Partially implements bp user-locale-api

Change-Id: I92780b42c125a91ab4916b7a31e4b71d306a89a1

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 agoAdd more asserts to the limiter unit tests to test the RateLimit
Seif Lotfy [Thu, 15 Aug 2013 03:06:20 +0000 (03:06 +0000)]
Add more asserts to the limiter unit tests to test the RateLimit

Added new asserts to test the per user set limits instead of using
the defaults only

Change-Id: Ib6651a82c9d7bb4b79d5c68be6372dc1100b816a

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 agoNo need to declare the exception conf
Walter A. Boring IV [Wed, 14 Aug 2013 20:56:09 +0000 (13:56 -0700)]
No need to declare the exception conf

Brick can just assume that the conf entry exists
in each project that will use brick.
Cinder and Nova already declare the same exact
conf entry.

Change-Id: I4e0e11ce6f99a663a75e582ead92ac9d61300032

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 agoAdd support for encrypted volumes
Joel Coffman [Wed, 14 Aug 2013 14:00:15 +0000 (10:00 -0400)]
Add support for encrypted volumes

This modification adds an encryption key UUID field to the volume
table, which is sufficient to make Cinder "aware" of encrypted volumes
as designated by predefined volume types. Integration with a key
manager is necessary to obtain an actual encryption key UUID (the
current implementation generates a random UUID when an encrypted
volumes is created). Cinder should *not* presume that it necessarily
will have access to the key itself -- this decision depends upon the
design, implementation, and policy for encrypted volumes. The key's
UUID is stored in Cinder because it is metadata about the volume.

Implements: blueprint encrypt-cinder-volumes
Change-Id: I164290e761a9922919a70f22f99af70dac213b61
SecurityImpact

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."