]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoAdd support for Purity Protection Groups to PureISCSIDriver
Patrick East [Fri, 5 Dec 2014 18:18:46 +0000 (10:18 -0800)]
Add support for Purity Protection Groups to PureISCSIDriver

We will be needing access to the Protection Group features of Purity to
enable features like Replication and Consistency Groups. To do this we
need to add new helpers for the FlashArray object for the required REST
API methods.

DocImpact: To bring in pgroup support we will need to bump up the
required REST API version to 1.2+ and remove support for 1.0 and 1.1

Implements: blueprint pure-iscsi-add-pgroup-support
Change-Id: Ia446615e0c03b91fc1da75489855e77c29639efa

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Thu, 4 Dec 2014 09:17:57 +0000 (09:17 +0000)]
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code. No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.
eighth commit of this kind
This is the last run through to pick up the ones that were missed

Change-Id: Ifd9d647175a840939bf01fa3bcecfa6384965e3b
Closes-Bug: #1384312

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 8 Dec 2014 23:46:14 +0000 (23:46 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Fixes intermittent NFS driver mount failure"
Jenkins [Mon, 8 Dec 2014 22:41:04 +0000 (22:41 +0000)]
Merge "Fixes intermittent NFS driver mount failure"

9 years agoMerge "Inherit RequestContext from oslo"
Jenkins [Mon, 8 Dec 2014 21:44:40 +0000 (21:44 +0000)]
Merge "Inherit RequestContext from oslo"

9 years agoMerge "NetApp fix vol migration unusability"
Jenkins [Mon, 8 Dec 2014 19:12:36 +0000 (19:12 +0000)]
Merge "NetApp fix vol migration unusability"

9 years agoMerge "Fix 3PAR driver attach error when host name missing"
Jenkins [Mon, 8 Dec 2014 17:46:59 +0000 (17:46 +0000)]
Merge "Fix 3PAR driver attach error when host name missing"

9 years agoFixes intermittent NFS driver mount failure
Tom Barron [Wed, 26 Nov 2014 21:01:14 +0000 (16:01 -0500)]
Fixes intermittent NFS driver mount failure

During cinder volume driver initialization, NFS drivers often
fail to mount the NFS share backing their volumes, complaining
that the share in question is 'busy or already mounted'.

This commit introduces a retry loop around the ensure_mounted()
call inside set_nas_security_options() so that if there is contention
between volume process and backup process mounting the same share
the driver will not be stopped from loading.

Change-Id: I672433c1c31f420e5dcdbe565db3bb29af3abe7b
Closes-bug: 1395823

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 8 Dec 2014 16:17:14 +0000 (16:17 +0000)]
Updated from global requirements

Change-Id: I305473aa6a64ea685a7e23aace3c91df983e8fb5

9 years agoMerge "Fix a clone volume problem in VMAX driver"
Jenkins [Mon, 8 Dec 2014 05:32:21 +0000 (05:32 +0000)]
Merge "Fix a clone volume problem in VMAX driver"

9 years agoMerge "Allow HostState to handle empty capabilities"
Jenkins [Sun, 7 Dec 2014 19:44:07 +0000 (19:44 +0000)]
Merge "Allow HostState to handle empty capabilities"

