]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Fri, 25 Oct 2013 15:44:38 +0000 (15:44 +0000)]
Merge "Updated from global requirements"

11 years agoMerge "GlusterFS: set correct filename when cloning volume"
Jenkins [Fri, 25 Oct 2013 15:40:41 +0000 (15:40 +0000)]
Merge "GlusterFS: set correct filename when cloning volume"

11 years agoGlusterFS: set correct filename when cloning volume
Eric Harney [Thu, 24 Oct 2013 20:18:54 +0000 (16:18 -0400)]
GlusterFS: set correct filename when cloning volume

When cloning a volume, the volume[name] field was populated
with incorrect data, resulting in an unexpected filename containing
the volume data.  This results in failures of later operations on
that cloned volume.

Change-Id: I067ed44cebdc8e91e9ded326953fd0c99d003f05
Closes-Bug: #1244238

11 years agoMerge "Downgrade target create failure mesg to warning"
Jenkins [Thu, 24 Oct 2013 20:03:49 +0000 (20:03 +0000)]
Merge "Downgrade target create failure mesg to warning"

11 years agoMerge "Handle NotFound exceptions in API"
Jenkins [Thu, 24 Oct 2013 20:03:41 +0000 (20:03 +0000)]
Merge "Handle NotFound exceptions in API"

11 years agoHandle NotFound exceptions in API
John Griffith [Wed, 23 Oct 2013 20:08:30 +0000 (20:08 +0000)]
Handle NotFound exceptions in API

There were a number of calls in the API that
weren't catching NotFound exceptions.  The result is
unhandled exception traces and errors in the logs on good
runs in tempest.

Basicly any negative test that requests a non-existent element
would result in an unhandled exception.  This patch adds try/except
around the volume_api.getxxx calls in cinder/api/... methods to
clean this up.

Closes-bug: #1243485

Change-Id: I902acc7f4fdbc20fdb1a68697679417694c5533e

11 years agoUnit test fails in pbuilder environment
Michael Kerrin [Thu, 24 Oct 2013 15:17:47 +0000 (15:17 +0000)]
Unit test fails in pbuilder environment

When running tests inside a pbuilder environment we don't
have /dev/disk/by-path directory and so the test_host_driver
test fails. Fix test by overriding the isdir method to
return True and pretend that the directory is there.

Change-Id: Ifd39d796b7f250b1ec45227a4262ebb33d5656bf

11 years agoUpdated from global requirements
OpenStack Jenkins [Thu, 24 Oct 2013 13:15:31 +0000 (13:15 +0000)]
Updated from global requirements

Change-Id: I24d49ff79f5ed7364a47278179dcadbaf519aed1

11 years agoMerge "Rename "rtstool" to "cinder-rtstool", add dep"
Jenkins [Thu, 24 Oct 2013 08:15:34 +0000 (08:15 +0000)]
Merge "Rename "rtstool" to "cinder-rtstool", add dep"

11 years agoMerge "Brick connector fix for NFS drivers"
Jenkins [Thu, 24 Oct 2013 07:00:19 +0000 (07:00 +0000)]
Merge "Brick connector fix for NFS drivers"

11 years agoCheck if dir exists before calling listdir
John Griffith [Thu, 24 Oct 2013 00:04:51 +0000 (18:04 -0600)]
Check if dir exists before calling listdir

Changes along the way to how we clean up and detach after
copying an image to a volume exposed a problem in the cleanup
of the brick/initiator routines.

The clean up in the initiator detach was doing a blind listdir
of /dev/disk/by-path, however due to detach and cleanup being
called upon completion of the image download to the volume if
there are no other devices mapped in this directory the directory
is removed.

The result was that even though the create and copy of the image
was succesful, the HostDriver code called os.lisdir on a directory
that doesn't exist any longer and raises an unhandled exception that
cause the taskflow mechanism to mark the volume as failed.

Change-Id: I488755c1a49a77f42efbb58a7a4eb6f4f084df07
Closes-bug: #1243980

11 years agoMerge "VMware: Registering vmdk opts in global space"
Jenkins [Wed, 23 Oct 2013 22:33:01 +0000 (22:33 +0000)]
Merge "VMware: Registering vmdk opts in global space"

