]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoAdds notifiers to both volumeTypes and volumeTypeExtraSpecs
Jenny Shieh [Thu, 9 May 2013 16:01:37 +0000 (09:01 -0700)]
Adds notifiers to both volumeTypes and volumeTypeExtraSpecs

1. add notifier to create and delete volumeTypes
2. add notifier to create, update and delete volumeTypeExtraSpecs

Implements: notifiers for volumetypes and extra specs
Fixes: bug #1176259
Change-Id: I30fe6cb764e5fda7c876a8b7256d9b0c0f4a7fdd

11 years agoMerge "Add pylint-based lintstack test to tox environment"
Jenkins [Fri, 10 May 2013 18:00:43 +0000 (18:00 +0000)]
Merge "Add pylint-based lintstack test to tox environment"

11 years agoMerge "Fix missing spaces in Huawei Logging"
Jenkins [Fri, 10 May 2013 17:38:14 +0000 (17:38 +0000)]
Merge "Fix missing spaces in Huawei Logging"

11 years agoFix missing spaces in Huawei Logging
zhangchao010 [Fri, 10 May 2013 13:41:23 +0000 (21:41 +0800)]
Fix missing spaces in Huawei Logging

Add spaces between line concatenations in Log messages.

Change-Id: I4e94fc751658fbe1b6b9b74859d800445a1c2e5d

11 years agoAdd pylint-based lintstack test to tox environment
Yun Mao [Fri, 10 May 2013 01:31:23 +0000 (21:31 -0400)]
Add pylint-based lintstack test to tox environment

lintstack is a pylint-based static analysis tool to find bugs
in Python code.

To run the test via tox: $ tox -e pylint
To run the test directly: $ tools/lintstack.sh

Change-Id: If155f47ed84eb820ac505ee741bdd18edd41b1eb

11 years agoRemove outdated cinder test doc
Yun Mao [Thu, 9 May 2013 21:54:06 +0000 (17:54 -0400)]
Remove outdated cinder test doc

cinder doesn't run pylint test. This was a left over from the
fork in nova-volume.

Change-Id: Id096ec97b37a2019baf7a0b55bfd5bce4e71908f

11 years agoMerge "Copy the RHEL6 eventlet workaround from Oslo"
Jenkins [Thu, 9 May 2013 05:34:06 +0000 (05:34 +0000)]
Merge "Copy the RHEL6 eventlet workaround from Oslo"

11 years agoMerge "Add db client packages to dev env setup doc."
Jenkins [Wed, 8 May 2013 16:21:50 +0000 (16:21 +0000)]
Merge "Add db client packages to dev env setup doc."

11 years agoMerge "Fix ability to add custom volume_backend_name"
Jenkins [Tue, 7 May 2013 16:13:19 +0000 (16:13 +0000)]
Merge "Fix ability to add custom volume_backend_name"

11 years agoUpdate import of oslo's processutils.
Michael Still [Tue, 7 May 2013 02:41:38 +0000 (12:41 +1000)]
Update import of oslo's processutils.

Brings processutils inline with the current state of oslo.

Change-Id: I6364e1cd732622cefee89be987230da2a9959845

11 years agoMerge "Remove setuptools-git as run time dependency"
Jenkins [Tue, 7 May 2013 01:47:09 +0000 (01:47 +0000)]
Merge "Remove setuptools-git as run time dependency"

11 years agoFix ability to add custom volume_backend_name
Walter A. Boring IV [Fri, 3 May 2013 21:36:12 +0000 (14:36 -0700)]
Fix ability to add custom volume_backend_name

This patch fixes the ability to set the volume_backend_name
for each driver.   The original bug was filed against LeftHand
and 3PAR, but several drivers exhibited a fixed backend name.

Fixes: bug #1175222
       bug #1172286

Change-Id: I4197f99bebd6ca8e4969795ae6edb537bc066c90

11 years agoAdd db client packages to dev env setup doc.
John Griffith [Mon, 6 May 2013 16:13:48 +0000 (10:13 -0600)]
Add db client packages to dev env setup doc.

Dev env setup doc hasn't been updated in a while and
needed the addition of the mysql and psql packages.

Tested this on a clean install and it looks like
the addition of these two pkgs should get us up to
date.

Change-Id: I66011478064bd8fb85bfaf56e8b14232226e0efc

