]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoTintri Cinder Volume driver
Sean Chen [Tue, 12 May 2015 21:59:30 +0000 (14:59 -0700)]
Tintri Cinder Volume driver

* Volume Create/Delete
* Volume Attach/Detach
* Snapshot Create/Delete
* Create Volume from Snapshot
* Get Volume Stats
* Copy Image to Volume
* Copy Volume to Image
* Clone Volume
* Extend Volume

Implements: blueprint tintri-cinder-driver

Change-Id: I4d9f2805e02524e0e271a263376b446565294d28

9 years agoMerge "Leave sqlalchemy convert to boolean to the DB SQL type to use."
Jenkins [Wed, 20 May 2015 19:33:25 +0000 (19:33 +0000)]
Merge "Leave sqlalchemy convert to boolean to the DB SQL type to use."

9 years agoMerge "Check volume_backend in retype"
Jenkins [Wed, 20 May 2015 16:37:41 +0000 (16:37 +0000)]
Merge "Check volume_backend in retype"

9 years agoLeave sqlalchemy convert to boolean to the DB SQL type to use.
Romain Chantereau [Wed, 20 May 2015 13:06:36 +0000 (15:06 +0200)]
Leave sqlalchemy convert to boolean to the DB SQL type to use.

Closes-Bug: #1457033

Change-Id: I969a4d60aa156ccfff09a58c3a448b5a9619e71f

9 years agoMerge "Fix a problem with FAST support in VMAX driver"
Jenkins [Wed, 20 May 2015 00:25:48 +0000 (00:25 +0000)]
Merge "Fix a problem with FAST support in VMAX driver"

9 years agoMerge "Remove HDS HUS iSCSI driver"
Jenkins [Fri, 15 May 2015 22:19:09 +0000 (22:19 +0000)]
Merge "Remove HDS HUS iSCSI driver"

9 years agoRemove HDS HUS iSCSI driver
Diego Zamboni [Fri, 15 May 2015 14:15:10 +0000 (11:15 -0300)]
Remove HDS HUS iSCSI driver

Removes HDS HUS iSCSI driver as it's deprecated and will not be maintained anymore.

DocImpact

The documentation about HDS HUS iSCSI driver should be removed.

Change-Id: If30c3e183f8216a6a1406dfc8041a37b88132ac0

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 15 May 2015 03:34:56 +0000 (03:34 +0000)]
Updated from global requirements

Change-Id: I6f3a3aee9af7752d2a2372d8177133925157dfb5

9 years agoMerge "VMware: Handle concurrent inventory folder create"
Jenkins [Fri, 15 May 2015 03:09:08 +0000 (03:09 +0000)]
Merge "VMware: Handle concurrent inventory folder create"

9 years agoMerge "Remove unused context parameter"
Jenkins [Thu, 14 May 2015 22:04:31 +0000 (22:04 +0000)]
Merge "Remove unused context parameter"

9 years agoMerge "Fix tiny typo: compatability => compatibility"
Jenkins [Thu, 14 May 2015 17:06:29 +0000 (17:06 +0000)]
Merge "Fix tiny typo: compatability => compatibility"

9 years agoMerge "LVM: Support efficient data copy using "dd" for create_cloned_volume"
Jenkins [Thu, 14 May 2015 04:12:27 +0000 (04:12 +0000)]
Merge "LVM: Support efficient data copy using "dd" for create_cloned_volume"

9 years agoMerge "Replace suds test dependency with suds-jurko"
Jenkins [Thu, 14 May 2015 02:24:53 +0000 (02:24 +0000)]
Merge "Replace suds test dependency with suds-jurko"

9 years agoMerge "Cinder os-force_detach api returns 500"
Jenkins [Thu, 14 May 2015 01:56:42 +0000 (01:56 +0000)]
Merge "Cinder os-force_detach api returns 500"

9 years agoMerge "LVM: Pass volume size in MiB to copy_volume() during volume migration"
Jenkins [Thu, 14 May 2015 01:54:55 +0000 (01:54 +0000)]
Merge "LVM: Pass volume size in MiB to copy_volume() during volume migration"

9 years agoMerge "Switch to oslo_versionedobjects"
Jenkins [Thu, 14 May 2015 00:02:42 +0000 (00:02 +0000)]
Merge "Switch to oslo_versionedobjects"

