]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "VMware:Fix error creating vCenter inventory folder"
Jenkins [Fri, 23 Jan 2015 09:38:16 +0000 (09:38 +0000)]
Merge "VMware:Fix error creating vCenter inventory folder"

9 years agoMerge "HP 3PAR modules do not follow coding guidelines"
Jenkins [Fri, 23 Jan 2015 06:32:57 +0000 (06:32 +0000)]
Merge "HP 3PAR modules do not follow coding guidelines"

9 years agoHP 3PAR modules do not follow coding guidelines
Rich Hagarty [Fri, 16 Jan 2015 21:11:28 +0000 (13:11 -0800)]
HP 3PAR modules do not follow coding guidelines

Should use "," instead of "%" in logging messages, and
the use of "\" to continue lines should be avoided.

Change-Id: I23d53d66fda47981ed8f20b618b2ced8ef6e0682
Closes-Bug: #1411370

9 years agoMerge "Ensure lazy translation is disabled properly"
Jenkins [Thu, 22 Jan 2015 21:33:21 +0000 (21:33 +0000)]
Merge "Ensure lazy translation is disabled properly"

9 years agoMerge "Fix cinder-manage shell ipython"
Jenkins [Thu, 22 Jan 2015 21:33:11 +0000 (21:33 +0000)]
Merge "Fix cinder-manage shell ipython"

9 years agoMerge "Improve debug logging of Dell Storage Center driver"
Jenkins [Thu, 22 Jan 2015 21:21:03 +0000 (21:21 +0000)]
Merge "Improve debug logging of Dell Storage Center driver"

9 years agoMerge "Shrink down customized logging listener"
Jenkins [Thu, 22 Jan 2015 21:20:53 +0000 (21:20 +0000)]
Merge "Shrink down customized logging listener"

9 years agoMerge "Move oslo.utils to oslo_utils namespace"
Jenkins [Thu, 22 Jan 2015 21:08:08 +0000 (21:08 +0000)]
Merge "Move oslo.utils to oslo_utils namespace"

9 years agoImprove debug logging of Dell Storage Center driver
Sean McGinnis [Tue, 20 Jan 2015 22:50:19 +0000 (16:50 -0600)]
Improve debug logging of Dell Storage Center driver

Adding debug message and expanding some existing log statements
to make debugging and auditing easier. Some interesting calls
were not being logged while others had logging that was missing
some relevant arguments.

Change-Id: Iad5ceb9305aa5b03f429a8f624eb7f51d0ca6814

9 years agoVMware:Fix error creating vCenter inventory folder
Vipin Balachandran [Thu, 22 Jan 2015 09:49:20 +0000 (15:19 +0530)]
VMware:Fix error creating vCenter inventory folder

Creating vCenter inventory folder for grouping volumes will
fail with AttributeError if the vCenter's datacenter doesn't
have any child folder under vmFolder (inventory folder for
grouping virtual machines). This patch fixes it.

Change-Id: I0454a6c6a8c1dd49b0e369887883e2b45a778885
Closes-Bug: #1413537

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 22 Jan 2015 07:14:00 +0000 (07:14 +0000)]
Merge "Updated from global requirements"

9 years agoFix cinder-manage shell ipython
gtt116 [Thu, 22 Jan 2015 05:59:48 +0000 (05:59 +0000)]
Fix cinder-manage shell ipython

IPython current stable version is 2.3.1, and the code
in cinder-manage is only work for IPython < 0.11. The
patch make it work for IPython 2.3.1.

Change-Id: I1555744fbf80771455ebd9f9095e8f9ddc7d16e7
Closes-Bug: #1413485

9 years agoShrink down customized logging listener
Joshua Harlow [Thu, 22 Jan 2015 00:32:28 +0000 (16:32 -0800)]
Shrink down customized logging listener

Most of the code for this has been moved into taskflow
upstream; so now we should be able to override a single
*cinder-specific* method and retain the same functionality
that previously existed but in a more shareable manner (for
example glance will be using similar code).

Change-Id: I848897ed006147305f9a2c5e1e6a5ecbf598c128

9 years agoPrevent deleting volumes in a consistency group
Mike Perez [Thu, 22 Jan 2015 00:06:49 +0000 (16:06 -0800)]
Prevent deleting volumes in a consistency group

Currently you have to destroy the consistency group if you want to
delete these volumes. In the Kilo release, we'll have the ability to
remove a volume from a consistency group, which then can be deleted.

Closes-Bug: #1413427
Change-Id: Ice8ab88a89e447a08c3ce71c7698dd5fcf02d1e9

9 years agoMerge "DRBD: remove a wrong comma, it creates a tuple"
Jenkins [Wed, 21 Jan 2015 14:13:26 +0000 (14:13 +0000)]
Merge "DRBD: remove a wrong comma, it creates a tuple"

