]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoBrick LVM: Handle space info as numeric types
Eric Harney [Fri, 3 Jan 2014 16:19:42 +0000 (11:19 -0500)]
Brick LVM: Handle space info as numeric types

Rather than relying on callers to cast values from the VG object
to float, always create them as floats up front.

This removes the nosuffix option used with the LVM commands in
Brick, as it does not appear to be used.

Also removes unneeded self.vg_pool_name variable.

Change-Id: Ic19ce206bc8069071e3c2d9e58ba5393119e9b4d

10 years agoMerge "Fixes incorrect key in dictionary"
Jenkins [Thu, 30 Jan 2014 11:55:07 +0000 (11:55 +0000)]
Merge "Fixes incorrect key in dictionary"

10 years agoMerge "LVM: Activate source snap LV when cloning from volume"
Jenkins [Thu, 30 Jan 2014 04:45:40 +0000 (04:45 +0000)]
Merge "LVM: Activate source snap LV when cloning from volume"

10 years agoMerge "Add create_iscsi_target stub to TargetAdmin"
Jenkins [Thu, 30 Jan 2014 02:23:19 +0000 (02:23 +0000)]
Merge "Add create_iscsi_target stub to TargetAdmin"

10 years agoMerge "Extra_spec containing '/' can't be deleted"
Jenkins [Thu, 30 Jan 2014 02:22:16 +0000 (02:22 +0000)]
Merge "Extra_spec containing '/' can't be deleted"

10 years agoFixes incorrect key in dictionary
Walter A. Boring IV [Wed, 29 Jan 2014 23:53:53 +0000 (15:53 -0800)]
Fixes incorrect key in dictionary

This is a corner case for the 3PAR driver.
The dictionary has a key of 'wwn', not 'WWN'.

Change-Id: Id16a54f14d195a7297ab8db8fc8e2642955338e6
Closes-Bug: #1274334

10 years agoMerge "3PAR iSCSI volumes attach to single nsp"
Jenkins [Wed, 29 Jan 2014 17:03:40 +0000 (17:03 +0000)]
Merge "3PAR iSCSI volumes attach to single nsp"

10 years agoConvert ceph backup unit tests from mox to mock
Edward Hope-Morley [Sun, 26 Jan 2014 20:01:16 +0000 (20:01 +0000)]
Convert ceph backup unit tests from mox to mock

Closes-Bug: 1261866
Change-Id: Ia1e5e971c505a4f5cc00898c6a946d5dee45c29b

10 years agoAdd create_iscsi_target stub to TargetAdmin
Eric Harney [Mon, 27 Jan 2014 23:46:26 +0000 (18:46 -0500)]
Add create_iscsi_target stub to TargetAdmin

This should be defined in TargetAdmin, as it is assumed to be
present in all subclasses by callers.

IetAdm and LioAdm may need additional work to behave as desired
in all circumstances (such as volume extend), but this should
at least stabilize things in the meantime.

Closes-Bug: 1273480

Change-Id: Iac1381286ea07982e6db7f7c7abf3f9100e4be50

10 years agoMerge "Fix up the way we do iqn variable in unit test"
Jenkins [Tue, 28 Jan 2014 01:31:05 +0000 (01:31 +0000)]
Merge "Fix up the way we do iqn variable in unit test"

10 years ago3PAR iSCSI volumes attach to single nsp
Ramy Asselin [Wed, 15 Jan 2014 21:29:34 +0000 (13:29 -0800)]
3PAR iSCSI volumes attach to single nsp

Update the 3PAR iSCSI Driver to correctly identify
the least used iSCSI Node:Slot:Port (NSP) and only attach
the volume using that single NSP.

DocImpact: Driver now requires 3PAR firmware version 3.1.2 MU3
Ref: https://review.openstack.org/#/c/68513/

Change-Id: I1627e44a5168a7dbd19ea62312d65a00044753e9
Closes-Bug: #1269515

10 years agoExtra_spec containing '/' can't be deleted
Alejandro Emanuel Paredes [Wed, 22 Jan 2014 20:19:19 +0000 (15:19 -0500)]
Extra_spec containing '/' can't be deleted

This patch validates the keys of the extra specs
before setting them.
This will make possible to remove those keys.
It allows alphanumeric characters, underscores,
periods, colons and hyphens.

Change-Id: Ic2e5d7ce42c8ecb7ee45cd168bd008035fd4bbdf
Closes-Bug: #1259711

10 years agoMake sure report_interval is less than service_down_time
Zhiteng Huang [Thu, 9 Jan 2014 06:54:22 +0000 (14:54 +0800)]
Make sure report_interval is less than service_down_time

Services that inherit service.py/Service class would register
themselves to DB and then update stats periodically (every
report_interval second).  The consumer of this kind of information,
like scheduler or 'os-service' API extension, will consider a service
is 'up' (active) if last update from that service is not longer than
'service_down_time' ago.

The problem is if 'report_interval' was configured/provided greater
than 'service_down_time' by mistake, services would then be always
considered in 'down' state, which can result in unsuccesful placement
of volume create request for example.  This is what Bug #1255685 is
about.

In previous fix: https://review.openstack.org/#/c/60760/, a
configuration check helper function basic_config_check() was added
*wrongly* to WSGIService class instead of Service class.  This patch
moves the configuration check helper function and the check to the
right place to make sure 'report_interval' is less then
'service_down_time'.

Closes-bug #1255685