9 years agoMerge "Remove use of deprecated LOG.warn"
Jenkins [Wed, 13 May 2015 22:31:41 +0000 (22:31 +0000)]
Merge "Remove use of deprecated LOG.warn"

9 years agoMerge "Fix incorrect reraising of exceptions"
Jenkins [Wed, 13 May 2015 22:23:48 +0000 (22:23 +0000)]
Merge "Fix incorrect reraising of exceptions"

9 years agoLVM: Pass volume size in MiB to copy_volume() during volume migration
Mitsuhiro Tanino [Wed, 13 May 2015 15:59:13 +0000 (11:59 -0400)]
LVM: Pass volume size in MiB to copy_volume() during volume migration

Currently migrate_volume() in lvm.py does not pass volume size in
MiB but passes volume size in GiB to copy_volume(). The size argument
of copy_volume() requires MiB value. As a result, if the volume size
is 1GiB, copy_volume() copies only 1MiB head of 1GiB volume to the
destination volume, and then the volume data is corrupted.
This patch fixes to pass volume size in MiB.

Closes-bug: #1454835
Change-Id: I8e06195dc3625ef07bc9858d844541e37a231b73

9 years agoMerge "Fix overwrite of params in SF image cache update"
Jenkins [Wed, 13 May 2015 17:00:22 +0000 (17:00 +0000)]
Merge "Fix overwrite of params in SF image cache update"

9 years agoLVM: Support efficient data copy using "dd" for create_cloned_volume
Mitsuhiro Tanino [Fri, 8 May 2015 19:00:03 +0000 (15:00 -0400)]
LVM: Support efficient data copy using "dd" for create_cloned_volume

The create_cloned_volume uses dd command for data copy, but the
copy always copy full blocks even if the source data contains
many null or zero blocks. When we use thin provisioned LVM,
blocks are not pre-allocated, so unused region returns zero.
If we copy full block for destination volume, unnecessary blocks
will be allocated and the usage will be 100%.

The dd command has conv=sparse option in order to copy data more
efficiently. This patch enables conv=sparse option as an argument
of dd command for create_cloned_volume when we use thin provisioned
LVM.

[NOTE]
This patch only enables conv=sparse parameter of dd command for
create_cloned_volume() path of LVM driver. There are some places
using dd in Cinder, but we should carefully consider to apply
this parameter for other places because misuse of this parameter
causes security issues or data corruptions. Also we DO NOT use this
parameter for volume wiping case because the volume is not cleared
at all.

Here are some results for this option.

- Without conv=sparse option
  LV            VG    Attr       LSize   Pool     Origin Data%
  vg1-pool      vg1   twi-a-tz--   3.80g                  31.45
  volume-clone  vg1   Vwi-a-tz--   1.00g vg1-pool        100.00
  volume-source vg1   Vwi-a-tz--   1.00g vg1-pool         19.53

- With conv=sparse option
  LV            VG    Attr       LSize   Pool     Origin Data%
  vg1-pool      vg1   twi-a-tz--   3.80g                  10.28
  volume-clone  vg1   Vwi-a-tz--   1.00g vg1-pool         19.53
  volume-source vg1   Vwi-a-tz--   1.00g vg1-pool         19.53

Change-Id: I743f823ca38529b12301a89308d1d406aa3fa45f
Closes-bug: #1224671

9 years agoFix a problem with FAST support in VMAX driver
Xing Yang [Thu, 2 Apr 2015 05:31:56 +0000 (01:31 -0400)]
Fix a problem with FAST support in VMAX driver

The VMAX driver doesn't distinguish between storage groups for
masking views (used for attachment) and storage groups for volumes
under FAST policy. This causes problems during attach volume.
This patch fixed the problem.

Change-Id: Ibb086f336e78c23e4907562d39f460eae3004bca
Closes-Bug: #1435069

9 years agoRemove use of deprecated LOG.warn
Sean McGinnis [Wed, 13 May 2015 14:30:20 +0000 (09:30 -0500)]
Remove use of deprecated LOG.warn

LOG.warn is deprecated and LOG.warning should be used.

This patch fixes up instances of LOG.warn usage and adds a
hacking check to make sure it doesn't creep back in.

See Logger.warning note here for background:
https://docs.python.org/3/library/logging.html

Also cleaned up some remaining instances where logging was
preformatting strings rather than passing in formatting
arguments to the logger to handle.

Change-Id: Id2e6cba489d8509601820b5aed83652f71be2bdc

