]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoPassing privileged user to create nova assisted snapshots
Bharat Kumar Kobagana [Wed, 18 Feb 2015 10:46:28 +0000 (16:16 +0530)]
Passing privileged user to create nova assisted snapshots

This patch passes privileged user to create nova assisted
snapshots. We can pass privileged user credentials through
cinder.conf as below:
  os_privileged_user_name = <user>
  os_privileged_user_password = <password>
  os_privileged_user_tenant = <tenant>

Closes-Bug: 1308736
Change-Id: I004f3962f7c83113bed6bd9e3ccd002f017bd260

9 years agoMerge "Fixed typo"
Jenkins [Wed, 18 Feb 2015 08:42:04 +0000 (08:42 +0000)]
Merge "Fixed typo"

9 years agoMerge "quobyte: remove dependency to xattr"
Jenkins [Wed, 18 Feb 2015 07:31:33 +0000 (07:31 +0000)]
Merge "quobyte: remove dependency to xattr"

9 years agoMerge "Pool-aware scheduler support in EMC VNX Cinder driver"
Jenkins [Wed, 18 Feb 2015 06:58:21 +0000 (06:58 +0000)]
Merge "Pool-aware scheduler support in EMC VNX Cinder driver"

9 years agoMerge "Fix extraneous comma that breaks docbook generation"
Jenkins [Wed, 18 Feb 2015 04:54:05 +0000 (04:54 +0000)]
Merge "Fix extraneous comma that breaks docbook generation"

9 years agoFixed typo
Amit Saha [Thu, 12 Feb 2015 07:05:25 +0000 (12:35 +0530)]
Fixed typo

There were spelling mistakes in couple comment sections in the code.

Change-Id: I05d419bdf6402032fe1bc3b90c51cfd8381c3741

9 years agoPool-aware scheduler support in EMC VNX Cinder driver
Jeegn Chen [Thu, 15 Jan 2015 01:35:09 +0000 (20:35 -0500)]
Pool-aware scheduler support in EMC VNX Cinder driver

Changed EMC VNX driver to report pools information in
update_volume_stats and removed the original pool selection
logic in VNX driver.
Besides, deprecated the VNX driver defined extra spec key
"storagetype:pool", since "pool_name" key is introduced by
the pool-aware scheduler feature to specify which pool to
place the volume.

Change-Id: Idd2b0008a3844ad9db72768e6016c63e7e4c5e98
Implements: blueprint pool-aware-cinder-scheduler-vnx

9 years agoMerge "Tests: Remove randomness from NFS mount tests"
Jenkins [Wed, 18 Feb 2015 02:15:18 +0000 (02:15 +0000)]
Merge "Tests: Remove randomness from NFS mount tests"

9 years agoMerge "Tests: Remove TestWSGIService.test_reset_pool_size_to_default"
Jenkins [Wed, 18 Feb 2015 02:15:02 +0000 (02:15 +0000)]
Merge "Tests: Remove TestWSGIService.test_reset_pool_size_to_default"

9 years agoFix extraneous comma that breaks docbook generation
Anish Bhatt [Wed, 18 Feb 2015 00:10:49 +0000 (16:10 -0800)]
Fix extraneous comma that breaks docbook generation

There is a stray comma in the middle of the help section that changes
the string to a tuple, causing docbook to fail with:

   td.text = "(%s) %s" % (type(option).__name__, option.help.strip())
AttributeError: 'tuple' object has no attribute 'strip'

Change-Id: I8f03801fe5463548e3bba1b13e0370fd30ac9927

9 years agoMerge "Sync policy module from oslo-incubator"
Jenkins [Tue, 17 Feb 2015 20:40:52 +0000 (20:40 +0000)]
Merge "Sync policy module from oslo-incubator"

9 years agoMerge "Dell Storage Center: Add retries to API calls"
Jenkins [Tue, 17 Feb 2015 19:52:51 +0000 (19:52 +0000)]
Merge "Dell Storage Center: Add retries to API calls"

9 years agoSync policy module from oslo-incubator
Jay S. Bryant [Mon, 16 Feb 2015 23:05:01 +0000 (17:05 -0600)]
Sync policy module from oslo-incubator

The policy module has not had a sync since back in
November.  There have been a number of changes that
should be pulled into Kilo.

Current HEAD in OSLO:
---------------------
commit 9bf01f9d98487cb13e3d95ad2a580fe8fc6f2479
Date:  Fri Feb 13 14:18:58 2015 -0500
Switch from oslo.config to oslo_config

Changes merged with this patch:
---------------------
2aacb111 Change oslo.config to oslo_config
2fbf5065 Remove oslo.log code and clean up versionutils API
262279b1 switch to oslo_serialization
07e9b32a Improving docstrings for policy API
e67f5cd0 Merge "Don't log missing policy.d as a warning"
99d991ce Merge "Fixed a problem with neutron http policy check"
b19af080 Don't log missing policy.d as a warning
2324c775 Add rule overwrite flag to Enforcer class
6166a960 Fixed a problem with neutron http policy check

Closes-bug: 1288178
Change-Id: I6987029b9c15f3d35fa591014859f5f96c98f3a3

