]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoFixes inappropriate error message.
huangtianhua [Mon, 18 Nov 2013 07:55:32 +0000 (15:55 +0800)]
Fixes inappropriate error message.

"Volume cannot be deleted while migrating" as error message in
create_snapshot is inappropriate while volume is migrating.

Change-Id: I6cfaf312f9b1edbf4e54f737664290d6ab3b6332
Closes-Bug: #1252175

10 years agoMerge "Check only our VG name when testing if VG exists"
Jenkins [Mon, 18 Nov 2013 04:51:30 +0000 (04:51 +0000)]
Merge "Check only our VG name when testing if VG exists"

10 years agoMerge "Use cached volumes in REST API extensions"
Jenkins [Sat, 16 Nov 2013 07:27:37 +0000 (07:27 +0000)]
Merge "Use cached volumes in REST API extensions"

10 years agoMerge "Enable object caching in cinder REST API requests"
Jenkins [Sat, 16 Nov 2013 06:40:17 +0000 (06:40 +0000)]
Merge "Enable object caching in cinder REST API requests"

10 years agoCheck only our VG name when testing if VG exists
Eric Harney [Thu, 14 Nov 2013 18:29:42 +0000 (13:29 -0500)]
Check only our VG name when testing if VG exists

Rather than calling "vgs" we should just call
"vgs <cinder-vg-name>" which returns only information about the VG
we are querying.

Also hardens test command string matching to error on unexpected
calls.

Change-Id: I25580e34b6589e161a51274f22dbb9ed922e43ed

10 years agoMerge "Remove dup of LVMISCSIDriver in LVMISERDriver"
Jenkins [Thu, 14 Nov 2013 15:49:14 +0000 (15:49 +0000)]
Merge "Remove dup of LVMISCSIDriver in LVMISERDriver"

10 years agoMerge "Update quota-set throw 500 error"
Jenkins [Thu, 14 Nov 2013 15:49:06 +0000 (15:49 +0000)]
Merge "Update quota-set throw 500 error"

10 years agoMerge "Adds extend volume to Dell EqualLogic Driver"
Jenkins [Thu, 14 Nov 2013 15:38:32 +0000 (15:38 +0000)]
Merge "Adds extend volume to Dell EqualLogic Driver"

10 years agoUpdate quota-set throw 500 error
ling-yun [Mon, 11 Nov 2013 14:00:03 +0000 (22:00 +0800)]
Update quota-set throw 500 error

The server doesn't check whether the parameter "quota_set" or
"quota_class_set" is in request
body.So the 500 error has been thrown.

We should catch the KeyError and transfer the KeyError to
400(HTTPBadRequest) instead of 500.

Change-Id: I01260c77efa50324f3d203888689cdb1e94d2c21
Closes-Bug: #1249971

10 years agoMerge "Nexenta NFS driver refactoring"
Jenkins [Thu, 14 Nov 2013 06:02:04 +0000 (06:02 +0000)]
Merge "Nexenta NFS driver refactoring"

10 years agoMerge "Remove the use of common.uuidutils.gen_uuid"
Jenkins [Thu, 14 Nov 2013 05:22:09 +0000 (05:22 +0000)]
Merge "Remove the use of common.uuidutils.gen_uuid"

10 years agoAdds extend volume to Dell EqualLogic Driver
Jacob M. Jacob [Thu, 14 Nov 2013 00:02:37 +0000 (18:02 -0600)]
Adds extend volume to Dell EqualLogic Driver

Adds extend_volume support to the Dell EqualLogic Driver

Change-Id: I416c73248f1813a805dcca4d70ad6cbc91d78f7d
Implements: blueprint eql-extend-vol-support

10 years agoMerge "Don't use deprecated module commands"
Jenkins [Wed, 13 Nov 2013 23:31:03 +0000 (23:31 +0000)]
Merge "Don't use deprecated module commands"

10 years agoRemove the use of common.uuidutils.gen_uuid
John Griffith [Wed, 13 Nov 2013 22:29:32 +0000 (15:29 -0700)]
Remove the use of common.uuidutils.gen_uuid

There's a movement to remove gen_uuid from the
openstack common.  This change removes it's use
from Cinder and just puts the call inline.

Change-Id: I07329bab9553e15e498ddbda3848d50b8f48fd53

