]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "FlashSystem reports error while running tests with multi-thread"
Jenkins [Fri, 8 May 2015 19:02:20 +0000 (19:02 +0000)]
Merge "FlashSystem reports error while running tests with multi-thread"

9 years agoMerge "Create initiator id for VMAX iSCSI driver"
Jenkins [Fri, 8 May 2015 19:02:09 +0000 (19:02 +0000)]
Merge "Create initiator id for VMAX iSCSI driver"

9 years agoMerge "SMBFS: Add minimum qemu-img version requirement"
Jenkins [Fri, 8 May 2015 19:01:17 +0000 (19:01 +0000)]
Merge "SMBFS: Add minimum qemu-img version requirement"

9 years agoMerge "Add Multi-connection support to XIV"
Jenkins [Fri, 8 May 2015 18:56:44 +0000 (18:56 +0000)]
Merge "Add Multi-connection support to XIV"

9 years agoMerge "Correct directories check for N327 hacking check"
Jenkins [Fri, 8 May 2015 18:55:37 +0000 (18:55 +0000)]
Merge "Correct directories check for N327 hacking check"

9 years agoMerge "tests: replace mox by mox3, clean out mox usage"
Jenkins [Fri, 8 May 2015 18:55:18 +0000 (18:55 +0000)]
Merge "tests: replace mox by mox3, clean out mox usage"

9 years agoMerge "Windows iSCSI: remove ensure_export"
Jenkins [Fri, 8 May 2015 18:55:07 +0000 (18:55 +0000)]
Merge "Windows iSCSI: remove ensure_export"

9 years agoMerge "Cinder os-attach api returns 500"
Jenkins [Fri, 8 May 2015 18:54:57 +0000 (18:54 +0000)]
Merge "Cinder os-attach api returns 500"

9 years agoMerge "Rename Datera test to test_datera for discovery"
Jenkins [Fri, 8 May 2015 18:54:47 +0000 (18:54 +0000)]
Merge "Rename Datera test to test_datera for discovery"

9 years agoMerge "Allow rexports for targets with Datera"
Jenkins [Fri, 8 May 2015 18:50:51 +0000 (18:50 +0000)]
Merge "Allow rexports for targets with Datera"

9 years agoMerge "Log command failure details before raising ISCSITargetDetachFailed"
Jenkins [Fri, 8 May 2015 18:43:57 +0000 (18:43 +0000)]
Merge "Log command failure details before raising ISCSITargetDetachFailed"

9 years agoMerge "Fix missing translations for log messages"
Jenkins [Fri, 8 May 2015 18:35:12 +0000 (18:35 +0000)]
Merge "Fix missing translations for log messages"

9 years agoMerge "cinder os-detach api returns 500"
Jenkins [Fri, 8 May 2015 18:31:34 +0000 (18:31 +0000)]
Merge "cinder os-detach api returns 500"

9 years agoMerge "Bad link in API version details response"
Jenkins [Fri, 8 May 2015 18:18:29 +0000 (18:18 +0000)]
Merge "Bad link in API version details response"

9 years agoMerge "Fix FakeISCSIDriver and FakeISERDriver"
Jenkins [Fri, 8 May 2015 18:09:09 +0000 (18:09 +0000)]
Merge "Fix FakeISCSIDriver and FakeISERDriver"

9 years agoMerge "Eqlx: Fixes the retries on Network Connection Error"
Jenkins [Fri, 8 May 2015 18:03:04 +0000 (18:03 +0000)]
Merge "Eqlx: Fixes the retries on Network Connection Error"

9 years agoFlashSystem reports error while running tests with multi-thread
Edwin Wang [Fri, 8 May 2015 03:00:01 +0000 (11:00 +0800)]
FlashSystem reports error while running tests with multi-thread

There was an issue while running initialize_connection/
terminate_connection/_map_vdisk_to_host/_unmap_vdisk_from_host in
parallel threads.

This fix adds lock into these functions and removes incorrect
timer.stop().

Change-Id: If433522bc7799e16a918ba7c5b300b7333e430a8
Close-bug: 1452721

9 years agoMerge "Fix xxx=\n pep8 errors in volume_utils.py"
Jenkins [Fri, 8 May 2015 14:14:26 +0000 (14:14 +0000)]
Merge "Fix xxx=\n pep8 errors in volume_utils.py"

9 years agoFix FakeISCSIDriver and FakeISERDriver
Ivan Kolodyazhny [Fri, 8 May 2015 14:00:04 +0000 (17:00 +0300)]
Fix FakeISCSIDriver and FakeISERDriver

Need to pass correct int value for provisioned_capacity_gb capability
to get it working with scheduler.

Change-Id: Iee93f11d12e035d89227c5ffaf336ee2dcd1bcec
Closes-Bug: #1453146

9 years agoBad link in API version details response
Vilobh Meshram [Wed, 6 May 2015 19:23:40 +0000 (12:23 -0700)]
Bad link in API version details response