11 years agoMerge "Fixes 3par driver methods that were double locking"
Jenkins [Fri, 3 May 2013 17:42:47 +0000 (17:42 +0000)]
Merge "Fixes 3par driver methods that were double locking"

11 years agoMerge "Fix LHN driver to allow backend name configuration"
Jenkins [Fri, 3 May 2013 17:32:29 +0000 (17:32 +0000)]
Merge "Fix LHN driver to allow backend name configuration"

11 years agoMerge "Remove old_name from kwargs when using IET helper."
Jenkins [Fri, 3 May 2013 17:32:25 +0000 (17:32 +0000)]
Merge "Remove old_name from kwargs when using IET helper."

11 years agoCheck that volume is at least minDisk size.
Dermot Tynan [Thu, 2 May 2013 10:02:05 +0000 (11:02 +0100)]
Check that volume is at least minDisk size.

The Image service (such as Glance) provides a minDisk parameter to
indicate the minimum required disk size for the image. This change
ensures that the guidance is followed in the case of bootable
volumes.

Added unit test and fixed PEP8 issue.

Fixed issue with docstring.

Added a comment.

Fixes Bug #1175532

Change-Id: I505af53db70b5b286dbca2eaca4fc1f30a8c0b2a

11 years agoRemove old_name from kwargs when using IET helper.
John Griffith [Wed, 1 May 2013 17:26:18 +0000 (11:26 -0600)]
Remove old_name from kwargs when using IET helper.

The IET driver passes the input kwargs from export
directly to the IET driver, but one of the keys here
is specifically for migration and a bug associated with
going from nova-vol to cinder-uuid's.

This patch just checks in the IET code if we have the key set
and if so pops it out before passing through to iet.

Fixes bug: 1175207

Change-Id: I965bdfbe078d61b906aebc48961c1806a9fb0c59

11 years agoCopy the RHEL6 eventlet workaround from Oslo
Mark McLoughlin [Thu, 2 May 2013 09:22:26 +0000 (10:22 +0100)]
Copy the RHEL6 eventlet workaround from Oslo

Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7

11 years agoRemove setuptools-git as run time dependency
Chuck Short [Wed, 1 May 2013 19:13:10 +0000 (14:13 -0500)]
Remove setuptools-git as run time dependency

Remove setuptools-git as a run time dependency since
it is only used to generate a tarball.

Change-Id: I6c48147408e97ab88ede660938e783f6b660746a
Signed-off-by: Chuck Short <chuck.short@canonical.com>
11 years agoFix LHN driver to allow backend name configuration
John Griffith [Tue, 30 Apr 2013 19:05:40 +0000 (13:05 -0600)]
Fix LHN driver to allow backend name configuration

The LHN driver wasn't allowing custom volume_backend_name to be set
via multi-backend configuration input.  In addition there were some
issues with the updating that are also addressed in this patch.

There are other drivers that are going to need updated/fixed for
this same problem, but those will be addressed in a separate patch/bug.

Fixes bug: 1173037

Change-Id: Iae247a500739d02e145511ebe96dddaff8966419

11 years agoMerge "Avoid using whitespace in test_safe_parse_xml."
Jenkins [Tue, 30 Apr 2013 13:06:09 +0000 (13:06 +0000)]
Merge "Avoid using whitespace in test_safe_parse_xml."

11 years agoDeleting a backup removed the backup record from database
Michael Kerrin [Wed, 17 Apr 2013 15:36:28 +0000 (15:36 +0000)]
Deleting a backup removed the backup record from database

Instead we should be marking the backup as deleted so that we have an audit
of all the backups. Backups are now marked deleted in the way that volumes
are.

Fixes bug: 1169943
Fixes bug: 1169857

Change-Id: I52c603be138c0f1d6d411d167977041255ac9053

11 years agoMerge "cinder volume service keeps retrying even code exception"
Jenkins [Fri, 26 Apr 2013 17:46:35 +0000 (17:46 +0000)]
Merge "cinder volume service keeps retrying even code exception"

11 years agoMerge "Cinder wasn't filtering the backups returned to backup list API"
Jenkins [Fri, 26 Apr 2013 17:00:52 +0000 (17:00 +0000)]
Merge "Cinder wasn't filtering the backups returned to backup list API"

11 years agoMerge "Remove _path_exists method."
Jenkins [Fri, 26 Apr 2013 16:55:15 +0000 (16:55 +0000)]
Merge "Remove _path_exists method."

