]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoHide v1/v2 version entities in API when disabled
Brian Waldon [Fri, 17 May 2013 22:42:45 +0000 (22:42 +0000)]
Hide v1/v2 version entities in API when disabled

Fixes bug 1181413

Change-Id: Ia8aaa78a0e0d222c268e9ca780816eb1c26feb3f

11 years agoMerge "solidfire: Make sure src_uuid is passed correctly"
Jenkins [Thu, 16 May 2013 02:38:45 +0000 (02:38 +0000)]
Merge "solidfire: Make sure src_uuid is passed correctly"

11 years agoMerge "Deprecating old dot path locations for Folsom configs"
Jenkins [Thu, 16 May 2013 01:59:25 +0000 (01:59 +0000)]
Merge "Deprecating old dot path locations for Folsom configs"

11 years agoMerge "Fixes an get_volume_stats reporting issue"
Jenkins [Thu, 16 May 2013 01:57:50 +0000 (01:57 +0000)]
Merge "Fixes an get_volume_stats reporting issue"

11 years agosolidfire: Make sure src_uuid is passed correctly
Mathieu Gagné [Thu, 16 May 2013 00:54:27 +0000 (20:54 -0400)]
solidfire: Make sure src_uuid is passed correctly

src_uuid wasn't passed correctly as an attribute because
the variable was wrongly quoted and couldn't be interpolated.

Fixes: bug #1180611
Change-Id: If22dda162a28138cf447ce12bbe061f623e6d076

11 years agoMerge "Add .coveragerc to show proper coverage statistics. As in other openstack...
Jenkins [Thu, 16 May 2013 00:48:18 +0000 (00:48 +0000)]
Merge "Add .coveragerc to show proper coverage statistics. As in other openstack projects."

11 years agoMerge "NetApp server tunneling fix."
Jenkins [Thu, 16 May 2013 00:35:35 +0000 (00:35 +0000)]
Merge "NetApp server tunneling fix."

11 years agoMerge "Implement cloned volume for the RBD driver"
Jenkins [Wed, 15 May 2013 23:59:13 +0000 (23:59 +0000)]
Merge "Implement cloned volume for the RBD driver"

11 years agoMerge "Hide lock_prefix argument using synchronized_with_prefix()"
Jenkins [Wed, 15 May 2013 23:34:54 +0000 (23:34 +0000)]
Merge "Hide lock_prefix argument using synchronized_with_prefix()"

11 years agoImplement cloned volume for the RBD driver
leseb [Wed, 15 May 2013 11:45:45 +0000 (13:45 +0200)]
Implement cloned volume for the RBD driver

This adds the support for cloned volume to the RBD driver. This is perform by the
create option --source-volid. Since the clone is pure copy of a volume,
we don't use the clone capability from RBD and simply copy the source
image.

Change-Id: I3b73bc77b74767ffe3583422f56b3603594589ce
Implements: blueprint implement-cloned-volume-for-rbd

11 years agoAdd .coveragerc to show proper coverage statistics. As in other openstack projects.
Vasyl Khomenko [Wed, 15 May 2013 10:19:03 +0000 (03:19 -0700)]
Add .coveragerc to show proper coverage statistics. As in other openstack projects.

Change-Id: Ic59f5b17d803b5d8102d53a1ca4883c529bc7a3e

11 years agoNetApp server tunneling fix.
Navneet Singh [Mon, 6 May 2013 12:33:21 +0000 (05:33 -0700)]
NetApp server tunneling fix.

NetApp vserver/vfiler api tunneling in concurrent requests
can cause routing request to incorrect servers in race conditions.
This fixes the api and driver for the mentioned situations.

bug 1176759

Change-Id: Id283822e4d1553daed4e6d690ec36f2edfbcf2b4

11 years agoMerge "Fix up hacking ignores a bit."
Jenkins [Wed, 15 May 2013 00:48:02 +0000 (00:48 +0000)]
Merge "Fix up hacking ignores a bit."

11 years agoMove iscsi helpers to brick directory.
John Griffith [Tue, 7 May 2013 11:47:32 +0000 (05:47 -0600)]
Move iscsi helpers to brick directory.

