]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "Add time_type dictionary to test_migrations"
Jenkins [Fri, 7 Feb 2014 02:43:57 +0000 (02:43 +0000)]
Merge "Add time_type dictionary to test_migrations"

10 years agoMerge "Sync RPC module from Oslo"
Jenkins [Fri, 7 Feb 2014 01:55:49 +0000 (01:55 +0000)]
Merge "Sync RPC module from Oslo"

10 years agoMerge "Set a sane default for state_path"
Jenkins [Fri, 7 Feb 2014 01:53:34 +0000 (01:53 +0000)]
Merge "Set a sane default for state_path"

10 years agoMerge "On create_volume flow get rid of host parameter"
Jenkins [Thu, 6 Feb 2014 22:51:58 +0000 (22:51 +0000)]
Merge "On create_volume flow get rid of host parameter"

10 years agoMerge "vmware: intermittent failure in test_vmware_vmdk"
Jenkins [Thu, 6 Feb 2014 19:32:06 +0000 (19:32 +0000)]
Merge "vmware: intermittent failure in test_vmware_vmdk"

10 years agoUpdated from global requirements
OpenStack Jenkins [Wed, 29 Jan 2014 16:57:35 +0000 (16:57 +0000)]
Updated from global requirements

Change-Id: I60e217d361a71b2c7518aff98b5530e689d838c5

10 years agoMerge "vmdk: To add missing time unit in driver option"
Jenkins [Thu, 6 Feb 2014 14:06:38 +0000 (14:06 +0000)]
Merge "vmdk: To add missing time unit in driver option"

10 years agoMerge "Allow spaces in host names in the storwize driver"
Jenkins [Thu, 6 Feb 2014 12:10:48 +0000 (12:10 +0000)]
Merge "Allow spaces in host names in the storwize driver"

10 years agovmware: intermittent failure in test_vmware_vmdk
Subramanian Neelakantan [Thu, 6 Feb 2014 06:07:27 +0000 (11:37 +0530)]
vmware: intermittent failure in test_vmware_vmdk

There was a race condition between the two Event() objects being
created within loopingcall and Retry in api module. Did away with
the Event object in Retry and used loopingcall the right way.

Change-Id: I2534bad9294747fcd618ba3634abb01ceef92213

10 years agoMerge "Remove create_export from volume create"
Jenkins [Wed, 5 Feb 2014 17:05:30 +0000 (17:05 +0000)]
Merge "Remove create_export from volume create"

10 years agoMerge "LVM: remove redundant casts to float"
Jenkins [Wed, 5 Feb 2014 01:51:39 +0000 (01:51 +0000)]
Merge "LVM: remove redundant casts to float"

10 years agoMerge "Move clear_volume method to volume.utils"
Jenkins [Tue, 4 Feb 2014 23:09:27 +0000 (23:09 +0000)]
Merge "Move clear_volume method to volume.utils"

10 years agoMerge "LVM: log thin pool name and size upon creation"
Jenkins [Tue, 4 Feb 2014 20:25:36 +0000 (20:25 +0000)]
Merge "LVM: log thin pool name and size upon creation"

10 years agoMove clear_volume method to volume.utils
Ann Kamyshnikova [Fri, 23 Aug 2013 12:37:38 +0000 (16:37 +0400)]
Move clear_volume method to volume.utils

clear_volume was almost the same in LVM and BlockDevice drivers.
So it has been moved to utils.

Change-Id: Iadb6b8d01cf500109bb48b0d2c817109918519e0

10 years agoLVM: log thin pool name and size upon creation
Jon Bernard [Mon, 3 Feb 2014 17:44:05 +0000 (12:44 -0500)]
LVM: log thin pool name and size upon creation

The thin pool creation size may not be obvious to the user, so a log
message may help alleviate some confusion.

Change-Id: I3a98b610be612a4fb7496a89f9005012c9210bf8

10 years agoRemove create_export from volume create
John Griffith [Fri, 31 Jan 2014 03:53:37 +0000 (03:53 +0000)]
Remove create_export from volume create