Fix the broken link in API version detail response.

Change-Id: I556edadf70896711f6c1fa4e01442f65604d9a53
Closes-Bug: #1445088

9 years agoMerge "Fix the KeyError in CloudByte iSCSI cinder driver"
Jenkins [Thu, 7 May 2015 23:26:41 +0000 (23:26 +0000)]
Merge "Fix the KeyError in CloudByte iSCSI cinder driver"

9 years agoFix xxx=\n pep8 errors in volume_utils.py
John Griffith [Thu, 7 May 2015 22:27:05 +0000 (16:27 -0600)]
Fix xxx=\n pep8 errors in volume_utils.py

Newer versions of pep8 will catch this and complain,
rather than continuing to ignore in my editor just fix
them up real quick.

Change-Id: Ib19b11cad3508d879059a22b4a81aa024b5d9a30

9 years agoMerge "Fix 'driver is uninitialize' typo"
Jenkins [Thu, 7 May 2015 21:37:38 +0000 (21:37 +0000)]
Merge "Fix 'driver is uninitialize' typo"

9 years agoLog command failure details before raising ISCSITargetDetachFailed
Matt Riedemann [Thu, 7 May 2015 20:39:33 +0000 (13:39 -0700)]
Log command failure details before raising ISCSITargetDetachFailed

In the case that there is some useful information in the
ProcessExecutionError (like stderr) when trying to terminate the
connection in the lio target, also log the error.

Related-Bug: #1450658

Change-Id: Id28968735eca27c4c4e5892e14d06aece02b06f5

9 years agoEqlx: Fixes the retries on Network Connection Error
rajinir [Tue, 28 Apr 2015 16:28:51 +0000 (11:28 -0500)]
Eqlx: Fixes the retries on Network Connection Error

Volume creations were failing due to ssh connection
errors throwing ProcessExecutionError
and retries were not happening. Made a fix
to retry commands on both network errors and
backend api exceptions.
The parameter eqlx_cli_max_retries determines
the number of retry attempts made.

Closes Bug: #1441719
Change-Id: I54b76afc6c9c5d51dd9c38831ee0a1c731c7b161

9 years agoRename Datera test to test_datera for discovery
Mike Perez [Thu, 7 May 2015 19:12:52 +0000 (12:12 -0700)]
Rename Datera test to test_datera for discovery

This will allow testr to see the tests when specifying to only run the
Datera tests.

Change-Id: I3316ab1d2cd614d4e2b076ab3d68b366383c9c29

9 years agoAllow rexports for targets with Datera
Mike Perez [Thu, 7 May 2015 19:09:45 +0000 (12:09 -0700)]
Allow rexports for targets with Datera

Sometimes due to timing, rexporting a target would fail. This will
verify with Datera if a target already exists, or if it should recreate
an export.

Change-Id: I9c40603cbb525c23e010285bdc66efaaaf4be142
Closes-Bug: #1452838

9 years agoFix the KeyError in CloudByte iSCSI cinder driver
yogeshprasad [Thu, 7 May 2015 11:17:12 +0000 (16:47 +0530)]
Fix the KeyError in CloudByte iSCSI cinder driver

Driver returns KeyError during list TSM if there is no TSM
found in CloudByte Storage.
This patch will make driver to return proper message.

Change-Id: I77f137afc87b63c0b491e010a1b8ccf63e9e89c2
Closes-Bug: 1452642

9 years agoFix missing translations for log messages
ankitagrawal [Mon, 16 Mar 2015 13:01:59 +0000 (06:01 -0700)]
Fix missing translations for log messages

Fixed log translations in sqlalchemy module for error, info and warning
messages with appropriate marker function according to the logging
standards [1].

As LOG.warn has deprecated [2] so I have changed LOG.warn to
LOG.warning.

[1] http://docs.openstack.org/developer/oslo.i18n/guidelines.html
[2] http://bugs.python.org/issue13235

Partial-Bug: 1431256
Change-Id: Icec6775ca54b47bd0aa7796d5656a0f42a599f51

9 years agoCinder os-attach api returns 500
PranaliDeore [Mon, 27 Apr 2015 11:52:46 +0000 (04:52 -0700)]
Cinder os-attach api returns 500

If volume is in 'in-use' state or invalid instance UUID
is passed to cinder os-attach api, then it returns 500 error
because InvalidVolume and InvalidUUID exceptions are raised
from manager, but not caught at api level.

Caught RemoteError exception in the api and returned 400 error
code if user passes invalid information of the volume or invalid
instance UUID.

Closes-Bug: 1449454
Change-Id: I2121b03b9f2310c40e0158627b7d4b9ba73a8f5d

9 years agocinder os-detach api returns 500
PranaliDeore [Tue, 28 Apr 2015 12:00:28 +0000 (05:00 -0700)]
cinder os-detach api returns 500

