]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "3PAR Driver modifications to support QOS"
Jenkins [Mon, 22 Jul 2013 06:46:07 +0000 (06:46 +0000)]
Merge "3PAR Driver modifications to support QOS"

11 years agoMerge "Sync gettextutils from oslo"
Jenkins [Fri, 19 Jul 2013 21:59:56 +0000 (21:59 +0000)]
Merge "Sync gettextutils from oslo"

11 years agoAdd test for volume status check when extending
Mathieu Gagné [Fri, 19 Jul 2013 19:49:54 +0000 (15:49 -0400)]
Add test for volume status check when extending

Ensure exception is raised if volume status is not 'available'
when extending volume.

Change-Id: I21337d5ca78090665b2feba50c74f853d3703650

11 years ago3PAR Driver modifications to support QOS
Kurt Martin [Thu, 18 Jul 2013 17:56:21 +0000 (10:56 -0700)]
3PAR Driver modifications to support QOS

Currently, the OpenStack HP 3PAR Fibre Channel (FC) and iSCSI Drivers
do not support Quality of Service (QoS) extra specs. The QoS settings
added in this patch include;
•   maximum MB/second (maxBWS)
•   maximum IO/second (maxIOPS)
These new extra specs will be scoped keys, the scoping will be
qos:maxBWS and qos:maxIOPS. A new key hp3par:vvs was also
added to allow the admin to predefine QOS settings on a 3PAR
virtual volume set and any volume created would be added
to that predefined volume set.

The 3PAR storage arrays set these values on virtual volume sets,
not the actual volume. So the change includes creating a virtual
volume set with these settings and then adding the volume to the
volume set.
1.  Max IO/S & Max MB/S are not QoS guarantees
2.  These are per volume maximums which the 3PAR is guaranteed
not to exceed.
3.  Settings these values does not guarantee these performance
rates will be achievable

DocImpact

Implements blueprint 3par-qos-support

Change-Id: I69031c6d3febe11dd5f9ff17095b86f3fe72a2a4

11 years agoMerge "Clone_image should return dict of vol properties, clone status."
Jenkins [Fri, 19 Jul 2013 16:57:22 +0000 (16:57 +0000)]
Merge "Clone_image should return dict of vol properties, clone status."

11 years agoMake Storwize/SVC tests work without simulator.
Avishay Traeger [Tue, 16 Jul 2013 11:55:58 +0000 (14:55 +0300)]
Make Storwize/SVC tests work without simulator.

Moved to using brick to get connector info and fixed a small bug to get
tests working on real storage again. Also fixed up simulator to handle
the multihostmap case properly.

Change-Id: I7f5804aa94eac29d8c3cec0f8e9ae9339d4e0816

11 years agoRevert hardening of Storwize/SVC SSH commands.
Avishay Traeger [Fri, 19 Jul 2013 13:30:11 +0000 (16:30 +0300)]
Revert hardening of Storwize/SVC SSH commands.

This reverts commit 6be79a8e3b4607adbbe6a26ee565156cd0fb36b0.
Paramiko expects string commands, not lists.

Change-Id: I1b762c0311a0ac810427ea033f737fd067761b1c

11 years agoSync gettextutils from oslo
Luis A. Garcia [Mon, 8 Jul 2013 23:03:20 +0000 (23:03 +0000)]
Sync gettextutils from oslo

Bring in the necessary code for handling cinder translations

Partially implements bp user-locale-api

Change-Id: Ibcf087c0f099262b90c115a155fdef619d3c5851

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 18 Jul 2013 18:09:57 +0000 (18:09 +0000)]
Imported Translations from Transifex