This patch moves the iscsi helpers to the brick
directory.  We're doing this to enable the ability
to have a module/library of core block storage
functionality to use in other OpenStack projects.

After this the next step is to separate out the LVM
and iSCSI code in drivers/lvm.py and then to actually
have the Cinder LVM driver use the new brick LVM module.

Change-Id: I4f8f8b54e801ab63994b5953956c041d8db91fad

11 years agoFix up hacking ignores a bit.
John Griffith [Tue, 14 May 2013 17:14:33 +0000 (11:14 -0600)]
Fix up hacking ignores a bit.

Add more explicit ignores to tox.ini hacking ignores until
we have a chance to fix up the imports and docstring errors
we've been ignoring.  This should give us everything we had
in the past (ie alphabetical import checks).

Also, update run_tests.sh to call flake8 and not the hacking.py
that is no longer there.

Change-Id: I6c82e958002255fd9f527b06bf0a68d148cc681e

11 years agoMerge "Storwize/SVC: fix attach bug for live migration."
Jenkins [Tue, 14 May 2013 18:35:47 +0000 (18:35 +0000)]
Merge "Storwize/SVC: fix attach bug for live migration."

11 years agoMerge "Use flake8 and hacking."
Jenkins [Tue, 14 May 2013 18:28:05 +0000 (18:28 +0000)]
Merge "Use flake8 and hacking."

11 years agoMerge "Create an LVM utility to use for local storage."
Jenkins [Tue, 14 May 2013 13:55:35 +0000 (13:55 +0000)]
Merge "Create an LVM utility to use for local storage."

11 years agoHide lock_prefix argument using synchronized_with_prefix()
Zhongyue Luo [Tue, 14 May 2013 09:30:00 +0000 (17:30 +0800)]
Hide lock_prefix argument using synchronized_with_prefix()

The lockfile module has a new convenience API which sets the lockfile prefix
Using this API, the prefix is not required everytime synchronized is used.

Change-Id: I033fa1d2ed071651609ac2be0a5a16eb3fda6c33

11 years agoStorwize/SVC: fix attach bug for live migration.
Erik Zaadi [Tue, 14 May 2013 07:20:43 +0000 (10:20 +0300)]
Storwize/SVC: fix attach bug for live migration.

Add force flag for mkvdiskhostmap command to allow multi host mapping

Change-Id: I290a5986b213a0aaeae0d0ea0ad57350c9dee3c9
Fixes: bug #1179773
11 years agoMerge "Add CINDER_LOCALEDIR env variable"
Jenkins [Tue, 14 May 2013 08:11:25 +0000 (08:11 +0000)]
Merge "Add CINDER_LOCALEDIR env variable"

11 years agoDeprecating old dot path locations for Folsom configs
Mike Perez [Sat, 13 Apr 2013 23:43:16 +0000 (16:43 -0700)]
Deprecating old dot path locations for Folsom configs

In grizzly, we made a lot of structure changes. This deprecates the old
locations so the dot paths in old configs still work but give warnings
in the logs of what needs to be updated.

Fixes: bug #1168573
Change-Id: I7b1754b0e59a923afa623871fc3be07362bf1bdc

11 years agoMerge "solidfire: Add ability to override account prefix"
Jenkins [Tue, 14 May 2013 05:39:27 +0000 (05:39 +0000)]
Merge "solidfire: Add ability to override account prefix"

11 years agoMerge "Increased unit test code coverage"
Jenkins [Tue, 14 May 2013 05:29:58 +0000 (05:29 +0000)]
Merge "Increased unit test code coverage"

11 years agoMerge "Remove gettext.install() from cinder/__init__.py"
Jenkins [Tue, 14 May 2013 04:39:55 +0000 (04:39 +0000)]
Merge "Remove gettext.install() from cinder/__init__.py"

11 years agosolidfire: Add ability to override account prefix
Mathieu Gagné [Mon, 13 May 2013 21:05:21 +0000 (17:05 -0400)]
solidfire: Add ability to override account prefix

The SolidFire account is created with a prefix based on the hostname
of the host running cinder-volume. This prevents cinder-volume from
being run in an active/active setup.

