]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoRemoving Netapp FC drivers for no reported CI
Mike Perez [Thu, 19 Mar 2015 20:02:10 +0000 (13:02 -0700)]
Removing Netapp FC drivers for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I85ed137ddb1929509f9930cd1de91671dde3db42

9 years agoMerge "Revert "Datera's export to avoid deprecated keys""
Jenkins [Thu, 19 Mar 2015 18:55:52 +0000 (18:55 +0000)]
Merge "Revert "Datera's export to avoid deprecated keys""

9 years agoMerge "Fix retype return value in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:05:42 +0000 (18:05 +0000)]
Merge "Fix retype return value in volume driver base class"

9 years agoMerge "Fix retype arguments in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:03:16 +0000 (18:03 +0000)]
Merge "Fix retype arguments in volume driver base class"

9 years agoMerge "Fix allocated_capacity tracking when rescheduling"
Jenkins [Thu, 19 Mar 2015 17:51:06 +0000 (17:51 +0000)]
Merge "Fix allocated_capacity tracking when rescheduling"

9 years agoMerge "Windows iSCSI driver: Fixes copy disk method exception handling"
Jenkins [Thu, 19 Mar 2015 17:11:30 +0000 (17:11 +0000)]
Merge "Windows iSCSI driver: Fixes copy disk method exception handling"

9 years agoMerge "Change datetime.now() to timeutils.utcnow() from oslo_utils"
Jenkins [Thu, 19 Mar 2015 16:19:31 +0000 (16:19 +0000)]
Merge "Change datetime.now() to timeutils.utcnow() from oslo_utils"

9 years agoChange datetime.now() to timeutils.utcnow() from oslo_utils
Yuriy Nesenenko [Fri, 27 Feb 2015 14:06:03 +0000 (16:06 +0200)]
Change datetime.now() to timeutils.utcnow() from oslo_utils

We use an UTC time to avoid the difference with time zones.

Change-Id: I15aa3b5d3337b90ccdcc6c4ac5d3c7d78108fe21
Related-Bug: #1288979

9 years agoMerge "Update Violin REST client library name"
Jenkins [Thu, 19 Mar 2015 05:45:39 +0000 (05:45 +0000)]
Merge "Update Violin REST client library name"

9 years agoMerge "Add minimum qemu-img version check functions"
Jenkins [Thu, 19 Mar 2015 05:16:50 +0000 (05:16 +0000)]
Merge "Add minimum qemu-img version check functions"

9 years agoMerge "cinder-manage man update"
Jenkins [Thu, 19 Mar 2015 05:16:39 +0000 (05:16 +0000)]
Merge "cinder-manage man update"

9 years agoMerge "Remove the reference of volume['instance_uuid']in VNX driver"
Jenkins [Thu, 19 Mar 2015 05:12:08 +0000 (05:12 +0000)]
Merge "Remove the reference of volume['instance_uuid']in VNX driver"

9 years agoMerge "EMC: Fix use of "_" as variable name"
Jenkins [Thu, 19 Mar 2015 05:11:51 +0000 (05:11 +0000)]
Merge "EMC: Fix use of "_" as variable name"

9 years agoMerge "Don't override extra specs with config in VMAX"
Jenkins [Thu, 19 Mar 2015 05:11:39 +0000 (05:11 +0000)]
Merge "Don't override extra specs with config in VMAX"

9 years agoMerge "Return updated volume object to the caller of _attach_volume()"
Jenkins [Thu, 19 Mar 2015 05:06:48 +0000 (05:06 +0000)]
Merge "Return updated volume object to the caller of _attach_volume()"

9 years agoMerge "Check license before clone in VMAX driver"
Jenkins [Thu, 19 Mar 2015 00:59:15 +0000 (00:59 +0000)]
Merge "Check license before clone in VMAX driver"

9 years agoMerge "Reduce configured file size for nfs backup unit tests"
Jenkins [Wed, 18 Mar 2015 22:00:22 +0000 (22:00 +0000)]
Merge "Reduce configured file size for nfs backup unit tests"

9 years agoMerge "Sort snapshots in create CG from CG snapshot"
Jenkins [Wed, 18 Mar 2015 21:16:20 +0000 (21:16 +0000)]
Merge "Sort snapshots in create CG from CG snapshot"

9 years agoMerge "Change default value of gpfs_images_share_mode to None"
Jenkins [Wed, 18 Mar 2015 19:16:59 +0000 (19:16 +0000)]
Merge "Change default value of gpfs_images_share_mode to None"

