]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoAdd unit test for commit 22abe9081
Matt Riedemann [Mon, 15 Dec 2014 19:23:42 +0000 (11:23 -0800)]
Add unit test for commit 22abe9081

Commit 22abe9081 fixed a bug in commit d7bd65e8e which we could have
found the first time with a simple unit test.

This change adds the unit test to cover that new error handling block.

Related-Bug: #1398078

Change-Id: I86d2fd477f3ae5590c5f079a4c806d1f50eb96d0

9 years agoMerge "Convert mox to mock: tests/compute/test_nova.py"
Jenkins [Mon, 15 Dec 2014 18:18:30 +0000 (18:18 +0000)]
Merge "Convert mox to mock: tests/compute/test_nova.py"

9 years agoConvert mox to mock: tests/compute/test_nova.py
Bala Gopal Raj [Fri, 12 Dec 2014 09:30:43 +0000 (04:30 -0500)]
Convert mox to mock: tests/compute/test_nova.py

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

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

9 years agoMerge "Fix use of invalid variable in tgt exists check"
Jenkins [Sun, 14 Dec 2014 05:25:00 +0000 (05:25 +0000)]
Merge "Fix use of invalid variable in tgt exists check"

9 years agoMerge "FibreChannel drivers for NetApp Data ONTAP storage controllers"
Jenkins [Sun, 14 Dec 2014 02:25:48 +0000 (02:25 +0000)]
Merge "FibreChannel drivers for NetApp Data ONTAP storage controllers"

9 years agoFibreChannel drivers for NetApp Data ONTAP storage controllers
Clinton Knight [Thu, 9 Oct 2014 14:56:25 +0000 (10:56 -0400)]
FibreChannel drivers for NetApp Data ONTAP storage controllers

This patch adds FibreChannel support to NetApp's Cinder drivers
for Data ONTAP (7-mode and Cluster-mode).  The drivers make full
use of Cinder's FibreChannel zone manager.

Implements blueprint add-fibre-channel-support-to-netapp-drivers
Change-Id: Ifbda275e4a60dda144a169ef00a4ea5e548dfa03

9 years agoFix use of invalid variable in tgt exists check
John Griffith [Wed, 3 Dec 2014 17:44:49 +0000 (10:44 -0700)]
Fix use of invalid variable in tgt exists check

I added a check for tgt already exists here:
https://review.openstack.org/#/c/138173/

But, that was wrong, the err value is never going to be
set because of the exception.  This should have inspected
the exception object and checked against it.

So this patch makes it do what it was supposed to do.

Change-Id: I8c184bf1684c8592a36f749cdcb5493f6b65e52b

9 years agoRemove an unused variable in volume/manager.py
huangtianhua [Fri, 12 Dec 2014 02:49:49 +0000 (10:49 +0800)]
Remove an unused variable in volume/manager.py

The 'old_reservations' variable defined in a exception handling block in 'retype' method is never used, this change removes it.

Change-Id: Iaf39ea31bcbd31a90b621b6f33b6aa799f425744

9 years agoMerge "Report better capacity info for a limitless 3par cpg"
Jenkins [Thu, 11 Dec 2014 05:20:29 +0000 (05:20 +0000)]
Merge "Report better capacity info for a limitless 3par cpg"

9 years agoMerge "VMware: Fix datastore selection with single host"
Jenkins [Thu, 11 Dec 2014 05:19:58 +0000 (05:19 +0000)]
Merge "VMware: Fix datastore selection with single host"

9 years agoReport better capacity info for a limitless 3par cpg
Gloria Gu [Wed, 10 Dec 2014 01:56:09 +0000 (17:56 -0800)]
Report better capacity info for a limitless 3par cpg

This change has the following improvement:

1. Uses getCPGAvailableSpace from hp3parclient to report
free_capapcity for a limitless cpg.

2. Uses cpg's SDUsage.usedMiB + UsrUsage.usedMiB + free_capacity
to calculate the total_capacity for a limitless cpg. This is the
best we can do for a limitless cpg.

Closes-Bug: #1398651
Change-Id: I62f446786360c61288a788be29d1daa6e409c7b1