Change-Id: I14bd8c54e5ce20719844f437808ad98a011820de

10 years agoMerge "Remove unused exceptions"
Jenkins [Sun, 26 Jan 2014 11:36:38 +0000 (11:36 +0000)]
Merge "Remove unused exceptions"

10 years agoMerge "GlusterFS: Fix deadlock in volume clone"
Jenkins [Sun, 26 Jan 2014 09:39:50 +0000 (09:39 +0000)]
Merge "GlusterFS: Fix deadlock in volume clone"

10 years agoMerge "Redundant check in os-migrate_volume_completion"
Jenkins [Sun, 26 Jan 2014 09:21:12 +0000 (09:21 +0000)]
Merge "Redundant check in os-migrate_volume_completion"

10 years agoMerge "Storwize driver cleanup"
Jenkins [Sun, 26 Jan 2014 08:43:16 +0000 (08:43 +0000)]
Merge "Storwize driver cleanup"

10 years agoMerge "Convert RBD unit tests to use mock instead of mox"
Jenkins [Sun, 26 Jan 2014 08:07:40 +0000 (08:07 +0000)]
Merge "Convert RBD unit tests to use mock instead of mox"

10 years agoMerge "Fix import log_handler error with publish_errors set"
Jenkins [Sun, 26 Jan 2014 07:48:38 +0000 (07:48 +0000)]
Merge "Fix import log_handler error with publish_errors set"

10 years agoRedundant check in os-migrate_volume_completion
zhangyanzi [Tue, 26 Nov 2013 04:19:48 +0000 (12:19 +0800)]
Redundant check in os-migrate_volume_completion

Remove the redundant check for 'migrate_volume_completion', and add the UT
for it.

Change-Id: I6b643dbf9ae1302cafe6748a361123d7d76c437f
Closes-Bug: #1254963

10 years agoMerge "Updated error messages for volume clone"
Jenkins [Sun, 26 Jan 2014 06:31:03 +0000 (06:31 +0000)]
Merge "Updated error messages for volume clone"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 26 Jan 2014 00:17:45 +0000 (00:17 +0000)]
Merge "Imported Translations from Transifex"

10 years agoUpdated error messages for volume clone
Swapnil Kulkarni [Tue, 21 Jan 2014 15:34:10 +0000 (21:04 +0530)]
Updated error messages for volume clone

Updated error messages for volume clone from image,
snapshot and volume to be consistent across.
Updated error messages to indicate the unit (GB).

Change-Id: I9f51ad0c9ce40864a838fca06583d7d4283e61d8
Closes-Bug: #1244609

10 years agoMerge "Catch new iscsi exception"
Jenkins [Sat, 25 Jan 2014 21:17:44 +0000 (21:17 +0000)]
Merge "Catch new iscsi exception"

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Sat, 25 Jan 2014 21:08:17 +0000 (21:08 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Delete volume transfer in volume_destroy function"
Jenkins [Sat, 25 Jan 2014 14:23:31 +0000 (14:23 +0000)]
Merge "Delete volume transfer in volume_destroy function"

10 years agoMerge "Enable multi-process for API service"
Jenkins [Sat, 25 Jan 2014 14:23:22 +0000 (14:23 +0000)]
Merge "Enable multi-process for API service"

10 years agoMerge "Sync common modules from Oslo"
Jenkins [Sat, 25 Jan 2014 14:02:29 +0000 (14:02 +0000)]
Merge "Sync common modules from Oslo"

10 years agoMerge "Sync py3kcompat, sslutils, versionutils from Oslo"
Jenkins [Sat, 25 Jan 2014 13:58:02 +0000 (13:58 +0000)]
Merge "Sync py3kcompat, sslutils, versionutils from Oslo"

10 years agoMerge "Sync gettextutils from Oslo"
Jenkins [Sat, 25 Jan 2014 13:55:03 +0000 (13:55 +0000)]
Merge "Sync gettextutils from Oslo"

10 years agoMerge "Fixed inconsistency in iqn"
Jenkins [Sat, 25 Jan 2014 13:11:43 +0000 (13:11 +0000)]
Merge "Fixed inconsistency in iqn"

10 years agoMerge "Fix docstring and remove unused variable"
Jenkins [Sat, 25 Jan 2014 09:28:28 +0000 (09:28 +0000)]
Merge "Fix docstring and remove unused variable"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 25 Jan 2014 06:21:55 +0000 (06:21 +0000)]
Imported Translations from Transifex

Change-Id: I6fd23ffe606bc94c5ad1648da65098c28846087a

10 years agoUpdated from global requirements
OpenStack Jenkins [Tue, 21 Jan 2014 20:23:55 +0000 (20:23 +0000)]
Updated from global requirements

Change-Id: I6eee83f9c1f315ad295fc710f98f033349bb7aa9

10 years agoFix up the way we do iqn variable in unit test
john-griffith [Sat, 25 Jan 2014 02:12:01 +0000 (19:12 -0700)]
Fix up the way we do iqn variable in unit test