If invalid 'attachment_id' is passed to the os-detach
api, then it returns 500 error because even though
VolumeAttachmentNotFound exception is raised from manager,
it gets converted to RemoteError due to rpcapi call.

Caught RemoteError exception in the api and returned 400
error to the user if exception type is VolumeAttachmentNotFound
OR InvalidVolume. In other cases 500 error is raised.

Fixed typo in comment of volume manager.

Closes-Bug: 1449870
Change-Id: I92b03e0af3b7ab517e34edaeffd88f0a00516000

9 years agoMerge "Preserve usage and reservations on quota deletion"
Jenkins [Thu, 7 May 2015 09:29:06 +0000 (09:29 +0000)]
Merge "Preserve usage and reservations on quota deletion"

9 years agoMerge "Fix unit tests spam output"
Jenkins [Thu, 7 May 2015 05:20:32 +0000 (05:20 +0000)]
Merge "Fix unit tests spam output"

9 years agoMerge "Logging not using oslo.i18n guidelines (zonemgr)"
Jenkins [Thu, 7 May 2015 03:02:09 +0000 (03:02 +0000)]
Merge "Logging not using oslo.i18n guidelines (zonemgr)"

9 years agoMerge "HDS HNAS Driver fails when FS unhealthy"
Jenkins [Wed, 6 May 2015 18:50:03 +0000 (18:50 +0000)]
Merge "HDS HNAS Driver fails when FS unhealthy"

9 years agoHDS HNAS Driver fails when FS unhealthy
Adriano Rosso [Tue, 5 May 2015 18:58:38 +0000 (15:58 -0300)]
HDS HNAS Driver fails when FS unhealthy

This patch fixes the error when there is a file system in an
unhealthy HNAS storage pool.

Change-Id: Ic17c540039996f4a1060829d5f1f12a5f3155271
Closes-bug: #1452002

9 years agoLogging not using oslo.i18n guidelines (zonemgr)
Sean McGinnis [Tue, 5 May 2015 20:57:30 +0000 (15:57 -0500)]
Logging not using oslo.i18n guidelines (zonemgr)

Multi-patch set for easier chunks. This one addresses
the zonemanager cinder directory.

There have been quite a few instances found where the
i18n guidelines are not being followed. I believe this
has helped lead to some of the confusion around how to
correctly do this. Other developers see this code and
assume it is an example of the correct usage.

This patch attempts to clean up most of those violations
in the existing codebase to hopefully help avoid some of
that confusion in reviews.

Some issues address:
* Correct log translation markers for different log levels
* Passing format values as arguments to call, not preformatting
* Not forcing translation via six.text_type and others

Guidelines can be found here:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Hacking checks will not be able to identify all violations of
the guidelines, but it could be useful for catching obvious
one such as LOG.info("No markers!").

Change-Id: I992234cdbe3ac8c59d4c6a6c5362b009162ba38a
Partial-bug: 1433216

9 years agoFix broken add_iscsi_conn log message
ankitagrawal [Wed, 6 May 2015 07:39:56 +0000 (00:39 -0700)]
Fix broken add_iscsi_conn log message

In hnas_backend.py add_iscsi_conn method, info message is
not logged correctly due to broken format string.

Fixed the broken format string to log proper info message.

Closes-Bug: 1452160
Change-Id: Ie277ecc23ca5c10b161849075d448188845f0865

9 years agoMerge "Logging not using oslo.i18n guidelines (scheduler)"
Jenkins [Wed, 6 May 2015 02:47:27 +0000 (02:47 +0000)]
Merge "Logging not using oslo.i18n guidelines (scheduler)"

9 years agoFix unit tests spam output
Yuriy Nesenenko [Wed, 29 Apr 2015 17:36:09 +0000 (20:36 +0300)]
Fix unit tests spam output

Some of unit tests print logs to stdout. Tests output should be clear
and contain only necessary information. Debug output should not be mixed
with tests output.

Change-Id: Ia886998693ce559b270f52c3d9f2ac6062e09a67
Closes-Bug: #1449073

9 years agoPreserve usage and reservations on quota deletion
Gorka Eguileor [Mon, 9 Mar 2015 18:39:11 +0000 (19:39 +0100)]
Preserve usage and reservations on quota deletion

Current API deletes quota usage and reservations on quota limit
deletion.

According to API documentation what should only happen is that quotas
limits revert to default values by deleting tenant/user limits.

This patch fixes this issue.

APIImpact: Delete on os-quota-sets will no longer remove usage and
           reservation quotas. Those quotas are handled by Cinder
           service.
UpgradeImpact: There is no upgrade impact afaik.
Closes-Bug: #1410034
Change-Id: I9340b6f78623cfa5b505886ad75b8e4d3cd6131b

9 years agoFix 'driver is uninitialize' typo
Eric Harney [Tue, 5 May 2015 14:32:48 +0000 (10:32 -0400)]
Fix 'driver is uninitialize' typo