9 years agoMerge "Remove useless requirement on wsgiref"
Jenkins [Tue, 17 Feb 2015 16:36:55 +0000 (16:36 +0000)]
Merge "Remove useless requirement on wsgiref"

9 years agoDell Storage Center: Add retries to API calls
Sean McGinnis [Thu, 12 Feb 2015 20:52:56 +0000 (14:52 -0600)]
Dell Storage Center: Add retries to API calls

In heavily loaded networks we have seen some cases
of temporary ConnectionErrors when making REST API
calls. There are usually successful calls just prior
and immediately after these failures, so it appears
to be a transient condition.

This patch utilizes the recently merged retry decorator
to add some retry handling to the REST API calls when
this condition is encountered.

With a test script looping through repeatedly running
CI against this first patch I was able to validate
that it addresses the issue. Out of 20 runs, a full
2/3 of the tests passed showing that the retry was
used. These test runs would have failed without the
retry.

The output from these test runs can be viewed here:

http://oslogs.compellent.com/?C=N;O=D

Pertinent results are dell-sc-iscsi-1554792015-12*

Once merged we should be able to enable full third
party CI testing with some expectation of reliable
results.

Closes-Bug: 1422742
Change-Id: I1279a7696068aee534498bb18f4f6b4fbb7a33d5

9 years agoMerge "Fixes total_capacity_gb value in CloudByte driver."
Jenkins [Tue, 17 Feb 2015 10:54:09 +0000 (10:54 +0000)]
Merge "Fixes total_capacity_gb value in CloudByte driver."

9 years agoAdd support for chiscsi iscsi helper
Anish Bhatt [Fri, 16 Jan 2015 05:31:58 +0000 (21:31 -0800)]
Add support for chiscsi iscsi helper

The chiscsi target works as a drop in replacement for IET/TGT with
minor configuration differences. This patch implements support for
this as the 'cxtadm' iscsi_helper.
Certification results :  https://bugs.launchpad.net/cinder/+bug/1417499

DocImpact

Implements: blueprint chiscsi-iscsi-helper

Change-Id: Ib8e94f532cd07fea44aaeeac266e7f6750bf00c1

9 years agoRemove useless requirement on wsgiref
Julien Danjou [Mon, 16 Feb 2015 10:58:37 +0000 (11:58 +0100)]
Remove useless requirement on wsgiref

Change-Id: I5f89eb4e3b2b3207ec5e92d35d7e3e3487376677

9 years agoMerge "EMC VNX Cinder Driver iSCSI multipath enhancement"
Jenkins [Mon, 16 Feb 2015 02:41:47 +0000 (02:41 +0000)]
Merge "EMC VNX Cinder Driver iSCSI multipath enhancement"

9 years agoMerge "Tests: Don't require binding to port 4444"
Jenkins [Sun, 15 Feb 2015 20:23:17 +0000 (20:23 +0000)]
Merge "Tests: Don't require binding to port 4444"

9 years agoMerge "Remove optional parameter from lun mapping call"
Jenkins [Sun, 15 Feb 2015 20:23:07 +0000 (20:23 +0000)]
Merge "Remove optional parameter from lun mapping call"

9 years agoMerge "Sync periodic_task module from oslo-incubator"
Jenkins [Sun, 15 Feb 2015 20:13:46 +0000 (20:13 +0000)]
Merge "Sync periodic_task module from oslo-incubator"

9 years agoMerge "Provided requirements are meant to be immutable"
Jenkins [Sun, 15 Feb 2015 20:13:35 +0000 (20:13 +0000)]
Merge "Provided requirements are meant to be immutable"

9 years agoMerge "Fix Scality SRB driver security concerns"
Jenkins [Sun, 15 Feb 2015 19:18:43 +0000 (19:18 +0000)]
Merge "Fix Scality SRB driver security concerns"

9 years agoMerge "Split volume driver into ABC classes"
Jenkins [Sun, 15 Feb 2015 19:13:01 +0000 (19:13 +0000)]
Merge "Split volume driver into ABC classes"

9 years agoSync periodic_task module from oslo-incubator
Jay S. Bryant [Sun, 15 Feb 2015 02:24:56 +0000 (20:24 -0600)]
Sync periodic_task module from oslo-incubator

We have a need in Cinder to now be able to dynamically
add periodic tasks.  This sync brings in new functionality
that supports that.

Current HEAD in OSLO:
---------------------
commit 03143669d2c996f7c20d2d75f6c67827d2db216a
Date:   Tue Feb 10 11:59:45 2015 -0500
Update policy.py status in MAINTAINERS

Changes merged with this patch:
---------------------
2aacb111 Change oslo.config to oslo_config
2fbf5065 Remove oslo.log code and clean up versionutils API
fbd77a7b Allow overriding name for periodic tasks
9896e0e1 Separate add_periodic_task from the metaclass __init__

Change-Id: If39ce7baddd6ad5325afcd504bab8ac305da939d

9 years agoMerge "EMC VMAX driver Kilo update"
Jenkins [Fri, 13 Feb 2015 20:24:27 +0000 (20:24 +0000)]
Merge "EMC VMAX driver Kilo update"