11 years agoRename "rtstool" to "cinder-rtstool", add dep
Eric Harney [Mon, 21 Oct 2013 18:55:43 +0000 (14:55 -0400)]
Rename "rtstool" to "cinder-rtstool", add dep

With rtstool merged into Cinder, it should use the
"cinder-" prefix.

Add to setup.cfg scripts section for installation.

Additionally, add the rtslib-fb>=2.1.39 dependency
to Cinder's runtime requirements.

Implements blueprint: lio-rtslib

Change-Id: I715db09cb86145c6769c345f59ecda4d18b5e659

11 years agoDowngrade target create failure mesg to warning
John Griffith [Wed, 23 Oct 2013 20:00:35 +0000 (20:00 +0000)]
Downgrade target create failure mesg to warning

Since this will occur more often than we would like and
almost always recovers, change the log level to warning
instead of error.

This is to comply with the desire of the QA team to eradicate
error messages from succesful tempest runs.

Change-Id: If1a841bbeb9a36ff7e103a0e9aff67fda66a7f3b
Closes-Bug: #1243840

11 years agoMerge "Add openstack/common/crypto from OSLO"
Jenkins [Wed, 23 Oct 2013 06:45:02 +0000 (06:45 +0000)]
Merge "Add openstack/common/crypto from OSLO"

11 years agoMerge "Revert "remove cinder-rtstool because of rtslib dep""
Jenkins [Wed, 23 Oct 2013 06:08:02 +0000 (06:08 +0000)]
Merge "Revert "remove cinder-rtstool because of rtslib dep""

11 years agoMerge "Remove duplication of brick.iscsi in brick.iser"
Jenkins [Wed, 23 Oct 2013 06:06:16 +0000 (06:06 +0000)]
Merge "Remove duplication of brick.iscsi in brick.iser"

11 years agoMerge "Nexenta drivers ignore "does not exist" exception"
Jenkins [Wed, 23 Oct 2013 06:06:07 +0000 (06:06 +0000)]
Merge "Nexenta drivers ignore "does not exist" exception"

11 years agoVMware: Registering vmdk opts in global space
Kartik Bommepally [Mon, 21 Oct 2013 09:18:22 +0000 (02:18 -0700)]
VMware: Registering vmdk opts in global space

Registering vmdk_opts in the patch. This will make sure the documentation
tool will auto generates a table for the driver config params.

Closes-Bug: #1242547

Change-Id: Ic12126ad5283e37113e9f75e190fa92a9277ca7f

11 years agoMerge "NetApp fix mirrored stats"
Jenkins [Wed, 23 Oct 2013 05:11:16 +0000 (05:11 +0000)]
Merge "NetApp fix mirrored stats"

11 years agoMerge "NetApp fix for compression and dedup stats"
Jenkins [Wed, 23 Oct 2013 01:36:28 +0000 (01:36 +0000)]
Merge "NetApp fix for compression and dedup stats"

11 years agoNexenta drivers ignore "does not exist" exception
Victor Rodionov [Wed, 16 Oct 2013 18:00:16 +0000 (11:00 -0700)]
Nexenta drivers ignore "does not exist" exception

Ignore "does not exist" exception in NFS and iSCSI driver,
delete_volume and delete_snapshot methods.
This exceptions means that the volume or the snapshot not exists in the
backend, so we can avoid "delete" errors, when the resource was already
deleted.

Closes-Bug: 1240650
Change-Id: I3b2684097dcb95ba50a67c94a353dc3f17374777

11 years agoMerge "Let GPFS driver to rename snapshot with root permission"
Jenkins [Tue, 22 Oct 2013 20:47:44 +0000 (20:47 +0000)]
Merge "Let GPFS driver to rename snapshot with root permission"

11 years agoMerge "Drop auth_token configs for api-paste.ini."
Jenkins [Tue, 22 Oct 2013 20:44:56 +0000 (20:44 +0000)]
Merge "Drop auth_token configs for api-paste.ini."

11 years agoMerge "Fix volume transfer href issue"
Jenkins [Tue, 22 Oct 2013 20:35:27 +0000 (20:35 +0000)]
Merge "Fix volume transfer href issue"

11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Tue, 22 Oct 2013 17:25:46 +0000 (17:25 +0000)]
Merge "Updated from global requirements"