Currently the LVM driver creates iscsi targets on
volume creation, even though it's only used at
attach time.  This isn't necessary and in fact
causes issues if a volume is extended because the
target information isn't currently updated after the
extend.  In addition a number of other drivers inclduing
the LIO iscsi driver require the target be created with
initiator info, so the tgt that's created initially
again isn't valid.

This change removes the create_export call from the
volume create process and makes it part of the
managers intialize_connection routine which is
more appropriate.

This change also removes the target on detach since
it's not used any longer and again as the volume may
be modified or extended.

Change-Id: I0b7dfdaf7e49a069da22f22f459861b0b49430a4
Closes-Bug: 1248947

10 years agovmdk: To add missing time unit in driver option
Vipin Balachandran [Tue, 4 Feb 2014 12:41:12 +0000 (18:11 +0530)]
vmdk: To add missing time unit in driver option

Time unit is missing in the description of vmdk driver option
"vmware_task_poll_interval". Due to this, the vmdk driver config
reference document doesn't have the timeunit in its description
column. This fix adds the missing time unit (seconds) in the
driver option.

Closes-Bug: #1258100
Change-Id: I2c49c65ca9a48a2dcc6898a32b4bbc0433e8916b

10 years agoUpdate SolidFire Driver to use cinder's units
john-griffith [Tue, 4 Feb 2014 03:22:33 +0000 (20:22 -0700)]
Update SolidFire Driver to use cinder's units

The SolidFire driver uses math module and it's own
local GB variable.

This patch just removes that and uses the GiB def
that already exists in cinder.units.

Change-Id: I4fc167bd61dbb609bd325b4a32b120bf55db02fa

10 years agoUpdate cinder.conf.sample for new keystone client
john-griffith [Tue, 4 Feb 2014 03:10:03 +0000 (20:10 -0700)]
Update cinder.conf.sample for new keystone client

The latest version of keystoneclient adds a new conf
entry that we don't have in Cinder.

This patch adds "enforce_token_bind=permissive"

Change-Id: I1aeb6a59ca1787c05075d76dd9d1f96722653d88

10 years agoMerge "Do not show quota of removed volume types in Default Quotas panel"
Jenkins [Mon, 3 Feb 2014 18:40:42 +0000 (18:40 +0000)]
Merge "Do not show quota of removed volume types in Default Quotas panel"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 3 Feb 2014 18:22:35 +0000 (18:22 +0000)]
Merge "Imported Translations from Transifex"

10 years agoLVM: remove redundant casts to float
Jon Bernard [Mon, 3 Feb 2014 17:44:33 +0000 (12:44 -0500)]
LVM: remove redundant casts to float

The vg_free_space field is always assigned a float, so additional casts
are not necessary.

Change-Id: Ic2af78ba7dbd7388cc071fc2f0ea876a1558d0e9

10 years agoOn create_volume flow get rid of host parameter
Anastasia Karpinska [Mon, 3 Feb 2014 15:41:46 +0000 (17:41 +0200)]
On create_volume flow get rid of host parameter

On manager create_volume flow save host parameter to volume_ref immediately
when create volume_ref and remove host parameter from other tasks.

Change-Id: Ifc672741c317112b084a076ca65c11c5d0290930

10 years agoMerge "Add support for special char in volume metadata"
Jenkins [Mon, 3 Feb 2014 08:03:26 +0000 (08:03 +0000)]
Merge "Add support for special char in volume metadata"

10 years agoMerge "Remove a catching exception during delete_volume"
Jenkins [Mon, 3 Feb 2014 08:03:18 +0000 (08:03 +0000)]
Merge "Remove a catching exception during delete_volume"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 3 Feb 2014 06:17:18 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: I723d6663ee209a3e56c1dfcd6e0ddcd2e2af9a12

10 years agoMerge "Stop volume_type_encryption creation when in use"
Jenkins [Sun, 2 Feb 2014 20:10:14 +0000 (20:10 +0000)]
Merge "Stop volume_type_encryption creation when in use"