9 years agoTests: Don't require binding to port 4444
Eric Harney [Fri, 13 Feb 2015 18:07:46 +0000 (13:07 -0500)]
Tests: Don't require binding to port 4444

If some other process is listening on port 4444,
test_server_pool_waitall will fail with:

RuntimeError: Could not bind to 127.0.0.1:4444 after
trying for 30 seconds

This test doesn't require use of this specific port,
so let it pick an unused port to avoid this failure.

Closes-Bug: #1421759

Change-Id: I7e6d6f574cd2bbb2fa067001bba4b09b5204a5e1

9 years agoTests: Remove TestWSGIService.test_reset_pool_size_to_default
Eric Harney [Fri, 13 Feb 2015 17:11:34 +0000 (12:11 -0500)]
Tests: Remove TestWSGIService.test_reset_pool_size_to_default

This test invokes Cinder WSGIService.Service() and asserts
against values that are only manipulated in wsgi.Server(),
which WSGIService is based on.

We also have TestWSGIServer.test_reset_pool_size_to_default
which does the same thing for wsgi.Server().

Remove this test since it duplicates the TestWSGIServer test
and tests code which is an additional layer of abstraction
(cinder.WSGIService) away from the class that the code belongs
to (wsgi.Server).

Change-Id: I68d6f479da26e75618bfa773c84273501926ab07

9 years agoTests: Remove randomness from NFS mount tests
Eric Harney [Fri, 13 Feb 2015 16:56:48 +0000 (11:56 -0500)]
Tests: Remove randomness from NFS mount tests

No real reason for this to be randomized... just
set the number of attempts to 3 for simplicity /
reproducibility.

Change-Id: I0f11a157359f8905105194059c1ea68ce9f1860c

9 years agoMerge "Add dedup provisioning to 3PAR drivers"
Jenkins [Fri, 13 Feb 2015 07:34:34 +0000 (07:34 +0000)]
Merge "Add dedup provisioning to 3PAR drivers"

9 years agoRefactoring for export functions in Target object
Mitsuhiro Tanino [Sat, 17 Jan 2015 03:04:17 +0000 (22:04 -0500)]
Refactoring for export functions in Target object

Currently, export functions such as create_export() are implemented
in individual Target code, but most of them are same and these are
common features in each target.
This patch moves these methods to parent ISCSITarget class to
commonalize and each Target simply inherit these methods from parent
class. As a result of this change, LioAdm can inherit ISCSITarget
class directly instead of inheriting TgtAdm class.
This simplifies dependency of targets and improves maintainability.

By refactoring these methods, this patch also fixes following issues.

(a) Fix bug #1410566
After transitioning to the new driver and target model, iscsi_targets
is not added to the table during create_export() phase.
However, remove_export() in LIO Target is still reffering empty
iscsi_targets table. This causes NotFound exception and remove_export()
skips to do remove_iscsi_target().
As a result, iscsi target is not removed and the target continues to
grab the volume(logical volume) as an in-use status.
This patch fix the problem.

(b) Re-export a volume with CHAP
Current Tgt Target recreate iscsi target without CHAP during
ensure_export() even if the volume is exported with CHAP previously.
This patch changes this bahaviour to recreate iscsi target using
previous CHAP which is stored in volume file on state_path dir.

Closes-Bug: 1410566
Change-Id: Iea3d94e35a4ced4dafc1b61e2df6b075cf200577

9 years agoMerge "Add iSCSI SCST Target support to cinder"
Jenkins [Fri, 13 Feb 2015 01:35:20 +0000 (01:35 +0000)]
Merge "Add iSCSI SCST Target support to cinder"

9 years agoAdd iSCSI SCST Target support to cinder
nikeshmahalka [Thu, 8 Jan 2015 13:08:19 +0000 (18:38 +0530)]
Add iSCSI SCST Target support to cinder

Currently cinder supports tgt,lio targets.
We are adding SCST Target support in cinder.

Change-Id: I449143d125808d28758f3d438d7d1476a544c38b
Implements: blueprint scst-iscsi-backend-support

9 years agoEMC VMAX driver Kilo update
Xing Yang [Mon, 9 Feb 2015 02:10:49 +0000 (21:10 -0500)]
EMC VMAX driver Kilo update

This patch updated the VMAX driver for the Kilo release.
Main changes in this patch include the following:
* Support for consistency group.
* Support for VMAX V3.

Implements: blueprint emc-vmax-driver-kilo-update
Change-Id: I749d5f3071cd78e8ab14f3fd1711faeda7e33b77

9 years agoFix Scality SRB driver security concerns
JordanP [Mon, 2 Feb 2015 13:36:52 +0000 (13:36 +0000)]
Fix Scality SRB driver security concerns

LP #1414531 raised 2 issues :
1)A potential arbitrary code execution if the Cinder Linux user
has write access to /etc/cinder/cinder.conf
2)An overall concern/question about the usage of the command
'sudo sh -c' throughout the srb driver

This patch fixes 1) with proper configuration validation and
2) with usage of cinder-rootwrap.

Closes-Bug: 1414531
Change-Id: Idddb9633af3a45d65bbfa0146a14575e2984f6bd