9 years agoMerge "Fix the iSER legacy usage in the new targets flow"
Jenkins [Wed, 21 Jan 2015 12:06:40 +0000 (12:06 +0000)]
Merge "Fix the iSER legacy usage in the new targets flow"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 20 Jan 2015 16:43:20 +0000 (16:43 +0000)]
Updated from global requirements

Change-Id: I1859c16eb9bf00bdffe64a7f64aae575a1b916ae

9 years agoEnsure lazy translation is disabled properly
Jay S. Bryant [Tue, 13 Jan 2015 04:55:45 +0000 (22:55 -0600)]
Ensure lazy translation is disabled properly

Commit 894f20d9cf57b36ccf9a675c6b2b070d56c9b297 changed the way that
enable_lazy() is being configured in cinder's test cases.  The changes
were required to remove the use of _lazy from the oslo's i18n library.
_lazy was removed from i18n and the code that was accessing the internal
variable broke.  The commit referenced above made changes to remove
the use of _lazy.

The commit, however, changed the behavior of the test cases to only
enable_lazy without disabling it, which diverges from the original
behavior.

This commit uses the new oslo.i18n ToggleLazy fixture (added in 1.3.0).

Closes-bug: 1408099
Change-Id: If9530b2bb8f0f511ccff4527ea9f2d13f7103bdb

9 years agoMerge "DRBD: Log an error if libraries can't be loaded"
Jenkins [Tue, 20 Jan 2015 13:08:23 +0000 (13:08 +0000)]
Merge "DRBD: Log an error if libraries can't be loaded"

9 years agoDRBD: remove a wrong comma, it creates a tuple
Philipp Marek [Tue, 20 Jan 2015 09:07:41 +0000 (10:07 +0100)]
DRBD: remove a wrong comma, it creates a tuple

Change-Id: I8a1152b9f173171be7611ed600ade1033791a5bf

9 years agoMerge "Add policy_dirs conf fixture"
Jenkins [Tue, 20 Jan 2015 04:04:13 +0000 (04:04 +0000)]
Merge "Add policy_dirs conf fixture"

9 years agoMove oslo.utils to oslo_utils namespace
Jay S. Bryant [Fri, 16 Jan 2015 22:54:27 +0000 (16:54 -0600)]
Move oslo.utils to oslo_utils namespace

This is the fourth in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.utils sneak back in.

Change-Id: I19c331a9b54c5f42c278577ecc59fe1b65e61af0

9 years agoMerge "Make test_create_delete_snapshot more robust"
Jenkins [Mon, 19 Jan 2015 21:01:10 +0000 (21:01 +0000)]
Merge "Make test_create_delete_snapshot more robust"

9 years agoMerge "Move oslo.config to oslo_config namespace"
Jenkins [Mon, 19 Jan 2015 20:19:48 +0000 (20:19 +0000)]
Merge "Move oslo.config to oslo_config namespace"

9 years agoMake test_create_delete_snapshot more robust
Eric Harney [Mon, 19 Jan 2015 19:01:45 +0000 (14:01 -0500)]
Make test_create_delete_snapshot more robust

This patch does two things to improve this test, and
help debug issues with it failing.

- Add additional checks for contents of the first two
  expected notifications.
- Assert the length of the notifications list after checking
  its contents so that if it contains unexpected items, we can
  see what they are.  This should help with the current gate
  failures.

Change-Id: Ib92247389fb3be6d65a658880fd47e634f1da8d1
Related-Bug: #1412513

9 years agoAdd policy_dirs conf fixture
Eric Harney [Mon, 19 Jan 2015 18:10:00 +0000 (13:10 -0500)]
Add policy_dirs conf fixture

Unit tests that call into the policy enforcer from openstack
common will try to load files from the default directory of
'policy.d'.

Set the policy_dirs option to [] for unit tests since tests
are not trying to use policy from a directory like this, and
this will prevent test failures.

Change-Id: I7645179aeab3713a5addfccb0bb44a28e8fc4e87
Closes-Bug: #1412526

9 years agoDRBD: Log an error if libraries can't be loaded
Philipp Marek [Mon, 19 Jan 2015 13:29:57 +0000 (14:29 +0100)]
DRBD: Log an error if libraries can't be loaded

Having a meaningful error message is better than a backtrace.

Change-Id: I0631228228db06efdedd65a44a286824b34e0b1a

9 years agoMerge "Verify the instance's existance in the VMAX driver"
Jenkins [Sun, 18 Jan 2015 12:13:31 +0000 (12:13 +0000)]
Merge "Verify the instance's existance in the VMAX driver"

9 years agoFix the iSER legacy usage in the new targets flow
Aviram Bar-Haim [Fri, 16 Jan 2015 00:45:30 +0000 (02:45 +0200)]
Fix the iSER legacy usage in the new targets flow