Change-Id: I4d20bf6b7a7e6d35e1319dbc758f1ccc305b4971

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 18 Jul 2013 15:04:28 +0000 (15:04 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Tidy up the SSH call to avoid injection attacks in storwize_svc"
Jenkins [Thu, 18 Jul 2013 15:04:27 +0000 (15:04 +0000)]
Merge "Tidy up the SSH call to avoid injection attacks in storwize_svc"

11 years agoMerge "Fix duplicate config options"
Jenkins [Thu, 18 Jul 2013 10:05:29 +0000 (10:05 +0000)]
Merge "Fix duplicate config options"

11 years agoFix duplicate config options
Zhongyue Luo [Thu, 18 Jul 2013 07:42:34 +0000 (16:42 +0900)]
Fix duplicate config options

This is causing an error in the config file tool generator.
Removed them since they are registered in cinder.api.common

Change-Id: I23988d5133bbb95637dd9514813009ea8b460982

11 years agoMerge "Move copy_volume function to volume/utils.py."
Jenkins [Thu, 18 Jul 2013 07:34:16 +0000 (07:34 +0000)]
Merge "Move copy_volume function to volume/utils.py."

11 years agoMerge "Delete snapshot metadata when snapshot is deleted"
Jenkins [Thu, 18 Jul 2013 07:21:24 +0000 (07:21 +0000)]
Merge "Delete snapshot metadata when snapshot is deleted"

11 years agoMerge "Fix indent in cincer/volume/configuration.py"
Jenkins [Thu, 18 Jul 2013 07:17:19 +0000 (07:17 +0000)]
Merge "Fix indent in cincer/volume/configuration.py"

11 years agoMerge "Fixes Opt type of use_multipath_for_image_xfer"
Jenkins [Thu, 18 Jul 2013 07:17:12 +0000 (07:17 +0000)]
Merge "Fixes Opt type of use_multipath_for_image_xfer"

11 years agoMove copy_volume function to volume/utils.py.
Avishay Traeger [Wed, 17 Jul 2013 12:35:03 +0000 (15:35 +0300)]
Move copy_volume function to volume/utils.py.

There are several copy-pastes of running dd, so moved the most
correct one (LVM) to volume/utils.py, and also updated
BlockDeviceDriver to use it. Other drivers (e.g., NFS, GPFS, Scality)
should be updated as well. Volume migration for detached volumes
is a future use case.

Change-Id: I56c64c94eccf0a311e6f3d611738ad0403351971

11 years agoMerge "Implement validate_connector for Storwize/SVC."
Jenkins [Thu, 18 Jul 2013 04:57:21 +0000 (04:57 +0000)]
Merge "Implement validate_connector for Storwize/SVC."

11 years agoFixes default value of use_default_quota_class
Zhongyue Luo [Wed, 17 Jul 2013 05:19:26 +0000 (14:19 +0900)]
Fixes default value of use_default_quota_class

Changed 'True' to True

Change-Id: I69d5cefd888044b5544e41b34ab4f8974efb0a14

11 years agoMerge "Rename SolidFire driver for consistency"
Jenkins [Wed, 17 Jul 2013 23:23:36 +0000 (23:23 +0000)]
Merge "Rename SolidFire driver for consistency"

11 years agoMerge "Fixes Opt types in cinder/backup/drivers/ceph.py"
Jenkins [Wed, 17 Jul 2013 23:23:29 +0000 (23:23 +0000)]
Merge "Fixes Opt types in cinder/backup/drivers/ceph.py"

11 years agoMerge "Fix extend_volume error handling."
Jenkins [Wed, 17 Jul 2013 22:24:01 +0000 (22:24 +0000)]
Merge "Fix extend_volume error handling."

11 years agoMerge "Fixes race condition in LVMVolumeDriver create_cloned_volume method"
Jenkins [Wed, 17 Jul 2013 18:58:54 +0000 (18:58 +0000)]
Merge "Fixes race condition in LVMVolumeDriver create_cloned_volume method"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 17 Jul 2013 18:10:23 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I71bcb713fc49faea2e1e442f08087800e0ea417a

11 years agoDelete snapshot metadata when snapshot is deleted
Ollie Leahy [Wed, 17 Jul 2013 17:44:04 +0000 (17:44 +0000)]
Delete snapshot metadata when snapshot is deleted

When a volume is deleted all rows in the volume_metadata table for that
volume are deleted as part of the database operation. This patch updates
the snapshot delete operation to delete corresponding rows in the
snapshot_metadata table.

Change-Id: I17543a82be370bed57d4165ad8756ccb390bc0d9

11 years agoTidy up the SSH call to avoid injection attacks in storwize_svc
Haomai Wang [Wed, 17 Jul 2013 13:36:55 +0000 (21:36 +0800)]
Tidy up the SSH call to avoid injection attacks in storwize_svc

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

fix bug 1192971

Change-Id: I72bb7ef137223381c9daa613e61f1fde4c3bc8ae

11 years agoFix extend_volume error handling.
Avishay Traeger [Wed, 17 Jul 2013 05:17:14 +0000 (08:17 +0300)]
Fix extend_volume error handling.

If the async call to the manager/driver failed, the API still updated
the quota and volume size in the DB. Solution is to move these tasks
down to the manager, where we know if the extend succeeded.

Change-Id: I668fd659830bd6d410be64a1f5116377b08a9e96
Fixes: bug 1201814
11 years agoFixes race condition in LVMVolumeDriver create_cloned_volume method
Rongze Zhu [Wed, 17 Jul 2013 10:15:04 +0000 (18:15 +0800)]
Fixes race condition in LVMVolumeDriver create_cloned_volume method

When we create a clone volume, LVMVolumeDriver will firstly create a temp
snapshot for copying, the temp snapshot name is
"clone-snap-%s" % source_volume['id']. When we create multiple clone volumes
of the same volume simultaneously, which would trigger the race issuse.

I changes the temp snapshot name template to "clone-snap-%s" % volume['id'],
so temp snapshot name will be unique.

Fixes bug #1202139

Change-Id: I3a4f2585ea9e6f70b6f6f9889e900f19559b8176

11 years agoChecks the volume_clear flag and just return if it is none
Rongze Zhu [Wed, 17 Jul 2013 08:34:21 +0000 (16:34 +0800)]
Checks the volume_clear flag and just return if it is none

Refactors the clear_volume method in LVMVolumeDriver, checks the
volume_clear flag firstly and return directly if it is none.

Change-Id: Id2523cfaaf61c7d6dec51c0daf6255d9de5d50f3

11 years agoMerge "Minor reorg for (array resource usage and backend options naming)"
Jenkins [Wed, 17 Jul 2013 06:23:45 +0000 (06:23 +0000)]
Merge "Minor reorg for (array resource usage and backend options naming)"

11 years agoMerge "remove improper assert usage"
Jenkins [Wed, 17 Jul 2013 06:23:14 +0000 (06:23 +0000)]
Merge "remove improper assert usage"

11 years agoMerge "Add tests for cinder/api/urlmap.py"
Jenkins [Wed, 17 Jul 2013 06:00:38 +0000 (06:00 +0000)]
Merge "Add tests for cinder/api/urlmap.py"

11 years agoMerge "Fix error when QuotaUsage.updated_at is NULL"
Jenkins [Wed, 17 Jul 2013 06:00:27 +0000 (06:00 +0000)]
Merge "Fix error when QuotaUsage.updated_at is NULL"

11 years agoMerge "Add te field user_id into the volume detailed information."
Jenkins [Wed, 17 Jul 2013 05:49:54 +0000 (05:49 +0000)]
Merge "Add te field user_id into the volume detailed information."

11 years agoFixes Opt type of use_multipath_for_image_xfer
Zhongyue Luo [Wed, 17 Jul 2013 05:36:27 +0000 (14:36 +0900)]
Fixes Opt type of use_multipath_for_image_xfer

Changed use_multipath_for_image_xfer from StrOpt to BoolOpt

Change-Id: Id02ba23b233d348885250ccb8c14fcf04667adec

11 years agoFixes Opt types in cinder/backup/drivers/ceph.py
Zhongyue Luo [Wed, 17 Jul 2013 05:26:23 +0000 (14:26 +0900)]
Fixes Opt types in cinder/backup/drivers/ceph.py

Changed backup_ceph_chunk_size, backup_ceph_stripe_unit and
backup_ceph_stripe_count from StrOpt to IntOpt.

Change-Id: I30a0b4d905b41f00e6450bc5cbfbf0c4d8593ab3

11 years agoFix indent in cincer/volume/configuration.py
Zhongyue Luo [Wed, 17 Jul 2013 05:09:18 +0000 (14:09 +0900)]
Fix indent in cincer/volume/configuration.py

Change-Id: I7d6e01de7dbc542ebe8fc35c0776de7a099f91e6

11 years agoMerge "Mark methods used in class only with prefix "_""
Jenkins [Wed, 17 Jul 2013 03:52:29 +0000 (03:52 +0000)]
Merge "Mark methods used in class only with prefix "_""

11 years agoMerge "Add Brick Fibre Channel attach/detach support."
Jenkins [Wed, 17 Jul 2013 03:52:25 +0000 (03:52 +0000)]
Merge "Add Brick Fibre Channel attach/detach support."

11 years agoImplement validate_connector for Storwize/SVC.
Avishay Traeger [Tue, 16 Jul 2013 09:24:30 +0000 (12:24 +0300)]
Implement validate_connector for Storwize/SVC.

Implement the new validate_connector API for the Storwize/SVC driver.

Change-Id: I637f406c2592b158a7941da3657a0517972b0996

11 years agoMerge "Fixes ceph-backup failure if original volume deleted"
Jenkins [Wed, 17 Jul 2013 03:32:10 +0000 (03:32 +0000)]
Merge "Fixes ceph-backup failure if original volume deleted"

11 years agoFix error when QuotaUsage.updated_at is NULL
Haomai Wang [Tue, 16 Jul 2013 13:47:19 +0000 (21:47 +0800)]
Fix error when QuotaUsage.updated_at is NULL

When QuotaUsage.updated_at is None, it will raise non-expected exception.
Just verify it.

Fix bug 1197259

Change-Id: I2b41d025f8cffa6c0b3f0153a5194d5e7b1a05df

11 years agoRename SolidFire driver for consistency
Mathieu Gagné [Wed, 17 Jul 2013 01:03:52 +0000 (21:03 -0400)]
Rename SolidFire driver for consistency

Rename driver to SolidFireDriver for consistency.

Fixes: bug #1136081
Change-Id: I83aef90706474e8a079ab5247b72b33c7a2c8472

11 years agoAdd Brick Fibre Channel attach/detach support.
Walter A. Boring IV [Wed, 10 Jul 2013 22:22:06 +0000 (15:22 -0700)]
Add Brick Fibre Channel attach/detach support.

This patch adds the required code to do
Fibre Channel attach and detaches of volumes.
This code has been pulled over from Nova's
implementation of FC attach/detach.

Also adds a new driver config entry to enable
multipath support for iSCSI and FC attaches
during volume to image and image
to volume transfers.

DocImpact

blueprint cinder-refactor-attach

Change-Id: I436592f958a6c14cd2a0b5d7e53362dd1a7c1a48

11 years agoIncrease timeout period for clone volume.
John Griffith [Wed, 17 Jul 2013 00:27:19 +0000 (18:27 -0600)]
Increase timeout period for clone volume.

Current timeout value for clone volume in the
SolidFire driver is 20 seconds, this is fine
in many cases however there seems to be a
number of customers doing clones of
volumes >= 400G.

A populated 400G volume is taking upwards of
35 seconds to clone in some cases resulting in failure.

There's no reason not to bump this timeout value up
significantly to a worst case scenario (ie multi-terrabyte volume).

Fixes bug: 1202007

Change-Id: I98c399f5d647e14f031018f7fc1cc43bb0d94c84

11 years agoMerge "Adds multiple iSCSI port support to 3PAR"
Jenkins [Wed, 17 Jul 2013 00:13:55 +0000 (00:13 +0000)]
Merge "Adds multiple iSCSI port support to 3PAR"

11 years agoMerge "Be sure to check deleted types on quota update."
Jenkins [Tue, 16 Jul 2013 21:15:44 +0000 (21:15 +0000)]
Merge "Be sure to check deleted types on quota update."

11 years agoMerge "CoraidDriver: Allow volumes in error state to be deleted"
Jenkins [Tue, 16 Jul 2013 19:54:25 +0000 (19:54 +0000)]
Merge "CoraidDriver: Allow volumes in error state to be deleted"

11 years agoBe sure to check deleted types on quota update.
John Griffith [Fri, 12 Jul 2013 23:43:27 +0000 (17:43 -0600)]
Be sure to check deleted types on quota update.

If a volume-type is deleted, and later a volume
that's assigned that type is deleted the quota
update will fail and result in a trace for
VolumeTypeNotFound exception.

The volume is succesfully deleted, however the
quota information for the volume-type let alone
the other quota items for the volume are not
updated.

Fixes bug: 1200709

Change-Id: Idd687514be9d622df84aad54b1b33ddc6615851b

11 years agoCoraidDriver: Allow volumes in error state to be deleted
Jean-Baptiste Ransy [Fri, 12 Jul 2013 13:41:12 +0000 (15:41 +0200)]
CoraidDriver: Allow volumes in error state to be deleted

This fix will allow the delete call to be successfull if volume
doesn't exists on the SAN.

Fixes bug 1195788

Change-Id: I0396f1252c8faafff3e8b4f9a4aeffb930350a8d

11 years agoAdds multiple iSCSI port support to 3PAR
Jim Branen [Wed, 10 Jul 2013 19:34:09 +0000 (12:34 -0700)]
Adds multiple iSCSI port support to 3PAR

Added support to the 3PAR iSCSI OpenStack driver to provide the
ability to select the best fit target iSCSI port from a list of
candidate ports. The first time a volume is attached to a host,
all iSCSI ports configured for driver selection, are examined for
best fit. The port with the least active volumes attached will
then be selected as the path to the 3PAR array. Any subsequent
volume attach, to the same host, will use the established target
port.

DocImpact

Fixes bug #1197036

Change-Id: Icf8c28ea3f201e5e21c9a6ed00a2fbdda445c8b3

11 years agoImplement extend volume functionality in Sheepdog
Haomai Wang [Tue, 16 Jul 2013 09:04:34 +0000 (17:04 +0800)]
Implement extend volume functionality in Sheepdog

This implements the extend volume functionality for Sheepdog driver.

Change-Id: Id7361e9571742bea210f13ced722829f489e7cb0
Implements: blueprint extend-sheepdog-volume

11 years agoMark methods used in class only with prefix "_"
Seif Lotfy [Sun, 14 Jul 2013 23:05:44 +0000 (23:05 +0000)]
Mark methods used in class only with prefix "_"

In the swift driver the three methods prepare_nbackup, backup_chunk
and finalize_backup are used internally in the class only and are
not meant to be used from outside. Thus marked with prefix "_"

Change-Id: Idf3a75f2e799c16b1442a349e0724d3e5af2795a

11 years agoMerge "Add flag argument to 'cinder-manage config list'"
Jenkins [Tue, 16 Jul 2013 08:15:57 +0000 (08:15 +0000)]
Merge "Add flag argument to 'cinder-manage config list'"

11 years agoMerge "Catch additional connect fail cases."
Jenkins [Tue, 16 Jul 2013 06:19:22 +0000 (06:19 +0000)]
Merge "Catch additional connect fail cases."

11 years agoMerge "Implement extend volume functionality in Rbd"
Jenkins [Tue, 16 Jul 2013 04:52:21 +0000 (04:52 +0000)]
Merge "Implement extend volume functionality in Rbd"

11 years agoMerge "Clean up Huawei tmp files from tests."
Jenkins [Tue, 16 Jul 2013 04:45:23 +0000 (04:45 +0000)]
Merge "Clean up Huawei tmp files from tests."

11 years agoAdd te field user_id into the volume detailed information.
Vincent Hou [Tue, 16 Jul 2013 03:12:32 +0000 (23:12 -0400)]
Add te field user_id into the volume detailed information.

Fixed Bug 1200555.

Change-Id: Ibc36453caa174432b69597b1b2a0b314a7730357

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

11 years agoCatch additional connect fail cases.
John Griffith [Mon, 15 Jul 2013 21:16:25 +0000 (15:16 -0600)]
Catch additional connect fail cases.

When fixing bug/1195910, some other failure
cases weren't considered (ie not authorized,
unreachable dest etc).