10 years agoAllow spaces in host names in the storwize driver
Avishay Traeger [Sun, 26 Jan 2014 10:39:27 +0000 (12:39 +0200)]
Allow spaces in host names in the storwize driver

Storwize/SVC naming rules allow host objects to have spaces in their
names. The SSH injection filter will currently reject such names, and so
we surround the names with quotes. Please note that this doesn't allow
to have an arbitrary character in there except a space (anything else
will be cleaned up by the driver or rejected by the SSH injection filter
up the call chain).

Change-Id: If9aec40fe34293031f08d759dd930d73ead456f5
Closes-Bug: #1270204

10 years agoRemove a catching exception during delete_volume
Bertrand Lallau [Sat, 1 Feb 2014 13:33:33 +0000 (14:33 +0100)]
Remove a catching exception during delete_volume

GlanceMetadataNotFound Exception was catching during
a call to volume_glance_metadata_delete_by_volume().
This exception is never thrown by the implementation.
This catching has been removed.

Change-Id: Ifa15df5d9c4517f75a1a050ff5aa34225f33931b
Closes-Bug: #1274601

10 years agoMerge "Remove unused task from manager create_volume flow"
Jenkins [Sat, 1 Feb 2014 02:56:27 +0000 (02:56 +0000)]
Merge "Remove unused task from manager create_volume flow"

10 years agoMerge "Brick LVM: Handle space info as numeric types"
Jenkins [Fri, 31 Jan 2014 17:15:44 +0000 (17:15 +0000)]
Merge "Brick LVM: Handle space info as numeric types"

10 years agoRemove unused task from manager create_volume flow
Anastasia Karpinska [Fri, 31 Jan 2014 16:06:51 +0000 (18:06 +0200)]
Remove unused task from manager create_volume flow

ExtractSchedulerSpecTask hasn't been ever used in the
create_volume flow, so it should be deleted.

Change-Id: Ia841e224bc253c68ed21520951016a1a90634faf

10 years agoMerge "VolumeManager: initialize even if a volume can't be found"
Jenkins [Fri, 31 Jan 2014 05:11:46 +0000 (05:11 +0000)]
Merge "VolumeManager: initialize even if a volume can't be found"

10 years agoMerge "Revert initialize_connection changes"
Jenkins [Fri, 31 Jan 2014 04:26:52 +0000 (04:26 +0000)]
Merge "Revert initialize_connection changes"

10 years agoAdd support for special char in volume metadata
Ryan McNair [Mon, 27 Jan 2014 21:48:51 +0000 (21:48 +0000)]
Add support for special char in volume metadata

Using special characters such as "&" in volume metadata caused SAX
parser to split text into multiple child nodes, as stated in the
specs for SAX parsers. In this case extract_text would return
'None' because text was return if there was exactly
one child node. Concatenating the values of child nodes accounts
for SAX parsers splitting contigous characters into
multiple chunks.

Change-Id: I3709789d33ff7b07eaeaf725f5183105443d0abc
Closes-Bug: #1268513

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 "LVM: Robustify skipactivation detection"
Jenkins [Thu, 30 Jan 2014 14:38:33 +0000 (14:38 +0000)]
Merge "LVM: Robustify skipactivation detection"

10 years agoMerge "Create structure of flows' packages"
Jenkins [Thu, 30 Jan 2014 14:23:04 +0000 (14:23 +0000)]
Merge "Create structure of flows' packages"

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 agoSet a sane default for state_path
Mehdi Abaakouk [Thu, 17 Oct 2013 12:41:01 +0000 (14:41 +0200)]
Set a sane default for state_path

This change set a sane default to state_path, removed no more used cfg
options, and put the previous state_path for tests only.

DocImpact
Closes bug: #1240879

Change-Id: If56b60950d8ebf9111ef99bfbf2cb549bbb6b29b

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 agoStop volume_type_encryption creation when in use
Brianna Poulos [Wed, 29 Jan 2014 20:49:20 +0000 (15:49 -0500)]
Stop volume_type_encryption creation when in use