11 years agoMerge "Clear volumes stuck in 'downloading'"
Jenkins [Fri, 26 Apr 2013 16:38:58 +0000 (16:38 +0000)]
Merge "Clear volumes stuck in 'downloading'"

11 years agoMerge "Update to latest copy of OSLO incubator"
Jenkins [Fri, 26 Apr 2013 16:28:09 +0000 (16:28 +0000)]
Merge "Update to latest copy of OSLO incubator"

11 years agoMerge "Fixes 3PAR FC driver synchronization"
Jenkins [Fri, 26 Apr 2013 16:28:06 +0000 (16:28 +0000)]
Merge "Fixes 3PAR FC driver synchronization"

11 years agoMerge "Encode username and password in config file"
Jenkins [Fri, 26 Apr 2013 15:26:50 +0000 (15:26 +0000)]
Merge "Encode username and password in config file"

11 years agoRemove _path_exists method.
mouad benchchaoui [Thu, 25 Apr 2013 16:12:09 +0000 (18:12 +0200)]
Remove _path_exists method.

This method is buggy because it works only on host machine with english language, and
apparently this method is also useless because we don't need to check if a path exist if
we can use command option -p for "mkdir" command and option -f for "rm" command.

bug: LP#1172777
Change-Id: I418b32772ca97b42e1a43275a7abec9f96688607

11 years agoEncode username and password in config file
zhangchao010 [Wed, 17 Apr 2013 16:15:24 +0000 (00:15 +0800)]
Encode username and password in config file

Encode username and password in xml file with base64.
And change lun owning controller when attaching
the lun to get better performance.

Fixes bug: 1136892
Change-Id: Iad79d1ec1651e3582b86e865f0342fdc55065134

11 years agoClear volumes stuck in 'downloading'
Dermot Tynan [Thu, 25 Apr 2013 09:46:34 +0000 (10:46 +0100)]
Clear volumes stuck in 'downloading'

If the CinderVolume service is restarted while an image-copy is
happening, the volume gets left in a 'downloading' state and
cannot be used or deleted. This fix adds code to init_host to
look for volumes (on this host) in such a state, and move them
to an error state. It also calls clear_download in the driver
in case the driver needs to perform an action, such as
detaching the volume.

Fixes Bug #1172645

Change-Id: Ia5dab9ebf997f573c0b4e57d983f5996af81ede5

11 years agoMerge "Add stats reporting to Nexenta Driver"
Jenkins [Thu, 25 Apr 2013 05:25:00 +0000 (05:25 +0000)]
Merge "Add stats reporting to Nexenta Driver"

11 years agoMerge "Remove duplicate method definition"
Jenkins [Thu, 25 Apr 2013 05:22:38 +0000 (05:22 +0000)]
Merge "Remove duplicate method definition"

11 years agoFixes 3PAR FC driver synchronization
Jim Branen [Thu, 25 Apr 2013 00:52:41 +0000 (17:52 -0700)]
Fixes 3PAR FC driver synchronization

While running  stress tests we found missing synchronized methods.
This patch added synchronized anotations around the necessary
methods.

Fixes bug 1172503

Change-Id: I8e475fe38d96ca663fbaac40c5a50420d791f5d5

11 years agoAvoid using whitespace in test_safe_parse_xml.
Jay S. Bryant [Wed, 24 Apr 2013 17:56:03 +0000 (12:56 -0500)]
Avoid using whitespace in test_safe_parse_xml.

Updates the test_safe_parse_xml test case in
cinder.tests.test_utils.GenericUtilsTestCase to avoid using
whitespaces and to ignore extraneous newlines returned in the
parsed XML.  This is required to work around differences in
the output from minidom in python 2.6.

Fixes LP Bug #1172352.

Change-Id: I48bdf3cb8eed3e65f7ceaeb1c2b19aa529c930d0

11 years agoMerge "iscsi: Add ability to specify or autodetect block vs fileio"
Jenkins [Wed, 24 Apr 2013 00:02:56 +0000 (00:02 +0000)]
Merge "iscsi: Add ability to specify or autodetect block vs fileio"

11 years agoAdd stats reporting to Nexenta Driver
John Griffith [Fri, 12 Apr 2013 17:11:38 +0000 (11:11 -0600)]
Add stats reporting to Nexenta Driver

Nexenta driver was never updated to report stats.
This change doesn't include support for backend_name assignment
via configs, there's some other work that will need to be
done to enable that.