We should fix this up to handle the various
connection error states accordingly and also
add some hints to the log output to help
determine where to look in case of failure.

Fixes bug: 1201592

Change-Id: Ib099c7af705e7c49be4d0f723c8a20262c942e7f

11 years agoMerge "Implement extend volume functionality in SolidFire"
Jenkins [Mon, 15 Jul 2013 21:52:53 +0000 (21:52 +0000)]
Merge "Implement extend volume functionality in SolidFire"

11 years agoMerge "Add unit tests for cinder/api/contrib/volume_actions."
Jenkins [Mon, 15 Jul 2013 21:46:40 +0000 (21:46 +0000)]
Merge "Add unit tests for cinder/api/contrib/volume_actions."

11 years agoMerge "Use base ISCSI driver to fulfill some driver requirements"
Jenkins [Mon, 15 Jul 2013 20:40:56 +0000 (20:40 +0000)]
Merge "Use base ISCSI driver to fulfill some driver requirements"

11 years agoClean up Huawei tmp files from tests.
Avishay Traeger [Mon, 15 Jul 2013 19:36:14 +0000 (22:36 +0300)]
Clean up Huawei tmp files from tests.

Remove tmp files created by Huawei tests.

Change-Id: Id2eb4034b7be9d76843659647387344914ce236a
Fixes: bug 1200416
11 years agoAdd flag argument to 'cinder-manage config list'
Jay S. Bryant [Wed, 19 Jun 2013 19:52:41 +0000 (14:52 -0500)]
Add flag argument to 'cinder-manage config list'