11 years agoAdd openstack/common/crypto from OSLO
Elena Ezhova [Wed, 16 Oct 2013 11:55:21 +0000 (15:55 +0400)]
Add openstack/common/crypto from OSLO

Add cinder/openstack/common/crypto/__init__.py and
cinder/openstack/common/crypto/utils.py.

They are needed in cinder/openstack/common/rpc/securemessage,
which is updated in the following commits.

Oslo version: 4987d09a28c986bdca0921a1d0f062ac9328904f

Change-Id: I15e7ce3b84831fd247ea155a3b15829348087830

11 years agoMerge "Provide gettext _ in missing locations"
Jenkins [Tue, 22 Oct 2013 12:03:53 +0000 (12:03 +0000)]
Merge "Provide gettext _ in missing locations"

11 years agoFix volume transfer href issue
liudong [Tue, 22 Oct 2013 10:37:50 +0000 (18:37 +0800)]
Fix volume transfer href issue

The volume transfer collection in url defined as "os-volume-tranfer",
but I got another define "tranfers" in href url. They are different.
So it should be modify.

Change-Id: I69a43012f2bb70ce5fc7b0331d2759527a261170
closes-bug: #1242980

11 years agoRemove duplication of brick.iscsi in brick.iser
Ann Kamyshnikova [Tue, 3 Sep 2013 13:44:50 +0000 (17:44 +0400)]
Remove duplication of brick.iscsi in brick.iser

TargetAdmin and TgtAdm in iser is mostly a copy of TargetAdmin and
TgtAdm in iscsi.

Change-Id: I8d89a35c478485370b41f4dfd376de07b9fc9314

