]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoAdding support for iSER transport protocol
Shlomi Sasson [Mon, 17 Jun 2013 17:41:36 +0000 (20:41 +0300)]
Adding support for iSER transport protocol

DocImpact

Implements: blueprint add-iser-support-to-cinder
Change-Id: I55fb7add68151141be571cb9004389951851226b

11 years agoMerge "Remove usage of locals() for formatting from cinder.volume.*"
Jenkins [Sun, 16 Jun 2013 20:07:25 +0000 (20:07 +0000)]
Merge "Remove usage of locals() for formatting from cinder.volume.*"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 16 Jun 2013 17:13:17 +0000 (17:13 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Start using Pyflakes"
Jenkins [Sun, 16 Jun 2013 16:46:27 +0000 (16:46 +0000)]
Merge "Start using Pyflakes"

11 years agoRemove usage of locals() for formatting from cinder.volume.*
Haomai Wang [Sun, 16 Jun 2013 05:21:20 +0000 (13:21 +0800)]
Remove usage of locals() for formatting from cinder.volume.*

Using of locals() for formatting string is a nasty thing because:
1) It is not so clear as using explicit dicts
2) It could produce hidden errors during refactoring
3) Changing name of variable causes change in message
4) Creating a lot of unused variables

Fix bug 1171936

Change-Id: I806c530851527db9da251352be45b97c183241a8

11 years agoMerge "Remove the 'migrate' option from cinder-manage"
Jenkins [Sun, 16 Jun 2013 13:10:30 +0000 (13:10 +0000)]
Merge "Remove the 'migrate' option from cinder-manage"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 15 Jun 2013 18:10:58 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I79a7551378872d60bea0b516dd6ed59bf6cdcc39

11 years agoMerge "Update and add notifiers in create volume"
Jenkins [Sat, 15 Jun 2013 06:36:18 +0000 (06:36 +0000)]
Merge "Update and add notifiers in create volume"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 15 Jun 2013 01:44:40 +0000 (01:44 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Use Python 3.x compatible except: construct"
Jenkins [Sat, 15 Jun 2013 00:40:55 +0000 (00:40 +0000)]
Merge "Use Python 3.x compatible except: construct"

11 years agoMerge "Remove usage of locals() for formatting from cinder.api.*"
Jenkins [Sat, 15 Jun 2013 00:40:52 +0000 (00:40 +0000)]
Merge "Remove usage of locals() for formatting from cinder.api.*"

11 years agoMerge "Replace utils.to_bytes() with strutils.to_bytes()"
Jenkins [Sat, 15 Jun 2013 00:40:45 +0000 (00:40 +0000)]
Merge "Replace utils.to_bytes() with strutils.to_bytes()"

11 years agoRemove the 'migrate' option from cinder-manage
Jay S. Bryant [Fri, 14 Jun 2013 23:30:10 +0000 (18:30 -0500)]
Remove the 'migrate' option from cinder-manage

The 'migrate' option was only appropriate for use migrating
databases for volumes from Nova-Folsom-->Cinder-Folsom.  The
code hasn't been tested since.

Given the above facts, this commit removes the migrate code from
cinder-manage.  The man page for cinder-manage was already
updated to remove the option in a previous commit.

(fixes bug #1187134)

Change-Id: I7bf378cd4b0dd4f6d1bdf475b826a59a31112638

11 years agoUse Python 3.x compatible except: construct
Dirk Mueller [Sat, 8 Jun 2013 08:49:57 +0000 (10:49 +0200)]
Use Python 3.x compatible except: construct

Per (proposed) H203 check, convert all uses of
the deprecated except x,y: construct to except
x as y:, which works with any Python version >= 2.6

Change-Id: I5528dc556f3ef8d356e01d59df04ba57f66c95b7

11 years agoUpdate and add notifiers in create volume
jenny-shieh [Thu, 13 Jun 2013 22:04:59 +0000 (15:04 -0700)]
Update and add notifiers in create volume

1. Change status from 'creating' to 'available' when the volume is created
2. Add a notifier when it fails to create the volume

Implements: notifiers for create volume
Fixes: bug #1190754
Change-Id: I3a7d118630b32cfa7efb6bc8984418ca9836764a

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 14 Jun 2013 18:10:15 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ifdb8f90abd6ece7e3cc47e27c0c4e8fd29e89b4d

11 years agoFix up the test framework
Michael Kerrin [Thu, 16 May 2013 08:10:27 +0000 (08:10 +0000)]
Fix up the test framework

When trying to test a bug the cinder test framework was
running all the tests when I just wanted one to run.

Instead of fixing this problem in nose I tried to move cinder to
testr. I copied a fair bit of code from nova to get this to work.
This way at least if some one makes an improvement to the nova
test framework cinder can improve here also.

Note that now all the tests a thread safe. Added a concurrency argument
to run_tests.sh that defaults to 1. You can specify your own level then
and take the risk of intermittent failures. Tell jenkins to use a
concurrency level of 1 to avoid failing gate jobs.

Note One of these tests is broken and I have disabled for now. There
is a bug for this here: https://bugs.launchpad.net/cinder/+bug/1173266

Note: cinder.api.openstack.FaultWrapper is deprecated and is causing
a circular import when I try and import cinder.tests.test_wsgi. This
is fixed by only importing the openstack.FaultWrapper during the
__init__ phase of the wsgi middleware.

Fixes: bug 1183434
Fixes: bug 1177924
Change-Id: I5e10b55c5b236eb81a6a3e0e9ea56af8ca4ef8e1

11 years agoRemove usage of locals() for formatting from cinder.api.*
Haomai Wang [Fri, 14 Jun 2013 07:11:29 +0000 (15:11 +0800)]
Remove usage of locals() for formatting from cinder.api.*

Using of locals() for formatting string is a nasty thing because:
1) It is not so clear as using explicit dicts
2) It could produce hidden errors during refactoring
3) Changing name of variable causes change in message
4) Creating a lot of unused variables