Unlike other cinder-manage 'list' commands the 'config list'
option doesn't allow users to specify a filter to limit
the output.  This commit adds the ability to specify
the flag the user wishes to display.

If no flag is specified the default behavior is still to
display all the configured flags.  If the flag requested
is not found, cinder-manage reports that the flag was not
found.

(fixes bug 1187137)

Change-Id: I698f4c06d7e93217d8f307a880e0ae40711151c2

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 15 Jul 2013 18:10:20 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ie950672cd1eb59c78124a84c37da620a3b4af97f

11 years agoAdd generic block device driver
Ann Kamyshnikova [Wed, 17 Apr 2013 09:58:35 +0000 (13:58 +0400)]
Add generic block device driver

This driver adds an ability to create volumes on any block device on
local host.

This driver supports the following features:

- Volume Create/Delete
- Volume Attach/Detach
- Get Volume Stats
- Copy Image to Volume
- Copy Volume to Image
- Clone Volume

Not implemented:

- Snapshot Create/Delete
- Create Volume from Snapshot

These features are not implemented because there is no generic way
to create snapshots for block devices.

bp block-device-driver

Change-Id: If5fcaf2775daf660c46d630eea0f9633ca816ee9

11 years agoUse base ISCSI driver to fulfill some driver requirements
Mike Perez [Mon, 15 Jul 2013 01:48:54 +0000 (18:48 -0700)]
Use base ISCSI driver to fulfill some driver requirements