This bug fix addresses bug #1274252.  It requires a volume
type to have no volumes with the type before allowing it
to be made encrypted.  This prevents a situation where
non-encrypted volumes could have an encrypted volume type.
This fix also adds a unit test to confirm functionality.

Change-Id: Iab0954c2d0af73bce28be7fa319b8b34ca20e720
Closes-Bug: #1274252

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 agoRevert initialize_connection changes
john-griffith [Wed, 29 Jan 2014 04:30:59 +0000 (21:30 -0700)]
Revert initialize_connection changes

A change was merged that reusulted in interittent
gate failures.  It seems that in certain cases the
intitialize is doing an update targets and is
deleting the existing targets and not recreating them.

The idea of this patch was to fix up the iscis targets
for cases where volumes are extended.

A better solution is in progress that will remove the
target creation from the create_volume process altogether.

Currently we seem to have create_export, ensure_export and
now initialize that all are designed to do very similar
things.

A bug has been filed to address this and will attempt
to collapse these functions to be done at attach time.

This particular patch in essence reverts two patches:
commit: 18f8f5be94aae3b1747b143479ea1b188872f000
commit: a9267644ee09591e2d642d6c1204d94a9fdd8c82

Change-Id: Ib615847f3cbeb74b1e4416d51730162ad1d07a40
Closes-Bug: 1270608

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 agoVolumeManager: initialize even if a volume can't be found
Florian Haas [Mon, 20 Jan 2014 21:42:11 +0000 (22:42 +0100)]
VolumeManager: initialize even if a volume can't be found