9 years agoMerge "Improve unit tests for cinder/volume/utils.py"
Jenkins [Sun, 7 Dec 2014 19:39:28 +0000 (19:39 +0000)]
Merge "Improve unit tests for cinder/volume/utils.py"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 7 Dec 2014 17:16:17 +0000 (17:16 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Remove the cinder.conf.sample file"
Jenkins [Sun, 7 Dec 2014 16:31:29 +0000 (16:31 +0000)]
Merge "Remove the cinder.conf.sample file"

9 years agoMerge "Fix for typo in Purity Host create/delete methods in PureISCSIDriver"
Jenkins [Sun, 7 Dec 2014 15:41:40 +0000 (15:41 +0000)]
Merge "Fix for typo in Purity Host create/delete methods in PureISCSIDriver"

9 years agoMerge "VMware: Add missing storage profile requirement"
Jenkins [Sun, 7 Dec 2014 15:34:38 +0000 (15:34 +0000)]
Merge "VMware: Add missing storage profile requirement"

9 years agoRemove the cinder.conf.sample file
John Griffith [Fri, 5 Dec 2014 04:03:04 +0000 (21:03 -0700)]
Remove the cinder.conf.sample file

We removed the conf_uptodate checks however we didn't
remove the cinder.conf.sample file, but we should.

Now that we're not checking it, it's guaranteed that it will
most certainly be "wrong".  So, this patch removes it, we'll
update the README.conf.sample file if/when we have an auto
published version available.

Change-Id: I0a04f82a843ce795ec7518b58a3677ce3f2a314d

9 years agoFix for typo in Purity Host create/delete methods in PureISCSIDriver
Patrick East [Fri, 5 Dec 2014 23:25:21 +0000 (15:25 -0800)]
Fix for typo in Purity Host create/delete methods in PureISCSIDriver

When refactoring the string manipulation methods there was a typo
introduced in:

https://git.openstack.org/cgit/openstack/cinder/commit/?
id=1ebe1bddd0a02e9efaa05c8ec9d71a299b6877e1

That change modified the methods to create/delete hosts in purity. The
REST API url was incorrectly pointing to /host/<host_name>/volume
instead of /host/<host_name>

This commit fixes the url and adds in unit tests to prevent this type of
regression in the future.

Change-Id: Iba24fc0a36e01e1d163b398bf32c41fbb9103861
Closes-Bug: 1399820

9 years agoFix a clone volume problem in VMAX driver
Xing Yang [Fri, 5 Dec 2014 22:55:28 +0000 (17:55 -0500)]
Fix a clone volume problem in VMAX driver

If the source volume contains meta members of different sizes,
create cloned volume will fail with error "ERROR_FAMILY_NOT_SUPPORTED".
This patched fixed this problem.

Change-Id: I92e7e8b56e3a21644aa2bff3288c1bdc80d45cc6
Closes-Bug: #1391205

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 5 Dec 2014 23:59:27 +0000 (23:59 +0000)]
Updated from global requirements

Change-Id: I8f8b1d782549d72e1ff0e42ae36fc271f7eeea04

9 years agoFix 3PAR driver attach error when host name missing
Anthony Lee [Thu, 4 Dec 2014 23:46:53 +0000 (15:46 -0800)]
Fix 3PAR driver attach error when host name missing

In some cases an error was being thrown by the 3PAR driver
when the 'name' property returned from queryHost was
missing.  This change adds a check so that the driver
reacts properly when this occurs.  Also removed an unneeded
warning output that was still in the FC driver.

This patch is related to this merged bug fix:
https://review.openstack.org/#/c/138212/

Closes-Bug: 1398206
Change-Id: I6593dc68616f55496c42d625968adfc684f98032

9 years agoNetApp fix vol migration unusability
Navneet Singh [Sun, 21 Sep 2014 22:48:48 +0000 (04:18 +0530)]
NetApp fix vol migration unusability

This patch fixes the volume migration related issue
in which the volume became unusable after successfull inbound
migration due to volume id usage instead of name_id.

Closes-bug: #1370098