Cinder has a list of minimum features that must be implemented by each
driver. This uses the copy_volume_to_image and copy_image_to_volume
implementation from the base ISCSI class. Also use the base for raising
NotImplementedError. This touches the Nexenta and Zadara driver.

Change-Id: I44a347e126a783e38d3a68cba23306a571aec43b

11 years agoMerge "Cleanup and make HACKING.rst DRYer"
Jenkins [Sun, 14 Jul 2013 19:07:21 +0000 (19:07 +0000)]
Merge "Cleanup and make HACKING.rst DRYer"

11 years agoCleanup and make HACKING.rst DRYer
Joe Gordon [Fri, 12 Jul 2013 15:47:01 +0000 (16:47 +0100)]
Cleanup and make HACKING.rst DRYer

Reference the OpenStack hacking guide in HACKING.rst and remove
duplicate entries.  Add placeholder section for cinder specific rules.
cinder specific rules can be created using hacking's local check
support.

Change-Id: Ia74da70363e3fe602405a440c1d2ec75052e9193

11 years agoMerge "Handle errors raised by extend_volume"
Jenkins [Sat, 13 Jul 2013 16:10:48 +0000 (16:10 +0000)]
Merge "Handle errors raised by extend_volume"

11 years agoMerge "Fix a few Sphinx warnings"
Jenkins [Sat, 13 Jul 2013 16:10:41 +0000 (16:10 +0000)]
Merge "Fix a few Sphinx warnings"