9 years agoFix incorrect reraising of exceptions
Sean McGinnis [Sat, 25 Apr 2015 00:15:37 +0000 (19:15 -0500)]
Fix incorrect reraising of exceptions

There are several places in the code where exception handling raises
the exception variable rather than just calling raise. This results
in the traceback being incorrect.

Had considered adding a hacking check for this, but that becomes a
little tricky. There are valid places where "raise ex" is used that
would prevent a simple check.

Change-Id: Ib2bd745c7ef600c514a94c3fd638d15d17a623a2

9 years agoSwitch to oslo_versionedobjects
Thang Pham [Sun, 1 Mar 2015 22:46:02 +0000 (17:46 -0500)]
Switch to oslo_versionedobjects

oslo_versionedobjects was not made available until very
late in the Kilo cycle (i.e. near the end of kilo-3).
In order to make progress on cinder objects, a fork of
nova objects was made, so that proper trial and testing
could be done. The following patch makes the switch to
use oslo_versionedobjects.

Implements: blueprint cinder-objects
Change-Id: I883f387c8247e8d79da82016a624cef2180cde88

9 years agoMerge "Add patch for consistency group update in ProphetStor driver"
Jenkins [Wed, 13 May 2015 14:41:00 +0000 (14:41 +0000)]
Merge "Add patch for consistency group update in ProphetStor driver"

9 years agoMerge "Removing sleep between when a command is sent and 'YES' is sent"
Jenkins [Wed, 13 May 2015 14:40:50 +0000 (14:40 +0000)]
Merge "Removing sleep between when a command is sent and 'YES' is sent"

9 years agoMerge "Logging not using oslo.i18n guidelines (openstack)"
Jenkins [Wed, 13 May 2015 13:12:12 +0000 (13:12 +0000)]
Merge "Logging not using oslo.i18n guidelines (openstack)"

9 years agoMerge "VNX Cinder driver Over Subscription Support"
Jenkins [Wed, 13 May 2015 11:40:56 +0000 (11:40 +0000)]
Merge "VNX Cinder driver Over Subscription Support"

9 years agoCinder os-force_detach api returns 500
PranaliDeore [Wed, 29 Apr 2015 12:31:04 +0000 (05:31 -0700)]
Cinder os-force_detach api returns 500

If invalid 'attachment_id' is passed to the os-force_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.

Closes-Bug: 1450431
Change-Id: I5e308d9f4b3772284caaedb3d2d0b3f7d25e1e5d

9 years agoMerge "Port block_device driver to use new driver model"
Jenkins [Wed, 13 May 2015 11:05:21 +0000 (11:05 +0000)]
Merge "Port block_device driver to use new driver model"

9 years agoMerge "Fix missing translations for log messages"
Jenkins [Wed, 13 May 2015 10:59:17 +0000 (10:59 +0000)]
Merge "Fix missing translations for log messages"

9 years agoCheck volume_backend in retype
John Griffith [Mon, 11 May 2015 19:55:41 +0000 (13:55 -0600)]
Check volume_backend in retype

The retype command will always attempt a call
to the driver.retype method.  In *most* cases this
will hit the default impl which returns False because
most drivers don't implement any retype (most, a few do).