Accidentally changed in commit 386e285.

Change-Id: I7ea5a52f2911bf9a7017a934e8858adad51ab0cb

9 years agoWindows iSCSI: remove ensure_export
Lucian Petrut [Tue, 5 May 2015 08:12:50 +0000 (11:12 +0300)]
Windows iSCSI: remove ensure_export

The ensure_export method is called by the manager when the service
is initialized, ensuring that in-use volumes are properly exported.

iSCSI targets exported by WinTarget persist after host reboot.
For this reason, the ensure_export method can simply pass, thus
simplifying the iSCSI target creation logic.

The patch set depending on this introduces CHAP credentials support.
If the iSCSI target is accidentaly deleted, the CHAP credentials
will change, so the volume won't be accessible anyway if the target
is recreated using ensure_export.

Change-Id: I29367fc0ef0e38bb06c4a0ff5a485274cc29660e

9 years agotests: replace mox by mox3, clean out mox usage
Julien Danjou [Thu, 15 Jan 2015 11:40:38 +0000 (12:40 +0100)]
tests: replace mox by mox3, clean out mox usage

This patch replaces mox3 by mox, so we can drop mox from requirements
and bring Python 3 compatibility. It also clear some mox usage and
use the fixture brought by oslotest.

Change-Id: Ia242425815b09e1e67d33702f1e5dbe6bcd599fd

9 years agoMerge "Fix range check for NFS used ratio"
Jenkins [Tue, 5 May 2015 07:59:35 +0000 (07:59 +0000)]
Merge "Fix range check for NFS used ratio"

9 years agoMerge "Catch additional type conversion errors"
Jenkins [Tue, 5 May 2015 07:57:12 +0000 (07:57 +0000)]
Merge "Catch additional type conversion errors"

9 years agoMerge "Tests: Remove sleep from NFS tests"
Jenkins [Tue, 5 May 2015 04:59:53 +0000 (04:59 +0000)]
Merge "Tests: Remove sleep from NFS tests"

9 years agoCatch additional type conversion errors
Jamie Lennox [Tue, 5 May 2015 01:50:21 +0000 (11:50 +1000)]
Catch additional type conversion errors

When converting strings to integers in quota we catch ValueError which
will handle an input which is not a valid number, eg 'abc'. Extend this
to covert TypeErrors which will handle things like a None value being
passed.

Partial-Bug: #1451637
Change-Id: I7e3e694d539113beeb99001aeb80012ac4c1124d

9 years agoTests: Remove sleep from NFS tests
Eric Harney [Mon, 4 May 2015 21:14:08 +0000 (17:14 -0400)]
Tests: Remove sleep from NFS tests

This will shave a few seconds off of a unit test run.

Change-Id: I785607f5efe9ed45b1555bbbaab38b68c57f5cc3

9 years agoVMware: Enable vCenter certificate verification
Vipin Balachandran [Mon, 4 May 2015 10:43:41 +0000 (16:13 +0530)]
VMware: Enable vCenter certificate verification

Currently vCenter certificate is not verified during connection
establishment. This patch adds a config option to specify a CA
bundle file to verify vCenter server certificate.

DocImpact

Change-Id: Ida730db66b154a4d445f7a91bccb9ca5b5a26f5e
Closes-Bug: #1276207

9 years agoMerge "Fake out sleeps in unit tests"
Jenkins [Sun, 3 May 2015 22:46:49 +0000 (22:46 +0000)]
Merge "Fake out sleeps in unit tests"

9 years agoMerge "Drop use of 'oslo' namespace package."
Jenkins [Sun, 3 May 2015 20:52:06 +0000 (20:52 +0000)]
Merge "Drop use of 'oslo' namespace package."

9 years agoMerge "Add hacking check for str and unicode in exceptions"
Jenkins [Sun, 3 May 2015 17:18:38 +0000 (17:18 +0000)]
Merge "Add hacking check for str and unicode in exceptions"

9 years agoCorrect directories check for N327 hacking check
Jay S. Bryant [Fri, 1 May 2015 21:05:25 +0000 (16:05 -0500)]
Correct directories check for N327 hacking check

For some reason the N327 hacking heck was looking for
cinder.unit/tests and cinder.functional/tests in the filename
that is sent in for the hacking check.  This should be
cinder/tests/unit and cinder/tests/functional.

This concern was originally raised in this review:
https://review.openstack.org/175604

Change-Id: Ic3041d9e16b3707aaf42ff941206d24ec66ead2b

9 years agoFake out sleeps in unit tests
John Griffith [Fri, 1 May 2015 16:35:30 +0000 (10:35 -0600)]
Fake out sleeps in unit tests

Just a minor cleanup, had a few tests that were doing sleeps
(or looping calls for those that prefer it) that were being
executed to test timeouts in the unit tests.  No value in
actually *waiting* for these, so this patch just mocks them
out so we still test the procedure but don't actually have
to wait.