A recent bug was reported when a developer was trying to work
with the iscsi target unit tests.  There were two problems discovered,
one of which has been addressed by the dependent patch of this commit
(https://review.openstack.org/#/c/68223/) which fixed the inconsistencies
in the string we used for iqn's in our test.

This patch addresses another issue that's somewhat related and was
exposed when the developer tried to use the "self.target_name" variable
instead of hard-coding the iqn's in the tests.

The problem is that the target_name variable uses an invalid format
for the iqn based on cinder-defaults.  It neglected to use the
volume_name prefix (in this case: "volume-").

This patch modifies the self.target_name variable to be more accurate
with what we would see in real usage, it also modifies the test to just
use this variable rather than hard coding it and running the risk of
having mismatches again in the future.

Change-Id: I392d423d5c0f58b7a21ee0c477609265002faa0c

10 years agoCatch new iscsi exception
John Griffith [Fri, 24 Jan 2014 21:51:21 +0000 (14:51 -0700)]
Catch new iscsi exception

A while back we fixed up a target create/update error
that was identified in the gating tests:
    https://review.openstack.org/#/c/47513/

Since then a new patch was introduced to to the update and separate
it so that it could easily be used in other places.
    https://review.openstack.org/#/c/58599/

The problem is this added a new exception "TargetUpdate" and
didn't add this to the except block that we have.

This patch changes the catch block to handle the new exception and
do the retry, thereby putting the original fix back in place.

Change-Id: I1ed1bc6f4249f99a36b1168f9fec0b6b74482acf
Closes-Bug: 1223469

10 years agoMerge "Fix up calculating space info for mirrored volumes"
Jenkins [Fri, 24 Jan 2014 21:54:04 +0000 (21:54 +0000)]
Merge "Fix up calculating space info for mirrored volumes"

10 years agoDelete volume transfer in volume_destroy function
ling-yun [Mon, 20 Jan 2014 10:48:43 +0000 (18:48 +0800)]
Delete volume transfer in volume_destroy function

Doing volume force delete operation on volume-A will change volume-A's
status to 'deleted', so all related data about volume-A should be deleted.
Now current version's volume_destroy function doesn't delete related data
of volume transfer. If there is volume transfer about volume-A, first do
force delete operation on volume A, and thus the volume-A's transfer data
would be residual. So remove the related data of volume transfer in
volume_destroy function.

Change-Id: Id80a6e0cc061fccb02af60706244be043abdd72d
Closes-Bug: #1270785

10 years agoMerge "Remove unused method 'is_key_value_present()'"
Jenkins [Fri, 24 Jan 2014 11:39:14 +0000 (11:39 +0000)]
Merge "Remove unused method 'is_key_value_present()'"

10 years agoMerge "Add support for retype in Storwize/SVC driver"
Jenkins [Fri, 24 Jan 2014 11:39:05 +0000 (11:39 +0000)]
Merge "Add support for retype in Storwize/SVC driver"

10 years agoFix docstring and remove unused variable
ling-yun [Fri, 24 Jan 2014 06:41:11 +0000 (14:41 +0800)]
Fix docstring and remove unused variable

Fix error docstring and remove unused variable 'volume ' in
VolumeTransferTestCase.

Change-Id: I6c98af30df88b8f19c23ef5e38e4b5b2eef7436c
Closes-Bug: #1272182

10 years agoMerge "Added missing accept_transfer to FC"
Jenkins [Fri, 24 Jan 2014 07:56:35 +0000 (07:56 +0000)]
Merge "Added missing accept_transfer to FC"

10 years agoMerge "Rename __init__.py to create_volume.py"
Jenkins [Fri, 24 Jan 2014 04:06:03 +0000 (04:06 +0000)]
Merge "Rename __init__.py to create_volume.py"

10 years agoGlusterFS: Fix deadlock in volume clone
Eric Harney [Thu, 23 Jan 2014 16:57:17 +0000 (11:57 -0500)]
GlusterFS: Fix deadlock in volume clone

The create_cloned_volume path could deadlock due to
create_cloned_volume and create/delete_snapshot using the same
lock for synchronization.

Refactor the calls to create/delete snapshot to call the inner
method which does not use a lock.

Introduced by "06999f6 GlusterFS: Synchronize additional op..."

Related-Bug: 1267983
Closes-Bug: 1272092

Change-Id: I84ca34b201c10644faa047f1c9274c14bcdd0359

10 years agoMerge "Update HACKING.rst with regard to mock usage"
Jenkins [Thu, 23 Jan 2014 18:40:14 +0000 (18:40 +0000)]
Merge "Update HACKING.rst with regard to mock usage"

10 years agoEnable multi-process for API service
Zhiteng Huang [Wed, 8 Jan 2014 06:50:29 +0000 (14:50 +0800)]
Enable multi-process for API service

Due to the limit of Python interpreter, API service of Cinder can't
really utilize underlying multi-core architecture even libraries
like eventlet has been used. To make API service much more scalable,
we'd adopt multi-process (worker) mode that has been used for long
in Glance/Swift/Nova.

The default behavior isn't changed with this patch, Cinder API
service will still run in one process (default value of
osapi_volume_workers is None).

Implementation wise, a good portion of cinder/service.py has been
removed because those content has been merged in Oslo version of
service module.  cinder/wsgi.py is also updated to adopt the change
for multiple WSGI servers running in separate processes.

Implement bp: multi-process-api-service

DocImpact: 'New config option osapi_volume_workers is used to specify
number of API service workers (OS processes) to launch for Cinder
API service.  Setting this config option to a proper value (e.g.
osapi_volume_workers = # of CPU cores/threads of the machine) can
greatly improve the total throughput of API service [# of API
requests can be handled per second].'

Also removed out-dated comments in bin/cinder-api due to the fact
that this bug [1] has been fixed in eventlet 0.9.13

[1] https://bitbucket.org/eventlet/eventlet/issue/92/eventletgreen-override-of-oswaitpid

Change-Id: I8361d0dc0d43040e48634ff1aee1324e5e0af466

10 years agoSync common modules from Oslo
Eric Harney [Thu, 16 Jan 2014 19:08:53 +0000 (14:08 -0500)]
Sync common modules from Oslo

Identified as dependencies for RPC sync by update.py

Contains code from:
12bcdb7 Remove vim header
e6494c2 Use six.iteritems to make dict work on Python2/3
6d0a6c3 Correct invalid docstrings
fe18bfa Remove keystone from default_log_levels default
0228b81 Logging excepthook: print exception info if debug=True
8b2b0b7 Use hacking import_exceptions for gettextutils._
6d0a6c3 Correct invalid docstrings
fe18bfa Remove keystone from default_log_levels default
13eb01c Adding domain to context and log
27b21bc Unify different names between Python2/3 with six.moves
a6f40ac Don't log to stdout when log_dir is set
4c22556 Use py3kcompat urlutils functions instead of urlparse
0bf03b7 Add network_utils.urlsplit
e456727 Remove useless logging in networks_utils
8b2b0b7 Use hacking import_exceptions for gettextutils._
37e46bb disable SIGHUP restart behavior in foreground
f08f6ba service: replace eventlet event by threading
32cd4c0 Allow configurable ProcessLauncher liveness check
25ff65e Make wait & stop methods work on all threads
7013471 Fix typo in parameter documentation (timeutils)
ae931a9 Avoid TypeError in is_older_than, is_newer_than
ad17a69 Fix filter() usage due to python 3 compability

Oslo version:
7a51572 Merge "Implement cache abstraction layer"
Date:   Wed Jan 15 19:31:16 2014 +0000

Change-Id: If83fb203ecbae912e365118861477a9be834fde3

10 years agoSync py3kcompat, sslutils, versionutils from Oslo
Eric Harney [Thu, 16 Jan 2014 18:25:33 +0000 (13:25 -0500)]
Sync py3kcompat, sslutils, versionutils from Oslo

Dependencies identified by update.py for RPC update.

py3kcompat:
12d3bbc Add method quote_plus in module py3kcompat.urlutils
8575d87 Removed copyright from empty files
0d8f18b Use urlutils functions instead of urllib/urllib2
12bcdb7 Remove vim header
4c22556 Use py3kcompat urlutils functions instead of urlparse
71743d9 Add urlopen/URLError/pathname2url in urlutils
0f2906f py3kcompat: Add unquote
eaec23b py3kcompat: Add urljoin compatibility
35c317b Fix capitalization, it's OpenStack
4d12ad1 python3: Import translation layer

sslutils:
8b2b0b7 Use hacking import_exceptions for gettextutils._
12bcdb7 Remove vim header
1a2df89 Enable H302 hacking check
99b7c35 Convert kombu SSL version string into integer
b0b37ce Fix IBM copyright strings
f63ea05 Use oslo-config-2013.1b3
e50b68c Support for SSL in wsgi.Service

versionutils:
8b2b0b7 Use hacking import_exceptions for gettextutils._
a5ae087 fixed typos
45658e2 Fix violations of H302:import only modules
37ea814 Adds decorator to deprecate functions and methods
12bcdb7 Remove vim header
d7d74a7 Add `versionutils` for version compatibility checks

Oslo version:
7a51572 Merge "Implement cache abstraction layer"
Date:   Wed Jan 15 19:31:16 2014 +0000

Change-Id: I72a4ddaa015ce4a8016d580c922e8f7664376cb7

10 years agoSync gettextutils from Oslo
Eric Harney [Thu, 16 Jan 2014 18:09:05 +0000 (13:09 -0500)]
Sync gettextutils from Oslo

Update gettextutils as a dependency for RPC updates

Requires changes within Cinder as well for
"get_localized_message" -> "translate" method rename.

221c37d Allow the Message class to have non-English default locales
0e1af5b Implementation of translation log handler
f5686b1 Merge "Translation Message improvements"
8b2b0b7 Use hacking import_exceptions for gettextutils._
2cfc1a7 Translation Message improvements
45658e2 Fix violations of H302:import only modules
12bcdb7 Remove vim header

Oslo version:
7a51572 Merge "Implement cache abstraction layer"
Date:   Wed Jan 15 19:31:16 2014 +0000

Change-Id: I979114dbebfe2368b071cc6c18951da227b6f74a

10 years agoStorwize driver cleanup
Avishay Traeger [Wed, 22 Jan 2014 12:27:39 +0000 (14:27 +0200)]
Storwize driver cleanup

1. Moved Storwize driver into 'ibm' directory and refactored into
   separate files to improve readability and debug-ability. Other IBM
   drivers will be moved into this directory in a separate patch.
2. Errors coming from storage now raise VolumeBackendAPIException,
   and those coming from the driver raise VolumeDriverException.
3. Fixed many pylint errors.
4. Removed any usage of mox from unit tests in favor of mock.

DocImpact

Change-Id: I1696a97279efe834a96b3f3843bc65f0ea6da9cc

10 years agoAdd support for retype in Storwize/SVC driver
Li Min Liu [Thu, 9 Jan 2014 06:54:09 +0000 (14:54 +0800)]
Add support for retype in Storwize/SVC driver

In Storwize/SVC, retype can be handled by a few cases:
1. The change may just require setting an option on the volume
2. The change may require moving the data in the same pool (e.g.,
   compression)
3. The scheduler may have chosen a different pool virtualized by the
   same Storwize or SVC, in which case we move the data as in #2

Implements: blueprint storwize-svc-retype

Change-Id: Ic2ed17bce56b5ea65e1596acfa85720cf4818fa8

10 years agoMerge "Use a mirrored mirror log"
Jenkins [Thu, 23 Jan 2014 09:29:37 +0000 (09:29 +0000)]
Merge "Use a mirrored mirror log"

10 years agoMerge "Remove unused config options"
Jenkins [Thu, 23 Jan 2014 09:28:40 +0000 (09:28 +0000)]
Merge "Remove unused config options"

10 years agoMerge "Pull Bug #1263122 fix for service module from Oslo"
Jenkins [Thu, 23 Jan 2014 01:56:06 +0000 (01:56 +0000)]
Merge "Pull Bug #1263122 fix for service module from Oslo"

10 years agoMerge "Remove unused variable in restore_backup method"
Jenkins [Wed, 22 Jan 2014 15:59:37 +0000 (15:59 +0000)]
Merge "Remove unused variable in restore_backup method"

10 years agoConvert RBD unit tests to use mock instead of mox
Edward Hope-Morley [Mon, 23 Dec 2013 21:10:55 +0000 (21:10 +0000)]
Convert RBD unit tests to use mock instead of mox

Change-Id: If32e14a8f5ff180b6c0ff46797bcb81b21f805f1
Closes-bug: 1261864

10 years agoMerge "Use oslo.rootwrap library instead of local copy"
Jenkins [Wed, 22 Jan 2014 05:45:16 +0000 (05:45 +0000)]
Merge "Use oslo.rootwrap library instead of local copy"

10 years agoMerge "Fix UnboundLocalError in TgtAdm.update_iscsi_target"
Jenkins [Wed, 22 Jan 2014 05:33:49 +0000 (05:33 +0000)]
Merge "Fix UnboundLocalError in TgtAdm.update_iscsi_target"

10 years agoMerge "Allow user to specify audit period."
Jenkins [Wed, 22 Jan 2014 03:45:42 +0000 (03:45 +0000)]
Merge "Allow user to specify audit period."

10 years agoMerge "Transfer creation doesn't support 'name' via xml"
Jenkins [Wed, 22 Jan 2014 03:45:34 +0000 (03:45 +0000)]
Merge "Transfer creation doesn't support 'name' via xml"

10 years agoMerge "Fix cross-import bug in cinder.db.sqlalchemy.api"
Jenkins [Wed, 22 Jan 2014 03:43:04 +0000 (03:43 +0000)]
Merge "Fix cross-import bug in cinder.db.sqlalchemy.api"

10 years agoMerge "Add Backup Service to 'cinder-all' script"
Jenkins [Wed, 22 Jan 2014 03:41:49 +0000 (03:41 +0000)]
Merge "Add Backup Service to 'cinder-all' script"

10 years agoMerge "Ensure hostnames are converted to IP for comparison."
Jenkins [Wed, 22 Jan 2014 03:38:33 +0000 (03:38 +0000)]
Merge "Ensure hostnames are converted to IP for comparison."

10 years agoMerge "Update host on driver retype"
Jenkins [Wed, 22 Jan 2014 03:36:08 +0000 (03:36 +0000)]
Merge "Update host on driver retype"

10 years agoMerge "Remove env from rootwrap filter"
Jenkins [Wed, 22 Jan 2014 02:08:51 +0000 (02:08 +0000)]
Merge "Remove env from rootwrap filter"

10 years agoMerge "Remove unused variable in os-extend api"
Jenkins [Tue, 21 Jan 2014 22:00:58 +0000 (22:00 +0000)]
Merge "Remove unused variable in os-extend api"

10 years agoFixed inconsistency in iqn
Walter A. Boring IV [Tue, 21 Jan 2014 19:54:15 +0000 (11:54 -0800)]
Fixed inconsistency in iqn

Brick's TargetAdmin classes have a
default value set in __init__ for
iscsi_target_prefix.   The unit test was changing
the value returned for the internal _get_target,
but wasn't changing the CONF.iscsi_target_prefix to
match.  So the default value in the __init__ was
being used and hence the differences.

This patch sets the configuration's iscsi_target_prefix
which alters the values passed into the driver.  This
also makes the tests consistent between the iqn of the volume
at create time and delete time.

Closes-Bug: #1271249
Change-Id: Ie3308cf68adcbdff6057ea795af1299dded82e14

10 years agoUpdate HACKING.rst with regard to mock usage
Avishay Traeger [Tue, 21 Jan 2014 16:00:05 +0000 (18:00 +0200)]
Update HACKING.rst with regard to mock usage

Add a sentence about using mock rather than mox for unit tests.

Change-Id: If3c175d986f3ebed6d949df5c473e0cf9177ef6e

10 years agoMerge "Updates for version list to show correct references"
Jenkins [Tue, 21 Jan 2014 15:16:40 +0000 (15:16 +0000)]
Merge "Updates for version list to show correct references"

10 years agoMerge "Use loopingcall from openstack-common"
Jenkins [Tue, 21 Jan 2014 10:07:49 +0000 (10:07 +0000)]
Merge "Use loopingcall from openstack-common"

10 years agoMerge "Pull latest scheduler change from Oslo"
Jenkins [Tue, 21 Jan 2014 08:36:07 +0000 (08:36 +0000)]
Merge "Pull latest scheduler change from Oslo"

10 years agoRemove unused method 'is_key_value_present()'
KIYOHIRO ADACHI [Fri, 10 Jan 2014 04:39:56 +0000 (13:39 +0900)]
Remove unused method 'is_key_value_present()'

The following method is not used.
  is_key_value_present() in cinder/volume/volume_types.py

Change-Id: If1ecd22f2cfb758f0e9f7c6b730727559e9dcdf0

10 years agoRemove unused config options
KIYOHIRO ADACHI [Wed, 8 Jan 2014 01:39:35 +0000 (10:39 +0900)]
Remove unused config options

The following options are not used.

o fake_tests=true
  This configuration was removed in the following commit.

    commit 6ae520677da80103bae79e3db3569360df1220cd
    Author: Monty Taylor <mordred@inaugust.com>
    Date:   Fri May 24 01:36:21 2013 +0200

        Replace custom skip_ methods.

o backlog=4096
  This configuration was added in the following commit.

    commit 24d961023f2a32ca3454991a7891199d2da796dc
    Author: Davanum Srinivas <dims@linux.vnet.ibm.com>
    Date:   Sat Jan 12 16:16:19 2013 -0500

        Support for SSL in wsgi.Server

  But there is no evidence that was used.

o bindir=$pybasedir/bin
  This configuration was added in the following commit.

    commit c53d8e343e50d4cf7ea9a6a81258848c2d893bfb
    Author: Jenkins <jenkins@review.openstack.org>
    Date:   Thu May 3 10:48:26 2012 -0700

        Initial fork out of Nova.

  But there is no evidence that was used.

o root_helper=sudo
  This configuration was removed in the following commit.

    commit 5bce6ad46f57d22fcb22ba9e194fbd1e2d53f55d
    Author: John Griffith <john.griffith@solidfire.com>
    Date:   Tue Jun 4 17:07:03 2013 -0600

        Use common.processutils.execute

o nexenta_mount_options=<None>
  This configuration was added in the following commit.

    commit 96677735f6d8f1f5b6380127956921f719aab799
    Author: Mikhail Khodos <hodosmb@gmail.com>
    Date:   Wed Aug 14 11:18:12 2013 -0700

        Adds Nexenta NFS driver

  But there is no evidence that was used.

o nexenta_used_ratio=0.95
  This configuration was added in the following commit.

    commit 96677735f6d8f1f5b6380127956921f719aab799
    Author: Mikhail Khodos <hodosmb@gmail.com>
    Date:   Wed Aug 14 11:18:12 2013 -0700

        Adds Nexenta NFS driver

  But there is no evidence that was used.

o nexenta_oversub_ratio=1.0
  This configuration was added in the following commit.

    commit 96677735f6d8f1f5b6380127956921f719aab799
    Author: Mikhail Khodos <hodosmb@gmail.com>
    Date:   Wed Aug 14 11:18:12 2013 -0700

        Adds Nexenta NFS driver

  But there is no evidence that was used.

o zadara_default_striping_mode=simple
  This configuration was removed in the following commit.

    commit 2f907133aeaee09f58be30e75089c23b13573500
    Author: Vladimir Popovski <vladimir@zadarastorage.com>
    Date:   Fri Aug 16 04:34:54 2013 +0000

        Add features to Zadara Storage Cinder driver

o zadara_default_stripesize=64
  This configuration was removed in the following commit.

    commit 2f907133aeaee09f58be30e75089c23b13573500
    Author: Vladimir Popovski <vladimir@zadarastorage.com>
    Date:   Fri Aug 16 04:34:54 2013 +0000

        Add features to Zadara Storage Cinder driver

Change-Id: Ie78b8c7fc081899b8053060150e81e1a6c5d4958

10 years agoRemove unused exceptions
KIYOHIRO ADACHI [Fri, 10 Jan 2014 09:22:36 +0000 (18:22 +0900)]
Remove unused exceptions

The following exceptions are not used.
  class MigrationNotFound(NotFound):
  class BadDriverResponseStatus(VolumeDriverException):
  class InstanceNotFound(NotFound):
  class VolumeRetypeFailed(CinderException):
  class DuplicateSolidFireVolumeNames(SolidFireDriverException):

Change-Id: I891360f9c150eb8ea3f3968f12b9ad3da998981a

10 years agoMerge "Register EMC config options globally"
Jenkins [Mon, 20 Jan 2014 22:11:50 +0000 (22:11 +0000)]
Merge "Register EMC config options globally"

10 years agoFix up calculating space info for mirrored volumes
Vishvananda Ishaya [Fri, 17 Jan 2014 21:07:43 +0000 (14:07 -0700)]
Fix up calculating space info for mirrored volumes

The status reporting in the lvm driver for cinder volume incorrectly
reports free capacity. This is due to a couple of issues:
  a) the number of mirrors isn't taken into account
  b) there are some pathological cases where a
     simple division by total mirrors isn't sufficient
     because all mirrors must be on separate physical volumes.