9 years agoReturn updated volume object to the caller of _attach_volume()
Mitsuhiro Tanino [Wed, 18 Mar 2015 15:48:25 +0000 (11:48 -0400)]
Return updated volume object to the caller of _attach_volume()

Currently, migrate volume between two back-ends using LIO scsi
target fails due to the error of "Unable to terminate volume
connection: 'NoneType' object has no attribute 'split'".

The root cause of this error is _detach_volume() during volume
migration does not use updated volume object which is updated
during _attach_volume() by create_export().
As a result terminate_connection() which is called from
_detach_volume() tries to split volume['provider_location']
even if the entry is None and causes above error.

Also same error would be happened following methods.

- copy_volume_data(-> volume migration)
- backup_volume
- restore_backup
- copy_image_to_volume
- copy_volume_to_image

This change adds updated volume as an additional return value
for _attach_volume().

Change-Id: I7b76941d8b2e761c2c0147b13a201583d7e0a1c4
Closes-Bug: #1433360

9 years agoEMC: Fix use of "_" as variable name
Vipin Balachandran [Thu, 12 Mar 2015 22:21:30 +0000 (15:21 -0700)]
EMC: Fix use of "_" as variable name

Variables with name "_" will clash with translation lookup
function "_" in cinder.i18n. This patch fixes usage of "_"
as variable name.

Change-Id: I4f03dcfd7b92dcae78e741486ded7028e481d0ee

9 years agoReduce configured file size for nfs backup unit tests
Tom Barron [Mon, 16 Mar 2015 07:43:18 +0000 (03:43 -0400)]
Reduce configured file size for nfs backup unit tests

Unit tests that were ported from the Swift backup
service for NFS backup trigger memory errors when
run in tox on a 1GB VM.  This commit configures
NFS backup 'backup_file_size' to match the default
Swift 'chunk_size' so that the NFS backup unit test
memory consumption is dialed down to match the Swift
unit tests.

Closes-Bug: 1432687

Change-Id: I4b71d47190179b97baefe9bc390276f720670919

9 years agotests: remove useless variable
Julien Danjou [Mon, 2 Mar 2015 11:07:09 +0000 (12:07 +0100)]
tests: remove useless variable

Change-Id: Ieb0871e0da707d34338c0aa7b2bafccf9267b3d0

9 years agoRevert "Datera's export to avoid deprecated keys"
Mike Perez [Mon, 16 Mar 2015 02:59:43 +0000 (19:59 -0700)]
Revert "Datera's export to avoid deprecated keys"

The changes on the Datera solution have been reverted, so the driver
is being updated as well.

This reverts commit a754f317a708d9932aea743588468f0bb1cabdbb.

Change-Id: I369abca84d224c71b0ea7c55d0ecda8db9a76759

9 years agoMerge "Fix typo in log message"
Jenkins [Wed, 18 Mar 2015 07:52:13 +0000 (07:52 +0000)]
Merge "Fix typo in log message"

9 years agoMerge "Raise exception for invalid mock assert calls"
Jenkins [Wed, 18 Mar 2015 07:47:09 +0000 (07:47 +0000)]
Merge "Raise exception for invalid mock assert calls"

9 years agoMerge "Fix some issues with pool name sent to SVC"
Jenkins [Wed, 18 Mar 2015 07:46:55 +0000 (07:46 +0000)]
Merge "Fix some issues with pool name sent to SVC"

9 years agoDon't override extra specs with config in VMAX
Xing Yang [Mon, 9 Mar 2015 15:18:11 +0000 (11:18 -0400)]
Don't override extra specs with config in VMAX

A recent merge in https://review.openstack.org/#/c/157679
brought in regression because it tied volume type extra specs to
config file settings.

This patch rolled back most of the changes and don't let extra specs
be overwritten by the config file settings. Intervals and retries
will be read from the config file.

Partial-Bug: #1425641
Change-Id: I7b7959d64f9cc5e954d03f56f6a37021c4c0e9e1

9 years agoCheck license before clone in VMAX driver
Xing Yang [Thu, 26 Feb 2015 17:27:16 +0000 (12:27 -0500)]
Check license before clone in VMAX driver

This patch checks if a license for clone is available before
doing the clone operation.

Change-Id: I69d009b2cac775c301e9a5254079238b2b2a3b10
Closes-Bug: #1385450

9 years agoMerge "Fixing mount when state_path is configured with a final '/'"
Jenkins [Tue, 17 Mar 2015 22:03:32 +0000 (22:03 +0000)]
Merge "Fixing mount when state_path is configured with a final '/'"

