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
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
OpenStack Jenkins [Thu, 18 Jul 2013 18:09:57 +0000 (18:09 +0000)]
Imported Translations from Transifex
Change-Id: I4d20bf6b7a7e6d35e1319dbc758f1ccc305b4971
OpenStack Jenkins [Thu, 18 Jul 2013 15:04:28 +0000 (15:04 +0000)]
Merge "Imported Translations from Transifex"
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"
Jenkins [Thu, 18 Jul 2013 10:05:29 +0000 (10:05 +0000)]
Merge "Fix 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
Jenkins [Thu, 18 Jul 2013 07:34:16 +0000 (07:34 +0000)]
Merge "Move copy_volume function to volume/utils.py."
Jenkins [Thu, 18 Jul 2013 07:21:24 +0000 (07:21 +0000)]
Merge "Delete snapshot metadata when snapshot is deleted"
Jenkins [Thu, 18 Jul 2013 07:17:19 +0000 (07:17 +0000)]
Merge "Fix indent in cincer/volume/configuration.py"
Jenkins [Thu, 18 Jul 2013 07:17:12 +0000 (07:17 +0000)]
Merge "Fixes Opt type of use_multipath_for_image_xfer"
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
Jenkins [Thu, 18 Jul 2013 04:57:21 +0000 (04:57 +0000)]
Merge "Implement validate_connector for Storwize/SVC."
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
Jenkins [Wed, 17 Jul 2013 23:23:36 +0000 (23:23 +0000)]
Merge "Rename SolidFire driver for consistency"
Jenkins [Wed, 17 Jul 2013 23:23:29 +0000 (23:23 +0000)]
Merge "Fixes Opt types in cinder/backup/drivers/ceph.py"
Jenkins [Wed, 17 Jul 2013 22:24:01 +0000 (22:24 +0000)]
Merge "Fix extend_volume error handling."
Jenkins [Wed, 17 Jul 2013 18:58:54 +0000 (18:58 +0000)]
Merge "Fixes race condition in LVMVolumeDriver create_cloned_volume method"
OpenStack Jenkins [Wed, 17 Jul 2013 18:10:23 +0000 (18:10 +0000)]
Imported Translations from Transifex
Change-Id: I71bcb713fc49faea2e1e442f08087800e0ea417a
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
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
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
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
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
Jenkins [Wed, 17 Jul 2013 06:23:45 +0000 (06:23 +0000)]
Merge "Minor reorg for (array resource usage and backend options naming)"
Jenkins [Wed, 17 Jul 2013 06:23:14 +0000 (06:23 +0000)]
Merge "remove improper assert usage"
Jenkins [Wed, 17 Jul 2013 06:00:38 +0000 (06:00 +0000)]
Merge "Add tests for cinder/api/urlmap.py"
Jenkins [Wed, 17 Jul 2013 06:00:27 +0000 (06:00 +0000)]
Merge "Fix error when QuotaUsage.updated_at is NULL"
Jenkins [Wed, 17 Jul 2013 05:49:54 +0000 (05:49 +0000)]
Merge "Add te field user_id into the volume detailed information."
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
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
Zhongyue Luo [Wed, 17 Jul 2013 05:09:18 +0000 (14:09 +0900)]
Fix indent in cincer/volume/configuration.py
Change-Id: I7d6e01de7dbc542ebe8fc35c0776de7a099f91e6
Jenkins [Wed, 17 Jul 2013 03:52:29 +0000 (03:52 +0000)]
Merge "Mark methods used in class only with prefix "_""
Jenkins [Wed, 17 Jul 2013 03:52:25 +0000 (03:52 +0000)]
Merge "Add Brick Fibre Channel attach/detach support."
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
Jenkins [Wed, 17 Jul 2013 03:32:10 +0000 (03:32 +0000)]
Merge "Fixes ceph-backup failure if original volume deleted"
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
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
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
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
Jenkins [Wed, 17 Jul 2013 00:13:55 +0000 (00:13 +0000)]
Merge "Adds multiple iSCSI port support to 3PAR"
Jenkins [Tue, 16 Jul 2013 21:15:44 +0000 (21:15 +0000)]
Merge "Be sure to check deleted types on quota update."
Jenkins [Tue, 16 Jul 2013 19:54:25 +0000 (19:54 +0000)]
Merge "CoraidDriver: Allow volumes in error state to be deleted"
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
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
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
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
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
Jenkins [Tue, 16 Jul 2013 08:15:57 +0000 (08:15 +0000)]
Merge "Add flag argument to 'cinder-manage config list'"
Jenkins [Tue, 16 Jul 2013 06:19:22 +0000 (06:19 +0000)]
Merge "Catch additional connect fail cases."
Jenkins [Tue, 16 Jul 2013 04:52:21 +0000 (04:52 +0000)]
Merge "Implement extend volume functionality in Rbd"
Jenkins [Tue, 16 Jul 2013 04:45:23 +0000 (04:45 +0000)]
Merge "Clean up Huawei tmp files from tests."
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
OpenStack Jenkins [Tue, 16 Jul 2013 02:24:29 +0000 (02:24 +0000)]
Merge "Imported Translations from Transifex"
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
Jenkins [Mon, 15 Jul 2013 21:52:53 +0000 (21:52 +0000)]
Merge "Implement extend volume functionality in SolidFire"
Jenkins [Mon, 15 Jul 2013 21:46:40 +0000 (21:46 +0000)]
Merge "Add unit tests for cinder/api/contrib/volume_actions."
Jenkins [Mon, 15 Jul 2013 20:40:56 +0000 (20:40 +0000)]
Merge "Use base ISCSI driver to fulfill some driver requirements"
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
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
OpenStack Jenkins [Mon, 15 Jul 2013 18:10:20 +0000 (18:10 +0000)]
Imported Translations from Transifex
Change-Id: Ie950672cd1eb59c78124a84c37da620a3b4af97f
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
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
Jenkins [Sun, 14 Jul 2013 19:07:21 +0000 (19:07 +0000)]
Merge "Cleanup 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
Jenkins [Sat, 13 Jul 2013 16:10:48 +0000 (16:10 +0000)]
Merge "Handle errors raised by extend_volume"
Jenkins [Sat, 13 Jul 2013 16:10:41 +0000 (16:10 +0000)]
Merge "Fix a few Sphinx warnings"
Jenkins [Sat, 13 Jul 2013 16:09:13 +0000 (16:09 +0000)]
Merge "Add support to import images into sheepdog volumes."
Jenkins [Fri, 12 Jul 2013 18:56:05 +0000 (18:56 +0000)]
Merge "Update requirements from openstack/requirements."
Jenkins [Fri, 12 Jul 2013 18:33:14 +0000 (18:33 +0000)]
Merge "Enable zero the snapshot when delete snapshot in LVMVolumeDriver"
John Griffith [Fri, 12 Jul 2013 00:02:45 +0000 (18:02 -0600)]
Update requirements from openstack/requirements.
Fixes bug:
1200214
Change-Id: I31edd5283b72ac46e99a11aca196f5b9915c4465
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
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
Jenkins [Fri, 12 Jul 2013 06:57:18 +0000 (06:57 +0000)]
Merge "Ignore files created by Sphinx build"
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
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
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
Jenkins [Fri, 12 Jul 2013 01:25:04 +0000 (01:25 +0000)]
Merge "Check enabled backup service before rpc request"
Jenkins [Fri, 12 Jul 2013 01:25:01 +0000 (01:25 +0000)]
Merge "Fixed Ceph backup librbd segfault"
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
Jenkins [Thu, 11 Jul 2013 21:58:43 +0000 (21:58 +0000)]
Merge "Enable setting blocksize on volumes."
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
Jenkins [Thu, 11 Jul 2013 17:41:44 +0000 (17:41 +0000)]
Merge " cinder.api: Replace 'locals()' with explicit values"
Jenkins [Thu, 11 Jul 2013 17:38:06 +0000 (17:38 +0000)]
Merge "Fix missing volume_name_template flag."
Jenkins [Thu, 11 Jul 2013 16:20:15 +0000 (16:20 +0000)]
Merge "Consist terminate_connection function signature"
Jenkins [Thu, 11 Jul 2013 13:31:58 +0000 (13:31 +0000)]
Merge "Add support for storing volumes on GPFS"
Jenkins [Thu, 11 Jul 2013 11:34:34 +0000 (11:34 +0000)]
Merge "Add unit tests for cinder/api/versions"
Jenkins [Thu, 11 Jul 2013 11:20:01 +0000 (11:20 +0000)]
Merge "Update upper bound of keystoneclient version."
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
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
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
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
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
Lin Hua Cheng [Wed, 10 Jul 2013 21:31:00 +0000 (14:31 -0700)]
Update upper bound of keystoneclient version.
This is the intermediate step so that we can update the the lower
bound of keystoneclient in openstack-requirements.
Change-Id: Ie6d973ccd1263243ebf0779ae59ef32416bf7087
John Griffith [Wed, 10 Jul 2013 19:41:10 +0000 (13:41 -0600)]
Fix missing volume_name_template flag.
volume_template_name was converted to a self.configuration option,
however we don't import that opt in the self.configuration changes.
This patch switches the specifier back to the global CONF
Fixes bug:
1199909
Change-Id: I1431ba8a46b3a86ed77c02646a1c5fd1f62ae010
Duncan Thomas [Wed, 10 Jul 2013 18:28:39 +0000 (19:28 +0100)]
Change check-detach to reject more states
Change check_detach is reject anything other than 'in-use', rather than
just rejecting 'available'.
Fixes bug #
1199922
Change-Id: I3180540ca7bb699a3494ca4eea1389ae8a117df0
Mathieu Gagné [Tue, 9 Jul 2013 18:11:18 +0000 (14:11 -0400)]
Implement extend volume functionality in SolidFire
This implements the extend volume functionality for SolidFire driver.
Implements: blueprint solidfire-extend-size-support
Change-Id: I00dc15f722c70b8835ae5a060ca8f0c4a80a1acb
Jasakov Artem [Wed, 10 Jul 2013 13:15:24 +0000 (17:15 +0400)]
Add unit tests for cinder/api/versions
Added to the following unit tests:
Test action args;
Test get most recent update;
Test create version entry;
Test create feed.
Change-Id: I760e8f419be529cda969e848f151a8cab1053dce
Jenkins [Wed, 10 Jul 2013 11:05:49 +0000 (11:05 +0000)]
Merge "Add interface class for backup drivers"
Jenkins [Wed, 10 Jul 2013 06:46:17 +0000 (06:46 +0000)]
Merge "Make String column creation compatible with SQLAlchemy 0.8"