Change-Id: Iacb14ea07890859b5cf8a27c150aa5f6e8a98777

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 5 Dec 2014 18:30:12 +0000 (18:30 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 5 Dec 2014 16:43:55 +0000 (16:43 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Add ability to zfssa driver to create multiple initiator groups"
Jenkins [Fri, 5 Dec 2014 16:35:27 +0000 (16:35 +0000)]
Merge "Add ability to zfssa driver to create multiple initiator groups"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 5 Dec 2014 16:32:54 +0000 (16:32 +0000)]
Updated from global requirements

Change-Id: I9b0933979b0df44d8ccd46699ee58acdda2df14b

9 years agoMerge "Remove lio_initiator_iqns"
Jenkins [Fri, 5 Dec 2014 16:20:28 +0000 (16:20 +0000)]
Merge "Remove lio_initiator_iqns"

9 years agoMerge "Workflow documentation is now in infra-manual"
Jenkins [Fri, 5 Dec 2014 15:15:49 +0000 (15:15 +0000)]
Merge "Workflow documentation is now in infra-manual"

9 years agoAllow HostState to handle empty capabilities
Zhiteng Huang [Fri, 5 Dec 2014 10:01:53 +0000 (18:01 +0800)]
Allow HostState to handle empty capabilities

In some cases, where the capabilities reported from driver is
emtpy, scheduler would raise exception thus unable to correctly
handle scheduling request even when other backend candidates are
able to fulfill the request.  This change does some modifications
to HostState so that it is able to handle empty capabilities.

Change-Id: Icb6522852d427dea3fbd1ec4b4cc94a184d3669d
Fixes-bug: #1398875

9 years agoInherit RequestContext from oslo
Adrien Vergé [Wed, 26 Nov 2014 14:24:46 +0000 (15:24 +0100)]
Inherit RequestContext from oslo

In the long-term, OpenStack projects should use oslo.context as the base
class for their custom contexts. This enables the use of
application-agnostic tools, e.g. global logging configurations. See
http://specs.openstack.org/openstack/oslo-specs/specs/juno/app-agnostic-logging-parameters.html

This patch syncs the latest context module from oslo-incubator and use
it as the base class for Cinder RequestContext. The goal is to clean up
Cinder code, and to be ready for the first oslo.context release.

Change-Id: Iba9354b402de556ca6e55e7c17dd6f3f1624d72d
Related-bug: #1210261

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 5 Dec 2014 06:07:50 +0000 (06:07 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I67452a3d8b63d83f0c72411e3e1397623be3f530

9 years agoWorkflow documentation is now in infra-manual
Jeremy Stanley [Fri, 5 Dec 2014 03:30:35 +0000 (03:30 +0000)]
Workflow documentation is now in infra-manual

Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I1e0c546a72c75193e8c742c02dc189d178a0312c

9 years agoRemove the check_uptodate conf checks
John Griffith [Thu, 4 Dec 2014 20:38:59 +0000 (13:38 -0700)]
Remove the check_uptodate conf checks

We recently removed the checkupdate tests for sample.conf
here Ie4e25a8cd36782007a8934cc4573632f5215c2b1

To stop gating on this as it's just a big fat
pain when external libs change.

Instead, we'll start generating this in an external
job and publishing somewhere.

Funny thing though, we actually have a direct call in
run_tests.sh as well.

This patch removes the second call in run_tests.sh

Change-Id: Iaef411e254186fbba80c21903d6f94538a808d93

9 years agoMerge "Add cinder support for IBM FlashSystem."
Jenkins [Thu, 4 Dec 2014 20:58:43 +0000 (20:58 +0000)]
Merge "Add cinder support for IBM FlashSystem."

9 years agoMerge "Revert "Fix Brocade FC SAN lookup MITM vulnerability""
Jenkins [Thu, 4 Dec 2014 19:25:19 +0000 (19:25 +0000)]
Merge "Revert "Fix Brocade FC SAN lookup MITM vulnerability""

9 years agoImprove unit tests for cinder/volume/utils.py
git-harry [Thu, 4 Dec 2014 15:48:12 +0000 (15:48 +0000)]
Improve unit tests for cinder/volume/utils.py

This commit increases the unit test coverage of cinder/volume/utils.py.
It also replaces tests using mox or stubout.

Change-Id: Idb06b37c803d94bb33b0df9d19ced8b330def2ad

9 years agoMerge "Bring cinder up-to-date with new oslo libraries"
Jenkins [Thu, 4 Dec 2014 05:38:51 +0000 (05:38 +0000)]
Merge "Bring cinder up-to-date with new oslo libraries"

9 years agoRemove lio_initiator_iqns
Eric Harney [Thu, 9 Oct 2014 20:26:18 +0000 (16:26 -0400)]
Remove lio_initiator_iqns

This is a holdover from the initial LIO implementation
which did not manage ACLs sufficiently.  This is
unneeded now and handled by:
67dd248 LIO iSCSI initiator ACL auto-config

DocImpact: remove lio_initiator_iqns cfg opt

Closes-Bug: #1390383

Change-Id: I3b7fe4765c1c568a6a7713f86cadece52b130911

9 years agoBring cinder up-to-date with new oslo libraries
Jay S. Bryant [Wed, 3 Dec 2014 18:20:05 +0000 (12:20 -0600)]
Bring cinder up-to-date with new oslo libraries

New versions of the oslo libraries have been released and
this has broken Cinder in the gate.  The first issue is
causing all unit tests to fail with the message:

"NoSuchOptError: no such option: fake_rabbit"

This was due to commit bcb3b23b8f6e7d01e38fdc031982558711bb7586
removing that option from oslo/messaging/_drivers/impl_rabbit.py .
We were trying to set that option in cinder/tests/conf_fixture.py .
I have removed that code.

Second, the update has made etc/cinder.conf.sample go out of date
again.  I am merging the changes to bring it back up to date.

This change also disables execution of check_uptodate.sh execution
from the gate.

Change-Id: Ie4e25a8cd36782007a8934cc4573632f5215c2b1

9 years agoMerge "Use object.property instead of object.dump()['property']"
Jenkins [Wed, 3 Dec 2014 18:26:05 +0000 (18:26 +0000)]
Merge "Use object.property instead of object.dump()['property']"

9 years agoVMware: Add missing storage profile requirement
Vipin Balachandran [Thu, 27 Nov 2014 14:55:42 +0000 (20:25 +0530)]
VMware: Add missing storage profile requirement

If a storage profile is part of a volume type, it should be used as a
requirement for datastore selection-- only datastores which satisfy the
storage profile should be used for backing VM creation. Currently in
retype API, if storage profiles in old and new volume types are same,
it is not passed as a requirement. Hence, the backing VM corresponding
to the volume might end up in a datastore which doesn't satisfy the
storage profile. This patch fixes the problem.

Closes-Bug: #1398293
Change-Id: I49161e9fc5a8f2749ee6097fa5a136b78dfcf3ab

9 years agoMerge "Volume type access extension"
Jenkins [Wed, 3 Dec 2014 05:14:31 +0000 (05:14 +0000)]
Merge "Volume type access extension"

9 years agoUse object.property instead of object.dump()['property']
Andy Grover [Thu, 9 Oct 2014 23:08:13 +0000 (16:08 -0700)]
Use object.property instead of object.dump()['property']

Less verbose and requires less work for the library.

Change-Id: Ied2196b548c91324fdfce39ec4f8801e59da4f6c

9 years agoMerge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"
Jenkins [Wed, 3 Dec 2014 03:29:52 +0000 (03:29 +0000)]
Merge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"

9 years agoMerge "Fix 3PAR drivers attempt to locate existing host"
Jenkins [Wed, 3 Dec 2014 00:26:42 +0000 (00:26 +0000)]
Merge "Fix 3PAR drivers attempt to locate existing host"

9 years agoNetApp 7mode NFS driver doesn't honor netapp_vfiler option
Andrew Kerr [Mon, 1 Dec 2014 21:32:02 +0000 (16:32 -0500)]
NetApp 7mode NFS driver doesn't honor netapp_vfiler option

This patch fixes the NetApp 7mode NFS driver to register and use
the netapp_vfiler option if it is configured in cinder.conf.

DocImpact
Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
Closes-Bug: 1381716

9 years agoRevert "Fix Brocade FC SAN lookup MITM vulnerability"
Jay S. Bryant [Tue, 2 Dec 2014 20:35:06 +0000 (14:35 -0600)]
Revert "Fix Brocade FC SAN lookup MITM vulnerability"

This reverts commit ab4f57212683baec45d5b682bdd3952ff58249ed.

The change is being reverted as it broke the Brocade FC SAN lookup
functionality.  The change uses configuration options from
ssh_utils that are not initialized when the Brocade driver is
run causing an exception to be thrown complaining that
CONF.ssh_hosts_key_file is used before it is initialized.

The right solution is to change the Brocade driver to use ssh_utils to
make SSH connections.

Conflicts:

cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py

Change-Id: I7814c3da9c0e6fcf3143969e74304a48cafcb3d1
Closes-bug: 1398488

9 years agoAdd ability to zfssa driver to create multiple initiator groups
amoturi [Wed, 8 Oct 2014 04:32:28 +0000 (00:32 -0400)]
Add ability to zfssa driver to create multiple initiator groups

Currently the zfssa driver only support one initiator group. This
is causing broken scsi devices when detaching volumes from instances.
This fix adds support for configuring multiple initiator groups.

Closes-Bug: #1378390
DocImpact

Change-Id: Ib3262ebd40e9c2ff2f36d0a7b1b5b3506ed3acc1

9 years agoFix rpc initialization of cinder-manager volume
Mehdi Abaakouk [Tue, 2 Dec 2014 09:04:54 +0000 (10:04 +0100)]
Fix rpc initialization of cinder-manager volume

VolumeCommands.rpc_client is a property, so when the oslo.config argparser
introspect the class VolumeCommands at module loading time, it launch the
method. But the method depends on a initialized oslo.config.cfg.CONF object,
but this one is not yet initialized.

So don't use python property, to initialize the rpc_client correctly.

No test because of bug: #1398401

Change-Id: I2c2f0be6e7a9d0866f063d98e1f8213f62fb9f92
Closes-bug: #1398319

9 years agoMerge "Remove driver compatibility in volume manager"
Jenkins [Tue, 2 Dec 2014 08:35:55 +0000 (08:35 +0000)]
Merge "Remove driver compatibility in volume manager"

9 years agoMerge "Fix find_autodoc_modules.sh to support OSX"
Jenkins [Tue, 2 Dec 2014 07:12:55 +0000 (07:12 +0000)]
Merge "Fix find_autodoc_modules.sh to support OSX"

9 years agoMerge "Deal with tgt already exists errors"
Jenkins [Tue, 2 Dec 2014 07:12:46 +0000 (07:12 +0000)]
Merge "Deal with tgt already exists errors"

9 years agoFix 3PAR drivers attempt to locate existing host
Kurt Martin [Tue, 2 Dec 2014 00:13:18 +0000 (16:13 -0800)]
Fix 3PAR drivers attempt to locate existing host

This patch fixes the current 3PAR drivers around attempting to locate
3PAR host that might already have volumes attached. The FC driver is
using the correct REST based queryHost but is not specifying the
parameters wwns=wwns when calling it. This was accidentally merged
during the removal on the local file locks.

The iSCSI driver was actually calling a SSH based findHost command
instead of the REST based queryHost based on iqns. The SSH based
command was failing with a session key error after a long idle time
between attaches.
Closes-Bug: 1398206

Change-Id: I5e0b1e5382c65176a74441bd4fe40d066317de48

9 years agoMerge "Don't use _execute directly in brick/iscsi"
Jenkins [Tue, 2 Dec 2014 00:33:18 +0000 (00:33 +0000)]
Merge "Don't use _execute directly in brick/iscsi"

9 years agoVolume type access extension
Mathieu Gagné [Thu, 26 Jun 2014 00:22:12 +0000 (20:22 -0400)]
Volume type access extension

This extension adds the ability to manage volume type access:
* Volume types are public by default
* Private volume types can be created by setting
  the is_public boolean field to False at creation time.
* Access to a private volume type can be controlled
  by adding or removing a project from it.
* Private volume types without projects are only visible
  by users with the admin role/context.

Implementation details and unit tests were mostly adapted
from Nova flavor access extension.

DocImpact: New volume type access extension
Implements: blueprint private-volume-types
Change-Id: I8faf1d8097bf8412d4e169ec3503821351795561

9 years agoRemove driver compatibility in volume manager
Mike Perez [Mon, 1 Dec 2014 21:21:27 +0000 (13:21 -0800)]
Remove driver compatibility in volume manager

The old driver locations were deprecated in Juno. This removes the code
for deprecating and tests.

Change-Id: I1e2a985c1b41f4837e316af0655ef7203273cd7a

9 years agoMerge "Raise exception if invalid IP is specified"
Jenkins [Mon, 1 Dec 2014 21:17:17 +0000 (21:17 +0000)]
Merge "Raise exception if invalid IP is specified"

9 years agoMerge "Fix check_ssh_injection in cinder/utils"
Jenkins [Mon, 1 Dec 2014 21:11:27 +0000 (21:11 +0000)]
Merge "Fix check_ssh_injection in cinder/utils"

9 years agoDon't use _execute directly in brick/iscsi
John Griffith [Mon, 1 Dec 2014 21:01:26 +0000 (14:01 -0700)]
Don't use _execute directly in brick/iscsi

The brick/iscsi module has a run helper that
should be used for executing commands.  There
are a number of inconsistencies where _execute
is called directly.

This patch moves everythign to use the run method
to keep things consistent and also to fix up some
potential issues with variables becoming corrupt
under heavy load.

Change-Id: Idfc183f2ed1ad73b64fc893efcc07972c95926c6

9 years agoDeal with tgt already exists errors
John Griffith [Mon, 1 Dec 2014 20:29:02 +0000 (13:29 -0700)]
Deal with tgt already exists errors

This patch intends to provide a clear marker for
ER in the case that create export fails due to the
target entry already existing.

Also this patch will enable us to go ahead and just use
the existing target rather than bomb out and fail everything.

Root cause of why we're getting a second create is still
unknown and needs addressed, but this might help in getting
more info as well as keeping things stable until we address
the root issue.

Change-Id: If96f4fab7d9709dbb0726b1dca6237d7bc66ecbe
Partial-Bug: #1398078

9 years agoFix find_autodoc_modules.sh to support OSX
Mathieu Gagné [Mon, 1 Dec 2014 20:13:28 +0000 (15:13 -0500)]
Fix find_autodoc_modules.sh to support OSX

When running 'find cinder/' on OSX platforms, all returned paths
will have 2 slashes (//). Because the script only strips
the first slash as per the CINDER_DIR value, we end up
with module names such as "cinder..db.api" in the documentation.

This change trims the leading dot if found to avoid this situation.

Change-Id: I9423b253d9842295850f469757e928bf5856967a

9 years agoRaise exception if invalid IP is specified
Bob Callaway [Tue, 21 Oct 2014 19:23:51 +0000 (15:23 -0400)]
Raise exception if invalid IP is specified

This patch ensures that all values specified for the configuration
option netapp_controller_ips are valid, rather than logging and
continuing with only the valid addresses.

Closes-Bug: 1396718

Change-Id: I180dc74e4535bfde19f1741cff975f5ec675dd21

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Mon, 1 Dec 2014 14:59:39 +0000 (14:59 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoFix check_ssh_injection in cinder/utils
git-harry [Mon, 1 Dec 2014 13:26:40 +0000 (13:26 +0000)]
Fix check_ssh_injection in cinder/utils

check_ssh_injection is used to prevent commands being modified using
specially constructed strings containing special characters.

The function includes a loop over the special characters to compare
them against each arg. If the special character is the same as the arg
it gets ignored.

This commit modifies this part of the function so that args that are
exactly equal to one of the special characters will cause an exception
to be raised.

Change-Id: I3a61e995ea41fc0324b5cb60e3c96e3d9dc56637
Closes-Bug: #1398002

9 years agoMerge "GlusterFS: Lock on a per-volume basis"
Jenkins [Sun, 30 Nov 2014 06:02:41 +0000 (06:02 +0000)]
Merge "GlusterFS: Lock on a per-volume basis"

9 years agoMerge "Scality SOFS: implement volume backup and restore"
Jenkins [Sun, 30 Nov 2014 05:56:11 +0000 (05:56 +0000)]
Merge "Scality SOFS: implement volume backup and restore"

9 years agoMerge "CiscoFCSanLookupService passing command as string"
Jenkins [Fri, 28 Nov 2014 03:37:27 +0000 (03:37 +0000)]
Merge "CiscoFCSanLookupService passing command as string"

9 years agoMerge "Adding volume driver for X-IO ISE"
Jenkins [Thu, 27 Nov 2014 03:42:02 +0000 (03:42 +0000)]
Merge "Adding volume driver for X-IO ISE"

9 years agoMerge "PureISCSIDriver:Handle delete called on already deleted volume"
Jenkins [Wed, 26 Nov 2014 22:47:41 +0000 (22:47 +0000)]
Merge "PureISCSIDriver:Handle delete called on already deleted volume"

9 years agoAdding volume driver for X-IO ISE
Richard Hedlind [Mon, 27 Oct 2014 15:18:06 +0000 (09:18 -0600)]
Adding volume driver for X-IO ISE

Driver is implemented using one base class XIOISEDriver and two
classes, one for each storage protocol.

This change also addresses version 1.1.0 of the driver that
adds support for:
- QoS
- Volume affinity
- Thin
- Retype

Driver Cert results:
https://bugs.launchpad.net/cinder/+bug/1360078

Unit test tests all required interfaces for both driver types.

Change-Id: I2eeb44e768871e02e407f93243aabef993f96d53
Implements: blueprint xio-iscsi-fc-volume-driver
Implements: blueprint xio-volume-driver-1-1

9 years agoMerge "Remove Python 2.6 backwards compatibility code"
Jenkins [Wed, 26 Nov 2014 16:00:53 +0000 (16:00 +0000)]
Merge "Remove Python 2.6 backwards compatibility code"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 26 Nov 2014 16:00:44 +0000 (16:00 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Get the 'consumer' in a correct way for retyping with qos-specs"
Jenkins [Wed, 26 Nov 2014 15:54:03 +0000 (15:54 +0000)]
Merge "Get the 'consumer' in a correct way for retyping with qos-specs"

9 years agoRemove Python 2.6 backwards compatibility code
git-harry [Tue, 25 Nov 2014 22:40:37 +0000 (22:40 +0000)]
Remove Python 2.6 backwards compatibility code

Python 2.6 is no longer supported in cinder as of kilo. The code in the
project that is specifically for compatibility with 2.6 is therefore no
longer required.

This commit removes code referenced as being required specifically for
compatibility with Python 2.6.

This commit removes:
    - total_seconds from cinder/utils.py
    - TestCase.assertGreater from cinder/test.py
    - TestCase.assertGreaterEqual from cinder/test.py
    - StorwizeSVCDriverTestCase.assertLessEqual from
      cinder/tests/test_storwize_svc.py

Change-Id: I2aca4a6a84bc8ddfa70bd47a331b6fac6f82220f

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 26 Nov 2014 06:10:33 +0000 (06:10 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I90527d594081adbd8e32866b39594fda78d5c0e7

9 years agoMerge "Add limited retype support for rbd"
Jenkins [Wed, 26 Nov 2014 05:27:42 +0000 (05:27 +0000)]
Merge "Add limited retype support for rbd"

9 years agoGet the 'consumer' in a correct way for retyping with qos-specs
Vincent Hou [Tue, 25 Nov 2014 07:36:07 +0000 (23:36 -0800)]
Get the 'consumer' in a correct way for retyping with qos-specs

The qos specs returned from the database does not contain the
property "qos-specs". Intead, the property "consumer" can be accessed
directly.

Change-Id: I3fe57e5cc20a97d32c8b8c6089ab1e812257da45
closes-bug: #1389519

9 years agoMerge "Add iSCSI Target objects as independent objects"
Jenkins [Tue, 25 Nov 2014 22:47:30 +0000 (22:47 +0000)]
Merge "Add iSCSI Target objects as independent objects"

9 years agoMerge "Removing locks from 3PAR FC and iSCSI drivers"
Jenkins [Tue, 25 Nov 2014 22:47:20 +0000 (22:47 +0000)]
Merge "Removing locks from 3PAR FC and iSCSI drivers"

9 years agoMerge "Brick LVM: LV not found logging and error handling"
Jenkins [Tue, 25 Nov 2014 22:37:48 +0000 (22:37 +0000)]
Merge "Brick LVM: LV not found logging and error handling"

9 years agoMerge "Remove Python 2.6 classifier"
Jenkins [Tue, 25 Nov 2014 21:43:00 +0000 (21:43 +0000)]
Merge "Remove Python 2.6 classifier"

9 years agoPureISCSIDriver:Handle delete called on already deleted volume
Mudassir Latif [Tue, 25 Nov 2014 03:00:47 +0000 (19:00 -0800)]
PureISCSIDriver:Handle delete called on already deleted volume

If the delete_volume method gets an error from Purity
saying volume does not exist, don't proceed with attempt
at deletion

Change-Id: I2a830e43c876433da4cdb50eabe4fb66b7eb6faf
Closes-Bug: #1395826

9 years agoAdd limited retype support for rbd
Arne Wiebalck [Thu, 20 Nov 2014 07:36:34 +0000 (08:36 +0100)]
Add limited retype support for rbd

This patch enables limited retype support for rbd. In addition to
basic retyping between volume types that only differ in their name,
retyping between volume types that imply a change of the qos_specs
are supported. This hence allows to adapt the quality-of-service
settings of a volume after its creation.

All other changes, such as host migration, change of encryption or
changes of settings as defined by the extra_specs are not supported
by this commit and left for later patches.

Implements: blueprint ceph-rbd-support-retype
Change-Id: Ib9edf83eb3ade1e6b2dcf1121a16a6f2e68753e1

9 years agoMerge "Fix exception message formatting"
Jenkins [Tue, 25 Nov 2014 18:11:33 +0000 (18:11 +0000)]
Merge "Fix exception message formatting"

9 years agoMerge "Invalid GlusterFS share format error"
Jenkins [Tue, 25 Nov 2014 18:11:20 +0000 (18:11 +0000)]
Merge "Invalid GlusterFS share format error"

9 years agoMerge "Match mock.patch decorator with appropriate param"
Jenkins [Tue, 25 Nov 2014 17:33:05 +0000 (17:33 +0000)]
Merge "Match mock.patch decorator with appropriate param"

9 years agoMerge "etc: replace NullHandler by Python one"
Jenkins [Tue, 25 Nov 2014 17:32:56 +0000 (17:32 +0000)]
Merge "etc: replace NullHandler by Python one"

9 years agoMerge "Correct misspelled words"
Jenkins [Tue, 25 Nov 2014 17:32:47 +0000 (17:32 +0000)]
Merge "Correct misspelled words"

9 years agoMerge "Add ability to create volume from image by image name."
Jenkins [Tue, 25 Nov 2014 17:32:05 +0000 (17:32 +0000)]
Merge "Add ability to create volume from image by image name."

9 years agoAdd iSCSI Target objects as independent objects
John Griffith [Wed, 29 Oct 2014 19:34:54 +0000 (13:34 -0600)]
Add iSCSI Target objects as independent objects

This patch is a step in decoupling the target
methods and the Volume Driver's Control methods.

This adds the targets directory and the new target objects
that we use with the exception of IET (follow up for that later).
TgtAdm and LIO drivers have been tested with the new LVM object.

All existing drivers are still able to be specified and use the
same objects and code-path they were using previously.  New
connector objects are only used when specifying the new driver.

Next step will be mapping current ref LVM driver to the new
LVM object and target model and continued work on the unit-tests.

After that mark the "old" methods and objects as deprecated
and we can then begin working on some other improvements.

Change-Id: If02db137f936dc5b509fc81ca3c29ae4f87f1cb2
Partial-Bug: #1329139

9 years agoRemove Python 2.6 classifier
Julien Danjou [Tue, 25 Nov 2014 15:55:03 +0000 (16:55 +0100)]
Remove Python 2.6 classifier

Cinder does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: I47f5e3ba30c7d8950862bc0a0d67d33d90c7eecf

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Tue, 25 Nov 2014 15:57:24 +0000 (15:57 +0000)]
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code. No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.

Partial-Bug: #1384312

Change-Id: I3974b58bd9b8b9e3c34d5a609228e30c6a08a3c3

9 years agoMerge "Update rally job files"
Jenkins [Tue, 25 Nov 2014 15:37:54 +0000 (15:37 +0000)]
Merge "Update rally job files"

9 years agoMerge "Don't use module importutils from oslo-incubator"
Jenkins [Tue, 25 Nov 2014 15:37:40 +0000 (15:37 +0000)]
Merge "Don't use module importutils from oslo-incubator"

9 years agoMatch mock.patch decorator with appropriate param
git-harry [Tue, 25 Nov 2014 14:20:26 +0000 (14:20 +0000)]
Match mock.patch decorator with appropriate param

mock.patch and mock.patch.object can be used as decorators for mocking
within the scope of the function they decorate. When there are multiple
decorators it is important the function parameters relate to the
corresponding patch objects i.e. that the parameter order matches the
decorator order.
It is easiest to explain this with an example:

@mock.patch.object(Foo, 'bar')
@mock.patch.object(SomeClass, 'some_method', some_function)
@mock.patch.object(AClass, 'a_method')
def test_some_stuff(self, mock_a_method, mock_bar):
    pass

So the decorator closest to the function definition must correspond to
the first (left-most) patch parameter. Note, if the decorator is given a
third argument, the kwarg new, then the decorated function is not
passed an extra argument by that decorator.

Change-Id: I035d71cb3b81f0c8bfd83ed81d8426cb0df31c90

9 years agoCorrect misspelled words
yoan desbordes [Tue, 25 Nov 2014 14:22:35 +0000 (15:22 +0100)]
Correct misspelled words

In some files I found misspelled words like :

begining -> beginning
occured -> ocurred

Change-Id: Ic9ec34952dc43232c29b1dc8f6baec05f804ce25

9 years agoBrick LVM: LV not found logging and error handling
Eric Harney [Fri, 21 Nov 2014 16:50:48 +0000 (11:50 -0500)]
Brick LVM: LV not found logging and error handling

Fix up two things in get_lv_info/get_volume:
1. ProcessExecutionError should be handled where we call the
   command.  We can just return an empty list for this case
   which makes things simple for callers and consistent with
   querying a VG.
2. Not found errors should be logged as info and not warning
   since this is generally not actionable by the admin (and not
   a problem).

Fix typo in lvm command output for not found test.

Add test for get_lv_info not found error.

Change-Id: Iebccf7b8f252303f586b36aad33b85945ea5c927
Related-Bug: #1390081

9 years agoetc: replace NullHandler by Python one
Julien Danjou [Tue, 25 Nov 2014 10:26:40 +0000 (11:26 +0100)]
etc: replace NullHandler by Python one

We don't need to specify the NullHandler that was provided by Oslo
anymore, as Python 2.7 has this one. Let's use it directly.

Change-Id: I6948d1cd5a556779c1b1fd0a4161689e3a944b45

9 years agoMerge "Refactoring to allow addition of NetApp FibreChannel drivers"
Jenkins [Tue, 25 Nov 2014 08:01:06 +0000 (08:01 +0000)]
Merge "Refactoring to allow addition of NetApp FibreChannel drivers"

9 years agoDon't use module importutils from oslo-incubator
ChangBo Guo(gcb) [Mon, 24 Nov 2014 06:13:01 +0000 (14:13 +0800)]
Don't use module importutils from oslo-incubator

* Syncs latest module service
  Removes its dependency for oslo-incubator module importutils.
  Removes code which was never executed after switched to oslo.messaging.
Include changes:
5d40e14 Remove code that moved to oslo.i18n
6ede600 rpc, notifier: remove deprecated modules

* config.genrator has been removed from oslo-incubator, so update
config.generator to use importutils from oslo.utils directly.

* Removes module importutils

Change-Id: If5cf4100006b5ca4dba1ad92e0c8efc22f90083c