]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Added mapper for update_all on snapshot_metadata"
Jenkins [Tue, 24 Sep 2013 23:28:56 +0000 (23:28 +0000)]
Merge "Added mapper for update_all on snapshot_metadata"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 24 Sep 2013 19:29:19 +0000 (19:29 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix volume_rpcapi calls for chance/simple scheds"
Jenkins [Tue, 24 Sep 2013 17:11:11 +0000 (17:11 +0000)]
Merge "Fix volume_rpcapi calls for chance/simple scheds"

11 years agoMerge "Specific /usr/local/bin/hus-cmd rootwrap filter"
Jenkins [Tue, 24 Sep 2013 17:00:32 +0000 (17:00 +0000)]
Merge "Specific /usr/local/bin/hus-cmd rootwrap filter"

11 years agoFixes some typos in cinder
Chang Bo Guo [Tue, 24 Sep 2013 09:05:35 +0000 (02:05 -0700)]
Fixes some typos in cinder

Just some typos

Change-Id: Ic0d99d2ec2152145e0c58b8792f630cacdb7ac87

11 years agoSpecific /usr/local/bin/hus-cmd rootwrap filter
Thierry Carrez [Tue, 24 Sep 2013 08:20:56 +0000 (10:20 +0200)]
Specific /usr/local/bin/hus-cmd rootwrap filter

Add a specific filter for /usr/local/bin/hus-cmd, rather than adding
/usr/local/bin to the list of exec_path in rootwrap.conf. This allows to
sync rootwrap directly from oslo-incubator without having to edit the
default value for exec_dirs.

Change-Id: Ic264ca248d025fb5496fe0b48e8b3ec9376fb9e2

11 years agoMerge "GPFS Driver missing clone depth limit for snapshots"
Jenkins [Tue, 24 Sep 2013 06:32:28 +0000 (06:32 +0000)]
Merge "GPFS Driver missing clone depth limit for snapshots"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 24 Sep 2013 06:07:55 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: I769f3f31c66ad90176bc8d9381aac2539246984f

11 years agoFix volume_rpcapi calls for chance/simple scheds
Avishay Traeger [Mon, 23 Sep 2013 18:18:56 +0000 (21:18 +0300)]
Fix volume_rpcapi calls for chance/simple scheds

Change the chance and simple schedulers to pass the snapshot_id and
image_id parameters correctly volume_rpcapi, so that their values reach
cinder-volume.

Change-Id: I0abbca1fa0445c5233387a0f17363fc092d39b88
Closes-Bug: #1212710

11 years agoMerge "Add delete support for volume type encryption"
Jenkins [Tue, 24 Sep 2013 05:23:26 +0000 (05:23 +0000)]
Merge "Add delete support for volume type encryption"

11 years agoMerge "Add sg_scan filter to rootwrap"
Jenkins [Tue, 24 Sep 2013 03:05:16 +0000 (03:05 +0000)]
Merge "Add sg_scan filter to rootwrap"

11 years agoMerge "Fixes vol restore discard final bytes unzeroed"
Jenkins [Mon, 23 Sep 2013 18:40:52 +0000 (18:40 +0000)]
Merge "Fixes vol restore discard final bytes unzeroed"

11 years agoMerge "Storwize/SVC: Optional CHAP authentication"
Jenkins [Mon, 23 Sep 2013 18:01:51 +0000 (18:01 +0000)]
Merge "Storwize/SVC: Optional CHAP authentication"

11 years agoMerge "Require assisted_volume_snapshots from novaclient"
Jenkins [Mon, 23 Sep 2013 18:01:27 +0000 (18:01 +0000)]
Merge "Require assisted_volume_snapshots from novaclient"

11 years agoRequire assisted_volume_snapshots from novaclient
Eric Harney [Tue, 3 Sep 2013 18:52:03 +0000 (14:52 -0400)]
Require assisted_volume_snapshots from novaclient

The "QEMU-assisted-snapshots for GlusterFS volumes" patch currently
does a try/except ImportError for the new assisted_volume_snapshots
extension in novaclient.  That functionality is now in novaclient
2.15.0, so Cinder should consider this a hard requirement rather
than allowing it to be absent.

Change-Id: I5d5b4918f17f26706bed361cbbe8b369b10b0b98

11 years agoMerge "Fix over-indent in compute/nova"
Jenkins [Mon, 23 Sep 2013 17:04:49 +0000 (17:04 +0000)]
Merge "Fix over-indent in compute/nova"

11 years agoMerge "GlusterFS: Copy snap from correct source file"
Jenkins [Mon, 23 Sep 2013 15:59:01 +0000 (15:59 +0000)]
Merge "GlusterFS: Copy snap from correct source file"

11 years agoMerge "GlusterFS: Use image_utils for qemu-img calls"
Jenkins [Mon, 23 Sep 2013 15:58:59 +0000 (15:58 +0000)]
Merge "GlusterFS: Use image_utils for qemu-img calls"

11 years agoFix over-indent in compute/nova
Zhiteng Huang [Mon, 23 Sep 2013 15:51:05 +0000 (23:51 +0800)]
Fix over-indent in compute/nova

There are two lines in compute/nova.py that uses 8 spaces indent,
this simple patch correct those to 4 spaces.

Change-Id: I8f7849385ef59a085b5e3cc45954a2f2a19442ee

11 years agoMerge "Add a retry to create_iscsi_target for LVM"
Jenkins [Mon, 23 Sep 2013 07:28:08 +0000 (07:28 +0000)]
Merge "Add a retry to create_iscsi_target for LVM"

11 years agoMerge "Fix issues with failed lvremove"
Jenkins [Mon, 23 Sep 2013 07:28:01 +0000 (07:28 +0000)]
Merge "Fix issues with failed lvremove"

11 years agoMerge "Add extend to reference LVM driver"
Jenkins [Mon, 23 Sep 2013 06:58:49 +0000 (06:58 +0000)]
Merge "Add extend to reference LVM driver"

11 years agoMerge "NetApp check for 7 mode controller version"
Jenkins [Mon, 23 Sep 2013 06:20:05 +0000 (06:20 +0000)]
Merge "NetApp check for 7 mode controller version"

11 years agoMerge "Soft delete tmp migration volume"
Jenkins [Mon, 23 Sep 2013 01:37:07 +0000 (01:37 +0000)]
Merge "Soft delete tmp migration volume"

11 years agoMerge "Remove default root_helper of sudo for remotefs"
Jenkins [Sun, 22 Sep 2013 16:57:19 +0000 (16:57 +0000)]
Merge "Remove default root_helper of sudo for remotefs"

11 years agoAdd sg_scan filter to rootwrap
Avishay Traeger [Sun, 22 Sep 2013 11:01:25 +0000 (14:01 +0300)]
Add sg_scan filter to rootwrap

The sg_scan command was missing from rootwrap.

Change-Id: I549b51e30c53eb588b02dc0892c8e32d2c66c6bb
Closes-Bug: #1225102

11 years agoMerge "Add volume metadata to v2"
Jenkins [Sat, 21 Sep 2013 04:51:12 +0000 (04:51 +0000)]
Merge "Add volume metadata to v2"

11 years agoMerge "Fix HP3PAR iSCSI path connection"
Jenkins [Fri, 20 Sep 2013 22:15:39 +0000 (22:15 +0000)]
Merge "Fix HP3PAR iSCSI path connection"

11 years agoAdd extend to reference LVM driver
John Griffith [Fri, 20 Sep 2013 21:30:36 +0000 (21:30 +0000)]
Add extend to reference LVM driver

Somwhere along the way we somehow dropped
or missed implementing the extend functionality
in the reference LVM driver.

Add it.

Change-Id: Ib3efe16252b5efacce253688767df426117b2a44
Closes-Bug: #1228358

11 years agoFix issues with failed lvremove
John Griffith [Fri, 20 Sep 2013 20:55:46 +0000 (20:55 +0000)]
Fix issues with failed lvremove

There are some race conditions that
can cause problems with lvremove commands.  In
most cases these seem to recover nicely just
with a simple retry of the lvremove.  Adding
a udev settle seems to elimate the rest of them.

This is a difficult issue to reproduce, and there's
a suspiscion that it relates to failed target
creeates.

The patch adds a catch on the lvremove failure,
followed by a udevadm settle and a retry of the
lvremove.  With the setup that I've been able
to reproduce this issue these changes have eliminated
any force delete failures.

The other option that had been proposed was using dmsetup remove
but there are concerns that this may cause problems.

Change-Id: I2a2b0d0f4fefd0daf9424ab96aaf87ba53ebc171
Closes-Bug: #1191960

11 years agoMerge "Enforce driver is initialized"
Jenkins [Fri, 20 Sep 2013 18:13:09 +0000 (18:13 +0000)]
Merge "Enforce driver is initialized"

11 years agoGlusterFS: Copy snap from correct source file
Eric Harney [Mon, 9 Sep 2013 22:47:00 +0000 (18:47 -0400)]
GlusterFS: Copy snap from correct source file

The GlusterFS driver's copy_volume_from_snapshot was previously
not parsing the snapshot information to determine which backing
file to copy from, instead copying from the active file at all
times.  This would result in the wrong data being supplied when
a volume is cloned from a snapshot.

Add a test for the copy_volume_from_snapshot method.

Closes-Bug: #1222907
Change-Id: Ib829ca1a6812b61845f3b2eb9c5507779fa6ec15

11 years agoGlusterFS: Use image_utils for qemu-img calls
Eric Harney [Sun, 8 Sep 2013 14:18:18 +0000 (10:18 -0400)]
GlusterFS: Use image_utils for qemu-img calls

Code added for GlusterFS snapshot support in Havana included
new code to parse qemu-img output.  This removes this code
and uses image_utils qemu_img_info instead.

Add test to image_utils for parsing a different style of
qemu-img info output.

Improve GlusterFS driver test coverage with tests for cloning,
create from snapshot, and initialize_connection.

Closes-Bug: #1224030
Change-Id: I8f1811b400c06edb3cd7416c52aa297921841e54

11 years agoRemove default root_helper of sudo for remotefs
Walter A. Boring IV [Fri, 20 Sep 2013 17:33:54 +0000 (10:33 -0700)]
Remove default root_helper of sudo for remotefs

This patch removes the default root_helper of sudo
for the RemoteFsClient.  We should be using the
cinder.utils.get_root_helper()

Fixes Bug #1223879

Change-Id: I8ba61cd6ac09b85b9ca924a9cf43c2dcea8e6c15

11 years agoAdd a retry to create_iscsi_target for LVM
John Griffith [Fri, 20 Sep 2013 02:47:22 +0000 (20:47 -0600)]
Add a retry to create_iscsi_target for LVM

There's a bug in the tgt driver where under certain
conditions where a race condition is present that can
result in tgtadm attempting re-use a target ID.

Testing this it seems that a retry will address this nicely
and cause tgtd to grab a new target ID and things are ok.

This patch adds a simple check/retry mechanism around the
iscsi_target_create in the LVM driver to catch this issue and
deal with it.

There are a number of bugs that it appears can be attributed to
this, but this patch is associated with the most predominant
clear cut version.

Closes-Bug #1223469

Change-Id: I5126009f196adcafad55e73ff99a59262dd93dfe

11 years agoFix HP3PAR iSCSI path connection
Jim Branen [Fri, 20 Sep 2013 15:41:44 +0000 (08:41 -0700)]
Fix HP3PAR iSCSI path connection

The iSCSI paths are not correctly identified as ‘active’
when port information is requested from the hp3parclient
because the ‘active’ value is a Boolean not the string
‘true’.

Fixes Bug #1224594

Change-Id: Ib10563cfc31c0628dc8b1edbba246398a3a11f34

11 years agoAdded mapper for update_all on snapshot_metadata
saurabh [Fri, 20 Sep 2013 10:06:09 +0000 (15:36 +0530)]
Added mapper for update_all on snapshot_metadata

Snapshot metadata controller have action 'update_all'
but API for this not exposed for both v1 & v2

Change-Id: I4dcd8878a4ed75bd44494fd175bb66df67e54ebc
Closes-Bug: #1228066

11 years agoAdd volume metadata to v2
Mike Perez [Tue, 17 Sep 2013 09:41:59 +0000 (02:41 -0700)]
Add volume metadata to v2

This exposes volume metadata in the Cinder v2 API. This already exists
in v1 and was originally suppose to exist back with Grizzly, but appears
to have slipped.

Closes-Bug: #1227979
Change-Id: I512dad591d7d491eca54a230d3cc290d9a349e6f

11 years agoEnforce driver is initialized
Walter A. Boring IV [Tue, 17 Sep 2013 00:05:27 +0000 (17:05 -0700)]
Enforce driver is initialized

This updates the volume manager and the
backup manager to enforce that the driver
has been initialized.

The managers call the driver in many places
without ensuring that the driver has been
properly initialized.   When the driver fails
inside of do_setup(), the managers shouldn't
call the driver's set_initialized() method.
The managers now dump out the exception, and
exit the init_host, leaving the driver in
an uninitialized state.

Fixes bug #1225897

Change-Id: I77b947f2a9fbe1b38f321511dba10fcd2fe1fe90

11 years agoAdded mapper for snapshot_metadata
saurabh [Thu, 19 Sep 2013 18:07:35 +0000 (23:37 +0530)]
Added mapper for snapshot_metadata

cinder/api/v2/snapshot_metadata.py exist with all actions
but mapper missing for it.

Closes-bug: 1227799

Change-Id: I9a95c68a8de620626042951fa15a555621ebbc17

11 years agoMerge "NetApp fix create vol different size than snapshot"
Jenkins [Fri, 20 Sep 2013 00:50:13 +0000 (00:50 +0000)]
Merge "NetApp fix create vol different size than snapshot"

11 years agoMerge "Add logging to prior to raising exceptions"
Jenkins [Thu, 19 Sep 2013 23:36:03 +0000 (23:36 +0000)]
Merge "Add logging to prior to raising exceptions"

11 years agoAdd logging to prior to raising exceptions
Walter A. Boring IV [Mon, 16 Sep 2013 22:31:20 +0000 (15:31 -0700)]
Add logging to prior to raising exceptions

This patch fixes an issue where exceptions
happen in the 3PAR drivers and the exceptions
aren't being logged to the log file.

Fixes bug #1225235

Change-Id: I8ec26fe3bee65106e01e956472e06acf1d5b9f77

11 years agoMerge "Pass down root_helper in more cases"
Jenkins [Thu, 19 Sep 2013 16:43:06 +0000 (16:43 +0000)]
Merge "Pass down root_helper in more cases"

11 years agoMerge "VMware driver: Fix for invalid datastore selection"
Jenkins [Thu, 19 Sep 2013 15:18:02 +0000 (15:18 +0000)]
Merge "VMware driver: Fix for invalid datastore selection"

11 years agoMerge "remove VolumeNotFoundForInstance class"
Jenkins [Thu, 19 Sep 2013 15:17:38 +0000 (15:17 +0000)]
Merge "remove VolumeNotFoundForInstance class"

11 years agoMerge "Sync gettextutils from oslo"
Jenkins [Thu, 19 Sep 2013 15:12:47 +0000 (15:12 +0000)]
Merge "Sync gettextutils from oslo"

11 years agoGPFS Driver missing clone depth limit for snapshots
Bill Owen [Wed, 18 Sep 2013 21:30:07 +0000 (14:30 -0700)]
GPFS Driver missing clone depth limit for snapshots

GPFS driver is fixed to handle snapshot clones correctly. Previously,
these were allowed to grow without respecting limit defined in config
flag gpfs_max_clone_depth.  This change adds the depth check operation
in create_snapshot.

To ensure that all clone files are cleaned up, the delete_snapshot
method now marks snapshots to be deleted with ts file extension
and attempts to delete the snapshot.  If the snapshot cannot be
deleted because it has clone children, it will be deleted when the
child is deleted.

Closes-Bug: #1227366

Change-Id: I4fb2a720b55dbe033159e6fb341f6e2f1508776e

11 years agoremove VolumeNotFoundForInstance class
KIYOHIRO ADACHI [Thu, 19 Sep 2013 05:37:33 +0000 (14:37 +0900)]
remove VolumeNotFoundForInstance class

VolumeNotFoundForInstance class is used only in test_xiv_ds8k.py.  I
think the exception class that is used only in test code should not be
defined in cinder/exception.py.

Change-Id: I53512d9b06d48e1fb98ef63eac82c033cec37471
Closes-Bug: #1227477

11 years agoMerge "Fix __init__ methods of brick initiator connectors"
Jenkins [Wed, 18 Sep 2013 22:35:07 +0000 (22:35 +0000)]
Merge "Fix __init__ methods of brick initiator connectors"

11 years agoSync gettextutils from oslo
Luis A. Garcia [Fri, 6 Sep 2013 21:24:33 +0000 (21:24 +0000)]
Sync gettextutils from oslo

Some Messages, such as those created from Invalid exceptions, use a
Message within a Message, and we were only translating the base Message
but not the Message substitution within.

Also adds test case for cinder case.

Fixes bug: #1221808

Change-Id: Ic3119df23a090cfaa160c1461e955f0af55fe1cf

11 years agoMerge "Fix huawei driver test issues"
Jenkins [Wed, 18 Sep 2013 21:43:37 +0000 (21:43 +0000)]
Merge "Fix huawei driver test issues"

11 years agoMerge "fix wrong desciption of monkey_patch config"
Jenkins [Wed, 18 Sep 2013 21:42:12 +0000 (21:42 +0000)]
Merge "fix wrong desciption of monkey_patch config"

11 years agoMerge "Fixes call VolumeNotFound in the invalid argument"
Jenkins [Wed, 18 Sep 2013 21:42:05 +0000 (21:42 +0000)]
Merge "Fixes call VolumeNotFound in the invalid argument"

11 years agoMerge "assertEquals is deprecated, use assertEqual"
Jenkins [Wed, 18 Sep 2013 21:38:15 +0000 (21:38 +0000)]
Merge "assertEquals is deprecated, use assertEqual"

11 years agoMerge "Use built-in print() instead of print statement"
Jenkins [Wed, 18 Sep 2013 21:37:27 +0000 (21:37 +0000)]
Merge "Use built-in print() instead of print statement"

11 years agoUse built-in print() instead of print statement
Chang Bo Guo [Wed, 18 Sep 2013 07:00:17 +0000 (00:00 -0700)]
Use built-in print() instead of print statement

In python 3 print statement is not supported, so we should use
only print() functions.

Fixes bug 1226943

Change-Id: I7b2e4d52fe9050f6a67c44e4cc1237a15ea90b23

11 years agoMerge "Fixes call GlanceConnectionFailed in invalid ARG"
Jenkins [Wed, 18 Sep 2013 13:14:15 +0000 (13:14 +0000)]
Merge "Fixes call GlanceConnectionFailed in invalid ARG"

11 years agoMerge "Allow display_name for v2 snapshot-update"
Jenkins [Wed, 18 Sep 2013 12:08:17 +0000 (12:08 +0000)]
Merge "Allow display_name for v2 snapshot-update"

11 years agoFixes vol restore discard final bytes unzeroed
Edward Hope-Morley [Tue, 17 Sep 2013 13:12:01 +0000 (14:12 +0100)]
Fixes vol restore discard final bytes unzeroed

When doing a volume restore with Ceph backend to a non-rbd volume
that is greater in size that the backup volume, we write zeroes
the extraneous extents but we are not zeroing the final few bytes
in the case where the destination volume is non-rbd.

Also fixed up internationalisation on a number of log messages.

Change-Id: Iac1ff98a75e9164f8865c2f7d998454205e049d4
Fixes: bug 1226555
11 years agoFixes call GlanceConnectionFailed in invalid ARG
KIYOHIRO ADACHI [Wed, 18 Sep 2013 06:59:28 +0000 (15:59 +0900)]
Fixes call GlanceConnectionFailed in invalid ARG

A mapping key of 'netloc' is always ignored. Thus information in
'netloc' is lost. But because it is included in 'error_msg', I remove
'netloc=netloc'.

Change-Id: I937044bcca0cb196fcd96cfa421de777713d76f5
Closes-Bug: #1226959

11 years agoFixes call VolumeNotFound in the invalid argument
KIYOHIRO ADACHI [Tue, 17 Sep 2013 07:08:55 +0000 (16:08 +0900)]
Fixes call VolumeNotFound in the invalid argument

A mapping key of 'volume_id' is ignored when we use the non keyword
argument. Thus information in 'volume_id' is lost.  Similarly, in the
case of exception.SnapshotNotFound, information in 'snapshot_id' is
lost.

Change-Id: I1a704cc1866ad9b0d9578e16e77c376a77ea5b3e
Closes-Bug: #1226442

11 years agoMerge "Fix secure delete for thick LVM snapshots"
Jenkins [Wed, 18 Sep 2013 05:17:47 +0000 (05:17 +0000)]
Merge "Fix secure delete for thick LVM snapshots"

11 years agoSoft delete tmp migration volume
Avishay Traeger [Mon, 2 Sep 2013 17:23:45 +0000 (20:23 +0300)]
Soft delete tmp migration volume

Previously the row for the temporary migration volume was deleted from
the database, which caused a foreign key violation for its admin
metadata. Regardless, the volume should have been soft deleted from the
database anyway, and this patch takes care of that.

Change-Id: I8e4942b0e21ec79c90aa95b18b5612b5b133fd62
Closes-Bug: #1219097

11 years agoFix __init__ methods of brick initiator connectors
Victor Rodionov [Tue, 17 Sep 2013 21:22:05 +0000 (01:22 +0400)]
Fix __init__ methods of brick initiator connectors

Wrong order of positional arguments in RemoteFsConnector __init__ call.
This only in RemoteFsConnector.__init__, but I decide also update
__init__ methods of other connectors to avoid errors in future.

Change-Id: I75d2c2d29e0330536e280614db1a13686cfd15e4
Closes-Bug: #1226830

11 years agoFix secure delete for thick LVM snapshots
rackerjoe [Wed, 4 Sep 2013 20:31:42 +0000 (15:31 -0500)]
Fix secure delete for thick LVM snapshots

This change modifies the behaviour of the secure delete for thick
LVM snapshots to wipe the underlying COW of the snapshot LV
instead of the snapshot LV itself.

This change is necessary because the snapshot LV does not contain
exactly the same number of writable blocks as the original LV.  The
COW includes header information per COW block that identifies the
device as a COW device as well as the source and destination blocks
for the changed item.  The amount of metadata contained in the COW is
variable based on I/O performed on the snapshot.

This does not change the behavior of secure deletes on thin LVs
or secure deletes on the thick LV snapshot origin.

Closes-Bug: #1191812
Change-Id: I20e02b6c20d5ac539b5b5469e665fc986180f2e9

11 years agoassertEquals is deprecated, use assertEqual
Dirk Mueller [Tue, 17 Sep 2013 19:26:35 +0000 (21:26 +0200)]
assertEquals is deprecated, use assertEqual

Change-Id: I805ff6a68925f9214645c192eb986a70f30bf714

11 years agoStorwize/SVC: Optional CHAP authentication
Avishay Traeger [Thu, 12 Sep 2013 10:50:07 +0000 (13:50 +0300)]
Storwize/SVC: Optional CHAP authentication

The Storwize/SVC driver doesn't work with Nova drivers that don't
support CHAP (e.g., HyperV). This patch makes CHAP optional.

DocImpact

Closes-Bug: #1224334
Change-Id: I22df4b916b2800a53c1e4968913f7e95965eaf4b

11 years agoFix huawei driver test issues
zhangchao010 [Tue, 17 Sep 2013 15:53:24 +0000 (23:53 +0800)]
Fix huawei driver test issues

Replace "params[params.index('-lun')]" with
"params[params.index('-lun') + 1]" to get lun ID correctly.
Replace the invalid controller ID "N" with "B".
Dict CLONED_LUN_INFO has no key provider_location, delete it.

Moreover, simplify the "if..., elif..." module with "getattr"
method in fake recv function.

fixes bug 1225884
Change-Id: Ic4cbf8b07321cdecd6290e8cd90bca1b09dca7fd

11 years agoMerge "Set rootwrap_config path to rootwrap.conf"
Jenkins [Tue, 17 Sep 2013 15:16:02 +0000 (15:16 +0000)]
Merge "Set rootwrap_config path to rootwrap.conf"

11 years agofix wrong desciption of monkey_patch config
Kun Huang [Tue, 17 Sep 2013 05:11:30 +0000 (13:11 +0800)]
fix wrong desciption of monkey_patch config

The corrent desciption should be 'Enable monkey patching'

Change-Id: I1ef14be75c1e46fa703bc8da1a68487e16ebd035
Closes-Bug: #1226190

11 years agoAllow display_name for v2 snapshot-update
Ken'ichi Ohmichi [Tue, 17 Sep 2013 04:29:51 +0000 (13:29 +0900)]
Allow display_name for v2 snapshot-update

According to the comment in the source code, the snapshot-update of
v2 would be able to allow either "name" or "display_name" parameter.
And if both paramters are specified, "name" parameter is effective
over "display_name" like "description" parameter.
However "display_name" parameter is ignored now, because cinder writes
over empty dict(update_dict['display_name']).

This patch fixes the problem.

Fixes bug #1226398

Change-Id: Icd48556a26b9346f73b7c1b82ffbcdd469c4d28d

11 years agoMerge "Fixes ceph volume restore to larger image than source"
Jenkins [Mon, 16 Sep 2013 20:47:21 +0000 (20:47 +0000)]
Merge "Fixes ceph volume restore to larger image than source"

11 years agoPass down root_helper in more cases
Dirk Mueller [Mon, 16 Sep 2013 11:39:20 +0000 (13:39 +0200)]
Pass down root_helper in more cases

Change-Id: I3e49764256bb001ccc071c846cd70e4345df017d
Fixes: Bug LP #1226010
11 years agoSet rootwrap_config path to rootwrap.conf
Jay S. Bryant [Mon, 16 Sep 2013 18:21:34 +0000 (13:21 -0500)]
Set rootwrap_config path to rootwrap.conf

Other components set
rootwrap_config = /etc/<component>/rootwrap.conf by default.
This commit brings cinder up-to-date with what other
components are doing by setting
rootwrap_config = /etc/cinder/rootwrap.conf by default.

A couple of test cases needed to be updated to handle the change
from 'None'.

Not counting this as a documentation impact as the documentation I
can find already lists /etc/cinder/rootwrap.conf as the default.

Closes-Bug 1226074

Change-Id: I68dd5fea1895a6365d6c69db0535d081c4a3460e

11 years agoDo not use qemu-img --backing-chain or --output=json
Eric Harney [Sat, 7 Sep 2013 03:26:46 +0000 (23:26 -0400)]
Do not use qemu-img --backing-chain or --output=json

Initial code for GlusterFS snapshot support in Havana
used qemu-img arguments which are too new to run in many
environments.  Run qemu-img using only arguments which
will exist on older platforms.

Partial-Bug: #1224030
Change-Id: I5155dac492da67a951ede978c2c46a54c239eb04

11 years agoVMware driver: Fix for invalid datastore selection
Kartik Bommepally [Tue, 3 Sep 2013 12:12:33 +0000 (05:12 -0700)]
VMware driver: Fix for invalid datastore selection

Added filter to ignore datastores that are not mounted, in-accessible
and read-only for volume creation. Without this VMware's VC/ESX driver can
choose such datastore with higher invalid capacity value as returned by the
server for volume creation.

Also using parent's self.mox object in the test cases rather than creating
a new mox.Mox obj everytime.

Fixes bug: 1220217

Change-Id: If8319562ddc11fc31eb928b3807aead2b11b94bc

11 years agoFixes ceph volume restore to larger image than source
Edward Hope-Morley [Fri, 13 Sep 2013 19:20:03 +0000 (15:20 -0400)]
Fixes ceph volume restore to larger image than source

If a backup is restored to a volume that is bigger than the
backup itself, which could be the case if --volume-id is
supplied, we need the option to set extraneous extents to zero
i.e. set extents after those from the backup to zero.

Change-Id: I3c226b9e7429371f6cd9b9bd81071ff765712975
Fixes: bug 1225126
11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 16 Sep 2013 03:14:25 +0000 (03:14 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Use $state_path/conversion for image_conversion_dir default"
Jenkins [Mon, 16 Sep 2013 02:18:02 +0000 (02:18 +0000)]
Merge "Use $state_path/conversion for image_conversion_dir default"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 15 Sep 2013 06:07:22 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: Ibfc1ad7197f940208688d234d859da76344aeaba

11 years agoMerge "nms.folder.create_with_opts not supported on Nexenta 3.1.4.2"
Jenkins [Fri, 13 Sep 2013 23:31:07 +0000 (23:31 +0000)]
Merge "nms.folder.create_with_opts not supported on Nexenta 3.1.4.2"

11 years agoMerge "Improves the parsing way of ssh returns"
Jenkins [Fri, 13 Sep 2013 19:26:17 +0000 (19:26 +0000)]
Merge "Improves the parsing way of ssh returns"

11 years agoMerge "Fix client connection leaks in HP3PAR drivers"
Jenkins [Fri, 13 Sep 2013 18:49:01 +0000 (18:49 +0000)]
Merge "Fix client connection leaks in HP3PAR drivers"

11 years agonms.folder.create_with_opts not supported on Nexenta 3.1.4.2
Victor Rodionov [Fri, 13 Sep 2013 16:51:14 +0000 (20:51 +0400)]
nms.folder.create_with_opts not supported on Nexenta 3.1.4.2

nms.folder.create_with_opts method not supported on early NexentaStor
version (3.1.4.2). replace if with create_with_props.

Closes-Bug: #1225094
Change-Id: I0c861ae8d966d53c6484e7ded8cab71f395fa059

11 years agoMerge "Fixes the use of exception.InvalidInput with the wrong arguments"
Jenkins [Fri, 13 Sep 2013 16:10:15 +0000 (16:10 +0000)]
Merge "Fixes the use of exception.InvalidInput with the wrong arguments"

11 years agoUse $state_path/conversion for image_conversion_dir default
Eric Harney [Fri, 13 Sep 2013 13:43:33 +0000 (09:43 -0400)]
Use $state_path/conversion for image_conversion_dir default

image_conversion_dir currently defaults to /tmp.  Using
$state_path/conversion seems to be a more appropriate default.

Closes-Bug: #1217552
Change-Id: Iaaa462449a257b1b48fc349399bf409d7301a1e6

11 years agoImproves the parsing way of ssh returns
zhangchao010 [Thu, 12 Sep 2013 14:34:22 +0000 (22:34 +0800)]
Improves the parsing way of ssh returns

Huawei driver failed to parse ssh result when firstly logging
in storage system on paramiko 1.8.0. The update of paramiko
make the order of ssh returns changed. This patch improves
the parsing way of ssh returns.

This patch also does some changes for log punctuations.

fixes bug 1224499
Change-Id: Ia8761081dff998884f45312355b62aa27ab5417c

11 years agoMerge "Add default_availability_zone configuration option to cinder"
Jenkins [Fri, 13 Sep 2013 14:37:06 +0000 (14:37 +0000)]
Merge "Add default_availability_zone configuration option to cinder"

11 years agoMerge "Fixing UnicodeEncodeError against volume creating function"
Jenkins [Fri, 13 Sep 2013 06:14:49 +0000 (06:14 +0000)]
Merge "Fixing UnicodeEncodeError against volume creating function"

11 years agoMerge "Turn db model object into a primitive object to avoid error"
Jenkins [Fri, 13 Sep 2013 06:14:42 +0000 (06:14 +0000)]
Merge "Turn db model object into a primitive object to avoid error"

11 years agoFixes the use of exception.InvalidInput with the wrong arguments
KIYOHIRO ADACHI [Fri, 13 Sep 2013 05:13:53 +0000 (14:13 +0900)]
Fixes the use of exception.InvalidInput with the wrong arguments

A mapping key of 'message' in exception.InvalidInput is 'reason'.
cinder/volume/drivers/netapp/iscsi.py and
cinder/volume/drivers/netapp/utils.py had used 'data'.

Change-Id: Ie40fc2f954984350827414edee9226adc80c8033
Closes-Bug: #1224790

11 years agoRemove unused exceptions
KIYOHIRO ADACHI [Fri, 13 Sep 2013 02:57:39 +0000 (11:57 +0900)]
Remove unused exceptions

Removed the exception classes in the following because not referenced
anywhere.

InvalidSourceVolume
InvalidRequest
PersistentVolumeFileNotFound
InvalidSnapshotMetadata
InvalidSnapshotMetadataSize
DiskNotFound
MigrationNotFoundByStatus
ClassNotFound
NotAllowed
KeyPairExists
MigrationError
VolumeSizeExceedsQuota
Duplicate3PARHost
BackupVolumeInvalidType

Change-Id: I7165f970752587885430f9d5c813b82b3f06ad70

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 12 Sep 2013 22:04:32 +0000 (22:04 +0000)]
Merge "Imported Translations from Transifex"

11 years agoFix client connection leaks in HP3PAR drivers
Jim Branen [Thu, 12 Sep 2013 16:24:56 +0000 (09:24 -0700)]
Fix client connection leaks in HP3PAR drivers

In the presence of exceptions, hp3parclient connections
did not get closed. This fix adds try/finally blocks
around all client login/logout calls.

Change-Id: I105b06cea5e61f3e9cf0d6e19c7ce430fedad715
Closes-Bug: 1220948

11 years agoAdd default_availability_zone configuration option to cinder
Michael Kerrin [Mon, 9 Sep 2013 08:12:27 +0000 (08:12 +0000)]
Add default_availability_zone configuration option to cinder

This option is used to specify the default AZ for the whole service. So when
creating a new volume this value is used to specify the AZ of a volume.

Previously we were overloading the use of the storage_availability_zone option
which is also used to specify what AZ a service belongs to. We still fail back
on the storage_availability_zone when creating a new volume if the
default_availability_zone is not set.

Fixes bug: 1221260

Change-Id: Iec381f50c9aeb4a0abbcaa1d7b0107de09a73544

11 years agoMerge "Catch generic exceptions"
Jenkins [Thu, 12 Sep 2013 06:56:55 +0000 (06:56 +0000)]
Merge "Catch generic exceptions"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 12 Sep 2013 06:07:15 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: I59fa38bd6d5ae872c05af5935e919351c83ffe41

11 years agoTurn db model object into a primitive object to avoid error
Zhi Yan Liu [Tue, 3 Sep 2013 14:40:49 +0000 (22:40 +0800)]
Turn db model object into a primitive object to avoid error

In volume API controller we need turn db model object into a primitive
object to avoid error when it adding visible administrator metadata to
volume's metadata dict.

Fixes bug: 1220232

Change-Id: I5f6c4fc8dd6ca3af02db577b37dcaeee92bb42e5
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
11 years agoCatch generic exceptions
Joshua Harlow [Thu, 12 Sep 2013 02:36:18 +0000 (19:36 -0700)]
Catch generic exceptions

When the driver copy_image_to_volume fails it can
at the current time raise more than just CinderException
as its root exception type. This causes rescheduling due
to the blacklisted exception list that is used to determine
if a exception is 'bad enough' to trigger rescheduling or
should the volume creation action just set the volume to
error state.

To avoid the situation where this would cause a rescheduling
we should make sure (for now) that any exception that is
emitted on copying an image to a volume is translated
into a image copy failure and reraised.

Fixes: bug 1224211
Change-Id: Ia4a0a81d9e0967b1e7de07577d77084462304c60