Fix bug 1171936

Change-Id: Id6a900899db328be067b8139a49c12ce802dd415

11 years agoMerge "Flatten Volume from Snapshot"
Jenkins [Fri, 14 Jun 2013 05:28:17 +0000 (05:28 +0000)]
Merge "Flatten Volume from Snapshot"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 14 Jun 2013 05:28:14 +0000 (05:28 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Replace FLAGS with cfg.CONF in volume"
Jenkins [Fri, 14 Jun 2013 02:52:49 +0000 (02:52 +0000)]
Merge "Replace FLAGS with cfg.CONF in volume"

11 years agoReplace utils.to_bytes() with strutils.to_bytes()
Zhongyue Luo [Fri, 14 Jun 2013 01:43:40 +0000 (09:43 +0800)]
Replace utils.to_bytes() with strutils.to_bytes()

The to_bytes() function have moved to oslo.
Replaced/removed the to_bytes() function with the one in strutils.

Change-Id: I53947b7a333057fec738a02f5643be59e563290d

11 years agoMerge "Fix various Sphinx warnings"
Jenkins [Fri, 14 Jun 2013 00:23:11 +0000 (00:23 +0000)]
Merge "Fix various Sphinx warnings"

11 years agoFlatten Volume from Snapshot
Mandell Degerness [Mon, 10 Jun 2013 22:02:28 +0000 (22:02 +0000)]
Flatten Volume from Snapshot

Implements: blueprint flatten-volume-from-snapshot

Change-Id: I77b0a9bf8cfbe4881a75909d2749d0c3f17561c9

11 years agoMerge "Replace FLAGS with cfg.CONF in other modules, unless tests"
Jenkins [Thu, 13 Jun 2013 19:06:16 +0000 (19:06 +0000)]
Merge "Replace FLAGS with cfg.CONF in other modules, unless tests"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 13 Jun 2013 18:10:22 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I0a33030fb608d564eb0717f5107553254c888e78

11 years agoMerge "Fix some unittest cases failed on osx"
Jenkins [Thu, 13 Jun 2013 17:21:56 +0000 (17:21 +0000)]
Merge "Fix some unittest cases failed on osx"

11 years agoReplace FLAGS with cfg.CONF in volume
Sergey Vilgelm [Thu, 13 Jun 2013 09:06:25 +0000 (13:06 +0400)]
Replace FLAGS with cfg.CONF in volume

Replace all the FLAGS with cfg.CONF in cinder/volume
Large commit was split into several parts

Change-Id: I435fe91f414fda027531076bdbcb6660a3c635af
Fixes: bug #1182037
11 years agoReplace FLAGS with cfg.CONF in other modules, unless tests
Sergey Vilgelm [Thu, 13 Jun 2013 07:25:37 +0000 (11:25 +0400)]
Replace FLAGS with cfg.CONF in other modules, unless tests

Replace all the FLAGS with cfg.CONF in cinder/
Large commit was split into several parts

Change-Id: Iacd645997a0c50aa47079c856e1b4e33e3001243
Fixes: bug #1182037
11 years agoMerge "Fixes 3PAR drivers terminate_connection issue."
Jenkins [Thu, 13 Jun 2013 05:32:46 +0000 (05:32 +0000)]
Merge "Fixes 3PAR drivers terminate_connection issue."

11 years agoMerge "Elevate volume/snap "is busy" log message for volume/snap_delete"
Jenkins [Thu, 13 Jun 2013 03:18:56 +0000 (03:18 +0000)]
Merge "Elevate volume/snap "is busy" log message for volume/snap_delete"

11 years agoMerge "Added policy check for backup operations"
Jenkins [Wed, 12 Jun 2013 23:33:13 +0000 (23:33 +0000)]
Merge "Added policy check for backup operations"

11 years agoElevate volume/snap "is busy" log message for volume/snap_delete
Eric Harney [Wed, 12 Jun 2013 21:20:52 +0000 (17:20 -0400)]
Elevate volume/snap "is busy" log message for volume/snap_delete

If deletion fails because the volume is busy, log at "error" level
rather than "debug" to ensure that the error is logged and visible
to a user.

Change-Id: I04031ee6b1f6647a126baa8a29c15a00b84b27b1

11 years agoMerge "Update to the latest stevedore"
Jenkins [Wed, 12 Jun 2013 21:10:30 +0000 (21:10 +0000)]
Merge "Update to the latest stevedore"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 12 Jun 2013 21:09:42 +0000 (21:09 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Merge from oslo-incubator"
Jenkins [Wed, 12 Jun 2013 21:09:35 +0000 (21:09 +0000)]
Merge "Merge from oslo-incubator"

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

Change-Id: Idadd30ca29eaf2da44c670722060b28ad8028c4a

11 years agoFixes 3PAR drivers terminate_connection issue.
Viraj Hardikar [Wed, 12 Jun 2013 17:34:26 +0000 (10:34 -0700)]
Fixes 3PAR drivers terminate_connection issue.

3PAR drivers now default the third parameter when terminate_connection
is called after copying a volume to image.
Fixes: bug #1190056
Change-Id: Icadacc9e083c6e97a919857d735ec16068d0f0c6

11 years agoMerge from oslo-incubator
Dirk Mueller [Wed, 12 Jun 2013 17:37:16 +0000 (19:37 +0200)]
Merge from oslo-incubator

Change-Id: Ie5d9d2c1938e58125b58e64a3363f1e1e8ce2ba2

11 years agoMerge "Re-set default sql_connection and sqlite_db."
Jenkins [Wed, 12 Jun 2013 17:30:13 +0000 (17:30 +0000)]
Merge "Re-set default sql_connection and sqlite_db."

11 years agoMerge "Remove direct call to utils.execute."
Jenkins [Wed, 12 Jun 2013 16:07:58 +0000 (16:07 +0000)]
Merge "Remove direct call to utils.execute."

11 years agoAdded policy check for backup operations
Jay Payne [Sun, 9 Jun 2013 15:20:12 +0000 (10:20 -0500)]
Added policy check for backup operations

This patch adds policy checks for operations in the backup extension
consisting of create, delete, restore, get and get_all.  It also adds
policies into the policy.json files in the tests and etc directories.

Fixes Bug: 1188386

Change-Id: I847640051c5d25cebf06b8658b27d4b82603d796

11 years agoUpdate to the latest stevedore
Doug Hellmann [Wed, 12 Jun 2013 15:13:38 +0000 (11:13 -0400)]
Update to the latest stevedore

Use a version of stevedore that does not try to
install distribute.

The requirements change is in
https://review.openstack.org/#/c/32738/

Change-Id: I74bc6013710965401b7e64abc8827a46c817fd56
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
11 years agoMerge "Remove explicit distribute depend."
Jenkins [Wed, 12 Jun 2013 15:12:19 +0000 (15:12 +0000)]
Merge "Remove explicit distribute depend."

11 years agoFix various Sphinx warnings
Dirk Mueller [Wed, 12 Jun 2013 13:21:40 +0000 (15:21 +0200)]
Fix various Sphinx warnings

Change-Id: I68c9ff6fdf9115d1abb0fb756eb806b92af29286

11 years agoMerge "Fix the after subscription size checks."
Jenkins [Wed, 12 Jun 2013 12:35:41 +0000 (12:35 +0000)]
Merge "Fix the after subscription size checks."

11 years agoMerge "Replace functions in utils with oslo.fileutils"
Jenkins [Wed, 12 Jun 2013 07:54:28 +0000 (07:54 +0000)]
Merge "Replace functions in utils with oslo.fileutils"

11 years agoFix some unittest cases failed on osx
Haomai Wang [Tue, 11 Jun 2013 08:36:42 +0000 (16:36 +0800)]
Fix some unittest cases failed on osx

dd shouldn't actually be called in the unit tests to begin with. Stub these
improper calls out.

Fixes bug: 1188972

Change-Id: I2966382a66eebbf49ce74e091e444a91ab274869

11 years agoMerge "Replace FLAGS with cfg.CONF in tests"
Jenkins [Wed, 12 Jun 2013 06:22:55 +0000 (06:22 +0000)]
Merge "Replace FLAGS with cfg.CONF in tests"

11 years agoMerge "Removing service_* options from authtoken"
Jenkins [Wed, 12 Jun 2013 06:22:50 +0000 (06:22 +0000)]
Merge "Removing service_* options from authtoken"

11 years agoMerge "Allow disabling ssl compression for glance client"
Jenkins [Wed, 12 Jun 2013 06:22:46 +0000 (06:22 +0000)]
Merge "Allow disabling ssl compression for glance client"

11 years agoMerge "Add missing attributes to xml deserializer for volume request"
Jenkins [Wed, 12 Jun 2013 04:32:42 +0000 (04:32 +0000)]
Merge "Add missing attributes to xml deserializer for volume request"

11 years agoMerge "Add missing exception from volume/api.py"
Jenkins [Wed, 12 Jun 2013 04:32:40 +0000 (04:32 +0000)]
Merge "Add missing exception from volume/api.py"

11 years agoFix the after subscription size checks.
Joshua Harlow [Wed, 12 Jun 2013 00:50:37 +0000 (17:50 -0700)]
Fix the after subscription size checks.

It seems like the calculation was incorrect previously.

Fixes bug: #1190094

Change-Id: Iaec3c2ece6fc80e6bb87fde0a408608825212b49

11 years agoMerge "Add policy checking for transfer create/accept."
Jenkins [Tue, 11 Jun 2013 22:46:43 +0000 (22:46 +0000)]
Merge "Add policy checking for transfer create/accept."

11 years agoRe-set default sql_connection and sqlite_db.
Adam Gandelman [Tue, 11 Jun 2013 21:50:01 +0000 (14:50 -0700)]
Re-set default sql_connection and sqlite_db.

The defaults seem to have been lost in the migration to Oslo's
DB code.  Re-set them to pre-grizzly defaults.

Fixes bug: #1190036

Change-Id: I7fca70e67d67905b15c2faaa745a86e957bec06e

11 years agoMerge "Fix LVM logging error."
Jenkins [Tue, 11 Jun 2013 21:45:44 +0000 (21:45 +0000)]
Merge "Fix LVM logging error."

11 years agoMerge "Add availability zone checking in the api service"
Jenkins [Tue, 11 Jun 2013 19:36:10 +0000 (19:36 +0000)]
Merge "Add availability zone checking in the api service"

11 years agoRemove explicit distribute depend.
Monty Taylor [Tue, 11 Jun 2013 18:34:41 +0000 (11:34 -0700)]
Remove explicit distribute depend.

Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ib1a81596971a1db38f11bc5afbe98c9da68c938f

11 years agoAdd missing exception from volume/api.py
Abhinav Srivastava [Tue, 11 Jun 2013 18:16:32 +0000 (14:16 -0400)]
Add missing exception from volume/api.py

Add InvalidSourceVolume exception that is used in the volume/api.py
without being defined.

Fix bug 1189987

Change-Id: Ifcea41e882e259416c91c91d9b202b3a939eb12f

11 years agoMerge "Integrate oslo's periodic tasks."
Jenkins [Tue, 11 Jun 2013 18:17:52 +0000 (18:17 +0000)]
Merge "Integrate oslo's periodic tasks."

11 years agoAllow disabling ssl compression for glance client
Stuart McLaren [Tue, 11 Jun 2013 13:55:20 +0000 (13:55 +0000)]
Allow disabling ssl compression for glance client

Add a new parameter 'glance_api_ssl_compression' which allows
disabling ssl layer compression negotiation for glance requests.

This may improve data throughput, eg when high network bandwidth is
available and you are using already compressed image formats such as
qcow2 .

Addresses bug 1189903.

Change-Id: I180501cc25a1ea177d0d8c52a879682b8a3921c6

11 years agoAdd availability zone checking in the api service
Haomai Wang [Mon, 10 Jun 2013 15:20:26 +0000 (23:20 +0800)]
Add availability zone checking in the api service

This patch adds availability zone checking for api request period.
If the availability zone the request specified isn't exist in the
Cinder services, the response returned to the user will give an
error immediately.

Fixes bug: 1185714

Change-Id: I842eec7b500c3ff6a7e5d8fc5e397d61617b0eea

11 years agoAdd missing attributes to xml deserializer for volume request
Stephen Mulcahy [Fri, 7 Jun 2013 11:52:11 +0000 (11:52 +0000)]
Add missing attributes to xml deserializer for volume request

The v1 and v2 xml deserializers for volume requests are missing
support for the imageRef, snapshot_id and source_volid attributes
resulting in xml format create volume requests which specify any
of those attributes being silently ignored. This fix adds support
to v1 and v2 and extends the volumes unit tests to check for this.
Also includes some minor debug logging enhancements to make this
easier to find in future.

Fixes bug #1188581

Change-Id: Ib661c4a961c57e682e0e4e6db98d863b3a99cf71

11 years agoMerge "Replace FLAGS with cfg.CONF in api"
Jenkins [Tue, 11 Jun 2013 07:08:58 +0000 (07:08 +0000)]
Merge "Replace FLAGS with cfg.CONF in api"

11 years agoIntegrate oslo's periodic tasks.
Svetlana Shturm [Mon, 10 Jun 2013 14:02:26 +0000 (15:02 +0100)]
Integrate oslo's periodic tasks.

Cinder use old style invocation of periodic tasks, which not based on oslo library.
It will be better to use main idea of periodic tasks for all services.

Blueprint: oslo-periodic-tasks

Change-Id: I6ac1ca28abefcc9d0bbfd41873c8f57d40b4a97a

11 years agoFix LVM logging error.
Avishay Traeger [Tue, 11 Jun 2013 06:10:37 +0000 (09:10 +0300)]
Fix LVM logging error.

Missed a %s, which caused an exception.

Change-Id: Ib6fcabebdcf70430f3e46095da6c5e13b3e3a4ff
Fixes: bug 1189455
11 years agoMerge "NFS drivers don't honor vm size with volume from an image"
Jenkins [Tue, 11 Jun 2013 05:04:29 +0000 (05:04 +0000)]
Merge "NFS drivers don't honor vm size with volume from an image"

11 years agoRemove direct call to utils.execute.
John Griffith [Mon, 10 Jun 2013 21:05:33 +0000 (15:05 -0600)]
Remove direct call to utils.execute.

The executes calls in the base driver class
are set up to use the exectue enginge passed in on
init.  There are a couple of methods that call
utils.execute directly, and as a result you end
up not using the expected execute engine when
you pass in something other than default for these
two calls.

We'd like to get away from the local execute altogether
and use the OpenStack common version only, so fix these
in driver.py and put the appropriate wrapper around them.

Change-Id: Ibc17c9c2a0c8f27b4533ed86377a66ce668aeab5

11 years agoAdd policy checking for transfer create/accept.
John Griffith [Wed, 5 Jun 2013 19:57:29 +0000 (13:57 -0600)]
Add policy checking for transfer create/accept.

This patch adds policy checks for transfer create/accept
as well as adding the associated default policy.  In addition
we add the wrap in the volume/api accept_transfer method.

Fixes bug: 1187910

Change-Id: I599ac0a95cea1605380d4595a1f21023fbcfb6f1

11 years agoReplace FLAGS with cfg.CONF in tests
Sergey Vilgelm [Mon, 10 Jun 2013 08:28:44 +0000 (12:28 +0400)]
Replace FLAGS with cfg.CONF in tests

Replace all the FLAGS with cfg.CONF in cinder/tests
Large commit was split into several parts

Change-Id: I20a188c20f440e4ba3f5167bd65346ec9fb6e90b
Fixes: bug #1182037
11 years agoReplace FLAGS with cfg.CONF in api
Sergey Vilgelm [Mon, 10 Jun 2013 08:52:13 +0000 (12:52 +0400)]
Replace FLAGS with cfg.CONF in api

Replace all the FLAGS with cfg.CONF in cinder/api
Large commit was split into several parts

Change-Id: I2114d5fc45f5299c3b2011270034a3370e0ec388
Fixes: bug #1182037
11 years agoStart using Pyflakes
Dirk Mueller [Sun, 9 Jun 2013 09:27:32 +0000 (11:27 +0200)]
Start using Pyflakes

Blacklist those pyflakes warnings that trigger
frequently. Fix the remaining one and start
gating on those that are enabled.

Change-Id: I92f27f8cf36615dfd465cbd903a9605f9cb78443

11 years agoAdd the iscsi device check and exception processing.
Vincent Hou [Thu, 6 Jun 2013 08:46:52 +0000 (16:46 +0800)]
Add the iscsi device check and exception processing.

Before downloading the image and executing the command "qemu-img convert",
check if the iSCSI device is still available via the command "sudo dd
if=<device> of=/dev/null count=1". This command will raise an exception with
the message "Input/output error", if the back-end storage is disconnected to
the cinder-volume node, so we use it to test the availability of the storage
device. If it is unavailable, there is no need to download the image &
"qemu-img convert" and an exception DeviceUnavailable will be raised.

Fixed Bug1169290.

Change-Id: I133b4cc1bac493df073d42e240092cf2e6300454

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 8 Jun 2013 16:07:11 +0000 (16:07 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Minor Logic bug in NFS Driver."
Jenkins [Sat, 8 Jun 2013 15:45:12 +0000 (15:45 +0000)]
Merge "Minor Logic bug in NFS Driver."

11 years agoMerge "Fix 'undefined symbol conn' error"
Jenkins [Sat, 8 Jun 2013 15:40:43 +0000 (15:40 +0000)]
Merge "Fix 'undefined symbol conn' error"

11 years agoMinor Logic bug in NFS Driver.
Morgan Fainberg [Sat, 8 Jun 2013 00:18:59 +0000 (17:18 -0700)]
Minor Logic bug in NFS Driver.

When checking oversubscription rate, we need to ensure that we
check the _allocated_ (apparant size) not the _available_ (actual
usage) on the NFS share.  This fix ensures we are now checking the
correct values.  This bug allowed (effectively) a one-time
volume allocation that would push the "apparant" size over the
oversubscription rate.

Change-Id: I189b689cb76ac2a243aa6e255ce0c80d86e247ce
Fixes: bug #1188877
11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 7 Jun 2013 18:10:20 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I888eb000062b469a4b55274dfec2cfd28e9c329c

11 years agoFix 'undefined symbol conn' error
Dirk Mueller [Sat, 1 Jun 2013 12:48:03 +0000 (14:48 +0200)]
Fix 'undefined symbol conn' error

Use self.conn, not conn.

Fixes LP Bug #1188619

Change-Id: Idbd62016fda4cafb6df953ca57af94d56edd3918

11 years agoNFS drivers don't honor vm size with volume from an image
leseb [Thu, 23 May 2013 17:09:06 +0000 (19:09 +0200)]
NFS drivers don't honor vm size with volume from an image

The bug has been encountered with the NFS generic driver
(cinder.volume.nfs.NfsDriver) and the NetApp NFS driver
(cinder.volume.drivers.netapp.nfs.NetAppDirectCmodeNfsDriver). I believe
that drivers based on distributed filesystem such as GlusterFS, nexenta
and scality are also impacted however I didn't test it those backends.
However since most of them already inherit from the RemoteFsDriver
class, this should be fine.

Change-Id: I14575da69a2c99c7cbcece27b40a171153371ee3
Fixes: bug #1183459
11 years agoAdd missing tests for backup_* methods
Yuriy Zveryanskyy [Tue, 4 Jun 2013 10:14:12 +0000 (13:14 +0300)]
Add missing tests for backup_* methods

There was no tests in test_db_api for backup_*
methods.

Add tests to ensure that all works.

blueprint db-api-tests

Change-Id: Ie83de7f9cb3d2c4de5442513a60bfedac312f62e

11 years agoReplace functions in utils with oslo.fileutils
Zhongyue Luo [Fri, 7 Jun 2013 07:23:54 +0000 (15:23 +0800)]
Replace functions in utils with oslo.fileutils

The following functions have moved to oslo.
ensure_tree
remove_path_on_error
file_open
delete_if_exists

Replaced overlapping functions with the ones in fileutils

Change-Id: Ib10a7ca2c72620f7f1df6c5bd4ef6c9cc4d8e913

11 years agoMerge "Unset all stubs before running other cleanups."
Jenkins [Fri, 7 Jun 2013 04:11:53 +0000 (04:11 +0000)]
Merge "Unset all stubs before running other cleanups."

11 years agoMerge "Add missing tests for iscsi_* methods"
Jenkins [Fri, 7 Jun 2013 02:37:41 +0000 (02:37 +0000)]
Merge "Add missing tests for iscsi_* methods"

11 years agoRemove E12 errors from tox.ini Flake ignores.
John Griffith [Sat, 1 Jun 2013 17:27:04 +0000 (11:27 -0600)]
Remove E12 errors from tox.ini Flake ignores.

This removes the E12 from ignores and fixes up the
existing pep8 errors that we were ignoring.

Change-Id: I5d60f1eed768fcae01a708fcf9ea324844c6376d

11 years agoMerge "Fix config registration in cinder volume drivers."
Jenkins [Thu, 6 Jun 2013 07:28:05 +0000 (07:28 +0000)]
Merge "Fix config registration in cinder volume drivers."

11 years agoMerge "Add call to vol driver when accepting a transfer"
Jenkins [Wed, 5 Jun 2013 22:47:36 +0000 (22:47 +0000)]
Merge "Add call to vol driver when accepting a transfer"

11 years agoUnset all stubs before running other cleanups.
Yuriy Taraday [Tue, 28 May 2013 12:44:51 +0000 (16:44 +0400)]
Unset all stubs before running other cleanups.

Cleanup callbacks are run in reverse order so all stubs unsetting
should be added at the end of the cleanup list.

Fixes bug 1185004

Change-Id: I5ad3ea2cdce663aaeae6b7cc2cb9c5dac9d12435

11 years agoMerge "Elevate acceptors context on accept reserve udpate"
Jenkins [Wed, 5 Jun 2013 08:12:09 +0000 (08:12 +0000)]
Merge "Elevate acceptors context on accept reserve udpate"

11 years agoMerge "Re-write of the cinder-manage man page."
Jenkins [Wed, 5 Jun 2013 07:24:32 +0000 (07:24 +0000)]
Merge "Re-write of the cinder-manage man page."

11 years agoMerge "Handle IPv6 specifid glance servers gracefully"
Jenkins [Wed, 5 Jun 2013 07:24:29 +0000 (07:24 +0000)]
Merge "Handle IPv6 specifid glance servers gracefully"

11 years agoMerge "Log iSCSI target output on error."
Jenkins [Wed, 5 Jun 2013 07:24:25 +0000 (07:24 +0000)]
Merge "Log iSCSI target output on error."

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 5 Jun 2013 07:24:21 +0000 (07:24 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Replace FLAGS with cfg.CONF in db"
Jenkins [Wed, 5 Jun 2013 04:23:51 +0000 (04:23 +0000)]
Merge "Replace FLAGS with cfg.CONF in db"

11 years agoFix config registration in cinder volume drivers.
John Griffith [Thu, 30 May 2013 22:05:45 +0000 (16:05 -0600)]
Fix config registration in cinder volume drivers.

The config documentation relies on options being registered
on a modules import.  Our need to move the drivers to using
self.configuration for multi-backend support means that options
wouldn't be loaded until object initialization which breaks
documentation.

This patch puts a dummy CONF init/load back in the drivers. While putting
this change together I came across a number of drivers still using FLAGS,
and even worse a number of drivers using a mixture of FLAGS and CONF and
self.configuraiton.  So most of those are cleaned up here as well.

Note there are two drivers that were not updated at all here:
  1. windows.py
  2. zadara.py

The zadara folks have indicated that they're in the process of updating and
releasing a new version of their driver so I left that as is.

The windows driver needs a bit of work to switch over.

Fixes bug: 1179159

Change-Id: I90165299bf080da17741d027e36e361540da0ff8

11 years agoMerge "Fixes the 3PAR drivers CPG validation"
Jenkins [Wed, 5 Jun 2013 02:12:41 +0000 (02:12 +0000)]
Merge "Fixes the 3PAR drivers CPG validation"

11 years agoElevate acceptors context on accept reserve udpate
John Griffith [Tue, 4 Jun 2013 18:59:20 +0000 (12:59 -0600)]
Elevate acceptors context on accept reserve udpate

When accepting a transfer we need to update the
quota data for both the donor and the acceptor's.
The acceptor is easy enough (as that's the context
we currently are using) however to update the donor's
quota data we need an elevated context.

Fixes bug: 1187538

Change-Id: I1fb9e7726830dce2c3de23d3446de5bbe9a1fd24

11 years agoRemoving service_* options from authtoken
galstrom21 [Tue, 4 Jun 2013 22:07:10 +0000 (17:07 -0500)]
Removing service_* options from authtoken

These options are not used in keystoneclient.middleware.auth_token

Change-Id: I62bde18fc7f0b6c336fe941c91cf03f30a490445

11 years agoAdd call to vol driver when accepting a transfer
John Griffith [Tue, 4 Jun 2013 19:02:37 +0000 (13:02 -0600)]
Add call to vol driver when accepting a transfer

Some back-ends have the notion of tenancy on volumes
and set ownership in the driver.  The update of the DB
alone when doing volume transfers isn't enough, we need
to be able to propogate the update info all the way
down to the driver level.

This patch introduces the volume api/manger/rpc calls
and implements a stub in the base driver that can
be over-ridden for those that need to take some action.

Change-Id: Ica6ae368084c44b32af5d08df14bb3745f3a37ee