11 years agoMerge "Add support to import images into sheepdog volumes."
Jenkins [Sat, 13 Jul 2013 16:09:13 +0000 (16:09 +0000)]
Merge "Add support to import images into sheepdog volumes."

11 years agoClone_image should return dict of vol properties, clone status.
Navneet Singh [Sat, 13 Jul 2013 06:55:30 +0000 (12:25 +0530)]
Clone_image should return dict of vol properties, clone status.

The method will work fine in case of drivers not dependent
on volume properties like provider_location. It will fail to
restart in case of nfs drivers and also leave volume created as
result of clone_image functionality created in the
nfs share in dangling state after deletion as provider_location
is None. This fix requires dict of volume properties, cloned status
to be returned which facilitates passing back provider_location
in case of nfs drivers and hence resolves the issue.

bug 1200708

Change-Id: I590571e52d1c64b6dba7d7e76cd71badd74e51d1

11 years agoMerge "Update requirements from openstack/requirements."
Jenkins [Fri, 12 Jul 2013 18:56:05 +0000 (18:56 +0000)]
Merge "Update requirements from openstack/requirements."

11 years agoMerge "Enable zero the snapshot when delete snapshot in LVMVolumeDriver"
Jenkins [Fri, 12 Jul 2013 18:33:14 +0000 (18:33 +0000)]
Merge "Enable zero the snapshot when delete snapshot in LVMVolumeDriver"

11 years agoUpdate requirements from openstack/requirements.
John Griffith [Fri, 12 Jul 2013 00:02:45 +0000 (18:02 -0600)]
Update requirements from openstack/requirements.

Fixes bug: 1200214