This shaves about 30 seconds or so off of the unit test run,
not a huge deal, but every little bit helps IMO.

Also noticed a LOG.debug message in the test_extensions file
that wasn't picked up in other cleanup work so I removed that
debug log call as well.

Change-Id: I415ac75816e8a0f4c48c61b23391df1a9a016d62

9 years agoFix range check for NFS used ratio
Tom Barron [Sat, 18 Apr 2015 13:42:10 +0000 (09:42 -0400)]
Fix range check for NFS used ratio

The nfs_used_ratio configuration parameter is supposed to be
greater than zero and less than or equal to one.  However,
current configuration checks actually allow values greater
than one because of a logic error.  Unit tests fail to detect
this issue because they find the exception that they expect
to find, but it is actually being thrown for another reason.

This commit fixes the logic error in the nfs driver code.

It also reworks all the unit tests for the do_setup method since
they suffer from the same issue that led to failure to detect
this error in the first place - they fail to do proper mocks of
submethods, and when these run the expected exception gets triggered
for the wrong reason.  We have moved these tests into their own test
class, where mock is used rather than mox.  Over time it is likely
that new tests will be implemented, or old tests reworked, with mock
instead of mox.  These can go in the new test class, which can be
renamed if that is appropriate.

Change-Id: I19ab396057fb6f60ad8e7d10944384db7e95ece6
Fixes-bug: 1445786

9 years agoMerge "Dell SC driver calls out the wrong REST API version"
Jenkins [Fri, 1 May 2015 06:08:24 +0000 (06:08 +0000)]
Merge "Dell SC driver calls out the wrong REST API version"

9 years agoMerge "Move logging sample to use oslo_log"
Jenkins [Fri, 1 May 2015 00:45:15 +0000 (00:45 +0000)]
Merge "Move logging sample to use oslo_log"

9 years agoMerge "Add retry to lvm delete"
Jenkins [Thu, 30 Apr 2015 18:48:48 +0000 (18:48 +0000)]
Merge "Add retry to lvm delete"

9 years agoMove logging sample to use oslo_log
Tom Hancock [Thu, 30 Apr 2015 14:42:15 +0000 (14:42 +0000)]
Move logging sample to use oslo_log

etc/cinder/logging_sample.conf needs an update to refer to
oslo_log, not cinder.openstack.common.log for its ContextFormatter.

Change-Id: I8bc2618124dfffc54d15fc5615bb1884d74988f4
Closes-Bug: #1450500

9 years agoRevert state if attachment already exists
Shyama Venugopal [Thu, 30 Apr 2015 10:22:27 +0000 (12:22 +0200)]
Revert state if attachment already exists

When attach is called twice for the same volume and instance the
attach_volume checks if the attachment already exists and returns.
This leaves the volume in 'Attaching' state. The volume status should
be reset to 'in-use' if we see the attachment already exists.

Change-Id: I2a2d28de59af234300082ab4655b0bc10699d54c
Closes-Bug: #1449980

9 years agoAdd retry to lvm delete
John Griffith [Wed, 29 Apr 2015 23:25:12 +0000 (17:25 -0600)]
Add retry to lvm delete

Seems we have another issue related to lvm and
snapshots, but this time it's on the delete side.

We used a simple retry mechanism for snapshot create
here:
  https://review.openstack.org/#/c/149360/8

I'm hesitant to just add another retry without looking
at dm issues, but this should address the problem
temporarily and give us a chance to collect some
data on the issue.

Change-Id: I37607a09e2f9af6f2f32ddfaa8567400541e533a
Closes-Bug: #1450110

9 years agoMerge "Leverage timeutils, drop strtime() usage"
Jenkins [Wed, 29 Apr 2015 16:05:28 +0000 (16:05 +0000)]
Merge "Leverage timeutils, drop strtime() usage"

9 years agoMerge "Admin extends tenant's volume but change admin's quota"
Jenkins [Wed, 29 Apr 2015 15:44:48 +0000 (15:44 +0000)]
Merge "Admin extends tenant's volume but change admin's quota"

9 years agoMerge "Fix fetch_to_volume_format if vhd is requested"
Jenkins [Wed, 29 Apr 2015 02:10:24 +0000 (02:10 +0000)]
Merge "Fix fetch_to_volume_format if vhd is requested"

9 years agoAdmin extends tenant's volume but change admin's quota
wuyuting [Fri, 13 Feb 2015 02:16:24 +0000 (10:16 +0800)]
Admin extends tenant's volume but change admin's quota

When admin extends a tenant's volume, the tenant's
quota-usage doesn't change. However, admin's quota-usage
has changed. The right practice is: extend whose volume,
whose quota-usage should be changed.

Change-Id: Ia1bed7f212cbee715e29698ebbfe3c67486a55f5
Closes-Bug: #1421492