9 years agoFixes total_capacity_gb value in CloudByte driver.
yogeshprasad [Wed, 11 Feb 2015 13:52:33 +0000 (19:22 +0530)]
Fixes total_capacity_gb value in CloudByte driver.

CloudByte storage returns total capacity value in two formats. One is
numeric and the other is alphanumeric.

Previously data['total_capacity_gb'] was referring the alphanumeric value
& now it is referring to the correct numeric value.

In addition, changes were made to test_cloudbyte.py to unit test
free_capacity_gb and total_capacity_gb.

Closes-Bug: 1420746

Change-Id: I601c2a78c1727bc815771ca26aea928fa2887d09

9 years agoEMC VNX Cinder Driver iSCSI multipath enhancement
Xi Yang [Wed, 11 Feb 2015 07:06:50 +0000 (02:06 -0500)]
EMC VNX Cinder Driver iSCSI multipath enhancement

This commit is to be consistent with the iSCSI multipath
ehancement in Cinder and Nova:
* Return multiple portals and iqns when multipath=True is
  specified in the connector info
* Return one portal and iqn when multipath=False is specified
  in the connector info

Change-Id: I47376ad6ac38e84569d92d62d3d8daa1359d797d
Implements: blueprint emc-vnx-driver-iscsi-multipath-enhancement

9 years agoAdd dedup provisioning to 3PAR drivers
Kurt Martin [Fri, 30 Jan 2015 21:59:56 +0000 (13:59 -0800)]
Add dedup provisioning to 3PAR drivers

3PAR now supports thin duplication provisioning. This review is for
adding the dedup provisioning support to the 3PAR provisioning extra
specs type as well as supporting volume retype between provisioning
types (thin<->dedup, full<->dedup).

The OpenStack Configuration Reference Guide will need to updated
to include dedup as a valid hp3par:provisioning value. A note
should also be added that this feature requires SSD disks and
3PAR firmware version 3.2.1 MU1 or greater.

DocImpact
Implements: blueprint 3par-dedup

Change-Id: I6ebad3682d5d53a9b1a6329d666a1d7fb06eba0a

9 years agoProvided requirements are meant to be immutable
Joshua Harlow [Wed, 11 Feb 2015 22:14:51 +0000 (14:14 -0800)]
Provided requirements are meant to be immutable

Since provided values are not meant to change (and
this statement is useless) we should not try to
perform an update() on the provided values (the update
is a no-op anyway, so might as well get rid of it).

Change-Id: I18699fc64391445436537854a5e3723f4e89e961

9 years agoMerge "Don't fail target_delete if target doesn't exist"
Jenkins [Wed, 11 Feb 2015 21:57:08 +0000 (21:57 +0000)]
Merge "Don't fail target_delete if target doesn't exist"

9 years agoRemove optional parameter from lun mapping call
mikhail [Wed, 11 Feb 2015 16:20:13 +0000 (08:20 -0800)]
Remove optional parameter from lun mapping call

Remove optional parameter from lun mapping call as it's
unneeded and creates an issue in case of HA-cluster

Change-Id: Ifbe2896fd74e514d66256ff0190db25bfcc9fa6b

9 years agoMerge "Mock out the wait routine in the VMAX driver"
Jenkins [Wed, 11 Feb 2015 19:02:34 +0000 (19:02 +0000)]
Merge "Mock out the wait routine in the VMAX driver"

9 years agoquobyte: remove dependency to xattr
Danny Al-Gaaf [Tue, 10 Feb 2015 15:43:21 +0000 (16:43 +0100)]
quobyte: remove dependency to xattr

The Quobyte driver introduced an new dependency to xattr
python binding. This driver is the only consumer of xattr.

Instead of introducing new dependencies call getfattr binary
as already done in the quobyte nova volume driver.

Closes-Bug: 1420332
Co-Authored-By: Marc Koderer <marc@koderer.com>
Change-Id: I83f97310313cf7a603996ae64327002cdf0ad5fc
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoDon't fail target_delete if target doesn't exist
John Griffith [Mon, 9 Feb 2015 21:45:40 +0000 (14:45 -0700)]
Don't fail target_delete if target doesn't exist

There are cases seen in the Gate where a target delete is
called and an exception is raised because the target does
not exist. In the cinder target driver code we raise this
as an ISCSITargetRemoveFailed exception, but if we're asking
to delete the target and the target doesn't exist we can
probably safely move along.

This patch adds a check for this specific case and logs a warning
and continues rather than failing.  We also add a unit test to
check this case.

Change-Id: I7021cafc9ee48bb8ad54433e4482ff1d61e865ae
Closes-Bug: #1420010

9 years agoMerge "Fix detach volume from host problem in VMAX driver"
Jenkins [Wed, 11 Feb 2015 00:09:51 +0000 (00:09 +0000)]
Merge "Fix detach volume from host problem in VMAX driver"

9 years agoMerge "Remove custom lazy loading"
Jenkins [Tue, 10 Feb 2015 17:56:05 +0000 (17:56 +0000)]
Merge "Remove custom lazy loading"

9 years agoRemove custom lazy loading
Ivan Kolodyazhny [Tue, 16 Dec 2014 23:04:33 +0000 (01:04 +0200)]
Remove custom lazy loading