10 years agoMerge "Do not allow bad keys while updating quota"
Jenkins [Wed, 13 Nov 2013 16:05:29 +0000 (16:05 +0000)]
Merge "Do not allow bad keys while updating quota"

10 years agoMerge "Support volume_readonly_update using XML format"
Jenkins [Wed, 13 Nov 2013 10:48:52 +0000 (10:48 +0000)]
Merge "Support volume_readonly_update using XML format"

10 years agoMerge "Nexenta iSCSI driver: extend volume stats of _update_volume_stats"
Jenkins [Wed, 13 Nov 2013 09:06:32 +0000 (09:06 +0000)]
Merge "Nexenta iSCSI driver: extend volume stats of _update_volume_stats"

10 years agoMerge "Remove duplication of ISCSIDriver in ISERDriver"
Jenkins [Wed, 13 Nov 2013 09:06:29 +0000 (09:06 +0000)]
Merge "Remove duplication of ISCSIDriver in ISERDriver"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 13 Nov 2013 07:36:47 +0000 (07:36 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fail when image is bigger than the volume"
Jenkins [Wed, 13 Nov 2013 06:50:53 +0000 (06:50 +0000)]
Merge "Fail when image is bigger than the volume"

10 years agoMerge "Retrieve volume image metadata using single query"
Jenkins [Wed, 13 Nov 2013 06:50:50 +0000 (06:50 +0000)]
Merge "Retrieve volume image metadata using single query"

10 years agoMerge "Add call to retrieve image metadata for volumes in bulk"
Jenkins [Wed, 13 Nov 2013 06:50:48 +0000 (06:50 +0000)]
Merge "Add call to retrieve image metadata for volumes in bulk"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 13 Nov 2013 06:16:21 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: I8893400d375faefcb59c69f4ed729ecf5e8fe7d3

10 years agoMerge "Nexenta: Remove snapshot after volume-clone deletion."
Jenkins [Wed, 13 Nov 2013 06:13:47 +0000 (06:13 +0000)]
Merge "Nexenta: Remove snapshot after volume-clone deletion."

10 years agoDo not allow bad keys while updating quota
Abhijeet Malawade [Wed, 6 Nov 2013 11:20:54 +0000 (03:20 -0800)]
Do not allow bad keys while updating quota

Raise 400 (bad request) error instead of 200 (ok) if bad keys
are passed to the update quota request

Closes-Bug: #1248815

Change-Id: Iaefaa4961dd3783dfab15f843cbb2dcb12195a7d

10 years agoMerge "RequestContext initialization failed in cinder."
Jenkins [Wed, 13 Nov 2013 05:56:27 +0000 (05:56 +0000)]
Merge "RequestContext initialization failed in cinder."

10 years agoMerge "Report zero capacity if GPFS is unmounted"
Jenkins [Wed, 13 Nov 2013 01:02:04 +0000 (01:02 +0000)]
Merge "Report zero capacity if GPFS is unmounted"

10 years agoMerge "Do not remove volume silently if GPFS is unmounted"
Jenkins [Wed, 13 Nov 2013 00:54:47 +0000 (00:54 +0000)]
Merge "Do not remove volume silently if GPFS is unmounted"

10 years agoUse cached volumes in REST API extensions
Luis A. Garcia [Tue, 5 Nov 2013 20:41:02 +0000 (20:41 +0000)]
Use cached volumes in REST API extensions

This patch caches db volumes in the core volumes API so that they can be
used in the host and tenant attribute API extensions in order to lower
the response time by avoiding costly individual db queries for each
volume in the REST API contributions.

Change-Id: Ie0cbe929379df32fddbdce1953f13b6f26208bff
Partial-Bug: #1197612

10 years agoEnable object caching in cinder REST API requests
Luis A. Garcia [Tue, 5 Nov 2013 19:37:27 +0000 (19:37 +0000)]
Enable object caching in cinder REST API requests

Allow the core API to cache resources, such as DB results, so that
extensions can use data already retrieved within the same API request
eliminating additional expensive DB calls.

Loosely based on commit 9f9fbc54e7336da10fc3056bdaca2ec7d01c7f94 from
nova.

Change-Id: If9f49faf7305287c0489ad6209cf19b8bec612cc
Partial-Bug: #1197612

10 years agoNexenta iSCSI driver: extend volume stats of _update_volume_stats
Victor Rodionov [Tue, 5 Nov 2013 22:59:42 +0000 (14:59 -0800)]
Nexenta iSCSI driver: extend volume stats of _update_volume_stats

Added location_info to stats provided by _update_volume_stats method
of Nexenta iSCSI volume driver.

Change-Id: Ib947180cb6d08d7639443a8998190ab911d1a4a4

10 years agoFail when image is bigger than the volume
Xavier Queralt [Tue, 22 Oct 2013 18:37:53 +0000 (20:37 +0200)]
Fail when image is bigger than the volume

When creating a new volume from a qcow2 image stored in glance, we will
be given the physical size of the image instead of the virtual size.
Most drivers will convert that image to raw after downloading for
resizing it to the requested volume size afterwards.

If the virtual size of the image is bigger than the requested one, the
resulting volume might end up being unusable after the resize even
though the creation went good.

This patch will make the volume creation fail if the virtual size of
the image exceeds the one of the requested volume.

Closes-Bug: #1235358
Change-Id: I254cd9e3acf5d9eb7eb913b37d27a14e97568dec

10 years agoUpdate URL for global HACKING document and remove duplicate section
Joe Gordon [Mon, 11 Nov 2013 19:28:18 +0000 (11:28 -0800)]
Update URL for global HACKING document and remove duplicate section

* Related to I579e7c889f3addc2cd40bce0c584bbc70bf435e2

* Remove section on locals since its already in global hacking doc
  (http://git.openstack.org/cgit/openstack-dev/hacking/tree/doc/source/index.rst#n154)

Change-Id: I5acb06dfde6eb7f579d8d52bc31fafbdab8c726d

10 years agoRetrieve volume image metadata using single query
Luis A. Garcia [Tue, 5 Nov 2013 02:22:30 +0000 (02:22 +0000)]
Retrieve volume image metadata using single query

The image metadata REST API contributions are making an individual db
call for each of the available volumes. When the number of volumes is
large the volume details call can take several minutes.

This patch changes the image metadata API contributions to take
advantage of the new db query to retrieve metadata in bulk.

Change-Id: I9a35438c1f38ea8a3d8f5b687ae58ba1f3f78121
Partial-Bug: #1197612

10 years agoAdd call to retrieve image metadata for volumes in bulk
Luis A. Garcia [Tue, 5 Nov 2013 02:19:02 +0000 (02:19 +0000)]
Add call to retrieve image metadata for volumes in bulk

When using the GET volume details REST API call, the image metadata API
contribution is making an individual db call for each of the available
volumes. When the number of volumes is large the details call can take
several minutes.

This patch adds a call to the volume.API to retrieve image metadata in
bulk, very similar to the one used to retrieve individual volume image
metadata.

Change-Id: Ic3aa721016704c72b7564cc5ceff71676806a24a
Partial-Bug: #1197612

10 years agoDo not remove volume silently if GPFS is unmounted
zhaoqin [Fri, 8 Nov 2013 18:27:49 +0000 (02:27 +0800)]
Do not remove volume silently if GPFS is unmounted

When GPFS is not mounted, delete_volume() will complete successfully, so that
volume record is removed by cinder but volume file still resides on GPFS. This
change will prevent cinder to remove volume when GPFS is not mounted.

Change-Id: Ic3bf265e553f22c8b6a6e3568da04af88fab3322
Closes-Bug: #1249411

10 years agoReport zero capacity if GPFS is unmounted
zhaoqin [Fri, 8 Nov 2013 17:45:02 +0000 (01:45 +0800)]
Report zero capacity if GPFS is unmounted

_get_available_capacity() calls df command to gather the capacity of GPFS
filesystem. If GPFS is unmounted, df command will return the capacity of
root file system. This change will let get_volume_stats() to report zero
capacity, so that Cinder can schedule the volume request to another volume
service After GPFS is mounted again, the correct capacity will be reported.

Change-Id: I4c229d78e7d659604a23a50e6ab46060642b4088
Closes-Bug: #1246779

10 years agoNexenta NFS driver refactoring
Victor Rodionov [Wed, 6 Nov 2013 21:52:50 +0000 (13:52 -0800)]
Nexenta NFS driver refactoring

Refactor NFS driver, redefined volume_backend_name attribute
inherited from RemoteFsDriver.

Change-Id: I607277053c1233c688dbfaf0c5e150f9511b83af

10 years agoRequestContext initialization failed in cinder.
LiuSheng [Thu, 7 Nov 2013 01:27:05 +0000 (09:27 +0800)]
RequestContext initialization failed in cinder.

RequestContext initialization failed in cinder because of the following
error:
"TypeError: 'in <string>' requires string as left operand, not NoneType"

It must traverses in tuple not in string when find the "compute"
service_catalog.

Change-Id: I46f4bbd0ffb9d1db8bdcb0254ca95551fea08baf
Closes-Bug: #1248434

10 years agoNexenta: Remove snapshot after volume-clone deletion.
keystone [Mon, 28 Oct 2013 19:29:24 +0000 (12:29 -0700)]
Nexenta: Remove snapshot after volume-clone deletion.

Detect if volume was created via cloning and remove a snapshot from the
appliance if so. Return 'provider_location' to update the volume DB record
after creating a volume via cloning.

Closes-Bug: #1246079
Change-Id: I6c946d34871119600d7197614f5be22fa926e5dc

10 years agoDon't use deprecated module commands
Chang Bo Guo [Wed, 6 Nov 2013 12:19:37 +0000 (04:19 -0800)]
Don't use deprecated module commands

The commands module was deprecated since version 2.6 and it has been
removed in Python 3. Use the subprocess module instead.
See http://docs.python.org/2/library/commands#module-commands

Closes-Bug: #1248216
Change-Id: I4091179c6b312ae8534b30adc518eff67d68320a

10 years agoRemove dup of LVMISCSIDriver in LVMISERDriver
Ann Kamyshnikova [Tue, 10 Sep 2013 13:59:15 +0000 (17:59 +0400)]
Remove dup of LVMISCSIDriver in LVMISERDriver

LVMISERDriver is almost copy of LVMISCSIDriver.

Change-Id: I27f03ba19908184e96d05e7f17e581d906fc119a

10 years agoRemove duplication of ISCSIDriver in ISERDriver
Ann Kamyshnikova [Fri, 6 Sep 2013 08:04:20 +0000 (12:04 +0400)]
Remove duplication of ISCSIDriver in ISERDriver

ISERDriver is almost copy of ISCSIDriver.

Change-Id: I22394c7a3b26b140b19f76e052c98d11ec59145c

10 years agoSupport volume_readonly_update using XML format
zhangyanzi [Sat, 26 Oct 2013 01:39:58 +0000 (09:39 +0800)]
Support volume_readonly_update using XML format

Almost all API support JSON and XML format together,
But this API does not support xml format.
In the request of xml format,
the type of parameter "readonly" in the body is string.
In the request of JSON format,
the type of parameter "readonly" in the body is bool.
But the code only support bool, not support string.
This branch is to solve this problem.

Closes-bug #1244848

Change-Id: I7f2b09a0063df9daad3fdd09789f8e19c43b0aa3

11 years agoMerge "Examine if GPFS is mounted before writing data."
Jenkins [Sun, 3 Nov 2013 07:28:44 +0000 (07:28 +0000)]
Merge "Examine if GPFS is mounted before writing data."

11 years agoMerge "Fix typo in test_check_ssh_injection_on error test"
Jenkins [Fri, 1 Nov 2013 08:56:36 +0000 (08:56 +0000)]
Merge "Fix typo in test_check_ssh_injection_on error test"

11 years agoMerge "Remove unused db calls to fetch original metadata"
Jenkins [Fri, 1 Nov 2013 05:51:59 +0000 (05:51 +0000)]
Merge "Remove unused db calls to fetch original metadata"

11 years agoMerge "Remove lvm-thin pool_size config option"
Jenkins [Thu, 31 Oct 2013 19:41:10 +0000 (19:41 +0000)]
Merge "Remove lvm-thin pool_size config option"

11 years agoFix typo in test_check_ssh_injection_on error test
Jay S. Bryant [Thu, 31 Oct 2013 19:05:16 +0000 (14:05 -0500)]
Fix typo in test_check_ssh_injection_on error test

The test case currently has shh instead of ssh.
This commit fixes the typo.

Change-Id: I1e6f926b7d22f48ae56166077659ff3e3d9a1899

11 years agoMerge "Sync log from oslo"
Jenkins [Thu, 31 Oct 2013 19:02:29 +0000 (19:02 +0000)]
Merge "Sync log from oslo"

11 years agoMerge "Add tests for LVM -cow clearing"
Jenkins [Thu, 31 Oct 2013 19:02:10 +0000 (19:02 +0000)]
Merge "Add tests for LVM -cow clearing"

11 years agoMerge "replace u\2013 char with dash"
Jenkins [Thu, 31 Oct 2013 19:01:51 +0000 (19:01 +0000)]
Merge "replace u\2013 char with dash"

11 years agoRemove lvm-thin pool_size config option
John Griffith [Thu, 31 Oct 2013 16:14:57 +0000 (10:14 -0600)]
Remove lvm-thin pool_size config option

The pool_size config option when using thin LVM
is never actually checked/honored.  It's also unlikely
that users will want to do something other than use the
entire VG for their thin pool.

Rather than have the unused option going forward let's
remove it from the config and just go with the default
behavior of utilizing the entire Cinder VG.

For folks that would like to only use a portion of the
VG for some reason, they can do an lvcreate pool on their
own (just like we have them do for the VG itself) and get
the same flexibility that way.

This is done simply by:
lvcreate -T -L ${size} ${vg-name}/${vg_name}-pool

DocImpact

Change-Id: I3ef2cde433b8dd775b1873a0d6df165dd1945d8c

11 years agoExamine if GPFS is mounted before writing data.
Qin Zhao [Wed, 30 Oct 2013 16:37:43 +0000 (00:37 +0800)]
Examine if GPFS is mounted before writing data.

If GPFS is not mounted, throw an exception and log the error message. That will
prevent create_volume(), copy_image_to_volume() or _clone_image() to create
file on local disk, which can not be removed by the driver code itself.

Change-Id: If5d4c7a88e82362d2a87068202926b1ca82d9dff
Closes-Bug: #1242511

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 31 Oct 2013 06:13:45 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I51851182eaf19bd096d938e8e04fd56433b7280a

11 years agoRemove unused db calls to fetch original metadata
Aswad Rangnekar [Wed, 30 Oct 2013 12:45:35 +0000 (05:45 -0700)]
Remove unused db calls to fetch original metadata

Remove unnecessary db calls made to fetch
original metadata when delete flag is set
to True.

Closes-Bug: #1246291

Change-Id: If7483b8b21f71efa5e7c211b031170bc03eb6b9b

11 years agoreplace u\2013 char with dash
Sean Roberts [Thu, 31 Oct 2013 03:31:51 +0000 (20:31 -0700)]
replace u\2013 char with dash

unicode char causes problems with maven build.

backport:none

closes-bug: #1246569

Change-Id: I3aa5c2debaed03acd2c2fb8d4e7c30738d35f4f3

11 years agoSync log from oslo
Chang Bo Guo [Thu, 31 Oct 2013 02:21:22 +0000 (19:21 -0700)]
Sync log from oslo

5fef5a8105 allow keeping of existing loggers with fileConfig
fb8075a19d Add amqp=WARN,qpid=WARN to default_log_levels
4654a5d247 Don't override default value for eventlet.wsgi.server logging
41ddd7a975 _get_log_file_path explictly return, when logfile/logdire unset
e12e6b45f8 Make openstack.common.log Python 3 compatible
572cfecb4d Make Messages unicode before hitting logging
3243cdfbe9 python3: handle module moves in log

DocImpact

Change-Id: I2e565fd65a00f1c6dea830a09487de9f03cb5279

11 years agoMerge "NetApp unit test fail fix for http_proxy"
Jenkins [Thu, 31 Oct 2013 01:19:35 +0000 (01:19 +0000)]
Merge "NetApp unit test fail fix for http_proxy"

11 years agoMerge "Allow spaces in quoted SSH command arguments"
Jenkins [Thu, 31 Oct 2013 01:19:15 +0000 (01:19 +0000)]
Merge "Allow spaces in quoted SSH command arguments"

11 years agoMerge "remove rundundant lockfile requirement"
Jenkins [Wed, 30 Oct 2013 23:26:09 +0000 (23:26 +0000)]
Merge "remove rundundant lockfile requirement"

11 years agoMerge "Use pipe between ceph backup diff export/import"
Jenkins [Wed, 30 Oct 2013 16:24:14 +0000 (16:24 +0000)]
Merge "Use pipe between ceph backup diff export/import"

11 years agoMerge "Fixes typo in method name _notify_voloume_type_error"
Jenkins [Wed, 30 Oct 2013 15:57:19 +0000 (15:57 +0000)]
Merge "Fixes typo in method name _notify_voloume_type_error"

11 years agoAdd tests for LVM -cow clearing
Eric Harney [Tue, 29 Oct 2013 20:39:45 +0000 (16:39 -0400)]
Add tests for LVM -cow clearing

Ensure that volume_clear for Thick LVM snapshot deletion
references the -cow device, and that it uses the LV instead
of the -cow device for ThinLVM.

These tests were written for a change to stable/grizzly --
but are applicable for general use here as well.

Related-Bug: #1245529
Change-Id: I380ad7832d558d9aa73a701cbf3acc35229e70ab

11 years agoclean up numeric expressions in test
Chang Bo Guo [Tue, 29 Oct 2013 09:03:50 +0000 (02:03 -0700)]
clean up numeric expressions in test

Replace numeric expressions with constants in tests
to make code more readable.

Change-Id: I42469cdbe3cafd36f8d9855c8284f885ffa7f465

11 years agoFixes typo in method name _notify_voloume_type_error
Aswad Rangnekar [Wed, 30 Oct 2013 09:37:47 +0000 (02:37 -0700)]
Fixes typo in method name _notify_voloume_type_error

Closes-Bug: #1246228

Change-Id: I7b408f2c4085ba5af5fc4b539000e5675bdc5a76

11 years agoAllow spaces in quoted SSH command arguments
Luis A. Garcia [Tue, 29 Oct 2013 18:44:12 +0000 (18:44 +0000)]
Allow spaces in quoted SSH command arguments

The check_ssh_injection() method was rejecting arguments with spaces
even when they were quoted, this was causing problems with some volume
driver commands such as commands for a storage pool with spaces in the
name.

Closes-Bug: #1244415
Change-Id: Ie4b809e1b39fdb752cf634e6d3c0a3924d8ac52b

11 years agoUse pipe between ceph backup diff export/import
Edward Hope-Morley [Fri, 25 Oct 2013 17:57:55 +0000 (10:57 -0700)]
Use pipe between ceph backup diff export/import

We now use a piped transfer between the rbd export-diff
and import-diff for incremental backups/restores as
opposed to holding the entire diff in memory.

Change-Id: I33476d9b3934781413af5cd2867a11d825a5d78e
Fixes: bug 1244464
11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 29 Oct 2013 06:13:38 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: Icd1f44454695217295422cfc18007296ec77521f

11 years agoMerge "Apply six for metaclass"
Jenkins [Tue, 29 Oct 2013 03:36:56 +0000 (03:36 +0000)]
Merge "Apply six for metaclass"

11 years agoMerge "Add cinder.db.migration.db_initial_version()"
Jenkins [Tue, 29 Oct 2013 03:36:54 +0000 (03:36 +0000)]
Merge "Add cinder.db.migration.db_initial_version()"

11 years agoAdd missing space to num_iser_scan_tries text
Eric Harney [Mon, 28 Oct 2013 20:50:48 +0000 (16:50 -0400)]
Add missing space to num_iser_scan_tries text

Should read "...rescan iSER target to" rather than
"targetto".

Change-Id: I785f67f3a029f06c0184762ddf795202ae198397

11 years agoAdd cinder.db.migration.db_initial_version()
Dan Prince [Mon, 28 Oct 2013 14:11:24 +0000 (10:11 -0400)]
Add cinder.db.migration.db_initial_version()

Updates Cinder to use a new function called db_initial_version()
instead of the INIT_VERSION constant. This allows us to
move the top level INIT_VERSION constant into the
sqlalchemy migration.py implementation where it belongs.

Change-Id: I10dacdebb50d3121e3bfd094e40138807233aa64

11 years agoremove rundundant lockfile requirement
Pádraig Brady [Mon, 28 Oct 2013 11:17:42 +0000 (11:17 +0000)]
remove rundundant lockfile requirement

This requirement was removed from nova even before
the cinder split.

Change-Id: Ie85eeee9aef81a80d1279f7d21566ec33e20159f

11 years agoMerge "Nexenta iSCSI driver: Refactor create_cloned_volume"
Jenkins [Sun, 27 Oct 2013 12:22:33 +0000 (12:22 +0000)]
Merge "Nexenta iSCSI driver: Refactor create_cloned_volume"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 26 Oct 2013 06:13:39 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: Ie2ea233527914abbbd069c56cc550fc835f1abb8

11 years agoMerge "Revert "Brick connector fix for NFS drivers""
Jenkins [Fri, 25 Oct 2013 18:57:10 +0000 (18:57 +0000)]
Merge "Revert "Brick connector fix for NFS drivers""

11 years agoMerge "NetApp fix for 7mode iscsi volume stats"
Jenkins [Fri, 25 Oct 2013 17:09:24 +0000 (17:09 +0000)]
Merge "NetApp fix for 7mode iscsi volume stats"

11 years agoMerge "NetApp fix ssc volume filtering inconsistency"
Jenkins [Fri, 25 Oct 2013 17:08:10 +0000 (17:08 +0000)]
Merge "NetApp fix ssc volume filtering inconsistency"

11 years agoRevert "Brick connector fix for NFS drivers"
John Griffith [Thu, 24 Oct 2013 23:35:16 +0000 (23:35 +0000)]
Revert "Brick connector fix for NFS drivers"

This reverts commit b6b9df2940ac07f715f759f4c315b2cf088c2320

Passing in driver=self in the base driver connector builder breaks all of the other drivers and isn't the *correct* driver to be passing in.

Simply removing this fixes the functionality, however breaks your tests and I'm not sure of the impact on what you were attempting so I'm reverting.

Change-Id: I0af85a2bc491cc0e23aa6af1f67c2dfed1c7081f

11 years agoMerge "Update my mailmap"
Jenkins [Fri, 25 Oct 2013 15:50:24 +0000 (15:50 +0000)]
Merge "Update my mailmap"

11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Fri, 25 Oct 2013 15:44:38 +0000 (15:44 +0000)]
Merge "Updated from global requirements"

11 years agoMerge "GlusterFS: set correct filename when cloning volume"
Jenkins [Fri, 25 Oct 2013 15:40:41 +0000 (15:40 +0000)]
Merge "GlusterFS: set correct filename when cloning volume"

11 years agoUpdate my mailmap
Zhenguo Niu [Fri, 25 Oct 2013 08:26:26 +0000 (16:26 +0800)]
Update my mailmap

Using new email address.

Change-Id: I6dc5e7d96a166b890e6e1878531df1ea160d4b9d

11 years agoGlusterFS: set correct filename when cloning volume
Eric Harney [Thu, 24 Oct 2013 20:18:54 +0000 (16:18 -0400)]
GlusterFS: set correct filename when cloning volume

When cloning a volume, the volume[name] field was populated
with incorrect data, resulting in an unexpected filename containing
the volume data.  This results in failures of later operations on
that cloned volume.

Change-Id: I067ed44cebdc8e91e9ded326953fd0c99d003f05
Closes-Bug: #1244238

11 years agoMerge "Downgrade target create failure mesg to warning"
Jenkins [Thu, 24 Oct 2013 20:03:49 +0000 (20:03 +0000)]
Merge "Downgrade target create failure mesg to warning"

11 years agoMerge "Handle NotFound exceptions in API"
Jenkins [Thu, 24 Oct 2013 20:03:41 +0000 (20:03 +0000)]
Merge "Handle NotFound exceptions in API"

11 years agoHandle NotFound exceptions in API
John Griffith [Wed, 23 Oct 2013 20:08:30 +0000 (20:08 +0000)]
Handle NotFound exceptions in API

There were a number of calls in the API that
weren't catching NotFound exceptions.  The result is
unhandled exception traces and errors in the logs on good
runs in tempest.

Basicly any negative test that requests a non-existent element
would result in an unhandled exception.  This patch adds try/except
around the volume_api.getxxx calls in cinder/api/... methods to
clean this up.

Closes-bug: #1243485

Change-Id: I902acc7f4fdbc20fdb1a68697679417694c5533e

11 years agoUnit test fails in pbuilder environment
Michael Kerrin [Thu, 24 Oct 2013 15:17:47 +0000 (15:17 +0000)]
Unit test fails in pbuilder environment

When running tests inside a pbuilder environment we don't
have /dev/disk/by-path directory and so the test_host_driver
test fails. Fix test by overriding the isdir method to
return True and pretend that the directory is there.

Change-Id: Ifd39d796b7f250b1ec45227a4262ebb33d5656bf

11 years agoUpdated from global requirements
OpenStack Jenkins [Thu, 24 Oct 2013 13:15:31 +0000 (13:15 +0000)]
Updated from global requirements

Change-Id: I24d49ff79f5ed7364a47278179dcadbaf519aed1

11 years agoMerge "Rename "rtstool" to "cinder-rtstool", add dep"
Jenkins [Thu, 24 Oct 2013 08:15:34 +0000 (08:15 +0000)]
Merge "Rename "rtstool" to "cinder-rtstool", add dep"

11 years agoMerge "Brick connector fix for NFS drivers"
Jenkins [Thu, 24 Oct 2013 07:00:19 +0000 (07:00 +0000)]
Merge "Brick connector fix for NFS drivers"

11 years agoCheck if dir exists before calling listdir
John Griffith [Thu, 24 Oct 2013 00:04:51 +0000 (18:04 -0600)]
Check if dir exists before calling listdir

Changes along the way to how we clean up and detach after
copying an image to a volume exposed a problem in the cleanup
of the brick/initiator routines.

The clean up in the initiator detach was doing a blind listdir
of /dev/disk/by-path, however due to detach and cleanup being
called upon completion of the image download to the volume if
there are no other devices mapped in this directory the directory
is removed.

The result was that even though the create and copy of the image
was succesful, the HostDriver code called os.lisdir on a directory
that doesn't exist any longer and raises an unhandled exception that
cause the taskflow mechanism to mark the volume as failed.

Change-Id: I488755c1a49a77f42efbb58a7a4eb6f4f084df07
Closes-bug: #1243980

11 years agoMerge "VMware: Registering vmdk opts in global space"
Jenkins [Wed, 23 Oct 2013 22:33:01 +0000 (22:33 +0000)]
Merge "VMware: Registering vmdk opts in global space"

11 years agoRename "rtstool" to "cinder-rtstool", add dep
Eric Harney [Mon, 21 Oct 2013 18:55:43 +0000 (14:55 -0400)]
Rename "rtstool" to "cinder-rtstool", add dep

With rtstool merged into Cinder, it should use the
"cinder-" prefix.

Add to setup.cfg scripts section for installation.

Additionally, add the rtslib-fb>=2.1.39 dependency
to Cinder's runtime requirements.

Implements blueprint: lio-rtslib

Change-Id: I715db09cb86145c6769c345f59ecda4d18b5e659

11 years agoDowngrade target create failure mesg to warning
John Griffith [Wed, 23 Oct 2013 20:00:35 +0000 (20:00 +0000)]
Downgrade target create failure mesg to warning

Since this will occur more often than we would like and
almost always recovers, change the log level to warning
instead of error.

This is to comply with the desire of the QA team to eradicate
error messages from succesful tempest runs.

Change-Id: If1a841bbeb9a36ff7e103a0e9aff67fda66a7f3b
Closes-Bug: #1243840

11 years agoNexenta iSCSI driver: Refactor create_cloned_volume
Victor Rodionov [Fri, 6 Sep 2013 23:07:11 +0000 (03:07 +0400)]
Nexenta iSCSI driver: Refactor create_cloned_volume

Optimize volume cloning of Nexenta iSCSI driver, current implementation
with zfs send recv may take long time, because it requires data
transferring.

Change-Id: Iaa2eea608e09d0a4ac155b74f964b153de561f4c

11 years agoMerge "Add openstack/common/crypto from OSLO"
Jenkins [Wed, 23 Oct 2013 06:45:02 +0000 (06:45 +0000)]
Merge "Add openstack/common/crypto from OSLO"

11 years agoMerge "Revert "remove cinder-rtstool because of rtslib dep""
Jenkins [Wed, 23 Oct 2013 06:08:02 +0000 (06:08 +0000)]
Merge "Revert "remove cinder-rtstool because of rtslib dep""

11 years agoMerge "Remove duplication of brick.iscsi in brick.iser"
Jenkins [Wed, 23 Oct 2013 06:06:16 +0000 (06:06 +0000)]
Merge "Remove duplication of brick.iscsi in brick.iser"