9 years agoDrop use of 'oslo' namespace package.
Doug Hellmann [Tue, 28 Apr 2015 16:46:59 +0000 (16:46 +0000)]
Drop use of 'oslo' namespace package.

The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: I950f1afb1b4600dfc1f38d1a7d9322f240f444a6

9 years agoAdd Multi-connection support to XIV
Alon Marx [Sun, 19 Apr 2015 05:56:35 +0000 (08:56 +0300)]
Add Multi-connection support to XIV

Add field in cinder.conf to hold a list of management IP addresses to connect
to the XIV backend.

DocImpact
Change-Id: Ie4eceb315188765747dc02a0a77b5a1d2c692fb5
Implements: blueprint xiv-multiple-mgmt-ips

9 years agoMerge "Remove redundant code from VNX Cinder Driver"
Jenkins [Tue, 28 Apr 2015 06:22:35 +0000 (06:22 +0000)]
Merge "Remove redundant code from VNX Cinder Driver"

9 years agoMerge "Fixed issue with mismatched config in VMAX driver"
Jenkins [Tue, 28 Apr 2015 06:22:04 +0000 (06:22 +0000)]
Merge "Fixed issue with mismatched config in VMAX driver"

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 28 Apr 2015 06:21:53 +0000 (06:21 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Enable use of filter_function in PureISCIDriver"
Jenkins [Tue, 28 Apr 2015 06:07:19 +0000 (06:07 +0000)]
Merge "Enable use of filter_function in PureISCIDriver"

9 years agoMerge "Port rbd driver to use new driver model"
Jenkins [Tue, 28 Apr 2015 06:05:59 +0000 (06:05 +0000)]
Merge "Port rbd driver to use new driver model"

9 years agoAdd hacking check for str and unicode in exceptions
Jay S. Bryant [Mon, 20 Apr 2015 23:05:47 +0000 (18:05 -0500)]
Add hacking check for str and unicode in exceptions

One of the comments we are frequently having to make
on reviews is with regards to the use of str() or
unicode() on exceptions.  This hacking check pulled
from Nova will catch this problem earlier and avoid
conflicting comments being made in reviews.

Change-Id: I09eaf7b066f3e29733e6cbe16b2997edb6bc5e23

9 years agoMerge "Windows: Improve vhdutils error messages"
Jenkins [Sat, 25 Apr 2015 05:25:46 +0000 (05:25 +0000)]
Merge "Windows: Improve vhdutils error messages"

9 years agoMerge "Don't truncate osapi_volume_link prefixes"
Jenkins [Sat, 25 Apr 2015 05:18:03 +0000 (05:18 +0000)]
Merge "Don't truncate osapi_volume_link prefixes"

9 years agoMerge "Remove deprecated methods in VNX driver"
Jenkins [Sat, 25 Apr 2015 05:12:00 +0000 (05:12 +0000)]
Merge "Remove deprecated methods in VNX driver"

9 years agoMerge "Sync oslo service module"
Jenkins [Sat, 25 Apr 2015 04:59:40 +0000 (04:59 +0000)]
Merge "Sync oslo service module"

9 years agoAdd test case for volume_encryption_metadata_get
Joel Coffman [Thu, 26 Mar 2015 22:14:01 +0000 (18:14 -0400)]
Add test case for volume_encryption_metadata_get

This change adds unit tests for the volume_encryption_metadata_get
function. The unit tests provide protection against regressions when
refactoring this code as part of follow-up patches.

Writing the unit tests also exposed a minor issue with the existing
implementation of the volume_encryption_metadata_get function. If the
volume type is not encrypted, then the existing implementation would
raise an exception due to volume_type_encryption_get returning None.
In practice, this issue would not be encountered due to separate
checks to ensure that the volume type is encrypted, but a small
refactoring obviates the need for these checks and allows the
volume_encryption_metadata_get function to be invoked for both
encrypted and "normal" volumes.

A separate patch will clean up the unnecessary checks to ensure that
the volume type was encrypted prior to calling this function.

Related to blueprint volume-encryption-metadata

Change-Id: I6ba62a58ac62a3b7bfb2b9d4d18b37ef458b616c

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 24 Apr 2015 12:56:59 +0000 (12:56 +0000)]
Updated from global requirements

Change-Id: I289c236da7680e22539dad22b5f98c298e69a633

9 years agoPort rbd driver to use new driver model
Marc Koderer [Wed, 3 Dec 2014 07:43:10 +0000 (08:43 +0100)]
Port rbd driver to use new driver model

Use new ABCmeta driver model for rbd driver.

Implements: blueprint abc-driver-update

Change-Id: Ifaa06477e388e4b2807c65a2357b49451db5d670

9 years agoDon't truncate osapi_volume_link prefixes
Deliang Fan [Fri, 24 Apr 2015 03:16:46 +0000 (11:16 +0800)]
Don't truncate osapi_volume_link prefixes