9 years agoMerge "Decrement remaining retries after failed REST call."
Jenkins [Tue, 17 Mar 2015 21:40:48 +0000 (21:40 +0000)]
Merge "Decrement remaining retries after failed REST call."

9 years agoMerge "SMBFS: Fix retrieving the volume path and format"
Jenkins [Tue, 17 Mar 2015 18:24:25 +0000 (18:24 +0000)]
Merge "SMBFS: Fix retrieving the volume path and format"

9 years agoMerge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"
Jenkins [Tue, 17 Mar 2015 18:14:58 +0000 (18:14 +0000)]
Merge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"

9 years agoFixing mount when state_path is configured with a final '/'
Rushil Chugh [Thu, 5 Mar 2015 22:16:26 +0000 (17:16 -0500)]
Fixing mount when state_path is configured with a final '/'

If state_path variable is configured with a final '/' on path, then
mount_path variable is created with wrong syntax. This causes
a failure when the c-vol process tries to mount the filesystem.

This patch proposes to fix the aforementioned problem by checking
the validity of the mount point and fixing the mount point in case
it has an incorrect value.

Closes-bug: 1425551

Change-Id: I9fe50fe07953fb5e94da467a7446528e5030e41b

9 years agoMerge "Fixed the order of mock decorators in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:27:55 +0000 (04:27 +0000)]
Merge "Fixed the order of mock decorators in VMAX driver"

9 years agoMerge "VMware: Fail immediately for images in a container"
Jenkins [Tue, 17 Mar 2015 04:27:44 +0000 (04:27 +0000)]
Merge "VMware: Fail immediately for images in a container"

9 years agoMerge "VMware: Relocate volume to compliant datastore"
Jenkins [Tue, 17 Mar 2015 04:27:10 +0000 (04:27 +0000)]
Merge "VMware: Relocate volume to compliant datastore"

9 years agoMerge "i18n Compatibility in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:26:58 +0000 (04:26 +0000)]
Merge "i18n Compatibility in VMAX driver"

9 years agoUpdate Violin REST client library name
Ryan Lucio [Tue, 10 Mar 2015 00:00:09 +0000 (17:00 -0700)]
Update Violin REST client library name

Fixed all drivers and tests to use the 'vmemclient' library.