This patch introduces a new configuration option sf_account_prefix
to override the prefix used when a SolidFire account is created.

If sf_account_prefix is empty, no prefix will be added to
the SolidFire account name when created.

The default value is still the hostname.

Change-Id: I3b974789ea3e749cc8696b69754023ad76155179
Fixes: bug #1179671
11 years agoFixes an get_volume_stats reporting issue
Walter A. Boring IV [Thu, 9 May 2013 21:15:13 +0000 (14:15 -0700)]
Fixes an get_volume_stats reporting issue

This patch fixes a bug introduced in the last get_volume_stats
patch that caused the method to fail.  I Also added another set
of unit tests to catch any future issues related to get_volume_stats.

Fixes Bug: #1178418

Change-Id: I0dd2e0113ff822d3e717ab3d6da6b9d1b914a995

11 years agoIncreased unit test code coverage
Jim Branen [Thu, 9 May 2013 18:34:40 +0000 (11:34 -0700)]
Increased unit test code coverage

Added unit tests to increase the code coverage of the HP
3PAR Fibre Channel and iSCSI drivers.

Change-Id: I0176a56ca080429a600b24200987d276e73407ba

11 years agoMerge "Use pbr instead of openstack.common.setup."
Jenkins [Mon, 13 May 2013 15:46:44 +0000 (15:46 +0000)]
Merge "Use pbr instead of openstack.common.setup."

11 years agoCreate an LVM utility to use for local storage.
John Griffith [Wed, 8 May 2013 05:11:50 +0000 (23:11 -0600)]
Create an LVM utility to use for local storage.

This adds a simple LVM class for performing local
LVM operations.  The idea is that an LVM object
is instantiated based on a volume group, init
can be used to instantiate and query an existing
volume group, or create a new one if given a list
of PV's to use in creation.

See BP for information on where this is going and
how it will be used in Cinder and hopefully other
projects.

Implements blueprint: local-lvm-storage-utils

Change-Id: Iddde92af18f2317edc5f4583b2113c2b8117a4fe

11 years agoAdd CINDER_LOCALEDIR env variable
Mark McLoughlin [Wed, 8 May 2013 12:52:51 +0000 (13:52 +0100)]
Add CINDER_LOCALEDIR env variable

Part of fixing bug #995287

Syncs these two commits from oslo-incubator:

  Support overriding oslo localedir too
  Add a gettextutils.install() helper function

to get a new gettextutils.install() function which allows the default
localedir to be overwritten via an environment variable.

Note that gettextutils.install() must be called before any other cinder
modules are imported since some modules attempt to translate strings
at import time (e.g. in cinder.flags). This is broken and inefficient,
but fixing it involves adding something like sphinx's l_() function and
would be very invaisve.

Change-Id: I86562b3a65d371673bb21f7179eecc7602bc0775

11 years agoRemove gettext.install() from cinder/__init__.py
Mark McLoughlin [Wed, 8 May 2013 12:52:42 +0000 (13:52 +0100)]
Remove gettext.install() from cinder/__init__.py

The gettext.install() function installs a builtin _() function which
translates a string in the translation domain supplied to the install()
function. If gettext.install() is called multiple times, it's the last
call to the function which wins and the last supplied translation domain
which is used e.g.

 >>> import os
 >>> os.environ['LANG'] = 'ja.UTF-8'
 >>> import gettext
 >>> gettext.install('keystone', unicode=1, localedir='/opt/stack/keystone/keystone/locale')
 >>> print _('Invalid syslog facility')
  n無効な syslog ファシリティ
 >>> gettext.install('cinder', unicode=1, localedir='/opt/stack/nova/cinder/locale')
 >>> print _('Invalid syslog facility')
 Invalid syslog facility

Usually this function is called early on in a toplevel script and we
assume that no other code will call it and override the installed _().
However, in Cinder, we have taken a shortcut to avoid having to call it
explicitly from each script and instead call it from cinder/__init__.py.