Fixes bug: 1166607

Change-Id: Id9cfff24df8815a67e42393aa18fd41ac1b9e6b3

11 years agoRemove duplicate method definition
Dirk Mueller [Mon, 22 Apr 2013 15:06:19 +0000 (17:06 +0200)]
Remove duplicate method definition

This is defined similarly just a few lines above, so
remove duplicate (outdated) instance.

Change-Id: Id2eeb8c4d12fa2d16eb22f85fc22c47619233c22

11 years agoiscsi: Add ability to specify or autodetect block vs fileio
Joseph Glanville [Wed, 10 Apr 2013 23:02:42 +0000 (16:02 -0700)]
iscsi: Add ability to specify or autodetect block vs fileio

When using block devices to back iSCSI logical units it is
advantageous to use blockio as it decreases latency and
increases throughput, effect is especially pronounced with
faster backing storage devices.

Change-Id: Ia8cba5ddfe140cb5732c2b9ad882831e812a44bc

11 years agoRename duplicate test method
Dirk Mueller [Mon, 22 Apr 2013 00:08:35 +0000 (02:08 +0200)]
Rename duplicate test method

test_get_method_unknown_controller_action was defined twice,
checking however for different things. Rename the 2nd instance
to test_get_method_undefined_controller_action instead, otherwise
it gets overwritten later and not run. Increases test coverage

Change-Id: I64b62560d6db9f6378df8fbc21bd9fada5088b89

11 years agoMerge "Remove Flags usage from cinder.volume.driver"
Jenkins [Sat, 20 Apr 2013 17:38:17 +0000 (17:38 +0000)]
Merge "Remove Flags usage from cinder.volume.driver"

11 years agoMerge "Add parsing to extra-specs key check"
Jenkins [Wed, 17 Apr 2013 21:56:11 +0000 (21:56 +0000)]
Merge "Add parsing to extra-specs key check"

11 years agoUpdate to latest copy of OSLO incubator
Michael Kerrin [Wed, 17 Apr 2013 16:41:50 +0000 (16:41 +0000)]
Update to latest copy of OSLO incubator

Specifically I wanted the change be84db3ab24ef94b6ec457bb299d48c51575e8a6
to oslo-incubator to fix my logging issue.

I ignored the changes in common/policy.py as this change breaks
the cinder unit tests.

Fixes bug: 1170038

Change-Id: Id72417d58c8f4bf139aa082131154153a175689d

11 years agoCinder wasn't filtering the backups returned to backup list API
Michael Kerrin [Tue, 16 Apr 2013 08:09:35 +0000 (08:09 +0000)]
Cinder wasn't filtering the backups returned to backup list API

This has the side effect of return all backups in the system (regardless of
who created them) to the user. You should only see the backups created in your
current active project.

Fixes bug: 1169461

Change-Id: I121e8ed215b28f1b21e24b2104f8294039e09b48

11 years agocinder volume service keeps retrying even code exception
Yang Yu [Wed, 17 Apr 2013 08:00:07 +0000 (16:00 +0800)]
cinder volume service keeps retrying even code exception

Make sure that ProcessLauncher does not try to restart the failed
service. And make sure the ProcessLauncher exits, when the number
of the failed services equal the number of total services.

Fixes: bug 1167841
Change-Id: I818c754534c18a62d292e21f0c98086571fe0565

11 years agoMerge "Add capabilities reporting to ThinLVM driver"
Jenkins [Wed, 17 Apr 2013 00:03:22 +0000 (00:03 +0000)]
Merge "Add capabilities reporting to ThinLVM driver"

11 years agoMerge "Add missing space to "volumes already consumed" message"
Jenkins [Tue, 16 Apr 2013 19:32:24 +0000 (19:32 +0000)]
Merge "Add missing space to "volumes already consumed" message"

11 years agoMerge "NetApp: Fix failing NetApp tests"
Jenkins [Tue, 16 Apr 2013 19:26:31 +0000 (19:26 +0000)]
Merge "NetApp: Fix failing NetApp tests"

11 years agoMerge "Use a SSH pool to manage SSH connection"
Jenkins [Tue, 16 Apr 2013 19:12:01 +0000 (19:12 +0000)]
Merge "Use a SSH pool to manage SSH connection"