11 years agoMerge "Add extend_volume for Huawei drivers"
Jenkins [Tue, 22 Oct 2013 04:49:55 +0000 (04:49 +0000)]
Merge "Add extend_volume for Huawei drivers"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 22 Oct 2013 03:03:16 +0000 (03:03 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Uses oslo.imageutils"
Jenkins [Tue, 22 Oct 2013 03:01:14 +0000 (03:01 +0000)]
Merge "Uses oslo.imageutils"

11 years agoMerge "Add auth_token settings to cinder.conf.sample."
Jenkins [Tue, 22 Oct 2013 02:48:44 +0000 (02:48 +0000)]
Merge "Add auth_token settings to cinder.conf.sample."

11 years agoDrop auth_token configs for api-paste.ini.
Dan Prince [Sun, 20 Oct 2013 15:47:16 +0000 (11:47 -0400)]
Drop auth_token configs for api-paste.ini.

We now prefer to use cinder.conf to configure keystoneclients
auth_token configs.

Also, Devstack has now been update to allow this:

https://review.openstack.org/#/c/52259/

Related-Bug #1240753

Change-Id: I2a4b300af37eddf5010b97ca796f0552941642a8

11 years agoRevert "remove cinder-rtstool because of rtslib dep"
Eric Harney [Thu, 10 Oct 2013 20:13:44 +0000 (16:13 -0400)]
Revert "remove cinder-rtstool because of rtslib dep"

This reverts commit b66c3361be2095186e19b0d44e49a8b2c48f7235.

Dependencies of this code (rtslib-fb) are now Apache-licensed,
which resolves the previous issue with this code being in-tree.

This patch is a direct revert, other patches will follow to
line up changes that have occurred between b66c336 and now.

Conflicts:
setup.py

Blueprint: lio-rtslib

Change-Id: I14786bddf419d98ff7c468b185462f5387dbbba1

11 years agoMerge "Update openstack/common/notifier"
Jenkins [Mon, 21 Oct 2013 16:42:42 +0000 (16:42 +0000)]
Merge "Update openstack/common/notifier"

11 years agoMerge "Fix generate conf script can't handle multistropt"
Jenkins [Mon, 21 Oct 2013 16:12:24 +0000 (16:12 +0000)]
Merge "Fix generate conf script can't handle multistropt"

11 years agoLet GPFS driver to rename snapshot with root permission
chaochin [Mon, 21 Oct 2013 10:36:32 +0000 (05:36 -0500)]
Let GPFS driver to rename snapshot with root permission

Deleting GPFS volume snapshot operation fails, because cinder
volume is not running with root permission.

Change-Id: Id00357030da171fddbc6abf82603ceabe4db73ff
Closes-Bug: #1242549

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 21 Oct 2013 06:14:00 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: Idf752d935353317e59893a3885d32545130968a4

11 years agoBrick connector fix for NFS drivers
Navneet Singh [Sun, 20 Oct 2013 13:00:36 +0000 (18:30 +0530)]
Brick connector fix for NFS drivers

This change fixes the error that comes
while getting brick connector and attaching volumes
in case of NFS drivers in cinder. The attribute for
mount point base was not passed to attach_volume method
as the connector initialization logic is common for all
types of protocols. It is fixed by populating
the required parameter in the RemoteFsConnector
for NFS drivers.

Change-Id: I8601326b318f6f8c53a03610f1b4f2bfd14070ff
Closes-Bug: #1238085

11 years agoUpdated from global requirements
OpenStack Jenkins [Sat, 19 Oct 2013 23:58:37 +0000 (23:58 +0000)]
Updated from global requirements

Change-Id: Ic96db4b4b462badc2fcbee62b40ebf3997ed6adf

11 years agoNetApp fix mirrored stats
Navneet Singh [Sat, 19 Oct 2013 18:04:15 +0000 (23:34 +0530)]
NetApp fix mirrored stats

This fixes the incorrect reporting of mirrorred
statistics for NetApp iscsi and nfs backend.
The uninitialized and broken snapmirror is
not reported and only snapmirrored state
is reported back.

Closes-Bug:#1242808

Change-Id: I4b9f788e1f99b78d12db23bd92b6a277d5f64cb3

11 years agoNetApp fix for compression and dedup stats
Navneet Singh [Sat, 19 Oct 2013 13:21:01 +0000 (18:51 +0530)]
NetApp fix for compression and dedup stats

This change fixes the incorrect stats reported
for compression and deduplication by NetApp
iscsi and nfs backend.

Change-Id: I3e97d953b3ea2231c3eb1f950b0ca6705b3b2286
Closes-Bug:#1236839

11 years agoFix generate conf script can't handle multistropt
Xingchao Yu [Fri, 18 Oct 2013 05:50:18 +0000 (13:50 +0800)]
Fix generate conf script can't handle multistropt

In case MultiStrOpt option's value is empty list, current extract_opts.py
logic will ignore it. This patch aims to update func _print_opt:

add the multistropt's option_name in conf even its value is empty list.

This bug also affects https://bugs.launchpad.net/cinder/+bug/1240783

Closes-bug: #1241348

Change-Id: Ica1da0cd20c97a587964cb0059836d609a440145

11 years agoAdd auth_token settings to cinder.conf.sample.
Dan Prince [Fri, 18 Oct 2013 13:23:38 +0000 (09:23 -0400)]
Add auth_token settings to cinder.conf.sample.

Updates our example config file so that it includes configuration
settings for the auth_token middleware.

A step towards using cinder.conf instead of the api-paste.ini config file
for authtoken configuration.

Once https://review.openstack.org/#/c/52259/ lands I'll push another
review which removes the settings from api-paste.ini (which takes priority).

Related-Bug #1240753

Change-Id: I6636d33ee522757145ac97fc354324a8b9379700

11 years agoAdd extend_volume for Huawei drivers
zhangchao010 [Fri, 18 Oct 2013 08:32:56 +0000 (16:32 +0800)]
Add extend_volume for Huawei drivers

This patch adds extend_volume function for Huawei drivers.

Huawei T driver needs to create a slave LUN for the extended LUN.
And accordingly it needs to delete all these slave LUNs before deleting
the extended LUN.

HVS driver just sends a rest command to finish extending volume.

Change-Id: Iae17dba8c4d88ec09eb52b4a14bd17bc5a2c1ccc

11 years agoUpdate openstack/common/notifier
Elena Ezhova [Thu, 17 Oct 2013 09:04:20 +0000 (13:04 +0400)]
Update openstack/common/notifier

Oslo version: 5e765b2546dab9d04e4641d92296bfa3d3b17ebf

Change-Id: I679a0f3a953cbe1904c3fd32bf33b5a656c2a938

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 17 Oct 2013 06:13:46 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I48307cde63b774a611c2675a1e9e67cbd518d17c

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 17 Oct 2013 03:43:31 +0000 (03:43 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Cinder extension to add used resources in absolute limits"
Jenkins [Thu, 17 Oct 2013 03:39:55 +0000 (03:39 +0000)]
Merge "Cinder extension to add used resources in absolute limits"

11 years agoMerge "Storwize: Fix iogrp availability check"
Jenkins [Wed, 16 Oct 2013 22:42:31 +0000 (22:42 +0000)]
Merge "Storwize: Fix iogrp availability check"

11 years agoMerge "Nexenta NFS driver: caching for appliance volroot"
Jenkins [Wed, 16 Oct 2013 22:42:23 +0000 (22:42 +0000)]
Merge "Nexenta NFS driver: caching for appliance volroot"

11 years agoProvide gettext _ in missing locations
John Griffith [Wed, 16 Oct 2013 02:51:07 +0000 (20:51 -0600)]
Provide gettext _ in missing locations

A while back a change was merged that moved
our shortcut for gettext out of __init__
(change here: If4125d6bcbde63df95de129ac5c83b4a6d6f130a)

This worked out fine for the most part but broke the sphinx doc
builder for a number of files.  This patch just adds the proper
import to each of these files to get the builder working correctly
again.

Change-Id: Ifed20d309566be456c9519294714ccb45de76e00
Closes-Bug: #1209406

11 years agoNexenta NFS driver: caching for appliance volroot
Victor Rodionov [Thu, 10 Oct 2013 20:21:44 +0000 (00:21 +0400)]
Nexenta NFS driver: caching for appliance volroot

Added caching for NexentaStor appliance 'volroot' value.

Change-Id: I3803981cc8c9b6c47dc9fccc6b2414e21d9d6285

11 years agoMerge "Fix indentation errors in drivers"
Jenkins [Wed, 16 Oct 2013 16:36:40 +0000 (16:36 +0000)]
Merge "Fix indentation errors in drivers"

11 years agoMerge "Fix Huawei HVS driver AttributeError"
Jenkins [Wed, 16 Oct 2013 16:12:46 +0000 (16:12 +0000)]
Merge "Fix Huawei HVS driver AttributeError"

11 years agoCinder extension to add used resources in absolute limits
Olivier Pilotte [Thu, 3 Oct 2013 22:10:40 +0000 (18:10 -0400)]
Cinder extension to add used resources in absolute limits

* totalVolumesUsed
* totalGigabytesUsed

DocImpact
Implements: blueprint cinder-used-resources-in-absolute-limits
Change-Id: I525a61043ce2f906c424738ab361ee7396f072b5

11 years agoFix Huawei HVS driver AttributeError
zhangchao010 [Mon, 14 Oct 2013 05:08:02 +0000 (13:08 +0800)]
Fix Huawei HVS driver AttributeError

This patch checks the iSCSI port info and raises an exception
if it can not get the port info from the configuration.

Closes-bug: #1237185
Change-Id: I341ccbe77abd25421e5ee0b2d07ace3759fbccef

11 years agoStorwize: Fix iogrp availability check
Avishay Traeger [Wed, 16 Oct 2013 08:14:22 +0000 (11:14 +0300)]
Storwize: Fix iogrp availability check

Do not check if vdisk_count is greater than zero to determine iogrp
availability. This is wrong, and leads to the driver not being able to
use empty iogrps.

Change-Id: Ia73189a11cfcc0641c1527293675361c4e78443f
Closes-Bug: #1240395

11 years agoMerge "Don't zero out thin provisioned LV's on delete"
Jenkins [Wed, 16 Oct 2013 06:25:53 +0000 (06:25 +0000)]
Merge "Don't zero out thin provisioned LV's on delete"

11 years agoMerge "Nexenta NFS volume driver folder auto sharing"
Jenkins [Wed, 16 Oct 2013 06:21:32 +0000 (06:21 +0000)]
Merge "Nexenta NFS volume driver folder auto sharing"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 16 Oct 2013 06:13:33 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I79473cf2987822f655b674bc49ad60ebb840a87f

11 years agoUses oslo.imageutils
Zhongyue Luo [Tue, 13 Aug 2013 03:32:00 +0000 (11:32 +0800)]
Uses oslo.imageutils

Commit 035668 had the QemuImgInfo class moved to Oslo.
This class diverged from Nova and then missed some changes
made in Nova since then. The two projects will be able to use
identical classes by adapting imageutils.

Change-Id: I6ed352c42e45d32de94066c82f83e7332d4a98ed

11 years agoMerge "Fix Huawei drivers to support other host OSs"
Jenkins [Wed, 16 Oct 2013 03:55:50 +0000 (03:55 +0000)]
Merge "Fix Huawei drivers to support other host OSs"

11 years agoMerge "Fix lvm.extend_volume to pass Gig suffix"
Jenkins [Wed, 16 Oct 2013 03:29:10 +0000 (03:29 +0000)]
Merge "Fix lvm.extend_volume to pass Gig suffix"

11 years agoMerge "Initialize shares variables for RemoteFsDriver(s)"
Jenkins [Wed, 16 Oct 2013 03:27:03 +0000 (03:27 +0000)]
Merge "Initialize shares variables for RemoteFsDriver(s)"

11 years agoDon't zero out thin provisioned LV's on delete
John Griffith [Wed, 16 Oct 2013 01:39:22 +0000 (19:39 -0600)]
Don't zero out thin provisioned LV's on delete

Thin provisioned LV's don't need secure delete to protect
from data leakage.  Also, zeroing these out kinda defeats
the purpose of using thing provisioning.

This patch add a check for the lvm type and if it's thin simply
returns from the lvm.clear_volume() method.

Change-Id: Ie6764209018152565295291efc6fbba553698ae6
Closes-Bug: #1240299

11 years agoFix lvm.extend_volume to pass Gig suffix
John Griffith [Wed, 16 Oct 2013 01:13:45 +0000 (19:13 -0600)]
Fix lvm.extend_volume to pass Gig suffix

The extend function in the lvm driver was not converting
the cinder size value to Gigabytes before passing the call
to the vg module.  The result was that we would attempt to
extend a volume to "new size in Megabytes" which of course
is less than the current size since we do a Gigabyte string
conversion on create and everywhere else.

This change makes sure we pass the integer change through
the sizestr method to get the G suffix needed to work properly.

Change-Id: I070962a3aa7038f612e19a93ccaa60cbc13008f6
Closes-Bug: #1240287

11 years agoNexenta NFS volume driver folder auto sharing
Victor Rodionov [Fri, 6 Sep 2013 21:47:04 +0000 (01:47 +0400)]
Nexenta NFS volume driver folder auto sharing

1. Auto sharing for NFS enclosing folders, this helps to avoid errors if user
forgot to share enclosing directory.

2. Added version history to NexentaNfsDriver doc string.

Change-Id: I9aa2a7b8760c687985aa11d85715188f1c1622f9

11 years agoFK lookup failures during migration
John Griffith [Tue, 15 Oct 2013 19:57:48 +0000 (13:57 -0600)]
FK lookup failures during migration

There are a couple of cases where migrations have failed
upgrading from Grizzly to Havana, this seems to be isolated
to a couple of migrations so far and the error message is a
failure to lookup/associate the volume-id FK dependency.

It appears that this is caused by not setting the charset
in the migration, so the result is that the initial db setup
uses utf8 and the migrations are using the default latin1.

This patch goes through all of the migrations in Havana that
specify InnoDB and explicitly sets the charset to utf8 to match
the volumes table (and the other original tables).

Change-Id: I43b219ff5e4eea10a7391ad65ef68a80b7460370
Closes-Bug: #1233861

11 years agoInitialize shares variables for RemoteFsDriver(s)
Eric Harney [Wed, 2 Oct 2013 18:11:31 +0000 (14:11 -0400)]
Initialize shares variables for RemoteFsDriver(s)

self.shares and self._mounted_shares are used by various methods
for RemoteFs-based drivers, but may not be instantiated early enough.

Initialize them in __init__ to ensure they always exist.  (Also fixes
pylint warnings.)

Closes-Bug: #1239741
Change-Id: I0ef884c28b82b7f694cf8a0fb4629c835da11c91

11 years agoFix indentation errors in drivers
Eric Harney [Mon, 14 Oct 2013 17:37:25 +0000 (13:37 -0400)]
Fix indentation errors in drivers

Just some pylint fixes.

Change-Id: I1f851726a7c8285884121da097be574c447fa39c

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 14 Oct 2013 06:13:15 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: Iea22697e85a260fea4893a45535ec44f8008fb98

11 years agoFix Huawei drivers to support other host OSs
zhangchao010 [Mon, 14 Oct 2013 04:47:44 +0000 (12:47 +0800)]
Fix Huawei drivers to support other host OSs

Huawei drivers create Linux hosts by default when attaching volumes.
This patch makes them also support Windows, XenServer, AIX, etc.
The default OS is still Linux if it is not specified.

Users need to configure the host OS types in Huawei XML configuration
file. They need to set the items like this:
<Host OSType="Windows" HostIP="10.10.0.1, 10.10.0.2, ..." />
<Host .../>

When attaching a volume, the driver will get the host IP from nova. We
compare that IP with the IP in "HostIP" to get the corresponding OS type.

Closes-bug: #1229759
Change-Id: I36fd52b97f790f1c68eaf24b6c12e7ef5d16145d

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 13 Oct 2013 09:04:59 +0000 (09:04 +0000)]
Merge "Imported Translations from Transifex"

11 years agoFix all occurences of H404 Hacking warning
Dirk Mueller [Sat, 29 Jun 2013 11:38:13 +0000 (13:38 +0200)]
Fix all occurences of H404 Hacking warning

This fixes all triggers of hacking 0.6.x's warning:
H404 - multi line docstring should start with a summary.
and enables gating check on H404.

Change-Id: I034bd1f05da3f279d8d79aa14a7f6ce8bef5047c

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 13 Oct 2013 06:13:06 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I5052c7a1dc3de38fef14046078d93c583c7cee73

11 years agoMerge "Remove option count from sample configuration"
Jenkins [Sun, 13 Oct 2013 05:55:19 +0000 (05:55 +0000)]
Merge "Remove option count from sample configuration"

11 years agoMerge "Remove unused 'initiator' imports"
Jenkins [Sun, 13 Oct 2013 05:31:12 +0000 (05:31 +0000)]
Merge "Remove unused 'initiator' imports"

11 years agoMerge "Refactor Nexenta iSCSI driver"
Jenkins [Sun, 13 Oct 2013 05:29:00 +0000 (05:29 +0000)]
Merge "Refactor Nexenta iSCSI driver"

11 years agoMerge "VMware: Fixed upload-to-image for available volume"
Jenkins [Sun, 13 Oct 2013 05:28:06 +0000 (05:28 +0000)]
Merge "VMware: Fixed upload-to-image for available volume"

11 years agoMerge "Fix tests to work in debug mode"
Jenkins [Sun, 13 Oct 2013 05:15:17 +0000 (05:15 +0000)]
Merge "Fix tests to work in debug mode"

11 years agoVMware: Fixed upload-to-image for available volume
Subramanian Neelakantan [Wed, 9 Oct 2013 10:53:52 +0000 (03:53 -0700)]
VMware: Fixed upload-to-image for available volume

Cinder generally does not allow upload-to-image operation on a volume
that is 'in-use'. This can however be over-ridden using the '--force True'
flag. The VMware driver cannot support upload-to-image when the volume is
in-use. This is a restriction for the VMware driver alone. When the user forces
an upload on a volume that is 'in-use' the Cinder api layer sets the volume
status to 'uploading' and calls into the driver code to upload. In this
scenario the VMware driver needs to fail the operation.

The current driver code here does this check wrongly by looking for volume
status of 'in-use'. Fixing this check to identify an in-use volume correctly.

Fixes bug: 1237338

Change-Id: If54edfdc242a7a1bff442b6bb4c5a9865eede1dc

11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Fri, 11 Oct 2013 22:26:27 +0000 (22:26 +0000)]
Merge "Updated from global requirements"