The problem is that the drivers that do implement this in
most cases will iterate through the settings and just make
the changes that are valid and ignore the rest, and then
return True. I think this is "ok" for the drivers to do,
drivers should be allowed to be somewhat dumb WRT Cinder
state management and placement info.  If we give them an
invalid command (which we're doing here) then it's on us
higher up the chain IMO.

The result is that for example if you're trying to retype
from backend-a to backend-b and backend-a implements retype
it can return True telling the manager that the volume was
succesfully retyped, even when it wasn't.

There's a lot of confusion around this bug, YES the
filter scheduler is used to determine if the retype is
valid and to what host.  That's not the issue, the issue
is that regardless of the source and destination host settings
that are provided from the filter-scheduler, we always make the
call to the driver, introducing the opportunity for a false
success status being reported back.

This patch adds a very simple check between the source and
destination host settings as provided by the scheduler and in
the case that the two are "different"(not including pool designations)
we skip calling the driver.retype method altogether and fall through
to the migrate process.

This introduces a new hosts_are_equivalent method in
cinder.volume.utils

Change-Id: Idfd7dfa2284fcea66cf23c4273efda61ee8f7eba
Closes-Bug: #1452823

9 years agoMerge "LIO: Enable iSER for IPv6"
Jenkins [Tue, 12 May 2015 22:30:14 +0000 (22:30 +0000)]
Merge "LIO: Enable iSER for IPv6"

9 years agoMerge "LIO: Use rtslib property instead of private method"
Jenkins [Tue, 12 May 2015 22:26:01 +0000 (22:26 +0000)]
Merge "LIO: Use rtslib property instead of private method"

9 years agoFix overwrite of params in SF image cache update
John Griffith [Tue, 12 May 2015 21:48:03 +0000 (15:48 -0600)]
Fix overwrite of params in SF image cache update

In the update cache volume routine of the SolidFire driver
we're unintentionally re-initializing the params variable
when assigning volID as opposed to just appending another key
to it.

This patch fixes that.

Change-Id: I213776ee6aef6e5dee2807c19b7eea05af23d6c0
Closes-Bug: #1454425

9 years agoMerge "GlusterFS: Support over subscription in thin provisioning"
Jenkins [Tue, 12 May 2015 21:30:32 +0000 (21:30 +0000)]
Merge "GlusterFS: Support over subscription in thin provisioning"

9 years agoMerge "Check type match on create from source/snap"
Jenkins [Tue, 12 May 2015 19:39:10 +0000 (19:39 +0000)]
Merge "Check type match on create from source/snap"

9 years agoMerge "Remove Brick from cinder codebase"
Jenkins [Tue, 12 May 2015 17:25:17 +0000 (17:25 +0000)]
Merge "Remove Brick from cinder codebase"

9 years agoCheck type match on create from source/snap
John Griffith [Tue, 12 May 2015 14:03:27 +0000 (08:03 -0600)]
Check type match on create from source/snap

We used to allow creating from source/snap and specifying a
different type than the originating resource when doing so.
Once we started getting more drivers and more multi-backend
configurations, we implemented a check in volume.api that
took this away (broke it).  There have been a number of
arguments about whether this should be allowed or not, and
that it could fail after the rpc call leaving the user with
nothing more than a "failed" volume and no explanation as to
why.

This patch allows the capability, but checks validity at the
API layer before issuing the create call.  There are two
requirements for the new type specification to be valid:
1. There is only one backend (cinder-volume) topic configured
2. Both types in question specify the same volume_backend_name
If neither of these requirements are met, the user will receive
an "invalid type" error explaining that the type combination is
not compatible and that they should omit the type argument altogether.

Change-Id: I08bc5e9a8800ce3b27c7db90b7bff86d7d14359a
Closes-Bug: #1289931

9 years agoAdd patch for consistency group update in ProphetStor driver
rick.chen [Wed, 1 Apr 2015 07:46:58 +0000 (15:46 +0800)]
Add patch for consistency group update in ProphetStor driver

BP consistency-groups-kilo-update has introduced CG Modification
support. This patch is adding support for the new API in
ProphetStor driver.

This patch also included styling changes which replaced \ with
().

Change-Id: I256f320d2563b247a2493301638a7699b66a83b6
Implements: blueprint cg-modified-prophetstor

9 years agoLogging not using oslo.i18n guidelines (openstack)
Sean McGinnis [Tue, 12 May 2015 13:52:52 +0000 (08:52 -0500)]
Logging not using oslo.i18n guidelines (openstack)

Multi-patch set for easier chunks. This one addresses
the openstack cinder directory. That directory is synced
from oslo, so no changes made. Translation markers are
being used, so this just removes the hacking check
exclusion of that directory.

Some cleanup of a couple files are also included in this
patch for other directories that had been previously
covered.

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: If58a29c179e79e0b99e9da1d9a2ff1bc9c7b09e1
Closes-bug: 1433216
Closes-bug: 1431256

9 years agoRemove unused context parameter
Abhijeet Malawade [Tue, 12 May 2015 08:58:46 +0000 (01:58 -0700)]
Remove unused context parameter

Below methods from volume utils are not using context parameter:
1. _usage_from_volume
2. _usage_from_backup
3. _usage_from_snapshot
4. _usage_from_consistencygroup
5. _usage_from_cgsnapshot

So the context parameter is removed from all of these methods.

Closes-Bug: #1454212
Change-Id: Id87c5635db4a0e8df00f7bd7b87ffe60876f255c

9 years agoReplace suds test dependency with suds-jurko
Victor Stinner [Tue, 5 May 2015 12:50:31 +0000 (14:50 +0200)]
Replace suds test dependency with suds-jurko

suds-jurko is actively maintained (latest commit in december 2014) and supports
Python 3, whereas suds doesn't seem to be maintained anymore (last release in
2010).