Change-Id: I31edd5283b72ac46e99a11aca196f5b9915c4465

11 years agoEnable zero the snapshot when delete snapshot in LVMVolumeDriver
Rongze Zhu [Wed, 10 Jul 2013 16:25:32 +0000 (09:25 -0700)]
Enable zero the snapshot when delete snapshot in LVMVolumeDriver

Because snapshot without 'size' field, So clear_volume method in
LVMVolumeDriver will skip secure deleting. Get the size of snapshot from
'volume_size' filed, So it can zero the snapshot.

Remove the 'size_in_g' parameter in _delete_volume method, because it never
used. Add a unittest for clear_volume method.

Fixes  Bug #1198185

Change-Id: Ie919b50ce4fb276f29ab2e0279f868a691ea7bef

11 years agoFixes ceph-backup failure if original volume deleted
Edward Hope-Morley [Thu, 11 Jul 2013 18:38:15 +0000 (19:38 +0100)]
Fixes ceph-backup failure if original volume deleted

Fixes: bug #1199661
Change-Id: I21f979bf2c0ca6910a6437cb6277193f71fed664

11 years agoMerge "Ignore files created by Sphinx build"
Jenkins [Fri, 12 Jul 2013 06:57:18 +0000 (06:57 +0000)]
Merge "Ignore files created by Sphinx build"

11 years agoImplement extend volume functionality in Rbd
Haomai Wang [Wed, 10 Jul 2013 09:10:09 +0000 (17:10 +0800)]
Implement extend volume functionality in Rbd

This implements the extend volume functionality for Rbd driver.

Implements: blueprint extend-rbd-volume
Change-Id: I7ddbd0dda742627e959ac672b125555225238030

11 years agoHandle errors raised by extend_volume
Mathieu Gagné [Tue, 9 Jul 2013 17:59:43 +0000 (13:59 -0400)]
Handle errors raised by extend_volume

Errors raised by extend_volume aren't handled by the manager.
This means the volume status will not be updated to 'error_extending'
when an error is raised during the process.

* Handle such errors and update volume status accordingly
* Add logging for the extend volume process

Fixes: bug #1199471
Change-Id: I06a037af0344d1eaf4115f0af5a85ceeab1ffd37

11 years agoMinor reorg for (array resource usage and backend options naming)
Lakhinder Walia [Fri, 12 Jul 2013 01:27:16 +0000 (18:27 -0700)]
Minor reorg for (array resource usage and backend options naming)

1. Use HUS target/initiator resources efficiently.
2. Command options aligned with openStack scheme of using dashes.
3. Self tests modified to accomodate #1 and #2.

Change-Id: I7d23a980f237c973538ca08215f77a1f69cc2517
Fixes: bug 1200441
11 years agoMerge "Check enabled backup service before rpc request"
Jenkins [Fri, 12 Jul 2013 01:25:04 +0000 (01:25 +0000)]
Merge "Check enabled backup service before rpc request"

11 years agoMerge "Fixed Ceph backup librbd segfault"
Jenkins [Fri, 12 Jul 2013 01:25:01 +0000 (01:25 +0000)]
Merge "Fixed Ceph backup librbd segfault"

11 years agoCheck enabled backup service before rpc request
xiaoxi_chen [Thu, 11 Jul 2013 07:22:04 +0000 (15:22 +0800)]
Check enabled backup service before rpc request

In previous code we didn't check whether we have an enabled
backup service there before we send out the rpc request,
results that if no enabled backup service there,the volume will
stays in "backing-up" state and the backup will stays in "creating".

This patch fixed this issue, we exam whether at least an appropriate
(same host,az as the volume and is_alive) backup service available
before we do the rpc request.

Fixes: bug #1200040
Change-Id: I77154528f489ed20f7b784e6fcefccf15dc81d1d

11 years agoMerge "Enable setting blocksize on volumes."
Jenkins [Thu, 11 Jul 2013 21:58:43 +0000 (21:58 +0000)]
Merge "Enable setting blocksize on volumes."

11 years agoFixed Ceph backup librbd segfault
Edward Hope-Morley [Thu, 11 Jul 2013 17:26:22 +0000 (18:26 +0100)]
Fixed Ceph backup librbd segfault

Change-Id: I1a6b9935eb7da9fca5b572ea4823bae3def99ea0
Fixes: bug #1198271
11 years agoMerge " cinder.api: Replace 'locals()' with explicit values"
Jenkins [Thu, 11 Jul 2013 17:41:44 +0000 (17:41 +0000)]
Merge "    cinder.api: Replace 'locals()' with explicit values"