11 years agoAdd missing space to "volumes already consumed" message
Eric Harney [Tue, 16 Apr 2013 14:37:30 +0000 (10:37 -0400)]
Add missing space to "volumes already consumed" message

Change-Id: I48728def59ecb2f139fa523cfe429aab076bfa88

11 years agoAdd capabilities reporting to ThinLVM driver
John Griffith [Fri, 12 Apr 2013 02:05:01 +0000 (20:05 -0600)]
Add capabilities reporting to ThinLVM driver

ThinLVM driver was missing the newly required capabilities reporting
and inheritance from the parent LVM driver doesn't work because the
capacity reporting methods between regular LVM and Thin LVM are not
compatible.

This patch add the basic requirements needed in the capabilities reporting
to make it usable by the filter scheduler.

Fixes bug: 1166572

Change-Id: I471dcc31d07516e71bcd2d3ae03e0405e0594697

11 years agoNetApp: Fix failing NetApp tests
Rushi Agrawal [Thu, 11 Apr 2013 14:01:37 +0000 (19:31 +0530)]
NetApp: Fix failing NetApp tests

The tests were failing due to an upgrade in the testing framework
(possibly due to upgrade of nose package from 1.2.1 to 1.3.0).
The actual reason was a bug in the suds client. A simple
workaround is utilised here, which sets the logging level of a
suds file to INFO instead of DEBUG.

Some 'FutureWarning' warnings from the test output were also
fixed.

Change-Id: Ia67476c23bffa91264cf79f6a26944b450c4f4fc

11 years agoUse VERSION var for volume_stats version (Gluster/NFS)
Eric Harney [Fri, 12 Apr 2013 20:47:34 +0000 (16:47 -0400)]
Use VERSION var for volume_stats version (Gluster/NFS)

Establish a formal version number to help with maintenance.

Change-Id: Iffe1a6f809ec9385c7407efac25ca39eff0d1329

11 years agoAdd parsing to extra-specs key check
John Griffith [Wed, 10 Apr 2013 05:07:52 +0000 (23:07 -0600)]
Add parsing to extra-specs key check

When using the filter scheduler which is now the default,
we can no longer pass in extra-specs like: {minIOPS:500, ....},
because the capabilities filter will reject this because there is
no host reporting minIOPS:500 capabilities.

We now need to scope the keys (ie qos:minIOPS:500....), but
that unfortunately requires a fix to the SolidFire driver.

This change add a check for the ':' in the key, and parses
on it if it's there.

Also fixes backend_name and uses VERSION var instead of
generating string in stats reporting.

Fixes bug: 1167141

Change-Id: Ie7fd7d231af78cb18a13f44a4379b44d3c3385df

11 years agoUse a SSH pool to manage SSH connection
zhangchao010 [Thu, 4 Apr 2013 00:45:21 +0000 (08:45 +0800)]
Use a SSH pool to manage SSH connection

Use a SSH pool to hold all SSH clients.It allows 4 SSH clients
at most to connect to the SSH server at the same time.
This patchset also enables every SSH client connect to the other
controller when they failed to connect to the current controller.
For example,failed to A,then to B,or,failed to B,then to A.

Fixes bug: 1162251
Change-Id: I86f7f684639034be97ddf2031e61ac6bf3a196ad

11 years agoRemove Flags usage from cinder.volume.driver
John Griffith [Fri, 12 Apr 2013 00:42:59 +0000 (18:42 -0600)]
Remove Flags usage from cinder.volume.driver

cinder.volume.driver was using a mix of FLAGS and the
new conf options for multi-backend.  The result was failure
of multi-backend configrations to set the iscsi_helper
option.

This updates the driver.py file to use the OSLO.cfg and fixes the
check for iscsi_helper check in the initialize_connection call,
which was undefined.

Fixes bug: 1169928

Change-Id: Ia1678893f32a9d08a695f055f59f7296e17d9d78

11 years agoMerge "new cinder.conf.sample and fix extract_opts.py"
Jenkins [Thu, 11 Apr 2013 19:56:44 +0000 (19:56 +0000)]
Merge "new cinder.conf.sample and fix extract_opts.py"

11 years agoMerge "Fix incompatible Storwize/SVC commands."
Jenkins [Thu, 11 Apr 2013 19:14:06 +0000 (19:14 +0000)]
Merge "Fix incompatible Storwize/SVC commands."

11 years agonew cinder.conf.sample and fix extract_opts.py
Darren Birkett [Thu, 11 Apr 2013 07:46:10 +0000 (08:46 +0100)]
new cinder.conf.sample and fix extract_opts.py