11 years agoMerge "Remove obsolete redhat-eventlet.patch"
Jenkins [Fri, 11 Oct 2013 22:21:42 +0000 (22:21 +0000)]
Merge "Remove obsolete redhat-eventlet.patch"

11 years agoRefactor Nexenta iSCSI driver
Victor Rodionov [Wed, 4 Sep 2013 22:02:51 +0000 (02:02 +0400)]
Refactor Nexenta iSCSI driver

1) Rename volume.py to iscsi.py
2) Rename NexentaDriver to NexentaISCSIDriver

DocImpact
Change-Id: I117d881e1f5a70ea50e44c4a409e65961b85978f

11 years agoRemove unused 'initiator' imports
Eric Harney [Fri, 11 Oct 2013 21:43:38 +0000 (17:43 -0400)]
Remove unused 'initiator' imports

Remove unused 'initiator' imports from driver.py and manager.py

Change-Id: I4bb3099d6099588d242fae7ed92d0bd9f7126fbb

11 years agoMerge "Remove whitespace from cfg options"
Jenkins [Fri, 11 Oct 2013 21:21:13 +0000 (21:21 +0000)]
Merge "Remove whitespace from cfg options"

11 years agoMerge "Fix typo in cinder.volume.drivers.nexenta.__init__"
Jenkins [Fri, 11 Oct 2013 21:20:11 +0000 (21:20 +0000)]
Merge "Fix typo in cinder.volume.drivers.nexenta.__init__"