Change-Id: I337e67ecd7c45d7b28e1bc4a551245ec0705ea31
Closes-bug: 1430009

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Tue, 17 Mar 2015 03:15:48 +0000 (03:15 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoMerge "Increase LeftHand driver minimum client version"
Jenkins [Tue, 17 Mar 2015 03:14:40 +0000 (03:14 +0000)]
Merge "Increase LeftHand driver minimum client version"

9 years agoMerge "Remove global mocking from test_pure.py"
Jenkins [Tue, 17 Mar 2015 03:10:07 +0000 (03:10 +0000)]
Merge "Remove global mocking from test_pure.py"

9 years agoRemove the reference of volume['instance_uuid']in VNX driver
Tina [Mon, 16 Mar 2015 22:55:31 +0000 (18:55 -0400)]
Remove the reference of volume['instance_uuid']in VNX driver

Multiattach feature removed the column 'instance_uuid' and
'attached_host' from volume DB model. However, these 2 fields are
used by VNX driver to determine the volume's original status
in retype. This patch changed the VNX driver to not use those
removed fields.

Change-Id: I4b4820d93e784913eeb7e485439d5f434141bcb9
Closes-Bug: 1432925

9 years agoMerge "VMware:Use datastore selection logic in new module"
Jenkins [Tue, 17 Mar 2015 01:40:27 +0000 (01:40 +0000)]
Merge "VMware:Use datastore selection logic in new module"

9 years agoMerge "VMware: Refactor initialize_connection unit tests"
Jenkins [Tue, 17 Mar 2015 01:40:15 +0000 (01:40 +0000)]
Merge "VMware: Refactor initialize_connection unit tests"

9 years agoMerge "Huawei driver check before associating LUN to a LUN group"
Jenkins [Tue, 17 Mar 2015 01:40:03 +0000 (01:40 +0000)]
Merge "Huawei driver check before associating LUN to a LUN group"

9 years agoMerge "Fixed a concurrency issue in VMAX driver"
Jenkins [Tue, 17 Mar 2015 01:35:22 +0000 (01:35 +0000)]
Merge "Fixed a concurrency issue in VMAX driver"

9 years agoIncrease LeftHand driver minimum client version
Anthony Lee [Mon, 16 Mar 2015 23:48:34 +0000 (16:48 -0700)]
Increase LeftHand driver minimum client version

An error was occuring during LeftHand driver initialization when
an older LeftHand client was installed.

The minimum client version needed to be updated.

Closes-Bug: 1432757
Change-Id: Ifb6bc989a50ed9d051a72c065d8a7287a8570d1e

9 years agoDecrement remaining retries after failed REST call.
Richard Hedlind [Wed, 11 Mar 2015 05:46:48 +0000 (23:46 -0600)]
Decrement remaining retries after failed REST call.

Also, update unit test to properly test the retry path.

Change-Id: I89863a44102bdeebce09de80fa5c5131af67f564
Closes-Bug: #1429283

9 years agoVMware: Fail immediately for images in a container
Vipin Balachandran [Wed, 14 Jan 2015 19:03:52 +0000 (00:33 +0530)]
VMware: Fail immediately for images in a container

Currently VMDK driver doesn't support images within
a container such as OVA. Instead of throwing an error
immediately, the driver tries to create a backing
using the container as its vmdk. This will eventually
fail with vCenter error. This patch fixes it.

Change-Id: Ie97a3a63807d00880310f2a7e5f6d32ee89d2cd7
Closes-Bug: #1371478

9 years agoMake unused iscsi_num_targets, iser_num_targets configs as deprecated
Mitsuhiro Tanino [Tue, 3 Mar 2015 22:49:03 +0000 (17:49 -0500)]
Make unused iscsi_num_targets, iser_num_targets configs as deprecated

After introducing new iscsi target driver model via Change-Id:
I43190d1dac33748fe55fa00f260f32ab209be656, configuration
options of iscsi_num_targets and iser_num_targets are not
used in these new scsi targets.

This patch makes these unused configuration options as
deprecated and adds warning messages to notify future removal
of these configs to users.

Also this patch removes _ensure_iscsi_targets() which uses these
two config options from cxt scsi target because this method is
never called anywhere.

Closes-Bug: #1427904
DocImpact: Two unused config options are deprecated
Change-Id: Ic34910f4765f46e2708de7cb686e49418f486709

9 years agoMerge "Error trying to delete snapshots on Hitachi driver"
Jenkins [Mon, 16 Mar 2015 18:33:40 +0000 (18:33 +0000)]
Merge "Error trying to delete snapshots on Hitachi driver"

9 years agoMerge "Fix unit tests for multiattach patch"
Jenkins [Mon, 16 Mar 2015 18:30:06 +0000 (18:30 +0000)]
Merge "Fix unit tests for multiattach patch"

9 years agoRaise exception for invalid mock assert calls
Thang Pham [Mon, 2 Mar 2015 00:43:58 +0000 (19:43 -0500)]
Raise exception for invalid mock assert calls

Several test cases were using the wrong mock assert methods.
The following patch corrects these calls and adds a method in
test.py (sourced from nova/test.py) to make sure they are
properly caught in the future.

Closes-Bug: #1429669
Change-Id: Ic6e5bca0c3ddbfb402e412b51e882859cb49108c

9 years agoMerge "DRBD: Use correct function object after DBus disconnect."
Jenkins [Mon, 16 Mar 2015 11:05:23 +0000 (11:05 +0000)]
Merge "DRBD: Use correct function object after DBus disconnect."

9 years agoMocked utils.execute for broken tests
PranaliDeore [Fri, 13 Mar 2015 06:47:12 +0000 (23:47 -0700)]
Mocked utils.execute for broken tests

Few tests were failing because utils.execute
was not mocked.

Added decorator @mock.patch('cinder.utils.execute')
which will mock the utils.execute call for failing tests.

Closes-Bug: #1430525
Change-Id: Ib54b83b1ad6dc42b084adf48ddd53a64a9b12cf7

9 years agoHuawei driver check before associating LUN to a LUN group
Bob-OpenStack [Mon, 19 Jan 2015 01:05:14 +0000 (17:05 -0800)]
Huawei driver check before associating LUN to a LUN group

This commit fixes the following problems:
* Change in huawei_t.py removes the duplicated wwns
  returned from the array.
* Change in rest_common.py adds log print for response
  data from the array.
* Change in rest_common.py does a check before associating
  a LUN to a LUN group.
* Change in rest_common.py fixes the REST request.
* Change in ssh_common.py checks whether the hostlunid
  have already been assigned.

Closes-Bug: #1411904
Change-Id: I862ed5d71780fb7b8cbc5ed257072ea1113fead7

9 years agoMerge "Move to the oslo.middleware library"
Jenkins [Sun, 15 Mar 2015 21:05:16 +0000 (21:05 +0000)]
Merge "Move to the oslo.middleware library"

9 years agoMerge "Add waiting for the driver to SchedulerManager"
Jenkins [Sun, 15 Mar 2015 20:33:53 +0000 (20:33 +0000)]
Merge "Add waiting for the driver to SchedulerManager"

9 years agoMerge "Add is_ready method to scheduler driver"
Jenkins [Sun, 15 Mar 2015 20:18:30 +0000 (20:18 +0000)]
Merge "Add is_ready method to scheduler driver"

9 years agoFix typos in LVMVolumeDriver
Mitsuhiro SHIGEMATSU [Sun, 15 Mar 2015 11:16:23 +0000 (20:16 +0900)]
Fix typos in LVMVolumeDriver

Fix typos. "Succesfully" -> "Successfully"

Change-Id: Ic26d7fc65c1e8b97bfac2fcc3aa395090716020f
Closes-Bug: #1429773

9 years agoAdd minimum qemu-img version check functions
Lucian Petrut [Fri, 27 Feb 2015 13:55:13 +0000 (15:55 +0200)]
Add minimum qemu-img version check functions

Functions for retrieving the qemu-img version and validate it
against driver specific requirements are added to imageutils.

This way, duplicated code can be removed in a following patch
from volume drivers that require it.

Change-Id: Ic0808863bd95c7ee84751a27d7a4eabc613f8d58

9 years agoMerge "Fix Cinder logs to show authentication error in RBD driver"
Jenkins [Sat, 14 Mar 2015 02:06:53 +0000 (02:06 +0000)]
Merge "Fix Cinder logs to show authentication error in RBD driver"

9 years agoMerge "Implement IET target driver"
Jenkins [Sat, 14 Mar 2015 00:09:20 +0000 (00:09 +0000)]
Merge "Implement IET target driver"

9 years agoMerge "Fix LVM thin pool creation race"
Jenkins [Fri, 13 Mar 2015 21:53:53 +0000 (21:53 +0000)]
Merge "Fix LVM thin pool creation race"

9 years agoImplement IET target driver
Mitsuhiro Tanino [Thu, 26 Feb 2015 00:16:39 +0000 (19:16 -0500)]
Implement IET target driver

When introducing Change-Id: I43190d1dac33748fe55fa00f260f32ab209be656,
IET driver was not implemented. This patch adds IET target for new
iscsi target driver model.

Certification results:
    https://bugs.launchpad.net/cinder/+bug/1428758

Closes-Bug: #1409918
Closes-Bug: #1329139

Co-Authored-By: Anish Bhatt <anish@chelsio.com>
Change-Id: I165a592bb3a39728fcc3d8ee4162b579c13ba928

9 years agoFix unit tests for multiattach patch
Walter A. Boring IV [Wed, 11 Mar 2015 18:18:34 +0000 (11:18 -0700)]
Fix unit tests for multiattach patch

Part of the process of accepting the Cinder multiattach
patch was to create a follow up patch that fixes some of
the inconsistencies with order of parameters in the new
unit tests.   This patch fixes those assertX calls and
parameter ordering to be in the style of:
expected, actual

Change-Id: I4e199899afdec0497df130d02560ab58a959a0dc
Closes-Bug: #1430946

9 years agoFixed a concurrency issue in VMAX driver
Xing Yang [Fri, 20 Feb 2015 06:38:09 +0000 (01:38 -0500)]
Fixed a concurrency issue in VMAX driver

This patch fixed the following problem:

When trying to add a second volume to the same masking view,
the first volume got removed at the same time, causing
the operation on the second volume to fail.

When two attach requests happen at the same time on the same
volume, the second one will fail.

Also fixed a W503 pep8 issue (line break before binary operator)
in emc_vmax_common.py.

Closes-Bug: #1416035
Closes-Bug: #1403160
Change-Id: I52975b399c2bd8e2a91bdd09004ee277e54c9a89

9 years agoFix LVM thin pool creation race
Duncan Thomas [Tue, 13 Jan 2015 16:41:13 +0000 (18:41 +0200)]
Fix LVM thin pool creation race

In the event that two copied of the LVM driver get init called at
the same time (e.g. cinder-volume and cinder-backup getting
started in parallel, on the same host), it is possible for the
thin pool check/create to race. Add a simple recheck if the create
fails, to cover this window.

Change-Id: I006970736ba0e62df383bacc79b5754dea2e9a3e
Closes-Bug: #1410341

9 years agoFix ArgsAlreadyParsedError in emc_vnx_cli.py
peter_wang [Fri, 13 Mar 2015 06:27:17 +0000 (02:27 -0400)]
Fix ArgsAlreadyParsedError in emc_vnx_cli.py

This error was introduced after adding following:
logging.register_options(CONF)
in https://review.openstack.org/#/c/157441/
So, this patchset is to remove this.

Change-Id: I3d7d30fb8a5d8f5424811fc7422efc2546300a12
Closes-Bug: 1431875

9 years agoFix typo in log message
ankitagrawal [Fri, 13 Mar 2015 12:09:05 +0000 (05:09 -0700)]
Fix typo in log message

Fixed typo valude -> value in purge_deleted_rows() method of
cinder.db.sqlalchemy.api in log message.

Change-Id: Iebdb4790086bb1186051572a388c6ebba4101fbc

9 years agoMerge "Remove strutils from oslo-incubator"
Jenkins [Fri, 13 Mar 2015 08:13:47 +0000 (08:13 +0000)]
Merge "Remove strutils from oslo-incubator"

9 years agoMerge "Fix a typo in sf_template_account_name help"
Jenkins [Fri, 13 Mar 2015 08:01:28 +0000 (08:01 +0000)]
Merge "Fix a typo in sf_template_account_name help"

9 years agoMerge "Tests: Harden fake_notifier asserts"
Jenkins [Fri, 13 Mar 2015 00:43:32 +0000 (00:43 +0000)]
Merge "Tests: Harden fake_notifier asserts"

9 years agoFix a typo in sf_template_account_name help
Romain Hardouin [Thu, 12 Mar 2015 20:14:05 +0000 (21:14 +0100)]
Fix a typo in sf_template_account_name help

Note: the config reference documentation for operators is auto
generated from Cinder sources.

Change-Id: I8ba5609acc512965fb38b02086127395d910e8c3
Closes-Bug: #1431543

9 years agoMove to the oslo.middleware library
Jay S. Bryant [Wed, 11 Mar 2015 01:15:00 +0000 (20:15 -0500)]
Move to the oslo.middleware library

This patch moves Cinder to using olso.middleware, updates us so
we are using the oslo_middleware namespace and syncs the latest
middleware code from oslo-incubator to support grenade jobs.

The details for the middleware sync from oslo-incubator are as follows:

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
__init__.py
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware

catch_errors.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  ce8f8fa4 - Add middleware.catch_errors shim for Kilo
  4504e4f4 - Remove middleware
  5d40e143 - Remove code that moved to oslo.i18n
  76183592 - add deprecation note to middleware
  463e6916 - remove oslo log from middleware
  fcf517d7 - Update oslo log messages with translation domains

request_id.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  66d8d613 - Fix oslo.middleware deprecation error
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware
  76183592 - add deprecation note to middleware
  d7bd9dc3 - Don't store the request ID value in middleware as class variable

Some notes on this change.  It is based on the change made in Nova:
https://review.openstack.org/#/c/130771 and is the recommended method
for cleaning up the unused portions of middleware from oslo-incubator,
moving to the oslo.middleware library and not breaking grenade in the
gate.

Change-Id: Ia99ab479cb8ef63a0db1a1208cc2501abba6132c

9 years agoMerge "Remove the useless next link for volumes, transfers and backups"
Jenkins [Thu, 12 Mar 2015 18:48:25 +0000 (18:48 +0000)]
Merge "Remove the useless next link for volumes, transfers and backups"

9 years agoRemove use of contextlib.nested
Sean McGinnis [Tue, 24 Feb 2015 15:24:52 +0000 (09:24 -0600)]
Remove use of contextlib.nested

The contextlib.nested call has been deprecated
in Python 2.7. This causes DeprecationWarning
messages in the unit tests.

There are also known issues with contextlib.nested
that were addressed by the native support for
multiple "with" variables. For instance, if the
first object is created but the second one throws
an exception, the first object's __exit__ is never
called.

Since Cinder no longer supports 2.6 we can remove
the use of these contextlib.nested calls.

Added hacking check to catch if any new instances
are added to the codebase.

Note: line continuation markers (e.g. '\') had to
be used or syntax errors were thrown. While using
parentheses is the preferred way for multiple line
statements it is not a requirement.

Partial-Bug: 1428424
Change-Id: I7bb7d201d31ff239be3402fb64e5f202ede019b0

9 years agoRemove strutils from oslo-incubator
Jay S. Bryant [Thu, 12 Mar 2015 18:34:16 +0000 (13:34 -0500)]
Remove strutils from oslo-incubator

This change goes along with the work to get away from
oslo-incubator modules to using the new oslo libraries.
The strutils module moved to the oslo_utils library and
should no longer be used from oslo-incubator.

Additionally, merging this change removes a dependency on
gettextutils, allowing us to remove another deprecated
module.

Change-Id: Ibd4e848b526c67cad660c31038df718ac416c6e1

9 years agoMerge "Fix sqlalchemy reuse in multi-backend children"
Jenkins [Thu, 12 Mar 2015 18:24:23 +0000 (18:24 +0000)]
Merge "Fix sqlalchemy reuse in multi-backend children"

9 years agoAdd waiting for the driver to SchedulerManager
Michal Dulko [Thu, 12 Mar 2015 16:24:09 +0000 (17:24 +0100)]
Add waiting for the driver to SchedulerManager

This patch adds _wait_for_scheduler method before serving any request.
Method waits till scheduler.is_ready() returns true or
CONF.periodic_interval seconds passed from service startup.

Change-Id: I9fab9fb076a955a24c1c157229baf027359d9771
Closes-Bug: 1409012

9 years agoFix retype return value in volume driver base class
Jon Bernard [Fri, 6 Mar 2015 20:26:19 +0000 (15:26 -0500)]
Fix retype return value in volume driver base class

Instead of raising an exception, the expected behaviour is to return
a tuple indicating that the driver does not support retype operation.

Closes-Bug: #1430605

Change-Id: I395dfc3213bb560767ac3fc95e5d68c4a87a7640

9 years agoFix retype arguments in volume driver base class
Jon Bernard [Fri, 6 Mar 2015 20:23:51 +0000 (15:23 -0500)]
Fix retype arguments in volume driver base class

Partial-Bug: #1430605

Change-Id: Ida0d0d7133d88501813460ecc920f3fbd738fcc5

9 years agoFix sqlalchemy reuse in multi-backend children
Eric Harney [Wed, 11 Mar 2015 18:00:44 +0000 (14:00 -0400)]
Fix sqlalchemy reuse in multi-backend children

Multi-backend breaks because sqlalchemy objects
are shared between child backends.

When creating a new service (Base), call dispose
to reset the sqlalchemy object and connection.

Change-Id: I9d937c5b2fa850edc5523f26e031f59cad5a9e7e
Closes-Bug: #1417018

9 years agoFix Cinder logs to show authentication error in RBD driver
Yuriy Nesenenko [Tue, 10 Mar 2015 10:27:51 +0000 (12:27 +0200)]
Fix Cinder logs to show authentication error in RBD driver

The Cinder logs fail to report authentication error when working
with the RBD driver.

Change-Id: I3d190d6359c744efe0c6d0612bd0f2d2e6b0ab0d
Closes-Bug: #1389983

9 years agoUpdate hacking check for oslo_log
Jay S. Bryant [Thu, 12 Mar 2015 15:06:23 +0000 (10:06 -0500)]
Update hacking check for oslo_log

With commit 5980da5d we moved Cinder to using the olso.log
library.  We also moved to the new oslo_log namespace.  With that
change we should have also updated the hacking checks to include
looking for old uses of oslo.log.

This change adds the necessary hacking check.

Change-Id: I6a5d4b66d3258dbd01543be03810a8f84040e660

9 years agoAdd is_ready method to scheduler driver
Michal Dulko [Thu, 12 Mar 2015 15:07:03 +0000 (16:07 +0100)]
Add is_ready method to scheduler driver

This commit adds is_ready method to scheduler driver to indicate
if driver is ready to accept requests. Scheduler is considered ready
when host_manager received capabilities for all active volume services.

Partial-Bug: 1409012
Change-Id: I4a90e68a3836c44038ee8c937ae1ecf40e5c1f32

9 years agoMerge "Add config option to override url for versions"
Jenkins [Thu, 12 Mar 2015 13:38:40 +0000 (13:38 +0000)]
Merge "Add config option to override url for versions"

9 years agoMerge "Unset auth token before trying to login to Datera"
Jenkins [Thu, 12 Mar 2015 11:50:38 +0000 (11:50 +0000)]
Merge "Unset auth token before trying to login to Datera"

9 years agoDatera driver looks for lun-0 instead lun-1 now
Mike Perez [Thu, 12 Mar 2015 06:37:38 +0000 (23:37 -0700)]
Datera driver looks for lun-0 instead lun-1 now

In exports this changed for the Datera solution. This was done to
support older systems.

Closes-Bug: #1431175
Change-Id: If5ef68bd065b98d0f8b991344a1c001a21dbf4da

9 years agoMerge "Allow scheduler to receive volume stats when starting service"
Jenkins [Thu, 12 Mar 2015 06:08:33 +0000 (06:08 +0000)]
Merge "Allow scheduler to receive volume stats when starting service"

9 years agoUse oslo.log instead of oslo-incubator
Ivan Kolodyazhny [Thu, 19 Feb 2015 16:43:42 +0000 (18:43 +0200)]
Use oslo.log instead of oslo-incubator

log module was removed from oslo-incubator after oslo.log released.

Change-Id: I205d0625c502cb462919edc76d12091edcc21b1b
Implements: blueprint port-oslo-incubator-to-oslo-log
Partial-Bug: #1381563

9 years agoRemove the useless next link for volumes, transfers and backups
Vincent Hou [Wed, 29 Oct 2014 08:40:31 +0000 (01:40 -0700)]
Remove the useless next link for volumes, transfers and backups

Two cases this patch will resolve:
1) Currently if the number of items equals the osapi_max_limit or
the last page of items equals the osapi_max_limit without the
parameter limit set in the user request, a next link is generated
in the response, though this next link will return empty volume
list. In fact it is unnecessary to generate the next link in
this case.

2) If the number of items equals the osapi_max_limit and limit is
greater than osapi_max_limit, a next link is generated. Actually,
the next link does not need to be generated, because it is certain
that there is no more volumes left in the database.