Fixes bug: #1167329

Change-Id: I09ce8f00c84a5a04d6e4274914fed102f19381e1

11 years agoMerge "fix default config option types"
Jenkins [Thu, 11 Apr 2013 04:55:56 +0000 (04:55 +0000)]
Merge "fix default config option types"

11 years agoMerge "Add service list functionality cinder-manage"
Jenkins [Thu, 11 Apr 2013 04:46:20 +0000 (04:46 +0000)]
Merge "Add service list functionality cinder-manage"

11 years agoMerge "Clean up attach/detach tests."
Jenkins [Thu, 11 Apr 2013 04:45:27 +0000 (04:45 +0000)]
Merge "Clean up attach/detach tests."

11 years agofix default config option types
Darren Birkett [Wed, 10 Apr 2013 12:34:01 +0000 (13:34 +0100)]
fix default config option types

Change-Id: I4bea0b5e12d229b0d9188e10c70996a5606aa970
Fixes: bug #1167318
11 years agoFix incompatible Storwize/SVC commands.
Avishay Traeger [Wed, 10 Apr 2013 08:24:45 +0000 (11:24 +0300)]
Fix incompatible Storwize/SVC commands.

Inconsistencies in the command line syntax between Storwize/SVC
models and firmware versions caused driver failures. This patch
makes commands compatible to fix driver crashes on the V3700 and
controllers with firmware version 6.3.

Change-Id: I51d5b97afa5419cdbf488f9e4e4597d22bb22f20
Fixes: bug 1163754
Fixed: bug 1163964

11 years agoFix backup manager formatting error.
Avishay Traeger [Tue, 9 Apr 2013 06:27:46 +0000 (09:27 +0300)]
Fix backup manager formatting error.

ID was being printed as %d instead of %s, causing tests to fail. This
error was previously undetected.
In addition, NetApp tests are failing due to a bug in the suds
package, which is no longer actively maintained. This patch adds skips
to the problematic tests, which should be removed once the issue is
resolved.

Change-Id: I5645909f59aa2ea3dc536ed4707ea75754307050
Fixes: bug 1166600
11 years agoAdd service list functionality cinder-manage
Stephen Mulcahy [Fri, 5 Apr 2013 10:29:13 +0000 (10:29 +0000)]
Add service list functionality cinder-manage

Adds functionality similar to nova-manage service list
to cinder-manage.

Change-Id: I9bcd6dcb551dbced2cfd6fcf0e63ffe4bb8754e8

11 years agoMerge "Don't hard code AUTH_ into the swift backup url"
Jenkins [Mon, 8 Apr 2013 17:12:38 +0000 (17:12 +0000)]
Merge "Don't hard code AUTH_ into the swift backup url"

11 years agoMerge "Reformat openstack-common.conf"
Jenkins [Mon, 8 Apr 2013 12:35:54 +0000 (12:35 +0000)]
Merge "Reformat openstack-common.conf"

11 years agoClean up attach/detach tests.
Avishay Traeger [Mon, 8 Apr 2013 09:19:32 +0000 (12:19 +0300)]
Clean up attach/detach tests.

The code tested by test_preattach_status_volume was moved, and the
test no longer tested anything relevant (i.e., instead of checking
that the volume is 'attached', the test was changed to test for
'available' since the attach code was moved). This patch, therefore,
deletes that test.

Further, test_run_attach_detach_volume called database functions for
attaching and detaching. This patch changes those calls to call
higher-level functions which in turn call the database functions. This
gives better code coverage and gives the tests more meaning.

Change-Id: If688fe6a14940148b5792256c8507803e8cde901

11 years agoMerge "Prevent create volume from snapshot with bad size"
Jenkins [Mon, 8 Apr 2013 05:00:08 +0000 (05:00 +0000)]
Merge "Prevent create volume from snapshot with bad size"

11 years agoMerge "Sync with oslo-incubator copy of setup.py"
Jenkins [Mon, 8 Apr 2013 04:20:57 +0000 (04:20 +0000)]
Merge "Sync with oslo-incubator copy of setup.py"

11 years agoMerge "Clean up started volume services in tests."
Jenkins [Mon, 8 Apr 2013 04:17:26 +0000 (04:17 +0000)]
Merge "Clean up started volume services in tests."