suds-jurko is a drop-in replacement for suds, both packages provide the same
Python module.

suds-jurko is already in global requirements.

Change-Id: I646602624af7fbece277fe2305a3a541a456ed85

9 years agoMerge "Clean up failed clones in VMAX driver"
Jenkins [Tue, 12 May 2015 01:42:43 +0000 (01:42 +0000)]
Merge "Clean up failed clones in VMAX driver"

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

Fixed log translations in volume.drivers and volume.manager modules
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

Note: Any new occurrences added in master during the review can be
handled separately if they are not caught by hacking checks.

Partial-Bug: 1431256
Change-Id: I9b7b89097b296ea62b43f1d948dcf59e2e5a40c4

9 years agoMerge "Fix common misspellings"
Jenkins [Mon, 11 May 2015 20:03:52 +0000 (20:03 +0000)]
Merge "Fix common misspellings"

9 years agoMerge "Follow i18n guidelines in LIO target"
Jenkins [Mon, 11 May 2015 18:43:26 +0000 (18:43 +0000)]
Merge "Follow i18n guidelines in LIO target"

9 years agoMerge "Fix typo in log messages and comments"
Jenkins [Mon, 11 May 2015 15:46:38 +0000 (15:46 +0000)]
Merge "Fix typo in log messages and comments"

9 years agoMerge "GlusterFS: Renaming test case to test_mount_glusterfs"
Jenkins [Mon, 11 May 2015 15:46:24 +0000 (15:46 +0000)]
Merge "GlusterFS: Renaming test case to test_mount_glusterfs"

9 years agoRemove Brick from cinder codebase
Walter A. Boring IV [Wed, 11 Feb 2015 20:22:01 +0000 (12:22 -0800)]
Remove Brick from cinder codebase

This patch removes the existing brick initiator code from Cinder.
The new os-brick pypi library takes over.

The only thing left behind is the local_dev directory
as it's not part of os-brick.   We should possibly
move this elsewhere in a follow up patch.

Change-Id: Iaa22b30b852ea055a8698e0faaefa5caff84d090
Depends-On: I0096e76f958e04829b98d5c4c47f49c82b58d8aa

9 years agoFollow i18n guidelines in LIO target
Gorka Eguileor [Wed, 6 May 2015 12:44:19 +0000 (14:44 +0200)]
Follow i18n guidelines in LIO target

In LIO target some logging instances do not follow i18n guidelines
related to delayed string interpolation.

Change-Id: Ie184725ea9d83d676612ec82ea56013c0f15eed4

9 years agoNFS Backup: Correcting backup_sha_block_size_bytes help message
Bharat Kumar Kobagana [Mon, 11 May 2015 10:31:10 +0000 (16:01 +0530)]
NFS Backup: Correcting backup_sha_block_size_bytes help message

This patch corrects the help message of configuration parameter
"backup_sha_block_size_bytes".

Change-Id: I9d8082adad8ea13aec348a4cbb027ec16d4086a4

9 years agoFix common misspellings
Martin Kletzander [Thu, 19 Mar 2015 16:25:56 +0000 (17:25 +0100)]
Fix common misspellings

Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Change-Id: I44d53a807a6d2e9910daab939f4c0b7768c07ad9
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
9 years agoGlusterFS: Renaming test case to test_mount_glusterfs
Bharat Kumar Kobagana [Mon, 11 May 2015 07:19:21 +0000 (12:49 +0530)]
GlusterFS: Renaming test case to test_mount_glusterfs

With the patch [1], GlusterFS is now using mount method in
RemoteFsClient. That method mounts a gluster share only if it has
not already been mounted.

So, having test case name as
test_mount_glusterfs_should_mount_correctly, doesn't make sense now.
This patch changes its name to 'test_mount_glusterfs'.

[1] https://review.openstack.org/#/c/165424/

Change-Id: I33c16a8315a11fc16ab478d667490f3f73002ee8

9 years agoMerge "Add os-brick to cinder requirements.txt"
Jenkins [Sun, 10 May 2015 05:17:19 +0000 (05:17 +0000)]
Merge "Add os-brick to cinder requirements.txt"

9 years agoMerge "Remove unnecessary checks for encrypted types"
Jenkins [Sun, 10 May 2015 04:53:40 +0000 (04:53 +0000)]
Merge "Remove unnecessary checks for encrypted types"