When osapi_volume_link_prefix is defined and used to update the
links return in API responses, do not drop the path component of
the overriding link prefix.

Change-Id: Ic84e16cdfa989d4af7f076a4c244808be2ca4dce
Closes-Bug: #1304099

9 years agoMerge "NetApp E-Series: Fix instance live-migration with attached volumes"
Jenkins [Fri, 24 Apr 2015 03:09:46 +0000 (03:09 +0000)]
Merge "NetApp E-Series: Fix instance live-migration with attached volumes"

9 years agoMerge "3PAR don't log version numbers every stats update"
Jenkins [Fri, 24 Apr 2015 03:09:36 +0000 (03:09 +0000)]
Merge "3PAR don't log version numbers every stats update"

9 years agoFixed issue with mismatched config in VMAX driver
Xing Yang [Wed, 15 Apr 2015 19:33:59 +0000 (15:33 -0400)]
Fixed issue with mismatched config in VMAX driver

When the source and target volumes have different meta device
configurations, clone volume will fail. This patch fixed the
problem.

Closes-Bug: #1442376
Change-Id: If2f2c085596b0045d7af6762bddeb4cd59158a57

9 years agoMerge "Move RBD calls to a separate threads"
Jenkins [Fri, 24 Apr 2015 02:59:22 +0000 (02:59 +0000)]
Merge "Move RBD calls to a separate threads"

9 years agoMerge "Use iscsi_helper instead of target_helper on logs"
Jenkins [Fri, 24 Apr 2015 02:55:21 +0000 (02:55 +0000)]
Merge "Use iscsi_helper instead of target_helper on logs"

9 years agoCreate initiator id for VMAX iSCSI driver
Xing Yang [Tue, 21 Apr 2015 03:08:38 +0000 (23:08 -0400)]
Create initiator id for VMAX iSCSI driver

This is related to Bug #1440427. The fix for that bug only addressed
the issue for the FC driver. The same problem exists for the iSCSI
driver. This patch addressed the problem for the VMAX iSCSI driver.
The initiator id will be created on the array if it does not exist
for the iSCSI driver.

Change-Id: I5df57df122a704066d4d7a1997ac2642b073c9e8
Closes-Bug: #1446443

9 years agoRemove deprecated methods in VNX driver
Tina [Fri, 24 Apr 2015 01:41:12 +0000 (21:41 -0400)]
Remove deprecated methods in VNX driver

This change amis to do a cleanup in VNX driver to remove those
deprecated methods.

Change-Id: I9d3c5bd6ade259a4d731d3d1020e4c37c75ef889
Close-Bug: 1447908

9 years agoMerge "Add external genconfig calls"
Jenkins [Fri, 24 Apr 2015 00:56:21 +0000 (00:56 +0000)]
Merge "Add external genconfig calls"

9 years ago3PAR don't log version numbers every stats update
Walter A. Boring IV [Thu, 23 Apr 2015 16:34:35 +0000 (09:34 -0700)]
3PAR don't log version numbers every stats update

After the 3PAR drivers were refactored to remove the local
file locks, the login mechanism was logging the common and
client version numbers on every driver entry point.

This patch removes that logging except at driver startup.

Change-Id: Ib7732817a45cbdfdf975df13dbaf9bc0462a1dc0
Closes-Bug: #1447697

9 years agoSync oslo service module
John Griffith [Thu, 23 Apr 2015 15:05:57 +0000 (09:05 -0600)]
Sync oslo service module

This does a full sync of the oslo.service module.  Note
that we've cherry picked some critical bug-fix changes
to this module already, this commit just syncs the full
module properly and gets us up to date where we should be.

Current HEAD in OSLO:
-----------------------
commit:  d5edda00b4eca65d57f94bd0ac1b790e6d1f732e
Date:    Wed Apr 22 19:49:00 2015 +0000
Merge "service child process normal SIGTERM exit"

Changes merged with this patch:
---------------------------------
d5edda00 - Merge "service child process normal SIGTERM exit"
702bc569 - service child process normal SIGTERM exit
64b5819e - Revert "Revert "Revert "Optimization of waiting subprocesses
           in ProcessLauncher
f5646edc - Revert "Revert "Optimization of waiting subprocesses
           in ProcessLauncher
d23b6589 - Revert "Optimization of waiting subprocesses in ProcessLauncher"
593005b7 - ProcessLauncher: reload config file in parent process on SIGHUP
f29e865d - Store ProcessLauncher signal handlers on class level
bf92010c - Optimization of waiting subprocesses in ProcessLauncher

NOTE: Commit 702bc569 was actually pulled in with commit d73ac96d .
      We shouldn't have merged that individual commit.  I include the
      commit here to document Oslo level that the service module is at
      cumulatively between that commit and patch.

Change-Id: I613ba5ba442cf533c0f68d06281d117fbac20bd6