The iSER driver flow, after setting volume_driver to LVMISERDriver,
is broken in the new driver - target model in the master,
due to a mismatch in the target prefixes and a lack of iSER target
initialization, with the correct parameters.

In order to fix this:
  1. The function initialize_connection, that sets the iSER required
     parameters, was added to cinder/volume/targets/iser.py (and overrides the
     new connection initialization in cinder/volume/targets/tgt.py).
  2. The iSER and iSCSI prefixes equalized, due to the removal of brick/iscsi
     with the different default prefix for ISERTgtAdm (and for stability).

Closes-Bug:#1411470

Change-Id: Ie4b9b85b47e9da20a1de1e10415766413cd01f04

9 years agoMove oslo.config to oslo_config namespace
Jay S. Bryant [Thu, 15 Jan 2015 20:03:49 +0000 (14:03 -0600)]
Move oslo.config to oslo_config namespace

This is the third in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.config sneak back in.

Change-Id: I45d24c4330f7c23fc5ad0a0527f1840d09710512

9 years agoMerge "TgtAdm: Don't change CHAP username/password on live migration"
Jenkins [Sat, 17 Jan 2015 01:54:23 +0000 (01:54 +0000)]
Merge "TgtAdm: Don't change CHAP username/password on live migration"

9 years agoMerge "Add support for manage/unmanage volume commands to PureISCSIDriver"
Jenkins [Sat, 17 Jan 2015 01:22:51 +0000 (01:22 +0000)]
Merge "Add support for manage/unmanage volume commands to PureISCSIDriver"

9 years agoMerge "Fixed server name being retained after detach in LeftHand"
Jenkins [Sat, 17 Jan 2015 01:22:38 +0000 (01:22 +0000)]
Merge "Fixed server name being retained after detach in LeftHand"

9 years agoMerge "Scality: Lock around SOFS mount to avoid a race"
Jenkins [Sat, 17 Jan 2015 01:19:11 +0000 (01:19 +0000)]
Merge "Scality: Lock around SOFS mount to avoid a race"

9 years agoMerge "Create proxy volume driver"
Jenkins [Fri, 16 Jan 2015 19:20:36 +0000 (19:20 +0000)]
Merge "Create proxy volume driver"

9 years agoMerge "Capitalize the first letter in log messages."
Jenkins [Fri, 16 Jan 2015 19:20:26 +0000 (19:20 +0000)]
Merge "Capitalize the first letter in log messages."

9 years agoAdd support for manage/unmanage volume commands to PureISCSIDriver
Patrick East [Thu, 18 Dec 2014 23:21:02 +0000 (15:21 -0800)]
Add support for manage/unmanage volume commands to PureISCSIDriver

This change adds implementations of the required methods to make
manage and unmanage commands work with the PureISCSIDriver. You can now
call them and specify a volume name of an existing non-cinder volume on
the array and it will rename the volume accordingly to allow cinder to
manage it. When a volume is unmanaged it is renamed with a “-unmanaged”
suffix and left on the array.

Implements: blueprint pure-iscsi-manage-volume
Change-Id: I2fa63ba50a367fd06a2ede7768eb338bf6a1ee4e

9 years agoMerge "Set 'driver_volume_type' to 'gpfs'"
Jenkins [Fri, 16 Jan 2015 17:29:41 +0000 (17:29 +0000)]
Merge "Set 'driver_volume_type' to 'gpfs'"

9 years agoMerge "Switch the PureISCSIDriver over to using the purestorage pypi module."
Jenkins [Fri, 16 Jan 2015 17:04:38 +0000 (17:04 +0000)]
Merge "Switch the PureISCSIDriver over to using the purestorage pypi module."

9 years agoMerge "Implement clone_image caching on SolidFire"
Jenkins [Fri, 16 Jan 2015 15:23:47 +0000 (15:23 +0000)]
Merge "Implement clone_image caching on SolidFire"

9 years agoMerge "Fix bug in sheepdog driver: the wrong volume size"
Jenkins [Fri, 16 Jan 2015 14:49:26 +0000 (14:49 +0000)]
Merge "Fix bug in sheepdog driver: the wrong volume size"

9 years agoScality: Lock around SOFS mount to avoid a race
JordanP [Thu, 15 Jan 2015 14:42:10 +0000 (15:42 +0100)]
Scality: Lock around SOFS mount to avoid a race

Both cinder-volume and cinder-backup could want to mount the
SOFS at the same time (during init).

Related-Bug: #1410341
Change-Id: I75faa6eb283bc7c1f655cf5b051bed025af3d701

9 years agoSet 'driver_volume_type' to 'gpfs'
Nilesh Bhosale [Fri, 16 Jan 2015 10:10:18 +0000 (15:40 +0530)]
Set 'driver_volume_type' to 'gpfs'