The method _get_collection_links has been called in volumes,
volume_transfers and backups. The patch can only affect the next
link generation for three of them. However, other lists like
consistency groups, qos specs, cgsnapshots have not implemented the
generation for the next link. Potentially this can be a wishlist
item for them.

Change-Id: I0f1f449c73d51675281497a095d869c1e72c889f
closes-bug: #1350558

9 years agoMerge "NFS backup driver"
Jenkins [Wed, 11 Mar 2015 22:43:11 +0000 (22:43 +0000)]
Merge "NFS backup driver"

9 years agoMerge "Add multiattach capabilities injection"
Jenkins [Wed, 11 Mar 2015 21:32:55 +0000 (21:32 +0000)]
Merge "Add multiattach capabilities injection"

9 years agoMerge "Update volume type name for volume type API"
Jenkins [Wed, 11 Mar 2015 20:46:18 +0000 (20:46 +0000)]
Merge "Update volume type name for volume type API"

9 years agoUnset auth token before trying to login to Datera
Mike Perez [Wed, 11 Mar 2015 19:27:32 +0000 (12:27 -0700)]
Unset auth token before trying to login to Datera

After a token expires, the Datera driver would try to login, and pass
along the expired token. This would fail because the receiving server
will authorize anytime it's given an auth token, even for endpoints that
don't require it. This change unsets the auth token when logging in, so
it's not passed a long.