Co-authored-by: Vishvananda Ishaya <vishvananda@gmail.com>
Co-authored-by: John Griffith <john.griffith@solidfire.com>
Closes-Bug: 1269964
Change-Id: I65e16b24367b4093a52c1c52d895fb58ef6a29ff

10 years agoRename __init__.py to create_volume.py
Anastasia Karpinska [Mon, 13 Jan 2014 08:21:36 +0000 (10:21 +0200)]
Rename __init__.py to create_volume.py

This commit is the first step of creating packages structure for
flows. This change is required to preserve git history of renamed files
for change I63473f549f0c501fe0f373830bc1080239d01892

Change-Id: Ib5ed0e9196fa7bf4fd0b69a13c90e40c360ad8ef

10 years agoUse oslo.rootwrap library instead of local copy
Thierry Carrez [Fri, 17 Jan 2014 10:28:17 +0000 (11:28 +0100)]
Use oslo.rootwrap library instead of local copy

Remove rootwrap code copied from oslo-incubator, make
cinder-rootwrap a console_script entrypoint pointing in
oslo.rootwrap instead.

Change-Id: I4e924bc9fccd7f5a8522ac38b7c6d29683990ea8
Implements: blueprint cinder-oslo-rootwrap

10 years agoFix UnboundLocalError in TgtAdm.update_iscsi_target
Yuriy Taraday [Sun, 19 Jan 2014 19:08:06 +0000 (23:08 +0400)]
Fix UnboundLocalError in TgtAdm.update_iscsi_target