We are using stevedore for database migration backend loading

Closes-Bug: #1420321
Change-Id: I281d631f9fd72d9d6938ffd2945fbeea8099dff5

9 years agoSplit volume driver into ABC classes
Marc Koderer [Tue, 10 Feb 2015 07:30:09 +0000 (08:30 +0100)]
Split volume driver into ABC classes

Use ABCmeta classes to define feature sets of drivers.
As interim solution the VolumeDriver class stays mainly unchanged to
ensure that all drivers work and can be migrated stepwise by the
driver maintainer.

Co-Authored-By: Mike Perez <thingee@gmail.com>
Implements: blueprint abc-volume-drivers
Change-Id: I558ded19368aaa7ce4be029fa16f63e6e188097a

9 years agoMerge "New Cinder volume driver for openvstorage"
Jenkins [Tue, 10 Feb 2015 07:54:45 +0000 (07:54 +0000)]
Merge "New Cinder volume driver for openvstorage"

9 years agoMerge "fix typo in config.py"
Jenkins [Tue, 10 Feb 2015 07:54:31 +0000 (07:54 +0000)]
Merge "fix typo in config.py"

9 years agoMock out the wait routine in the VMAX driver
Xing Yang [Tue, 10 Feb 2015 04:38:57 +0000 (23:38 -0500)]
Mock out the wait routine in the VMAX driver

This patch mocks out the wait routine in the VMAX driver.

Change-Id: I9c503395dd03a4fe41604578adfce7ea2709c301

9 years agoLimit ram and disk used by ceph backup tests
Alex Meade [Mon, 2 Feb 2015 21:18:15 +0000 (16:18 -0500)]
Limit ram and disk used by ceph backup tests

The test_discard_bytes test in
cinder/tests/test_backup_ceph.py uses a lot of
ram and disk space since it tests the ceph driver with
the default chunk size of 128Mi. This patch lowers it
to use 1024 bytes instead.

Closes-bug: #1417293

Change-Id: I387650bc5ffe57ad8a4cacd1fca5d039fec38eed

9 years agoMerge "Make storwize debug log more readable"
Jenkins [Mon, 9 Feb 2015 14:19:56 +0000 (14:19 +0000)]
Merge "Make storwize debug log more readable"

9 years agoFix detach volume from host problem in VMAX driver
Xing Yang [Thu, 5 Feb 2015 17:09:34 +0000 (12:09 -0500)]
Fix detach volume from host problem in VMAX driver

The VMAX driver unmaps a volume from a host without checking
the host info in the connector, resulting the wrong host to be
detached. This patch looks up the host info before detach and
fixes the problem.

Closes-Bug: #1382641
Change-Id: I68f053b34cc68cdb4f3a9e622faa47a260abd53a

9 years agofix typo in config.py
Danny Al-Gaaf [Thu, 22 Jan 2015 01:38:37 +0000 (02:38 +0100)]
fix typo in config.py

Change help texts and messages from GigaByte/Gigabyte(s) to correct
spelling gigabyte(s).

Change-Id: I6b9d80dad619a9f02cef10d2a303c30b6c4572fb
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoMerge "Dell Storage Center Unit Test Updates for Kilo"
Jenkins [Sun, 8 Feb 2015 03:28:22 +0000 (03:28 +0000)]
Merge "Dell Storage Center Unit Test Updates for Kilo"

9 years agoMerge "Update hacking ignore list"
Jenkins [Sat, 7 Feb 2015 01:22:51 +0000 (01:22 +0000)]
Merge "Update hacking ignore list"

9 years agoMerge "Add extra library oslo.concurrency to oslo.config.generator.rc"
Jenkins [Fri, 6 Feb 2015 20:47:43 +0000 (20:47 +0000)]
Merge "Add extra library oslo.concurrency to oslo.config.generator.rc"

9 years agoMerge "Drop deprecated namespace for oslo.rootwrap"
Jenkins [Fri, 6 Feb 2015 20:47:34 +0000 (20:47 +0000)]
Merge "Drop deprecated namespace for oslo.rootwrap"

9 years agoUpdate hacking ignore list
Matt Riedemann [Fri, 6 Feb 2015 19:46:53 +0000 (11:46 -0800)]
Update hacking ignore list

H305 and H307 were removed from the ignore list in commit e0dae50dc.

F481 was removed from the ignore list in commit 30e15ec4a.

Change-Id: Ib6a6be6d20838d852d247d7469efb26b2d0f3121

9 years agoVMware: Delay string interpolation in log messages
Vipin Balachandran [Tue, 27 Jan 2015 11:26:39 +0000 (16:56 +0530)]
VMware: Delay string interpolation in log messages

As per OpenStack developer guidelines, string interpolation
should be delayed to be handled by the logging code. This
patch fixes violations of this guideline in the VMDK driver.

Change-Id: Ie449402b080debb186c3664a818c35e18b514382

9 years agoVMware: Integrate VMDK driver with oslo.vmware
Vipin Balachandran [Wed, 26 Nov 2014 10:14:22 +0000 (15:44 +0530)]
VMware: Integrate VMDK driver with oslo.vmware