Closes-Bug: #1430978
Change-Id: Id445718e3e73b676e3af8005b8fdd1a028ef2b0e

9 years agoNFS backup driver
Tom Barron [Mon, 19 Jan 2015 17:58:02 +0000 (12:58 -0500)]
NFS backup driver

Implements an NFS backup service in accord with the NFS backup driver
blueprint spec (https://review.openstack.org/#/c/130858).

Currently the NFS backup driver inherits directly from the abstract
chunked backup driver.  It should be straightforward to abstract out
of this code a posix filesystem backup driver, without dynamic mount
capabilities, which itself inherits from the chunked backup driver.
When that is done, most of the code in this implementation can be
removed and it can be modified to inherit from the posix filesystem
backup driver itself.

Implements: blueprint nfs-backup

Change-Id: I01ce30c25e7239e68cc7c70038f4f880218cb66a

9 years agoSort snapshots in create CG from CG snapshot
Xing Yang [Wed, 11 Mar 2015 04:42:16 +0000 (00:42 -0400)]
Sort snapshots in create CG from CG snapshot

This problem was discovered while testing create CG from CG snapshot.
In create_consistencygroup_from_src() in manager.py, it calls the driver
method create_consistencygroup_from_src() and passes in parameters
including source snapshots and target volumes. The problem is that the
snapshots list is not sorted to be in the same order as their corresponding
volumes. So they may be in the wrong order.

In this patch, the source snapshots were sorted before being passed to
the driver.

Change-Id: I988ce2836f2d553391deeee6e68738356877109b
Closes-Bug: #1430628

9 years agoMerge "Adjust Cinder to support FCP on System z systems"
Jenkins [Wed, 11 Mar 2015 16:53:55 +0000 (16:53 +0000)]
Merge "Adjust Cinder to support FCP on System z systems"