Closes-Bug: #1270624
Change-Id: I74a057a9603c5d6aefaec6db62228352b739df56

10 years agoUpdate host on driver retype
Avishay Traeger [Sun, 12 Jan 2014 13:41:31 +0000 (15:41 +0200)]
Update host on driver retype

The volume's host was not updated on retype where the driver handled
the retype. Now update in all cases.

Change-Id: I64b72ae5617d1dacad8f37c4246ce0f079e015bb
Closes-Bug: #1268305

10 years agoMerge "Fix exception log msg in attach volume method"
Jenkins [Sun, 19 Jan 2014 07:35:56 +0000 (07:35 +0000)]
Merge "Fix exception log msg in attach volume method"

10 years agoMerge "Fix os.getlogin() problem with no tty"
Jenkins [Sun, 19 Jan 2014 01:07:49 +0000 (01:07 +0000)]
Merge "Fix os.getlogin() problem with no tty"

10 years agoRemove unused variable in restore_backup method
ling-yun [Fri, 17 Jan 2014 03:58:10 +0000 (11:58 +0800)]
Remove unused variable in restore_backup method

Variable err in restore_backup method is not being used, so remove this
'err ' variable.

Change-Id: I31f6da5fd55e025d6496aca76a1157ff5a167d9e
Closes-Bug: #1270034