11 years agoFix tests to work in debug mode
Michael Kerrin [Thu, 10 Oct 2013 13:16:37 +0000 (13:16 +0000)]
Fix tests to work in debug mode

Avoid oslo.cfg errors when running the tests in debug mode, with
run_tests.sh -d, or directly with testtools.

Change-Id: I7c8b24673ac2d502b219a00ce8af93111348b1ff

11 years agoUpdated from global requirements
OpenStack Jenkins [Thu, 10 Oct 2013 20:24:27 +0000 (20:24 +0000)]
Updated from global requirements

Change-Id: Ic2508231560ea1bd7d8c8df01193846bec4f70cc

11 years agoRemove whitespace from cfg options
Andreas Jaeger [Thu, 10 Oct 2013 18:51:51 +0000 (20:51 +0200)]
Remove whitespace from cfg options

This extra whitespace will cause warnings in the openstack-manuals,
thus remove it.

Change-Id: I36c0e0d8456bb78384620362b1c1cedb053c6a3c

11 years agoRemove option count from sample configuration
Eric Harney [Thu, 10 Oct 2013 19:01:25 +0000 (15:01 -0400)]
Remove option count from sample configuration

This doesn't serve much purpose, and makes it much harder than it
should be to merge multiple patches that change the sample config.

Change-Id: I44895bfbf4a7c9af30040f84b17a97f8e2f4e5b6