9 years agoAdd new exception to retryables in SolidFire driver
John Griffith [Mon, 4 May 2015 17:31:15 +0000 (11:31 -0600)]
Add new exception to retryables in SolidFire driver

Newer versions of SolidFire Element OS introduce an
internal snapshot mechanism during cloning that also
includes a new exception (xNotReadyForIO).

This can be encountered when programmatically cloning
hundreds of large volumes. Typically this will succeed
on a retry of the clone command, so we should add this
new exception to our list of retryable exceptions in
the SolidFire driver.

Change-Id: I4e1ddf02087499b4efff6eabf2310a245bef93c9
Closes-Bug: #1451505

9 years agoMerge "Convert mox to mock: tests/compute/test_service.py"
Jenkins [Sat, 9 May 2015 10:48:13 +0000 (10:48 +0000)]
Merge "Convert mox to mock: tests/compute/test_service.py"

9 years agoMerge "Add volume status to error messages in backup create flow"
Jenkins [Fri, 8 May 2015 22:27:21 +0000 (22:27 +0000)]
Merge "Add volume status to error messages in backup create flow"

9 years agoConvert mox to mock: tests/compute/test_service.py
Bala Gopal Raj [Wed, 24 Dec 2014 12:15:21 +0000 (17:45 +0530)]
Convert mox to mock: tests/compute/test_service.py

Replace mox testing library by mock in the file
cinder/tests/compute/test_service.py

Implements: blueprint mox-to-mock-conversion
Change-Id: I48e7de0606318e4140928a8209691f752a3fbb0c

9 years agoMerge "Dell: Added support for update_migrated_volume"
Jenkins [Fri, 8 May 2015 21:23:50 +0000 (21:23 +0000)]
Merge "Dell: Added support for update_migrated_volume"

9 years agoMerge "GlusterFS: Using mount method in RemoteFsClient"
Jenkins [Fri, 8 May 2015 20:40:28 +0000 (20:40 +0000)]
Merge "GlusterFS: Using mount method in RemoteFsClient"

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 agoDell: Added support for update_migrated_volume
Tom Swanson [Thu, 7 May 2015 21:39:26 +0000 (16:39 -0500)]
Dell: Added support for update_migrated_volume

Added support for updated_migrated_volume to common driver.
Added rename_volume to dell_storagecenter_api to support it.
Added tests to test_dellsc.py and test_dellapi.py.

The only thing we do in this rename the newly migrated volume
destination volume on the Dell Storage center to be the same
as the original volume ID.  Since we identify the volumes
by volume ID this prevents them from being lost.

Change-Id: I531e24853cf5db8b7c34d91460d3abe786a652de
Closes-bug: 1452919

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 agoAdd volume status to error messages in backup create flow
Ivan Kolodyazhny [Wed, 8 Apr 2015 10:49:49 +0000 (13:49 +0300)]
Add volume status to error messages in backup create flow

If volume status is not 'available' we can't create a backup. Adding
current volume status to error message will make logs more
user-friendly.

Change-Id: Iab7a794a5104b28c54de23571f589fcf60e09c7d

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 agoAdd os-brick to cinder requirements.txt
Walter A. Boring IV [Thu, 7 May 2015 18:15:18 +0000 (11:15 -0700)]
Add os-brick to cinder requirements.txt

This patch adds the os-brick pypi library to
Cinder's requirements.txt as a precursor to the
removal of cinder/brick from the codebase.

Change-Id: Ib0c0996421af1c52fe66df5479768addc40412ad

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 agoLIO: Enable iSER for IPv6
Eric Harney [Tue, 17 Mar 2015 16:33:42 +0000 (12:33 -0400)]
LIO: Enable iSER for IPv6

Commit
  ffdfd0f Support iSER driver within the ISCSITarget flow
introduced support for iSER with LIO, but it only enables
iSER for the IPv4 portal.  If we created an IPv6 portal,
enable it there as well.

Change-Id: I1684bba6fc2b775acdee70b6ad0fc0568aaebeac

9 years agoLIO: Use rtslib property instead of private method
Eric Harney [Tue, 17 Mar 2015 16:36:01 +0000 (12:36 -0400)]
LIO: Use rtslib property instead of private method

We should not use private methods from a dependent library.

Change-Id: Idc0398ccd2974c56ac95294d6549b60c367a7338

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"