This shortcut would be perfectly fine if we were absolutely sure that
nova modules would never be imported from another program. It's probably
quite incorrect for a program to use cinder code (indeed, if we wanted
to support this, Cinder code shouldn't use the default _() function) but
nevertheless there are some corner cases where it happens. For example,
the keystoneclient auth_token middleware tries to import cfg from
cinder.openstack and this in turn causes gettext.install('cinder') in
other projects like glance or quantum.

To avoid any doubt here, let's just rip out the shortcut and always
call gettext.install() from the top-level script.

However, there's a bit of an annoying detail here - by default,
nosetests starts in the current directly and tries to import all modules
it finds to look for tests. Without the _() builtin installed, importing
some modules like cinder.flags will fail.

Since it only ever makes sense to load tests from the cinder/tests dir,
we can ask nose to do that by using the --tests argument via setup.cfg.

Note, this means that if you previously did this:

  $> tox -- cinder.tests.foo cinder.tests.bar

then you must now do this:

  $> tox -- --tests cinder.tests.foo,cinder.tests.bar

Change-Id: If4125d6bcbde63df95de129ac5c83b4a6d6f130a

11 years agoMerge "Implement copy_image_to_volume and copy_volume_to_image on nfs backends"
Jenkins [Mon, 13 May 2013 04:54:07 +0000 (04:54 +0000)]
Merge "Implement copy_image_to_volume and copy_volume_to_image on nfs backends"

11 years agoMerge "Set default values for NFS/GlusterFS share_config files"
Jenkins [Mon, 13 May 2013 04:54:04 +0000 (04:54 +0000)]
Merge "Set default values for NFS/GlusterFS share_config files"

11 years agoUse flake8 and hacking.
Monty Taylor [Sun, 21 Apr 2013 04:44:09 +0000 (21:44 -0700)]
Use flake8 and hacking.

Fixes bug 1172444

Change-Id: I46b733bd16fa49c58c642348988233064d2b673b

11 years agoUse pbr instead of openstack.common.setup.
Monty Taylor [Sun, 21 Apr 2013 04:35:37 +0000 (21:35 -0700)]
Use pbr instead of openstack.common.setup.

Fixes bug 1179007

Change-Id: I71a556bcc36e56f0b51b1191f2622c66c3338474

11 years agoChange the type of "free_capacity_gb" to be float
zhangchao010 [Fri, 10 May 2013 12:25:53 +0000 (20:25 +0800)]
Change the type of "free_capacity_gb" to be float

Change the type of "free_capacity_gb" from string to float
in function _get_free_capacity.

Fix bug: 1177678
Change-Id: If2654fc3ad6b3dbea6a8cc0be7ae041ad30bf876

11 years agoMerge "Add missing spaces to iscsi_iotype help"
Jenkins [Fri, 10 May 2013 23:08:37 +0000 (23:08 +0000)]
Merge "Add missing spaces to iscsi_iotype help"

11 years agoSet default values for NFS/GlusterFS share_config files
Eric Harney [Fri, 10 May 2013 18:08:43 +0000 (14:08 -0400)]
Set default values for NFS/GlusterFS share_config files

By default, set:
 nfs_shares_config = /etc/cinder/nfs_shares
 glusterfs_shares_config = /etc/cinder/glusterfs_shares

This makes use of these drivers require one less manual
configuration step.

Also fix wording of help for glusterfs/nfs_mount_point_base
options.

Change-Id: I93bd3a8f08d4d5307f78e983d1080afae663dfe4

11 years agoAdd missing spaces to iscsi_iotype help
Eric Harney [Fri, 10 May 2013 18:16:54 +0000 (14:16 -0400)]
Add missing spaces to iscsi_iotype help

Missing spaces cause the auto-generated sample conf to not look
right.

Change-Id: I8e1b588d7cf18147aa403f0e7391f9c6ae390a6b

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 agoImplement copy_image_to_volume and copy_volume_to_image on nfs backends
Mehdi Abaakouk [Tue, 7 May 2013 08:37:10 +0000 (10:37 +0200)]
Implement copy_image_to_volume and copy_volume_to_image on nfs backends

Fixes: bug #1177288
Change-Id: I1c034de4acf13c52e399ba4623a0c8f2110fd695

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."