If a previously volume cannot be exported (for example, because
an iSCSI target's backing LV is no longer present), VolumeManager
would previously bail out, leaving the volume service uninitialized.
This left volumes dangling in limbo: their state would be reported
as available (clearly not a reflection of reality), and they could
not be deleted (because the volume service that would be responsible
for deletion was unavailable).

Instead, catch an exception raised by ensure_export() separately,
log it, and set the volume to the error state.

For the tgt backend, this will also remove the volume_path file.
Previously this would cause an ISCSITargetRemoveFailed exception
when the volume would be removed. Instead, simply log a warning
and return, the way other backends (example: RBD) already do.

Also, add an info message that reflects the actual path and
contents of the volume_path file.

Finally, fix up the tgtadm unit test so that it tests for
identical IQNs,

Closes-bug: 1270959.

Change-Id: Id61407c9a5e020d5a823dd7b8c973d237c35cb9b

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 agoLVM: Robustify skipactivation detection
Dirk Mueller [Wed, 15 Jan 2014 14:45:01 +0000 (15:45 +0100)]
LVM: Robustify skipactivation detection

Running lvchange might fail due to not being in
$PATH for non-root user, and the corresponding OSError
was not caught.

Simply check for lvm2 being 2.02.99 or newer.

Closes-Bug: #1269445
Change-Id: I308bd97cb729e83677f18a693274265a182d794c

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 agoCreate structure of flows' packages
Anastasia Karpinska [Wed, 18 Dec 2013 11:34:23 +0000 (13:34 +0200)]
Create structure of flows' packages

1. Create_volume flows were moved to separate files from __init__.py.
   In future each flow should be implemented in a separate file.

2. Add flows.common package for tasks that could be used by different flows.

3. Proposed file structure for flows is more clean and helps to find and reuse
common code.

4. _exception_to_unicode function and tests were removed because never used.

Partially implements: blueprint create-volume-flow

Change-Id: I63473f549f0c501fe0f373830bc1080239d01892

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 RPC module from Oslo
Eric Harney [Thu, 16 Jan 2014 18:45:05 +0000 (13:45 -0500)]
Sync RPC module from Oslo

22e971a safe_log Sanitize Passwords in List of Dicts
8b2b0b7 Use hacking import_exceptions for gettextutils._
23f6029 Use six.seraise() instead of `raise exc, val, tb`
6d0a6c3 Correct invalid docstrings
7cac1ac Fix mis-spellings
ef406a2* Create a shared queue for QPID topic consumers
e6494c2 Use six.iteritems to make dict work on Python2/3
e227c0e* Properly reconnect subscribing clients when QPID broker restarts
16fb43b Replace data structures' attribute with six module
27b21bc Unify different names between Python2/3 with six.moves
12bcdb7 Remove vim header
3970d46 Fix typos in oslo
1771a77 Adjust import order according to PEP8 imports rule
0717d1d matchmaker_redis compatibility with redis-py 2.4
f88d59a Drop RPC securemessage.py
39f6589 Use localisation
8a3996a Fix missing space in help text
4bfb7a2 Apply six for metaclass
d7d74a7 Add `versionutils` for version compatibility checks
3cdd157 Add third element to RPC versions for backports
76972e2* Support a new qpid topology
284b13a Raise timeout in fake RPC if no consumers found
9721129 exception: remove
7b0cb37 Don't eat callback exceptions
69abf38 requeue instead of reject
28395d9 Fixes files with wrong bitmode
bec54ac Fix case error in qpid exchange type "direct"
61c4cde Ensure context type is handled when using to_dict
223f9e1 Clarify precedence of secret_key_file
a035f95 Don't shadow cfg import in securemessage
0f88575 Remove redundant global keyword in securemessage
848c4d5 Some nitpicky securemessage cleanups
5c71c25 Allow non-use of cfg.CONF in securemessage
9157286 RPC: Add MessageSecurity implementation
2031e60 Refactors boolean returns
a047a35 Make ZeroMQ based RPC consumer threads more robust
34a6842 On reconnecting a FanoutConsumer, don't grow the topic name
f52446c Add serializer param to RPC service
5ff534d Add config for amqp durable/auto_delete queues
f9f1b4f Revert "Add support for heartbeating in the kombu RPC driver"
1a2df89 Enable H302 hacking check
7bfd443 Avoid shadowing Exception 'message' attribute
99b7c35 Convert kombu SSL version string into integer
c37f6aa Add support for heartbeating in the kombu RPC driver
3006787 Sanitize passwords in _safe_log
dea334a Replace sys.exit by a RPCException
3969355 Fix exception arg typo
22ec8ff Make AMQP based RPC consumer threads more robust
13650b1 rpc: remove some unused serialization code
e204885 Optionally reject messages on exception.
688832f Remove unused zmq relay functionality
719eba4 Don't reconnect to exclusive fanout consumers.
980fe5f Allow exceptions to hop up cells
80476f0 Add can_send_version() to RpcProxy.
7119e29 Enable hacking H404 test.
32e2a25 zmq: remove someone unused code from ZmqClient
6d42ced Remove the amqp_rpc_single_reply_queue option from Havana
7ce5441 Fix problem with long messages in Qpid
e3545f8 Enable hacking H402 test
15d8d69 Silence exceptions from qpid connection.close()
484a1df Enable hacking H403 test
35660da Enable hacking H401 test
1a9a744 MatchMakerStub - make it work & add test
35aad91 Use zero-copy in ZeroMQ proxy (zmq-rpc-receiver)
b677b13 Remove rootwrap from IPC directory creation
93ee6e3 Add generic serialization support
fe2f108 Enable hacking H702 localization test
0a14e1d Enable hacking H703: Multiple positional placeholders
df7ea83 Allow RPC_API_NAMESPACE on RpcProxy objects
aa89d8b Support capping message versions in the client.
1d7920a Extract matchmaker_ring to own module
3e33692 Merge "Removes len() on empty sequence evaluation"
44c79fc Merge "python3: use 'as' syntax for exception assignment"
0c54b72 python3: use 'as' syntax for exception assignment
a514693 Removes len() on empty sequence evaluation
fde1e15 Convert unicode for python3 portability
0c9047c* Ensure that qpid connection is closed.
120ddef Improve Python 3.x compatibility

(* after hash indicates this was already ported to Cinder)

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

Related-Bug: #1189711
Closes-Bug: #1270178

Change-Id: I19572c5e98c1c1037a6a622d63fbdea8d6001532

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