9 years agoVMware: Fix datastore selection with single host
Vipin Balachandran [Wed, 10 Dec 2014 07:11:08 +0000 (12:41 +0530)]
VMware: Fix datastore selection with single host

Currently, the select_datastore method is called with an empty list of
ESX hosts. This causes the method to retrieve all the hosts in vCenter
as candidates for selecting a datastore. The reference to a retrieved
host is stored in attribute 'obj'. Some of the future bug fixes will
need to invoke this method with reference to a single ESX host. Such
invocations will fail with attribute error: 'val instance has no
attribute 'obj''. This patch fixes the attribute error.

Closes-Bug: #1401052
Change-Id: Ib4f48d2ebfbfa3a9ce6a402300d41351548932ef

9 years agoMerge "Use pbr entry_points to setup the cinder scripts"
Jenkins [Wed, 10 Dec 2014 05:33:02 +0000 (05:33 +0000)]
Merge "Use pbr entry_points to setup the cinder scripts"

9 years agoMerge "Improve testing of cinder/utils.py"
Jenkins [Tue, 9 Dec 2014 21:31:37 +0000 (21:31 +0000)]
Merge "Improve testing of cinder/utils.py"

9 years agoMerge "Fix _get_disk_of_partition edgecase in utils"
Jenkins [Tue, 9 Dec 2014 21:31:00 +0000 (21:31 +0000)]
Merge "Fix _get_disk_of_partition edgecase in utils"

9 years agoAdd support for backup encryption metadata
Brianna Poulos [Fri, 29 Aug 2014 21:19:29 +0000 (17:19 -0400)]
Add support for backup encryption metadata

This modification allows the encryption key UUID field, which
has been added to the volume table, to remain valid when encrypted
volumes are backed up and then restored, which enables the restored
volume to be accessible and encrypted.  This is related to patch
https://review.openstack.org/#/c/39573/, except that it uses the
backup metadata support recently added in patch
https://review.openstack.org/#/c/51900/ rather than modifying the
backup api.

Change-Id: Ib91f8275271e6bd4f2d9e17499d16ec13bca2b84
Implements: blueprint backup-support-for-encrypted-volumes
DocImpact

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 agoUse pbr entry_points to setup the cinder scripts
Thang Pham [Fri, 20 Jun 2014 04:30:36 +0000 (00:30 -0400)]
Use pbr entry_points to setup the cinder scripts

The following patch changes how cinder scripts are
installed and unit tested. This patch moves all the
cinder scripts from bin into cinder/cmd and creates
entry_points for those scripts in setup.cfg. When
cinder is installed, these scripts will be installed
under /usr/local/bin by pbr.

DocImpact: 'host' config option for multiple-storage backends
in cinder.conf is renamed to 'backend_host' in order to avoid
a naming conflict with the 'host' to locate redis
Change-Id: If82cf0c58d765bf79dbf721ca95c10a468940cab
Implements: blueprint unit-test-cases-for-cinder-scripts

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 agoImprove testing of cinder/utils.py
git-harry [Tue, 2 Dec 2014 17:41:20 +0000 (17:41 +0000)]
Improve testing of cinder/utils.py

This commit increases code coverage of cinder/utils.py as well as
removing any use of mox and replacing tests that are more functional in
nature with tests more focussed on testing the function in
cinder/utils.py.

Change-Id: I57bb589fa728d715f07aadc4abd0e27670a3a5b6

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 agoFix _get_disk_of_partition edgecase in utils
git-harry [Fri, 28 Nov 2014 12:35:43 +0000 (12:35 +0000)]
Fix _get_disk_of_partition edgecase in utils

_get_disk_of_partition in cinder/utils returns a disk device path,
calculated from a supplied partition device path, and stat for a device.

If the disk path calculated by the function, using a regex, is not a
block device the function will return the original device path argument
and the stat object for disk path that was not a block device.

This commit modifies the function so that if the supplied device path is
returned by the function the stat of that path is guaranteed to be
returned.

Change-Id: I7ce0a748fe4a0ebaa02cba11baadb8c71c007aa2

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