11 years agoReformat openstack-common.conf
Zhongyue Luo [Sun, 7 Apr 2013 10:12:52 +0000 (18:12 +0800)]
Reformat openstack-common.conf

Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I2b5c56dbf941b272bd89b0dbe6f651196d90944f

11 years agoSync with oslo-incubator copy of setup.py
Davanum Srinivas [Mon, 8 Apr 2013 00:38:08 +0000 (20:38 -0400)]
Sync with oslo-incubator copy of setup.py

Keep up with the changes to the master copy

Change-Id: I6b87762a25f11c2548cd8df548a217295b8129d4

11 years agoMerge "Allow deletion of backups where the service is None"
Jenkins [Sun, 7 Apr 2013 12:17:00 +0000 (12:17 +0000)]
Merge "Allow deletion of backups where the service is None"

11 years agoMerge "Fixed a volume creation re-schedule error"
Jenkins [Sun, 7 Apr 2013 08:30:46 +0000 (08:30 +0000)]
Merge "Fixed a volume creation re-schedule error"

11 years agoMerge "Implement get_volume_stats for GlusterFS driver"
Jenkins [Sun, 7 Apr 2013 03:28:10 +0000 (03:28 +0000)]
Merge "Implement get_volume_stats for GlusterFS driver"

11 years agoMerge "Fix cinder-manage backup list to work with uuids"
Jenkins [Sun, 7 Apr 2013 02:59:56 +0000 (02:59 +0000)]
Merge "Fix cinder-manage backup list to work with uuids"

11 years agoMerge "Remove update_volume_status log message from NFS driver"
Jenkins [Sun, 7 Apr 2013 02:51:38 +0000 (02:51 +0000)]
Merge "Remove update_volume_status log message from NFS driver"

11 years agoDon't hard code AUTH_ into the swift backup url
Michael Kerrin [Fri, 5 Apr 2013 15:33:06 +0000 (15:33 +0000)]
Don't hard code AUTH_ into the swift backup url

Instead make it configurable as part of the backup_swift_url option

Change-Id: I32019d8d4af2f8876da3807a5af3f0b921456935

11 years agoRemove update_volume_status log message from NFS driver
Eric Harney [Fri, 5 Apr 2013 14:50:31 +0000 (10:50 -0400)]
Remove update_volume_status log message from NFS driver

The manager logs an INFO message when this action occurs already,
and it not called by anyone else, so don't log twice:

INFO [cinder.volume.manager] Updating volume status
DEBUG [cinder.volume.drivers.nfs] Updating volume status

Change-Id: Id99be0c0e50837c2b59963d983b9a7db3d25919a

11 years agoImplement get_volume_stats for GlusterFS driver
Eric Harney [Wed, 3 Apr 2013 18:39:38 +0000 (14:39 -0400)]
Implement get_volume_stats for GlusterFS driver

Implement get_volume_stats(), so that the GlusterFS driver
will work correctly with the scheduler.

Fixes bug: 1164038

Change-Id: Ib4db8bad897212227b39704e2e6cb5f07f2bb70e

11 years agoFixed a volume creation re-schedule error
Liang Chen [Fri, 5 Apr 2013 14:00:39 +0000 (22:00 +0800)]
Fixed a volume creation re-schedule error

Don't see any reason to construct a list for request_spec['volume_id'].
And it indeed causes problems when the scheduler receives a reschedule
request with such a request_spec.

Fixes bug #1164857

Change-Id: I811e957d5bf9c814165d55ea0042833ea72c8de5

11 years agoAllow deletion of backups where the service is None
Stephen Mulcahy [Thu, 4 Apr 2013 16:10:16 +0000 (16:10 +0000)]
Allow deletion of backups where the service is None

If a backup is created while both cinder-backup and rabbitmq
are not running, backup records are created in the database with a
service entry of None.

There is no actual backup data created on the service, since the service
isn't running. This fix allows removal of these records without an error
when a delete backup request is received.

This fix also ensures backup status is set to error in the event of
an exception during a delete.

Fixes bug #1162908

Change-Id: I5771747a00a70621f7cc101f8c1da2f613e83cdf

11 years agoFix cinder-manage backup list to work with uuids
Stephen Mulcahy [Fri, 5 Apr 2013 09:55:01 +0000 (09:55 +0000)]
Fix cinder-manage backup list to work with uuids

Fixes bug #1164922