10 years agoEnsure hostnames are converted to IP for comparison.
Bob Callaway [Fri, 10 Jan 2014 16:15:07 +0000 (11:15 -0500)]
Ensure hostnames are converted to IP for comparison.

Also switch to using getaddrinfo for IPv6 compliance
vs gethostbyname.

Change-Id: I1a194eae514a65bff56488571c05457bfa660c02
Closes-Bug: 1267667

10 years agoAdd Backup Service to 'cinder-all' script
Zhiteng Huang [Fri, 17 Jan 2014 18:02:19 +0000 (02:02 +0800)]
Add Backup Service to 'cinder-all' script

Backup service is missing in 'cinder-all' script, this patch simply
add it so that this all-in-one script could launch all Cinder
Services.

Change-Id: I29c7355baabddd18a14fe9f97b71f58d24a033dc

10 years agoRemove env from rootwrap filter
Dirk Mueller [Thu, 16 Jan 2014 21:59:41 +0000 (22:59 +0100)]
Remove env from rootwrap filter

Allowing 'env' as a CommandFilter is similar to
allowing '/bin/bash', which makes all of rootwrap pointless.
Use EnvFilter instead. Change corresponding commands
that use env for setting C locale and adjust rootwrap
filters accordingly.

Several commands that output information that is
parsed as input by cinder change their behavior
based on the environment locale, which is depending
on local system settings. The code is however only
able to parse in C locale, so enforce that one.