11 years agoMerge "Fix missing volume_name_template flag."
Jenkins [Thu, 11 Jul 2013 17:38:06 +0000 (17:38 +0000)]
Merge "Fix missing volume_name_template flag."

11 years agoMerge "Consist terminate_connection function signature"
Jenkins [Thu, 11 Jul 2013 16:20:15 +0000 (16:20 +0000)]
Merge "Consist terminate_connection function signature"

11 years agoMerge "Add support for storing volumes on GPFS"
Jenkins [Thu, 11 Jul 2013 13:31:58 +0000 (13:31 +0000)]
Merge "Add support for storing volumes on GPFS"

11 years agoMerge "Add unit tests for cinder/api/versions"
Jenkins [Thu, 11 Jul 2013 11:34:34 +0000 (11:34 +0000)]
Merge "Add unit tests for cinder/api/versions"

11 years agoMerge "Update upper bound of keystoneclient version."
Jenkins [Thu, 11 Jul 2013 11:20:01 +0000 (11:20 +0000)]
Merge "Update upper bound of keystoneclient version."

11 years agoAdd support to import images into sheepdog volumes.
Wenhao Xu [Wed, 6 Mar 2013 08:51:33 +0000 (16:51 +0800)]
Add support to import images into sheepdog volumes.

Supporting import images from glance to sheepdog volumes.
Unit test framework for sheepdog is added too.

Fix Bug #1148784

Change-Id: I8ffd1bc1b2d719aed27ce0d98eaa41fef8027ca2

11 years agoAdd tests for cinder/api/urlmap.py
Julia Varlamova [Fri, 5 Jul 2013 11:33:56 +0000 (15:33 +0400)]
Add tests for cinder/api/urlmap.py

Add tests for unquoting and parsing functions in
TestParseFunction class
Add tests for Accept class methods:
 - TestAccept class - test cases for processing content types
 - TestUrlMapFactory - test cases for urlmap factory
Add tests for URLMap class methods except __call__ method in TestURLMap

Change-Id: I3f1aa527f49175d9fac6fbe7309383709c30c237

11 years agoremove improper assert usage
Kun Huang [Thu, 11 Jul 2013 04:04:52 +0000 (12:04 +0800)]
remove improper assert usage

There're many talks about it. An assert should be used for `never
happen` cases, not common paramaters validating.

With grep, we could many all assert statement used in none-test codes:

cinder/volume/drivers/san/solaris.py:110:
cinder/volume/drivers/san/solaris.py:116:
cinder/volume/drivers/san/solaris.py:161:
cinder/volume/drivers/san/solaris.py:162:
cinder/volume/drivers/san/solaris.py:163:
cinder/volume/drivers/san/solaris.py:164:
cinder/volume/drivers/san/solaris.py:170:
    checking cmd output which should never changed, so leave it
cinder/db/sqlalchemy/migration.py:113:
    ensure file existence from impossible cases, so leave it
cinder/utils.py:
    used for functional flow, so use ValueError instead

fixes bug #1199354
Change-Id: I2b1701269bdf7c8737548e57bd940921a6256372

11 years agoEnable setting blocksize on volumes.
John Griffith [Wed, 10 Jul 2013 21:34:26 +0000 (15:34 -0600)]
Enable setting blocksize on volumes.

Some back-ends support blocksizes other than the default 512 (like 4096),
this change adds a provider_geometry column to the volumes table,
format is "physical_block_size logical_block_size".

This can then be used by libvirt to determine if it should pass in
non-default block_size info, and there's a method for future
geometry/disk info that might be needed.

Fixes bug: 1196248

Change-Id: I8d40bc56403154fbe955cd4ccf8f0c55fc9eb7c5

11 years ago cinder.api: Replace 'locals()' with explicit values
Scott DAngelo [Wed, 10 Jul 2013 22:00:02 +0000 (22:00 +0000)]
cinder.api: Replace 'locals()' with explicit values

    Help bring source code into compliance with the
    Cinder Style Commandments:
    https://github.com/openstack/cinder/blob/master/HACKING.rst

    This change covers all affected source in the
    cinder api module, specifically:
    cinder/api/contrib/volume_actions.py

    Partially fixes: bug #1190758

Change-Id: I2134e69b70a5a5132847168f60b4d192bdf0b536