Change-Id: I8ed7ff7ca334b983d60445d96cd1f6c368766407

11 years agoleave re-scheduled volume status to creating
Liang Chen [Thu, 4 Apr 2013 15:39:54 +0000 (23:39 +0800)]
leave re-scheduled volume status to creating

A re-scheduled volume should not be exported and set to available

Fixes bug #1159027

Change-Id: Ie61d9132ce1bd6461d5e4d9836424ebf14100389

11 years agoPrevent create volume from snapshot with bad size
Jean-Baptiste RANSY [Sat, 30 Mar 2013 14:25:29 +0000 (15:25 +0100)]
Prevent create volume from snapshot with bad size

Prevent to create a volume from a snapshot with a volume size less
than the snapshot size.

Check if a volume size is specified that it is less than
the snapshot size.

Raise a exception if it's lesser.

Fixes bug 1161841

Change-Id: Ic1afbfb025ce0b3906c35c6c50a71734d74a9851

11 years agoMerge "Add du to rootwrap filters"
Jenkins [Wed, 3 Apr 2013 20:40:33 +0000 (20:40 +0000)]
Merge "Add du to rootwrap filters"

11 years agoMerge "Change format of some judgments"
Jenkins [Wed, 3 Apr 2013 20:40:01 +0000 (20:40 +0000)]
Merge "Change format of some judgments"

11 years agoAdd du to rootwrap filters
Eric Harney [Wed, 3 Apr 2013 19:31:49 +0000 (15:31 -0400)]
Add du to rootwrap filters

Setting "nfs_disk_util=du" or "glusterfs_disk_util=du" will use
du instead of df for space calculation, but du is not allowed by
rootwrap.

Change-Id: I35522d40f97ea14cacf2637603f06a15810a0b36

11 years agoMerge "Fix IBM copyright strings"
Jenkins [Wed, 3 Apr 2013 09:50:38 +0000 (09:50 +0000)]
Merge "Fix IBM copyright strings"

11 years agoChange format of some judgments
zhangchao010 [Tue, 26 Mar 2013 14:10:19 +0000 (22:10 +0800)]
Change format of some judgments

Because "not volume" will be True if volume id is 0.It can not
distinguish 0 from None.The same to some other judgments where
variable value may be 0.

This patch also does the following changes:
Deletes check storagepool in function _check_conf_file and adds
check default iscsi target IP in function initialize_connection.
Moves create host group from do_setup to initialize_connection.
Changes _get_login_info to be _update_login_info.

Fixes bug: 1160340
Change-Id: I0434b587d57c783f10d5724c4c66aea5df0b32e5

11 years agoMerge "remove deprecated assert_unicode sqlalchemy attribute"
Jenkins [Wed, 3 Apr 2013 05:40:47 +0000 (05:40 +0000)]
Merge "remove deprecated assert_unicode sqlalchemy attribute"

11 years agoMerge "Add availability_zone to the volume and snapshot notifications"
Jenkins [Wed, 3 Apr 2013 05:37:58 +0000 (05:37 +0000)]
Merge "Add availability_zone to the volume and snapshot notifications"

11 years agoMerge "Remove InvalidPortRange exception"
Jenkins [Wed, 3 Apr 2013 05:09:33 +0000 (05:09 +0000)]
Merge "Remove InvalidPortRange exception"

11 years agoRemove InvalidPortRange exception
Eric Harney [Tue, 2 Apr 2013 20:06:56 +0000 (16:06 -0400)]
Remove InvalidPortRange exception

The InvalidPortRange exception seems to be left over from the
initial split from Nova.

Change-Id: Ife03ac70f6ba80273c1c21e8d2c509b480a6fe80

11 years agoAdd availability_zone to the volume and snapshot notifications
Michael Kerrin [Thu, 28 Mar 2013 15:41:10 +0000 (15:41 +0000)]
Add availability_zone to the volume and snapshot notifications

Change-Id: I27b6dde68a1618a02c2309f007ead9dd1f04879e

11 years agoThrow InvalidSnapshot for failed snap delete
Eric Harney [Tue, 2 Apr 2013 13:23:05 +0000 (09:23 -0400)]
Throw InvalidSnapshot for failed snap delete

When delete is called for a snapshot not in the "available" or
"error" state, throw an InvalidSnapshot exception rather than
InvalidVolume.

Change-Id: I47f55b3357d75b5c0c9a704aaf693f4764fd112c