11 years agoMerge "improves lvm version parsing for customised builds"
Jenkins [Thu, 10 Oct 2013 17:05:38 +0000 (17:05 +0000)]
Merge "improves lvm version parsing for customised builds"

11 years agoMerge "Clean up comparison assertions"
Jenkins [Thu, 10 Oct 2013 16:57:25 +0000 (16:57 +0000)]
Merge "Clean up comparison assertions"

11 years agoMerge "long flashcopy operation may block volume service"
Jenkins [Thu, 10 Oct 2013 15:57:44 +0000 (15:57 +0000)]
Merge "long flashcopy operation may block volume service"

11 years agoimproves lvm version parsing for customised builds
Giulio Fidente [Thu, 10 Oct 2013 12:59:44 +0000 (14:59 +0200)]
improves lvm version parsing for customised builds

supports_thin_provisioning now uses a regexp to ensure parsing of
lvm version succeeds when the build is customised; also adds a test
for a customised string parsing

Closes-Bug: #1237994
Change-Id: I49049a58bbdb5315b9d2d7c259a9324ca15d78cb

11 years agoMerge "use cinder utils.get_root_helper"
Jenkins [Thu, 10 Oct 2013 00:02:27 +0000 (00:02 +0000)]
Merge "use cinder utils.get_root_helper"

11 years agoFix typo in cinder.volume.drivers.nexenta.__init__
Victor Rodionov [Tue, 8 Oct 2013 15:45:35 +0000 (19:45 +0400)]
Fix typo in cinder.volume.drivers.nexenta.__init__

s/Mikhaik/Mikhail/

Change-Id: I78f53f4a5f73af03657a21302021145d42faed0c