The common code between various VMware drivers was moved to
oslo.vmware library during Icehouse release. The VMDK driver
should be updated to use this library. Changes are mostly
replacing import statements and removing redundant modules
and corresponding test cases.

Summary of changes:
* Replace api with oslo.vmware.api
* Replace vim with oslo.vmware.vim
* Replace pbm with oslo.vmware.pbm
* Replace io_util with oslo.vmware.image_transfer
* Replace vmware_images with oslo.vmware.image_transfer
* Replace read_write_util with oslo.vmware.rw_handles
* Remove error_util and use oslo.vmware.exceptions
* Move VMDK driver specific exceptions to a new module
  'exceptions'
* Replace PBM WSDL files with the corresponding files in
  oslo.vmware
* Replace PBM related methods in volumeops with the
  corresponding ones in oslo.vmware.pbm

Implements: blueprint vmdk-oslo.vmware
Change-Id: Ib484fabffb8ef1a56051d7e1bed5218b633306bb

9 years agoMerge "Enhance iSCSI multipath support"
Jenkins [Fri, 6 Feb 2015 07:35:42 +0000 (07:35 +0000)]
Merge "Enhance iSCSI multipath support"

9 years agoMerge "Revert "Implement Huawei SDSHypervisor driver""
Jenkins [Fri, 6 Feb 2015 07:35:33 +0000 (07:35 +0000)]
Merge "Revert "Implement Huawei SDSHypervisor driver""

9 years agoMerge "Add debug message for lvremove after udev settle"
Jenkins [Fri, 6 Feb 2015 07:35:24 +0000 (07:35 +0000)]
Merge "Add debug message for lvremove after udev settle"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 6 Feb 2015 07:35:14 +0000 (07:35 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "FlashSystem Code Cleanup"
Jenkins [Fri, 6 Feb 2015 07:32:48 +0000 (07:32 +0000)]
Merge "FlashSystem Code Cleanup"

9 years agoMerge "Create SolidFire Template account on init"
Jenkins [Fri, 6 Feb 2015 05:21:14 +0000 (05:21 +0000)]
Merge "Create SolidFire Template account on init"

9 years agoMerge "Fix argument order in assertEqual: tests/test_nfs.py"
Jenkins [Fri, 6 Feb 2015 05:14:44 +0000 (05:14 +0000)]
Merge "Fix argument order in assertEqual: tests/test_nfs.py"

9 years agoMerge "Make PureISCSIDriver iSCSI port discovery more flexible"
Jenkins [Fri, 6 Feb 2015 05:09:51 +0000 (05:09 +0000)]
Merge "Make PureISCSIDriver iSCSI port discovery more flexible"

9 years agoMerge "Enable use of an /etc/cinder/lvm.conf file"
Jenkins [Fri, 6 Feb 2015 04:52:09 +0000 (04:52 +0000)]
Merge "Enable use of an /etc/cinder/lvm.conf file"

9 years agoEnhance iSCSI multipath support
Tomoki Sekiyama [Thu, 11 Dec 2014 23:23:18 +0000 (18:23 -0500)]
Enhance iSCSI multipath support

Currently, nova-compute and brick support multipath for iSCSI volume
data path. It depends on response to targets discovery of the main
iSCSI portal, expecting multiple portal addresses to be contained.

However, some arrays only respond to discovery with a single portal
address, even if secondary portals are available. In this case,
the connector cannot know secondary portals and corresponding
iSCSI target IQN, so cannot establish multiple sessions for
the target(s). To enable the connector to login to secondary portals,
cinder should tell all the portal addresses and corresponding
target iqns/luns.

With this patch initialize_connection API will return connection_info
with multiple portal addresses/iqns/luns when multipath=True is
specified in the connector info. For example:

  {"driver_volume_type": "iscsi",
   "data": {"target_portals": ["10.0.2.15:3260", "10.0.3.15:3260"],
            "target_iqns": ["iqn.2010-10.org.example:target-01",
                            "iqn.2010-10.org.example:target-02"],
            "target_luns": [1, 2],
            ...}}

This also modify brick/iscsi/connector.py to make the parameter
recognized and to login to every target.

In addition, this adds an config option
'iscsi_secondary_ip_addresses' to specify a list of secondary
portal addresses for LVM iSCSI Driver.

Change-Id: I2a650c8ae70189b738937eaea7e5cd28f896257c
Implements: blueprint iscsi-multipath-enhancement

9 years agoDell Storage Center Unit Test Updates for Kilo
Tom Swanson [Thu, 5 Feb 2015 19:33:03 +0000 (13:33 -0600)]
Dell Storage Center Unit Test Updates for Kilo

Expanded our unit test coverage: test_dellscapi.py.
This tests our api module.  We've also added some
minor driver fixes found by unit and other testing.
Some logging statements have been updated.
All changes are in the dell storage center driver
and unit test files.

Change-Id: Ie12f1f0f82cb4b4d95edeb9c7f3e73caacce1a7f
Implements: blueprint dell-sc-unittests-update-kilo

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 5 Feb 2015 20:11:10 +0000 (20:11 +0000)]
Updated from global requirements