Closes-Bug: #1269958

Change-Id: Ie1463e608c80204c7a8906efb95899a66aa733da

10 years agoMerge "GlusterFS: Synchronize additional operations"
Jenkins [Fri, 17 Jan 2014 15:23:07 +0000 (15:23 +0000)]
Merge "GlusterFS: Synchronize additional operations"

10 years agoMerge "Remove legacy config option 'connection_type'"
Jenkins [Fri, 17 Jan 2014 13:26:15 +0000 (13:26 +0000)]
Merge "Remove legacy config option 'connection_type'"

10 years agoMerge "Use a *args pass-in instead of a list one"
Jenkins [Fri, 17 Jan 2014 13:26:06 +0000 (13:26 +0000)]
Merge "Use a *args pass-in instead of a list one"

10 years agoMerge "LVM: update iscsi target on volume attach"
Jenkins [Fri, 17 Jan 2014 13:25:58 +0000 (13:25 +0000)]
Merge "LVM: update iscsi target on volume attach"

10 years agoAllow user to specify audit period.
Ollie Leahy [Thu, 12 Dec 2013 11:01:34 +0000 (11:01 +0000)]
Allow user to specify audit period.

The script 'cinder-volume-usage-audit' is generally run by cron to
generate volume and snapshot exists audit notifications that can be
consumed by ceilometer or other auditing systems. In this mode it sends
notifications for volumes that existed in the 'last completed audit
period' as calculated by cinder.utils.last_completed_audit_period()