9 years agoAdd external genconfig calls
John Griffith [Thu, 23 Apr 2015 18:07:12 +0000 (12:07 -0600)]
Add external genconfig calls

After moving to oslo.config we still were using
incubator config generator.  This was ok, but the
problem is we haven't been pulling config options
from the oslo libs.

This is a hack that just appends external lib calls
and appends those options to the sample file being built.

Change-Id: I2634b20ef4abd3bf7990f845d59ad3d208db234f
Closes-Bug: #1447380

9 years agoMerge "Add resource tag to logging in volume.manager.py"
Jenkins [Thu, 23 Apr 2015 17:57:57 +0000 (17:57 +0000)]
Merge "Add resource tag to logging in volume.manager.py"

9 years agoEnable use of filter_function in PureISCIDriver
Daniel Wilson [Wed, 22 Apr 2015 21:07:02 +0000 (14:07 -0700)]
Enable use of filter_function in PureISCIDriver

Adding filter_function to capabilities of PureISCIDriver.  Return
total_volumes as well for use with filter_function.

This will open a way for admins to prevent Cinder from scheduling
volumes on a Pure backend once it has reached the array’s limits. The
primary use case for this is volume limits. An example of a
filter_function that will prevent this issue would be:

filter_function="capabilities.total_volumes < 500”

This will prevent any issues with Purity versions that are limited to
500 volumes.

Without that filter_function the scheduler will continue to try and
schedule volume creation if space is available instead of selecting
another backend. The end result would be volume creation fails and the
volume is in an error state even though there are backends available
that could have handled it.

DocImpact: This means the PureISCSIDriver will now respect the
filter_function config option. Special Pure specific fields to filter
off of need to be added to the driver config manual.

Change-Id: I1368b74f79eb8c8560cf86df27f9af9541963a87
Closes-Bug: 1437082

9 years agoNetApp E-Series: Fix instance live-migration with attached volumes
Alex Meade [Tue, 24 Feb 2015 21:22:58 +0000 (16:22 -0500)]
NetApp E-Series: Fix instance live-migration with attached volumes

Currently, live migrations of instances with attached volumes that live
on a NetApp E-Series backend will fail and break connectivity to the
guest. This patch adds the 'netapp_enable_multiattach' configuration
option that enables multiattach operations with the E-Series driver.
It defaults to allowing these operations but needs to be configurable
since allowing for multiple attachments imposes a limit of 256 volumes
on the backend due to how multiple attachments must be managed by
E-Series.

Multiattach operations are enabled by mapping volumes to an E-Series
host group on the backend called 'cinder-host-group'. Host groups can
only have 256 mappings at a time and so we must limit the number of
volumes in order to guarantee any volume created could then be attached.

Closes-bug: 1433825
Change-Id: Icb73f5b65b12decbd7b7f21c2fcec6fe700eaf59

9 years agoAdd resource tag to logging in volume.manager.py
John Griffith [Sat, 18 Apr 2015 00:19:37 +0000 (00:19 +0000)]
Add resource tag to logging in volume.manager.py

We now have resource tag support in oslo logging,
and our logging is pretty inconsistent and down right
ugly in places.  Let's clean things up based on the
standard logging guidelines and use the fancy new
resource tag.

To use set the following in cinder.conf:
logging_context_format_string = \
%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s \
%(project_name)s] %(resource)s%(message)s

This change hits the majority of the code in manager and
should be used as an example/guide.  There are some exceptions
around migration and replication where things are kinda ugly,
those should be fixed up as follow up work.

Change-Id: I1315cc16116601fea8c023b47f99b2eaad01d6fb

9 years agoLeverage timeutils, drop strtime() usage
Julien Danjou [Thu, 19 Mar 2015 12:24:00 +0000 (13:24 +0100)]
Leverage timeutils, drop strtime() usage

This patch remove some code that tried to parse time in different way by
leveraging timeutils instead. It also drops strtime() usage as it's
going to be deprecated in oslo_utils (see
I8b5119e64369ccac3423dccc04421f99912df733).

Change-Id: Icb2906ccd4b381f80064e0f1348fc64e389031dd

9 years agoMerge "Remove force check from copy_volume_to_image"
Jenkins [Thu, 23 Apr 2015 05:35:53 +0000 (05:35 +0000)]
Merge "Remove force check from copy_volume_to_image"

9 years agoRemove redundant code from VNX Cinder Driver
Jeegn Chen [Tue, 14 Apr 2015 06:19:12 +0000 (14:19 +0800)]
Remove redundant code from VNX Cinder Driver

The logic on read-only volume in cinder/volume/drivers/emc/emc_vnx_cli.py
is duplicate to the logic in cinder/volume/manager.py. This patch is to
remove it.

Change-Id: Ib1a740a6065dbc8f3412d9dcf2e0d9025ab32d87
Closes-Bug: #1439531