Change-Id: I97eb25f01f3079245ede66887f43622b22d9accc

9 years agoMerge "Update eqlx driver help text"
Jenkins [Thu, 5 Feb 2015 18:55:33 +0000 (18:55 +0000)]
Merge "Update eqlx driver help text"

9 years agoMerge "Support over subscription in thin provisioning"
Jenkins [Thu, 5 Feb 2015 17:39:15 +0000 (17:39 +0000)]
Merge "Support over subscription in thin provisioning"

9 years agoUpdate eqlx driver help text
Sean McGinnis [Thu, 5 Feb 2015 14:59:22 +0000 (08:59 -0600)]
Update eqlx driver help text

Adds a more descriptive help text to the allowed and default values.

Continuation of work started by James King in:
https://review.openstack.org/#/c/144656

Change-Id: I95de8c93bf6a6ff318d6e726488ebae371ee55bf
Closes-Bug: 1380686

9 years agoAdd extra library oslo.concurrency to oslo.config.generator.rc
ChangBo Guo(gcb) [Wed, 26 Nov 2014 03:30:40 +0000 (11:30 +0800)]
Add extra library oslo.concurrency to oslo.config.generator.rc

We used extra library oslo.concurrency in Cinder, and oslo.concurrency
provides configuration options, we need include these options in sample
config file. This commit handles that.
Change-Id: I534539b7e87a3f5dc36722395cbe241a10b2d75e

9 years agoMerge "Change oslo.* to oslo_*"
Jenkins [Thu, 5 Feb 2015 12:30:28 +0000 (12:30 +0000)]
Merge "Change oslo.* to oslo_*"

9 years agoMerge "RemoteFS: Use nas_ip and nas_share_path options"
Jenkins [Thu, 5 Feb 2015 11:02:10 +0000 (11:02 +0000)]
Merge "RemoteFS: Use nas_ip and nas_share_path options"

9 years agoMerge "Add retry for tgtadm update when tgt exists"
Jenkins [Thu, 5 Feb 2015 07:18:56 +0000 (07:18 +0000)]
Merge "Add retry for tgtadm update when tgt exists"

9 years agoMerge "Lefthand driver fails to attach a cloned volume"
Jenkins [Thu, 5 Feb 2015 06:38:24 +0000 (06:38 +0000)]
Merge "Lefthand driver fails to attach a cloned volume"

9 years agoMerge "Purge deleted rows"
Jenkins [Thu, 5 Feb 2015 06:22:14 +0000 (06:22 +0000)]
Merge "Purge deleted rows"

9 years agoSupport over subscription in thin provisioning
Xing Yang [Fri, 16 Jan 2015 21:27:23 +0000 (16:27 -0500)]
Support over subscription in thin provisioning

This patch adds support for over subscription in thin provisioning.
The following changes are proposed:

* A configuration option "max_over_subscription_ratio" will be
  introduced.
* Driver reports the following capacities and ratios:
  * provisioned_capacity
  * max_over_subscription_ratio
    * Driver can use the newly added configuration option to report
      this ratio or it can decide what ratio to report itself.
      The value of this ratio is depending on driver implementation
      and will be reported together with other capabilities and
      capacities by the driver.
  * reserved_percentage
    * Note: This is an existing parameter reported by the driver.
    * Currently it is measured against the free capacity. In this
      patch, it will be changed to measure against the total
      capacity in the filter scheduler.
* Driver also reports the following capabilities:
  * thin_provisioning_support (True or False)
  * thick_provisioning_support (True or False)
* Scheduler will use the above new capabilities reported by the
  driver to make decisions when choosing a backend.

For more details, please see Cinder spec:
https://review.openstack.org/#/c/129342/12/specs/kilo/
over-subscription-in-thin-provisioning.rst

Implements: blueprint over-subscription-in-thin-provisioning
Change-Id: I176a691a4e25bbdc7c4d598628acf2543b2c7ac6

9 years agoMerge "Fixes the EQL driver CI tests AttributeError"
Jenkins [Thu, 5 Feb 2015 02:07:43 +0000 (02:07 +0000)]
Merge "Fixes the EQL driver CI tests AttributeError"

9 years agoChange oslo.* to oslo_*
Anish Bhatt [Tue, 3 Feb 2015 21:19:40 +0000 (13:19 -0800)]
Change oslo.* to oslo_*

Change oslo.db to oslo_db
Change oslo.config to olso_config
Change oslo.rootwrap to oslo_rootwrap

The oslo libraries are moving away from namespace packages.

Partial-bug: 1409733

Change-Id: I3429282afa2db4c0b3aa630eb3a0eaece04405ed

9 years agoLefthand driver fails to attach a cloned volume
Kurt Martin [Thu, 5 Feb 2015 00:09:44 +0000 (16:09 -0800)]
Lefthand driver fails to attach a cloned volume

The provider location was not being populated for cloned volumes.
This patch is updating the provider location for cloned volumes
resulting in successful volume attachments.

Change-Id: I86ef7935ed7233377aa4745dc4b45fcab5703f0a
Closes-Bug: 1418201

9 years agoMerge "Remove the solaris volume driver"
Jenkins [Wed, 4 Feb 2015 22:45:27 +0000 (22:45 +0000)]
Merge "Remove the solaris volume driver"