nova LibvirtGPFSVolumeDriver class implemented recently for GPFS volume
driver expects the 'driver_volume_type' as 'gpfs' from the Cinder GPFS
driver. Making the required change in the GPFS cinder driver to
complete the fix.

Change-Id: I880b93e5e3608b63872e6937d02482a3fe368efd
Related-Bug: #1405044

9 years agoMerge "Add migration tests for PostgreSQL"
Jenkins [Fri, 16 Jan 2015 08:22:45 +0000 (08:22 +0000)]
Merge "Add migration tests for PostgreSQL"

9 years agoMerge "Use is_valid_ipv6 from oslo.utils"
Jenkins [Fri, 16 Jan 2015 08:21:01 +0000 (08:21 +0000)]
Merge "Use is_valid_ipv6 from oslo.utils"

9 years agoMerge "Fix the continuation line indent to pass flake8"
Jenkins [Fri, 16 Jan 2015 08:20:46 +0000 (08:20 +0000)]
Merge "Fix the continuation line indent to pass flake8"

9 years agoMerge "Update README.rst to current state"
Jenkins [Fri, 16 Jan 2015 08:20:31 +0000 (08:20 +0000)]
Merge "Update README.rst to current state"

9 years agoMerge "Move oslo.db to oslo_db namespace"
Jenkins [Fri, 16 Jan 2015 08:20:13 +0000 (08:20 +0000)]
Merge "Move oslo.db to oslo_db namespace"

9 years agoMerge "Fix eqlx endless loop when server closes the connection"
Jenkins [Fri, 16 Jan 2015 08:19:11 +0000 (08:19 +0000)]
Merge "Fix eqlx endless loop when server closes the connection"

9 years agoMerge "Increase unit test coverage in hacking test"
Jenkins [Fri, 16 Jan 2015 08:18:15 +0000 (08:18 +0000)]
Merge "Increase unit test coverage in hacking test"

9 years agoMerge "Fix zfssa driver volume attach to work with latest zfssa software"
Jenkins [Fri, 16 Jan 2015 08:16:01 +0000 (08:16 +0000)]
Merge "Fix zfssa driver volume attach to work with latest zfssa software"

9 years agoVerify the instance's existance in the VMAX driver
Xing Yang [Wed, 17 Dec 2014 05:53:01 +0000 (00:53 -0500)]
Verify the instance's existance in the VMAX driver

There are a few functions in the VMAX driver that are
referencing an instance that may have been already deleted.
This patch addressed this issue by verifying the instance's
existance.

Closes-Bug: #1393555
Change-Id: Id2aa0e892189d565d092c1c18c2e6dadc580f765

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 16 Jan 2015 01:10:17 +0000 (01:10 +0000)]
Updated from global requirements