However, it may sometimes be necessary to be able to send notifications
for audit periods other than than the last completed audit period. For
example if the host running the audit script was down for a period.

This patch provides three optional command line parameters to the script
cinder-volume-usage-audit. If no parameters are provided then the
operation of the script is unchanged. If parameters are provided then
they have the following effects:

--start_time specifies a date and time that is used in place of the
start of the last completed audit period.

--end_time specifies a date and time that is used in place of the end of
the last completed audit period.

--send_actions As well as sending exits notifications the script will
send any create or delete notifications that would have been sent during
the specified audit period.

Closes-Bug: #1259147

Change-Id: I0cfe963ea59d811ba4bac0bd3de31382a088b8c8

10 years agoFix exception log msg in attach volume method
ling-yun [Fri, 17 Jan 2014 02:49:58 +0000 (10:49 +0800)]
Fix exception log msg in attach volume method

Attach volume happened when volume's status is attaching or available, but
the exception msg only contain info about "available". So fix it.

Change-Id: I1caf83b94b3e4158eff88871a4187041a25e5d1c
Closes-Bug: #1270020

10 years agoFix import log_handler error with publish_errors set
Chang Bo Guo [Wed, 6 Nov 2013 06:56:36 +0000 (22:56 -0800)]
Fix import log_handler error with publish_errors set

Sync latest module log_handler from Oslo.
Commit Id is 2843a92a0e4007f50d5ad63d51fe574e1ba5e280

This handler sends the error to configured notifier.
The notifier could be any kind (log, RPC, no_op, None).

Note: when using publish_errors you also need to set the
notification_driver option too.

Closes-bug: #1240349
Change-Id: I4f759b049b8f34904ba11382a2e8fc1578677a8f

10 years agoUse a mirrored mirror log
Joel Friedly [Fri, 17 Jan 2014 01:19:26 +0000 (17:19 -0800)]
Use a mirrored mirror log

By default, LVM will sync the two mirrors of a logical volume on
creation. This is I/O intensive and it takes a long time though, so we
tell it not to with --nosync. The next default behavior is to create a
mirror log which says what portions of the mirrors are in sync. But
then if a disk backing a mirror log fails, we have to deal with
resyncing the mirrors at each reboot.

This commit tells LVM to use a mirrored mirror log, which will use
approximately 4MB of extra space, but means we'll never have to
sync mirrors, ever.

Change-Id: I6586ced4e7e66ae79ae134406a4c633f8fbc8602

10 years agoAdded missing accept_transfer to FC
Walter A. Boring IV [Thu, 16 Jan 2014 19:44:13 +0000 (11:44 -0800)]
Added missing accept_transfer to FC

The base class FibreChannelDriver was
missing the new accept_transfer method.
This was caught while running the devstack
driver certification tests again the
3PAR FC driver.
This patch adds the missing method to the
base VolumeDriver.

Change-Id: I0aa91a4f11edd03eee7607d15317b89c30732cb7
Closes-Bug: #1269633

10 years agoRegister EMC config options globally
Dirk Mueller [Wed, 15 Jan 2014 17:23:40 +0000 (18:23 +0100)]
Register EMC config options globally

The registration allows the oslo sample config generator
to detect the config options and extract automatically
a config template.

Change-Id: Ib181d734dddbd9b6a664439286969b832d6536e7

10 years agoFix os.getlogin() problem with no tty
Koert van der Veer [Thu, 9 Jan 2014 20:18:50 +0000 (21:18 +0100)]
Fix os.getlogin() problem with no tty

Catch OSError(s) from  os.getlogin() and fall back to looking at
environment variables to figure out the user's name. The OSError
is thrown where there is no tty for the python process when
os.getlogin() is called.

Related-Bug: #1221491

Change-Id: I2bd735c9669ba9d25da108da44ea602f358b2dcc

10 years agoUpdates for version list to show correct references
Swapnil Kulkarni [Thu, 16 Jan 2014 07:58:31 +0000 (13:28 +0530)]
Updates for version list to show correct references

Updated views to consider version while creating href.
Updated fakes to consider version while creating fake href.
Updated some test cases in v2 api which were using v1 as
expected output

Change-Id: Ib05180041309ef75c3718924969bd2354d6d8b3a
Closes-Bug: #1261849

10 years agoFix cross-import bug in cinder.db.sqlalchemy.api
Dima Shulyak [Wed, 15 Jan 2014 12:44:19 +0000 (14:44 +0200)]
Fix cross-import bug in cinder.db.sqlalchemy.api

Cross import in cinder.sqlalchemy.db.api module breaks
if lazy loading of db backend is removed

In oslo.incubator db.api lazy loading was removed
Check this change for details https://review.openstack.org/#/c/55985/

Change-Id: I6a75afd0b9b55097ef76ad24c53e84339b527196

10 years agoPull Bug #1263122 fix for service module from Oslo
Zhiteng Huang [Thu, 2 Jan 2014 06:16:18 +0000 (14:16 +0800)]
Pull Bug #1263122 fix for service module from Oslo

Get latest service module from Oslo mainly to avoid the impact of
bug #1263122 when multi-process API service is enabled.

Follow commits are included in this change:
8b2b0b7 2013-12-20 | Use hacking import_exceptions for gettextutils._
37e46bb 2013-12-20 | disable SIGHUP restart behavior in foreground
12bcdb7 2013-10-11 | Remove vim header

Change-Id: I506ff809c32542520cc6ba2fa07519b1361f439c