9 years agoPurge deleted rows
Abel Lopez [Tue, 13 Jan 2015 02:50:00 +0000 (18:50 -0800)]
Purge deleted rows

Adds the ability to clean up rows that are already marked as
deleted of a certain specified age. Age is calculated as timedelta
from now() in days, which are given at command line

DocImpact
Change-Id: Ia50ab0dc4aa1547a5a6a2430f7941aab194e4baf
Implements: blueprint database-purge

9 years agoMake PureISCSIDriver iSCSI port discovery more flexible
Patrick East [Tue, 3 Feb 2015 20:09:58 +0000 (12:09 -0800)]
Make PureISCSIDriver iSCSI port discovery more flexible

While searching for reachable iSCSI ports on the target flash array it
might fail the discovery command. If this happens on driver setup it
will throw an exception from attempting to use fields on an
uninitialized class variable. This fixes the log message and adds a
retry to the method to make this more flexible with network timeouts.

Closes-Bug: 1417730
Change-Id: I99ffb8de4dd5a421442df1bf745808505775480a

9 years agoMerge "EMC VNX Cinder Driver Update"
Jenkins [Wed, 4 Feb 2015 14:40:41 +0000 (14:40 +0000)]
Merge "EMC VNX Cinder Driver Update"

9 years agoEMC VNX Cinder Driver Update
Jeegn Chen [Sun, 14 Dec 2014 09:17:41 +0000 (17:17 +0800)]
EMC VNX Cinder Driver Update

VNX Direct Driver was contributed in Icehouse and updated in Juno.
This commit is to continuously improve the driver with the
following enhancements in Kilo:

* Performance improvement, especially the synchronized operations
initiatlize_connetion and terminate_connection.
* LUN Number Threshold Support
* Initiator Auto Deregistration
* Force Deleting LUN in Storage Groups
* Code refactor to enhance the robustness

Change-Id: Id263a5d0405ba942582ce06beed09b436b80ff3c
Implements: blueprint emc-vnx-direct-driver-kilo-update

9 years agoMerge "Add manage/unmanage methods for Hitachi Block Storage Driver"
Jenkins [Wed, 4 Feb 2015 06:01:42 +0000 (06:01 +0000)]
Merge "Add manage/unmanage methods for Hitachi Block Storage Driver"

9 years agoMake storwize debug log more readable
Li Min Liu [Sun, 1 Feb 2015 15:22:43 +0000 (23:22 +0800)]
Make storwize debug log more readable

Use volume id instead of volume object in debug log.

Change-Id: Ie16d6fefdfffe9d52c0c05bc904142a36e725bf4

9 years agoFixes the EQL driver CI tests AttributeError
rajinir [Tue, 3 Feb 2015 21:38:13 +0000 (15:38 -0600)]
Fixes the EQL driver CI tests AttributeError

Moved the ssh object back to a 'with' Block to
fix the AttributeError thrown by the GeneralContextManager
in the Eqlx CI tests

Fixed the unit tests to mock the enter and exit methods
instead

Change-Id: I629d20e815fb7da3df90dfeee76abc1c60daeefe
Closes-Bug: #1417772

9 years agoMerge "Tests: Don't sleep for looping calls (eqlx)"
Jenkins [Tue, 3 Feb 2015 19:17:58 +0000 (19:17 +0000)]
Merge "Tests: Don't sleep for looping calls (eqlx)"

9 years agoMerge "Roll back if VMAX masking view not created"
Jenkins [Tue, 3 Feb 2015 18:31:00 +0000 (18:31 +0000)]
Merge "Roll back if VMAX masking view not created"

9 years agoAdd manage/unmanage methods for Hitachi Block Storage Driver
Seiji Aguchi [Fri, 23 Jan 2015 05:24:41 +0000 (14:24 +0900)]
Add manage/unmanage methods for Hitachi Block Storage Driver

 This patch adds manage_existing, manage_existing_get_size, and
 unmanage methods for Hitachi Block Storage Driver.

Implements: blueprint hitachi-driver-manage-api

Change-Id: I8dc9086452f4db2e2635bf9c933e1fd9d4328367
Signed-off-by: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
9 years agoRemoteFS: Use nas_ip and nas_share_path options
Eric Harney [Fri, 23 Jan 2015 20:41:40 +0000 (15:41 -0500)]
RemoteFS: Use nas_ip and nas_share_path options

This replaces the <x>fs_shares_config file configuration
options with the existing nas_ip option and new
nas_share_path and nas_mount_options configuration
options.

This means that RemoteFS drivers will manage a single
export rather than a handful of unrelated exports.

If the nas_ip and nas_share_path options are set, they
are used.  If not, the previous configuration mechanism,
based on loading a set of shares from a file configured
by <x>fs_shares_config will be used.

Also use nas_mount_options to replace
nfs_mount_options for consistency.  If nas_mount_options
is not set, nfs_mount_options will be used for
compatibility.

Implements blueprint: remotefs-share-cfg-improvements
DocImpact: new configuration options

Change-Id: Ic72ae6c7fdd2c6a7fea27152f27c6521a561977b