Change-Id: If4911d8a678ecffee79b92d53eb1d8e1ada7a26f

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 16 Jan 2015 00:16:08 +0000 (00:16 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 15 Jan 2015 22:41:41 +0000 (22:41 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Add mock for cinder-rtstool call in tests.targets.test_lio_driver"
Jenkins [Thu, 15 Jan 2015 22:40:57 +0000 (22:40 +0000)]
Merge "Add mock for cinder-rtstool call in tests.targets.test_lio_driver"

9 years agoSwitch the PureISCSIDriver over to using the purestorage pypi module.
Patrick East [Wed, 14 Jan 2015 23:07:16 +0000 (15:07 -0800)]
Switch the PureISCSIDriver over to using the purestorage pypi module.

All management api's will now go through the purestorage module, the
interface is extremely similar to the original FlashArray object
included in the cinder.volume.drivers.pure module. This allows for
updates to the REST API and python code that uses it to not disrupt the
cinder driver.

Implements: blueprint pure-iscsi-purestorage-lib
Change-Id: Ifcfb1c2337e5837f2121929c4788137d8bd1cf42

9 years agoFix zfssa driver volume attach to work with latest zfssa software
abhiram_moturi [Thu, 15 Jan 2015 16:31:53 +0000 (11:31 -0500)]
Fix zfssa driver volume attach to work with latest zfssa software

This fixes the volume attach issue of the zfssa driver
with the latest zfssa software release and makes it work
for all zfssa versions.

Change-Id: I4b9ceb7788c112ee5998f24b00a07d4346bc6275
Closes-Bug: #1411291

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 15 Jan 2015 21:42:05 +0000 (21:42 +0000)]
Updated from global requirements

Change-Id: Ifd1c94a3d90dc69abac47a100734b84ea9ba8243

9 years agoMove oslo.db to oslo_db namespace
Jay S. Bryant [Thu, 15 Jan 2015 00:16:32 +0000 (18:16 -0600)]
Move oslo.db to oslo_db namespace

This is the second in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.db sneak back in.

Change-Id: Ibebed114a362e199e03c83d7d229841e8f88932b

9 years agoFix eqlx endless loop when server closes the connection
Dunrong Huang [Wed, 14 Jan 2015 05:56:43 +0000 (13:56 +0800)]
Fix eqlx endless loop when server closes the connection

The eqlx driver would identify one CLI command completion by looking
for the system name prompt in the output ("ARRAY_NAME>"). But some
cases where there is no "ARRAY_NAME>" in the output. The eqlx server
closes the ssh connection immediately after sends such message, which
lead to a infinite loop in _get_output() and 100% CPU utilization.

What the patch does is to check the return of chan.recv(), if the
length of returned string is zero, which means server has closed the
connection, the loop will be exited.

Closes-Bug: #1410627

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
Change-Id: I600c38d98f0f808c98df010a89ac58ca8e43f1a3

9 years agoIncrease unit test coverage in hacking test
Curt Bruns [Thu, 15 Jan 2015 18:35:05 +0000 (11:35 -0700)]
Increase unit test coverage in hacking test

Added a few unit tests to increase the test coverage from
~60% up to 90%.  Also modified the assertEqual of all tests
to be in the form of assertEqual(EXPECTED, ACTUAL) format.

Change-Id: If53cfae138c3e31d21e34aa86048d02a19fb6346

9 years agoMerge "Use assertRaisesRegexp() in test_srb.py."
Jenkins [Thu, 15 Jan 2015 18:16:11 +0000 (18:16 +0000)]
Merge "Use assertRaisesRegexp() in test_srb.py."

9 years agoFixed server name being retained after detach in LeftHand
Anthony Lee [Thu, 25 Sep 2014 12:10:05 +0000 (05:10 -0700)]
Fixed server name being retained after detach in LeftHand

There was an issue with the LeftHand driver where the
initiator names of servers were not being removed when the last
volume attached to that server was detached.

This fix will now remove the server from the LeftHand backend
when no more volumes are attached to it.

Closes-Bug: #1353137
Change-Id: I58be39d14979e1d3966232095cb49693c1424f8a

9 years agoMerge "Fixes misspelled words in Cinder"
Jenkins [Thu, 15 Jan 2015 16:22:57 +0000 (16:22 +0000)]
Merge "Fixes misspelled words in Cinder"

9 years agoMerge "Deal with PEP-0476 certificate chaining checking"
Jenkins [Thu, 15 Jan 2015 15:05:30 +0000 (15:05 +0000)]
Merge "Deal with PEP-0476 certificate chaining checking"

9 years agoMerge "Fix LOG formatting in api initialize_connection"
Jenkins [Thu, 15 Jan 2015 10:52:49 +0000 (10:52 +0000)]
Merge "Fix LOG formatting in api initialize_connection"

9 years agoFixes misspelled words in Cinder
Zhiteng Huang [Thu, 15 Jan 2015 03:12:05 +0000 (11:12 +0800)]
Fixes misspelled words in Cinder

Fixes misspelled words found by 'misspellings' in one shot

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I2b74c7f19f17ba566cfb734c012a8904f3e35e84

9 years agoMerge "Remove locks from LeftHand driver"
Jenkins [Thu, 15 Jan 2015 06:23:21 +0000 (06:23 +0000)]
Merge "Remove locks from LeftHand driver"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 15 Jan 2015 06:09:26 +0000 (06:09 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie183983e8c26e6b5aa8e9419e43b389cade46e8b

9 years agoMerge "Add loopingcalls for Huawei storage system driver"
Jenkins [Thu, 15 Jan 2015 04:13:30 +0000 (04:13 +0000)]
Merge "Add loopingcalls for Huawei storage system driver"

9 years agoAdd mock for cinder-rtstool call in tests.targets.test_lio_driver
Mitsuhiro Tanino [Thu, 15 Jan 2015 00:59:54 +0000 (19:59 -0500)]
Add mock for cinder-rtstool call in tests.targets.test_lio_driver

Unit tests in tests.targets.test_lio_driver are calling out to
cinder-rtstool.
change-id Ic25828361d9c30c4e1aa37b630d8ad272a78977b skips this
unit test to avoid failure of tests.
This patch reverts this change and adds mock for calling of
cinder-rtstool to reenable the unit tests.

Change-Id: I11dc07f692b5ba07484595c980f82bbdd2140d24
Closes-Bug: #1411029

9 years agoSkip LIO target unit tests until mocked
Mike Perez [Wed, 14 Jan 2015 23:47:26 +0000 (15:47 -0800)]
Skip LIO target unit tests until mocked

Unit tests are calling out to cinder-rtstool, which breaks in most
environments. We need these calls mocked out properly before being
reenabled.

Change-Id: Ic25828361d9c30c4e1aa37b630d8ad272a78977b
Related-Bug: #1411029

9 years agoFix LOG formatting in api initialize_connection
Walter A. Boring IV [Wed, 14 Jan 2015 23:38:34 +0000 (23:38 +0000)]
Fix LOG formatting in api initialize_connection

initialize_connection had invalid formatting characters
in the LOG entry.

Change-Id: I6bd8c7b374ba4c23001a98f2fda0705696e9d47c
Closes-Bug: #1411026

9 years agoMerge "Fix bug in tgt conf for volume"
Jenkins [Wed, 14 Jan 2015 23:10:54 +0000 (23:10 +0000)]
Merge "Fix bug in tgt conf for volume"

9 years agoMerge "Garbage Remains when Attached Volume is Migrated with NFS Driver"
Jenkins [Wed, 14 Jan 2015 23:10:42 +0000 (23:10 +0000)]
Merge "Garbage Remains when Attached Volume is Migrated with NFS Driver"

9 years agoTgtAdm: Don't change CHAP username/password on live migration
Tomoki Sekiyama [Wed, 7 Jan 2015 00:58:13 +0000 (19:58 -0500)]
TgtAdm: Don't change CHAP username/password on live migration

This fixes TgtAdm Target Objects not to regenerate random
username/password every time initialize_connection is called,
as TgtAdm doesn't accept the change while the initiator is
connected. This fixes the live-migration of nova instances which
have volumes attached.

Change-Id: I1b48a66da5a0d8726490f50c2ee58352c42d9587
Closes-Bug: #1408162
Related-Bug: #1383509

9 years agoMerge "Remove unused variables from ensure_export()"
Jenkins [Wed, 14 Jan 2015 21:30:58 +0000 (21:30 +0000)]
Merge "Remove unused variables from ensure_export()"

9 years agoMerge "Add hacking check for oslo namespace usage"
Jenkins [Wed, 14 Jan 2015 19:11:52 +0000 (19:11 +0000)]
Merge "Add hacking check for oslo namespace usage"

9 years agoDeal with PEP-0476 certificate chaining checking
Corey Bryant [Wed, 14 Jan 2015 18:11:30 +0000 (13:11 -0500)]
Deal with PEP-0476 certificate chaining checking

PEP-0476 introduced more thorough certificate chain verfication
for HTTPS connectivity; this was introduced in Python 2.7.9, and
breaks a number of unit tests in the cinder codebase.

Disable certificate chain verification for cinder SSL tests
using the backwards compatible SSLContext provided for this
purpose.

Change-Id: Iffc3658196f608c7a7c9b6527dc8e7210fb05bff
Closes-Bug: #1403068

9 years agoAdd hacking check for oslo namespace usage
Jay S. Bryant [Tue, 13 Jan 2015 23:11:33 +0000 (17:11 -0600)]
Add hacking check for oslo namespace usage

We want to make sure that we don't have usage of the old
oslo.concurrency naming slipping in with new changes where
we should be using the oslo_concurrency namespace.  This change
adds a hacking check to avoid use of the deprecated namespace.
As we convert more oslo libraries to the new namespace the check
will be updated to enforce use of the new namespace.

This hacking check is based upon the same N333 hacking check
in Cinder.

Change-Id: Ibec6d09e9d313c9e723f7542cedb9da5772d3de2

9 years agoRemove locks from LeftHand driver
Anthony Lee [Fri, 12 Dec 2014 19:32:15 +0000 (11:32 -0800)]
Remove locks from LeftHand driver

By removing synchronization locks from the LeftHand driver,
support for many simultaneous volume create/deletes and
volume attach/detachs will be added.  This is useful for high
availability environments where performance with locks in place
would be reduced.

Removing the locks requires the creation of a new LeftHand
client when a request is sent to the driver now.  This
allows requests to no longer be blocked if a request is
already in process by the driver.

This results in a performance increase for the driver and
better stability in a high availability environment.

Closes-Bug: #1395953
Change-Id: I39732d944a79bbfc597077fe0873d4cfcaace211

9 years agoFix bug in tgt conf for volume
git-harry [Wed, 14 Jan 2015 10:49:11 +0000 (10:49 +0000)]
Fix bug in tgt conf for volume

'lld' is not a valid directive.

This commit replaces 'lld' with the correct directive of 'driver'.

Change-Id: I165339a9652fe882c50a5a7e270675e343dceb30
Related-bug: #1396265

9 years agoUse is_valid_ipv6 from oslo.utils
ChangBo Guo(gcb) [Tue, 23 Dec 2014 07:20:38 +0000 (15:20 +0800)]
Use is_valid_ipv6 from oslo.utils

Remove _is_valid_ipv6 from Cinder and replace it's usages
by usages of is_valid_ipv6 from netutils, because this methods
implements the same functionality.

Change-Id: Ica16f0a34abc2f0c6f7240fe553a494d77dedc16

9 years agoUse lockutils.set_defaults to set lock_path in test
Jay S. Bryant [Tue, 13 Jan 2015 22:25:24 +0000 (16:25 -0600)]
Use lockutils.set_defaults to set lock_path in test

Commit 9dd6d212f0d8fd74c29077a786fb6d770a2a0bba for oslo.concurrency's
lockutils appears to have broken our unit tests.

Twelve of the the storwize_svc unit tests started failing with the
complaint that the required configuration option 'lock_path' was not set.

This change updates cinder/test.py to not only set up a temporary
lock_path location that will be automatically cleaned up, but to also
register that temporary lock_path location using lockutils.set_defaults()
to correct the problem.

Change-Id: I011888f676ebc170e7285048b7e5a638a5a8c9a9
Closes-bug: 1410485

9 years agoFix bug in sheepdog driver: the wrong volume size
ustcdylan [Sat, 6 Dec 2014 14:23:21 +0000 (22:23 +0800)]
Fix bug in sheepdog driver: the wrong volume size

We give a volume size when create a volume from an snapshot,
but the sheepdog driver ignores the size.

Change-Id: I4310e7ef07e98c002ad3494e623ea243e3aad468
Closes-Bug: #1399598

9 years agoAdd loopingcalls for Huawei storage system driver
Bob-OpenStack [Wed, 24 Dec 2014 04:03:13 +0000 (20:03 -0800)]
Add loopingcalls for Huawei storage system driver

Add loopingcalls for Huawei storage system driver, and make
wait interval configurable.

Closes-Bug: #1403608
Change-Id: Ieb7c6af40e5109d7f44022cbc38d8ec715e6057c

9 years agoMerge "Adds cinder iscsi driver for CloudByte storage"
Jenkins [Mon, 12 Jan 2015 23:59:11 +0000 (23:59 +0000)]
Merge "Adds cinder iscsi driver for CloudByte storage"

9 years agoImplement clone_image caching on SolidFire
John Griffith [Thu, 18 Dec 2014 17:55:05 +0000 (10:55 -0700)]
Implement clone_image caching on SolidFire

When performing boot from Volume on none FS based devices or devices
that aren't also acting as Glance Image stores, the current process goes
like this:
1. Fetch the image from Glance Store to a temp file on the Cinder Node
2. Perform a qemu-img convert on that file (convert to raw)
3. Transfer the contents of that file to the newly created Volume using dd

This process can take a while and is pretty inefficient. This BP introduces
the option for Operators to enable image-caching on the SolidFire backend device.

When enabled this option will use the existing Cinder clone_image method,
and will create a "Template Volume" of minimum required size on the SolidFire
backend. This Volume will be created with a backend SolidFire account that can
be shared among OpenStack Tenants.

When a request is received we first do a number of checks before proceeding:
1. Is Image/Template caching enabled
2. Inspect the image-metadata and verify that the image is public,
   or that the tenant making the request is the owner
3. Verify that the image-metadata includes the properties['virtual_size']
   parameter

If the preconditions are met, create a minimal sized Volume with the requested
image; then use SolidFires clone operation to create the requested bootable
Volume. During the process we also check and make sure that the image hasn't
been updated since we created our cached copy, if it has we then delete the
copy we have on the system and create a new one.

Also updated those drivers with docstrings duplicating the params info.  I did
not rewrite or modify those that didn't include changed info.  I'm not sure we
should duplicate docstring info for base methods like this anyway, but that's
irrelevant for this work.

Change-Id: I2fac9410f504dff1aaa9fe0b9a274db7b074fa50
Implements: blueprint implement-solidfire-cloneimage

9 years agoAdd migration tests for PostgreSQL
Ivan Kolodyazhny [Fri, 12 Dec 2014 16:11:58 +0000 (18:11 +0200)]
Add migration tests for PostgreSQL

Fix migrations for PostgresSQL:
002_quota_class - PostgreSQL-specific reservations foreign key name
004_volume_type_to_uuid - while downgraging volume_type_id from string to int
PostgreSQL can't do it automatically

Change-Id: I68b8608a85594501536835ddc9dc87bcd2dd80c4
Closes-Bug: #1266595

9 years agoGarbage Remains when Attached Volume is Migrated with NFS Driver
Rushil Chugh [Mon, 8 Dec 2014 22:09:36 +0000 (17:09 -0500)]
Garbage Remains when Attached Volume is Migrated with NFS Driver

Garbage volume remained when an attached NFS volume was migrated
to another NFS backend. An error message was generated as the
attached volume was not detached before being migrated. The root
cause of the issue is that status_update['status'] is only set
for retype and not for migration from one NFS backend to another
NFS backend. This patch proposes to fix the aforementioned issue
where migration fails from one NFS backend to another NFS backend.

Change-Id: I657a46d98b1e2a52cec128308cbbf39166c3625b
Closes-bug: 1391172

9 years agoUpdate README.rst to current state
Marc Koderer [Wed, 7 Jan 2015 14:44:26 +0000 (15:44 +0100)]
Update README.rst to current state

The existing README.rst is outdated. It's referring to
old URL's and can't be used for beginners to get an overview
of the module.

Change-Id: I66b866c35d74e7ec2c319ddcf09db1cfb318eb27

9 years agoMerge "Clean up QoSSpecManageApiTest setup"
Jenkins [Mon, 12 Jan 2015 05:22:47 +0000 (05:22 +0000)]
Merge "Clean up QoSSpecManageApiTest setup"

9 years agoMerge "Fix incorrect usage of get_flow in volume.manager"
Jenkins [Sun, 11 Jan 2015 06:29:53 +0000 (06:29 +0000)]
Merge "Fix incorrect usage of get_flow in volume.manager"

9 years agoMerge "Add debug messaging for tgt already exists"
Jenkins [Sat, 10 Jan 2015 06:09:06 +0000 (06:09 +0000)]
Merge "Add debug messaging for tgt already exists"

9 years agoRemove unused variables from ensure_export()
Mitsuhiro Tanino [Sat, 10 Jan 2015 01:11:43 +0000 (20:11 -0500)]
Remove unused variables from ensure_export()

After introducing commit 9651f547147188645942466602c92cce06666483,
these three variables are obsolete in ensure_export().
By remaining these variable, ensure_export() fails to export
volumes after c-vol service is restart because the caller of
ensure_export() in lvm driver does not pass these variables.

- iscsi_name, volume_group, config

Main clean up is done by commit Ibfd1feefd72c43ef316b267e9d6645f2e67e2558.
This patch adds some tests for tgt, lio, and iser targets.
And also adds initialization of chap_auth_userid and chap_auth_password
in create_iscsi_target() because these variables might be referred
before definition.

Closes-bug: 1408121
Related-bug: 1408171
Change-Id: I8766eee33ae07fea71873809bfec37b8352c3a89

9 years agoMerge "Add more rally benchmarks related to Cinder"
Jenkins [Sat, 10 Jan 2015 00:03:52 +0000 (00:03 +0000)]
Merge "Add more rally benchmarks related to Cinder"

9 years agoFix incorrect usage of get_flow in volume.manager
John Griffith [Fri, 9 Jan 2015 23:58:06 +0000 (23:58 +0000)]
Fix incorrect usage of get_flow in volume.manager

The call to flows.manager.create_volume.get_flow in cinder.volume.manager's
create_volume method is passing in keyword args where the flows manager is
actually expecting positional arguments. The good thing is that most of these
seem to evaluate to boolean values and are evaluated as True, so they don't
fail; however the behavior isn't going to be exactly as expected here.

The method signature in flows.manager.create_volume:

    def get_flow(context, db, driver, scheduler_rpcapi, host, volume_id,
             allow_reschedule, reschedule_context, request_spec,
             filter_properties, snapshot_id=None, image_id=None,
             source_volid=None, source_replicaid=None,
             consistencygroup_id=None):

Meanwhile the call in cinder.volume.manager.create_volume:

            flow_engine = create_volume.get_flow(
                context_elevated,
                self.db,
                self.driver,
                self.scheduler_rpcapi,
                self.host,
                volume_id,
                snapshot_id=snapshot_id,
                image_id=image_id,
                source_volid=source_volid,
                source_replicaid=source_replicaid,
                consistencygroup_id=consistencygroup_id,
                allow_reschedule=allow_reschedule,
                reschedule_context=context,
                request_spec=request_spec,
                filter_properties=filter_properties)

Change-Id: I0ec8c7e754521e418f534e199e58fa7e4ef01499
Closes-Bug: #1409168

9 years agoMerge "Fix iscsi_write_cache setting for iscsi targets"
Jenkins [Fri, 9 Jan 2015 21:57:45 +0000 (21:57 +0000)]
Merge "Fix iscsi_write_cache setting for iscsi targets"

9 years agoFix iscsi_write_cache setting for iscsi targets
John Griffith [Wed, 7 Jan 2015 05:47:01 +0000 (22:47 -0700)]
Fix iscsi_write_cache setting for iscsi targets

While transitioning to the new driver and target
model (change 9651f547147188645942466602c92cce06666483)
some things got lost not surprisingly.  One of those
things that wasn't migrated correctly was the
iscsi_write_cache option due to ensure_export not
being called properly on service restart.

This patch cleans up the ensure/create_export methods
and their signatures.  Most importantly esnure_export
should now actually work and check the iscsi_write_cache
settings.

While fixing this I also cleaned up the two methods
mentioned above to eliminate the unnecessary and
duplicate info in their arguments.

Closes-Bug: #1408171

Change-Id: Ibfd1feefd72c43ef316b267e9d6645f2e67e2558