]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoFix for infinity capacity reporting in EQL driver
ArkadyKanevsky [Fri, 13 Feb 2015 16:22:38 +0000 (10:22 -0600)]
Fix for infinity capacity reporting in EQL driver

Updated default values for total and free capacity from infinity to 0.
No more usage of unknown or infinity.

Closes bug: #1421843

Change-Id: I8bebdb9f54642ffb6ab77e81f759549db3ab838a

9 years agoMerge "Custom zone name prefix not being used by brcd driver"
Jenkins [Wed, 25 Feb 2015 16:45:34 +0000 (16:45 +0000)]
Merge "Custom zone name prefix not being used by brcd driver"

9 years agoMerge "Fix logging guideline violations in volume/api.py"
Jenkins [Wed, 25 Feb 2015 05:57:09 +0000 (05:57 +0000)]
Merge "Fix logging guideline violations in volume/api.py"

9 years agoMerge "Sync the 'fileutils' module from oslo-incubator"
Jenkins [Wed, 25 Feb 2015 05:53:37 +0000 (05:53 +0000)]
Merge "Sync the 'fileutils' module from oslo-incubator"

9 years agoMerge "Remove unused 'test' module from oslo-incubator"
Jenkins [Wed, 25 Feb 2015 05:30:59 +0000 (05:30 +0000)]
Merge "Remove unused 'test' module from oslo-incubator"

9 years agoMerge "Pass region name to Nova client"
Jenkins [Wed, 25 Feb 2015 05:30:05 +0000 (05:30 +0000)]
Merge "Pass region name to Nova client"

9 years agoMerge "FCZM fix reading of cinder config entries"
Jenkins [Tue, 24 Feb 2015 22:36:20 +0000 (22:36 +0000)]
Merge "FCZM fix reading of cinder config entries"

9 years agoCustom zone name prefix not being used by brcd driver
Angela Smith [Tue, 24 Feb 2015 21:04:02 +0000 (13:04 -0800)]
Custom zone name prefix not being used by brcd driver

Config file setting for zone name prefix and activate flag were
not being picked up by the brocade zone driver.  Modified the
way the config options are used for each fabric for these config
options.

Closes-Bug: #1373130
Change-Id: Ib5598e58589aa4316e6c8b9b495beec9db2a4b96

9 years agoMerge "Generic filter support for volume queries"
Jenkins [Tue, 24 Feb 2015 19:08:01 +0000 (19:08 +0000)]
Merge "Generic filter support for volume queries"

9 years agoFCZM fix reading of cinder config entries
Walter A. Boring IV [Tue, 24 Feb 2015 16:23:03 +0000 (08:23 -0800)]
FCZM fix reading of cinder config entries

The zone manager and the lookup service had some cruft code that
was incorrectly reading the cinder.conf sections it needed.
When cinder.conf was configured to use the Cisco driver, the zone
manager would never see it, because it was reading from the wrong
section of cinder.conf.

Change-Id: I4a48bc39e55d4b7e9a149a3ec3aa3947980360ea
Closes-Bug: 1424852

9 years agoMerge "Tests: Fix cxt target tests opening files"
Jenkins [Tue, 24 Feb 2015 09:44:30 +0000 (09:44 +0000)]
Merge "Tests: Fix cxt target tests opening files"

9 years agoMerge "LVM: Fix thin provisioning and mirrors stats reporting"
Jenkins [Tue, 24 Feb 2015 08:37:39 +0000 (08:37 +0000)]
Merge "LVM: Fix thin provisioning and mirrors stats reporting"

9 years agoMerge "Remove retry_deactivation directive on lvremove"
Jenkins [Tue, 24 Feb 2015 08:37:29 +0000 (08:37 +0000)]
Merge "Remove retry_deactivation directive on lvremove"

9 years agoMerge "Make Interval and Retries Configurable for VMAX"
Jenkins [Tue, 24 Feb 2015 08:36:49 +0000 (08:36 +0000)]
Merge "Make Interval and Retries Configurable for VMAX"

9 years agoMerge "Fixed 3PAR driver load balancing during migration"
Jenkins [Tue, 24 Feb 2015 04:16:07 +0000 (04:16 +0000)]
Merge "Fixed 3PAR driver load balancing during migration"

9 years agoMerge "Remove warnings for long vgs and lvs calls"
Jenkins [Mon, 23 Feb 2015 22:13:36 +0000 (22:13 +0000)]
Merge "Remove warnings for long vgs and lvs calls"

9 years agoGeneric filter support for volume queries
Steven Kaufer [Thu, 12 Feb 2015 14:45:18 +0000 (14:45 +0000)]
Generic filter support for volume queries

DB functions exist to get all volumes, to get all volumes in a particular
project, to get all volumes in a particular group, and to get all volumes
hosted on a particular host. See the following functions in the DB API:

* volume_get_all
* volume_get_all_by_project
* volume_get_all_by_group
* volume_get_all_by_host

Only the queries that get all volumes and that get all volumes by project
support additional filtering.

The purpose of this patch set is to make the filtering support consistent
across these APIs, adding it to the volume_get_all_by_group and the
volume_get_all_by_host APIs.

Change-Id: I6af9b4de9e70ec442e7e61c6b0baa9b02798a06d
Implements: blueprint db-volume-filtering

9 years agoRemove warnings for long vgs and lvs calls
John Griffith [Thu, 19 Feb 2015 23:07:17 +0000 (16:07 -0700)]
Remove warnings for long vgs and lvs calls

We put some warning statements in a while back for
lvs and vgs commands that lasted more than 60 seconds
so we could easily query issues in the gate.

Since then we've made a number of changes to improve our
LVM interactions including the use of an LVM conf file with
a filter for only the VG's Cinder uses.

There's one issue remaining however where during the instance
rescue test in Nova where LVM get's stuck trying to open
devices that no longer exist.  Part of this I think is due
to some manipulation that Nova/KVM does on the attached volume
when the test is run, but also the rescue process in Nova
uses LVM volumes as well and does some moving around and mounting
of devices.

The result is that LVM calls can take quite a while
(greater than 100 seconds) to complete during the rescue process.
This doesn't result in any failures, just that the rescue process
slows things down dramatically and is a pretty heavy process.

Also, the newer versions of process utils include completion
timing in the logs so we don't really need this any longer eve
to query timings and get info.

This patch removes those log statements, and proposes we
document somewhere that rescue operations on a setup that
includes c-vol service and nova-compute service on the same
node will temporarily impact LVM performance.

Change-Id: Iddc8318ba23725990512f5a5945406561818c5ba

9 years agoMerge "Fix exceptions logging in TgtAdm"
Jenkins [Mon, 23 Feb 2015 06:07:58 +0000 (06:07 +0000)]
Merge "Fix exceptions logging in TgtAdm"

9 years agoMerge "Manage/unmanage impl for NetApp ONTAP iscsi driver"
Jenkins [Sat, 21 Feb 2015 23:07:06 +0000 (23:07 +0000)]
Merge "Manage/unmanage impl for NetApp ONTAP iscsi driver"

9 years agoMerge "NetApp E-series: Allow scheduling by disk"
Jenkins [Sat, 21 Feb 2015 23:06:08 +0000 (23:06 +0000)]
Merge "NetApp E-series: Allow scheduling by disk"

9 years agoMerge "IBM GPFS Consistency Group Implementation"
Jenkins [Sat, 21 Feb 2015 19:42:43 +0000 (19:42 +0000)]
Merge "IBM GPFS Consistency Group Implementation"

9 years agoMerge "Fix exception error on HNAS drivers"
Jenkins [Sat, 21 Feb 2015 18:38:28 +0000 (18:38 +0000)]
Merge "Fix exception error on HNAS drivers"

9 years agoMerge "Sync 'loopingcall' module from oslo-incubator"
Jenkins [Sat, 21 Feb 2015 03:03:06 +0000 (03:03 +0000)]
Merge "Sync 'loopingcall' module from oslo-incubator"

9 years agoMerge "Sync 'eventlet_backdoor' module from oslo-incubator"
Jenkins [Sat, 21 Feb 2015 03:02:55 +0000 (03:02 +0000)]
Merge "Sync 'eventlet_backdoor' module from oslo-incubator"

9 years agoMerge "Change exception message in volume api"
Jenkins [Sat, 21 Feb 2015 01:51:03 +0000 (01:51 +0000)]
Merge "Change exception message in volume api"

9 years agoFix exceptions logging in TgtAdm
Ivan Kolodyazhny [Fri, 20 Feb 2015 23:14:54 +0000 (01:14 +0200)]
Fix exceptions logging in TgtAdm

Use six.text_type(e) to not get UnicodeError on log message formatting.
Fixed logging according to the Logging guidelines.

Change-Id: Ic5dde17d2668d4b9ff2bea5cc0599f4c8b51362d
Closes-Bug: #1402078

9 years agoSync 'loopingcall' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 22:13:36 +0000 (16:13 -0600)]
Sync 'loopingcall' module from oslo-incubator

In order to be able to move to using the new log
library we need to update loopingcall to the latest
version.

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
2fbf5065 - Remove oslo.log code and clean up versionutils API
5985b35f - Prefer delayed %r formatting over explicit repr use

Change-Id: I088007bb56d26357ed7b578ae5a57208a3449782

9 years agoSync the 'fileutils' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 21:05:56 +0000 (15:05 -0600)]
Sync the 'fileutils' module from oslo-incubator

The fileutils module hasn't been updated since
November of 2014.  We need to bring this module up
to date to support the namespace changes that have
been made.

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
ac17de97 - Use oslo_utils instead of deprecated oslo.utils
809080ed - Introduce fileutils ensure_dir creation mode parameter

Change-Id: I0bca3cc59126abed8ef736bf5e199857f681e5cd

9 years agoSync 'eventlet_backdoor' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 20:48:46 +0000 (14:48 -0600)]
Sync 'eventlet_backdoor' module from oslo-incubator

The eventlet_backdor module hasn't been updated in Cinder since
September of 2014.  In order to be able to move to the oslo.log
library and be able o clean other modules out of oslo-incubator
we need to bring it up to the latest level.

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
2aacb111 - Change oslo.config to oslo_config
2fbf5065 - Remove oslo.log code and clean up versionutils API
80c47519 - Remove unnecessary import of eventlet
a3220c51 - add list_opts to all modules with configuration options
5d40e143 - Remove code that moved to oslo.i18n

Change-Id: I875964a00e449e2314a648cc9586d97e51990de8

9 years agoRemove unused 'test' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 20:28:09 +0000 (14:28 -0600)]
Remove unused 'test' module from oslo-incubator

The test module is not being used by anything in
Cinder and, therefore, may be removed.

This patch removes cinder/openstack/common/test.py

Change-Id: I5ded9863863f833e9717dc4e2cba7415118bf326

9 years agoIBM GPFS Consistency Group Implementation
Nilesh Bhosale [Thu, 25 Dec 2014 13:52:58 +0000 (19:22 +0530)]
IBM GPFS Consistency Group Implementation

Adding support for consistency groups in IBM GPFS driver.

Change-Id: I308d224982301eb42e75e68b4e3c689ee568fcd6
Implements: blueprint ibm-gpfs-consistency-group

9 years agoFixed 3PAR driver load balancing during migration
Kurt Martin [Fri, 20 Feb 2015 17:19:03 +0000 (09:19 -0800)]
Fixed 3PAR driver load balancing during migration

This patch will not allow the 3PAR iSCSI driver to pick another
iSCSI IP from the hp3par_iscsi_ips list during a nova live-migration.

Nova expects that the IQN will be exactly the same as it's attaching
the volume(s) to the new host during live-migration. This conflicts
with the Cinder settings such as "hp3par_iscsi_ips" which allows for
multiple IPs for the purpose of load balancing.

Change-Id: Idee2fdf7d5bbbe8fb7bdbc3ff20622a213738aa5
Closes-bug: 1423958

9 years agoNetApp E-series: Allow scheduling by disk
Alex Meade [Thu, 16 Oct 2014 20:11:32 +0000 (16:11 -0400)]
NetApp E-series: Allow scheduling by disk

This patch allows volume scheduling by disk type via the
netapp_disk_type volume type extra spec and disk encryption via the
netapp_disk_encryption volume type extra spec

Partially Implements bp: netapp-eseries-extra-specs

Change-Id: I6e11073838c1b63b6a0680d991f8f1289ca63704

9 years agoMake Interval and Retries Configurable for VMAX
Xing Yang [Fri, 20 Feb 2015 06:28:10 +0000 (01:28 -0500)]
Make Interval and Retries Configurable for VMAX

JOB_RETRIES=60 and INTERVAL_10_SEC=10 are hard-coded in VMAX driver.
This patch makes them configurable.

Change-Id: I39930580b1aa4f62b51d7eb332ba96791a3bf4c3
Closes-Bug: #1401279

9 years agoPass region name to Nova client
Adrien Vergé [Thu, 12 Feb 2015 16:09:47 +0000 (17:09 +0100)]
Pass region name to Nova client

When using a Novaclient method on a multi-region infrastructure,
requests sometimes fail with an AmbiguousEndpoints Exception,
because more than one Nova endpoint is returned in the catalog.

This patch passes `region_name` and `endpoint_type` from conf to
Novaclient, so this error case is avoided.

Change-Id: Ic4810a1c5223575c6d6300156491437ea67c4a7a
Closes-Bug: #1421314

9 years agoRemove retry_deactivation directive on lvremove
John Griffith [Thu, 19 Feb 2015 23:18:12 +0000 (16:18 -0700)]
Remove retry_deactivation directive on lvremove

A while back an LVM_CONF directive was added to
explicitly retry_deactivation on lvremove.  This
was a great idea, but since then the LVM defaults
all seem to set this for us anyway so we don't
really need to send it in the call explicitly
any more.

Also, we've introduced the option to use a cinder
specific lvm.conf file which can be used to set
or unset values like this going forward:
    (commit: eb7bb3e08c1b8e1008ba447b842b635821e2097e)

This patch removes the retry_deactivation directive, but
leaves the ignore_suspended_devices setting as we don't
want to use that all the time, but only during recovery.
There may be better options for this call as well but
that's a possible future improvement unrelated to this
commit.

Change-Id: I167ea9a24cfeeb3716c90c87a0609271d3255ca6

9 years agoManage/unmanage impl for NetApp ONTAP iscsi driver
Navneet Singh [Tue, 12 Aug 2014 08:22:39 +0000 (13:52 +0530)]
Manage/unmanage impl for NetApp ONTAP iscsi driver

This patch implements manage and unmanage support for NetApp's
cmode and 7mode iscsi drivers. The input required for manage call
is either source-id or source-name or both.

Implements: Blueprint cdot-iscsi-manage-unmanage
Implements: Blueprint 7mode-iscsi-manage-unmanage

Change-Id: Ifdc700122b98a2fb6cbd53d913d72391d7e92b54

9 years agoFix some message nits in the ZoneManager
Joe Cropper [Thu, 19 Feb 2015 05:55:04 +0000 (23:55 -0600)]
Fix some message nits in the ZoneManager

This patch addresses some nit comments I've received on some of the
ZoneManager's conf options (e.g., not documenting the valid zoning
strategies) and some other minor message format items.

Cleaned up some globalization items as well (% => ,).

Also fixed the UTs since they didn't work at all due to duplicate
opt errors based on the UT structure.

Change-Id: I84b55710bd8afe4fcdd539fcc49805ba88d13dc4
Closes-Bug: 1423450

9 years agoMerge "Implement refresh as kwargs in get_volume_stats"
Jenkins [Thu, 19 Feb 2015 01:48:04 +0000 (01:48 +0000)]
Merge "Implement refresh as kwargs in get_volume_stats"

9 years agoMerge "Dell sc driver iscsi multipath enhancement"
Jenkins [Thu, 19 Feb 2015 01:35:58 +0000 (01:35 +0000)]
Merge "Dell sc driver iscsi multipath enhancement"

9 years agoImplement refresh as kwargs in get_volume_stats
Steven Kaufer [Wed, 18 Feb 2015 21:45:57 +0000 (21:45 +0000)]
Implement refresh as kwargs in get_volume_stats

When implementing the base driver "get_volume_stats" function, not all
drivers implemented 'refresh' as a kwarg. This can cause failures for any
code that simply invokes the following (assuming that refresh will default
to False -- which is does for 50+ drivers):

    driver.get_volume_stats()

This patch set updates the 7 drivers that did not implement refresh as a
kwarg so that the various driver implementations are consistent.

Closes-bug: 1423357
Change-Id: I6520155d1cbde4bf41573c170f4ea81815b5c1c2

9 years agoDell sc driver iscsi multipath enhancement
Tom Swanson [Tue, 17 Feb 2015 20:00:04 +0000 (14:00 -0600)]
Dell sc driver iscsi multipath enhancement

Added support for the connector's multipath boolean.  If this is
set the initialize_connection function returns arrays of all the
IQNs, LUNs and portals associated with the mapping of the volume
to the server.  If this is not set the standard return of a lone
IQN, LUN and portal is implemented.

Minor change to find_volume.  If a volume name or instance isn't
set then it will not be sent as a payload filter to the Dell
Storage Center array.

Additional Unit Tests to support the changes.

Change-Id: I2f7404c76c71f5bf6d06496ab5aa4617ba80615b
Implements: blueprint dell-sc-driver-iscsi-multipath-enhancement

9 years agoTests: Fix cxt target tests opening files
Eric Harney [Wed, 18 Feb 2015 18:04:09 +0000 (13:04 -0500)]
Tests: Fix cxt target tests opening files

This fixes the test_ensure_export test so that it does
not try to open files from /var/lib/cinder/.

Closes-Bug: #1423261

Change-Id: I79ed64918b2ae7fb5ea8b5cedeb1dca83898c759

9 years agoLVM: Fix thin provisioning and mirrors stats reporting
Eric Harney [Wed, 18 Feb 2015 16:48:23 +0000 (11:48 -0500)]
LVM: Fix thin provisioning and mirrors stats reporting

This appears to do the wrong thing in the case where
both lvm_mirrors and thin prov are being used, since
the "elif...thin" block won't be hit.

Ensure thin provisioning is always reported correctly.

Change-Id: I3c89af4d86e96ded8208f140928a8f2f8e54937a

9 years agoMerge "Fix return value inconsistency in VNX Driver"
Jenkins [Wed, 18 Feb 2015 16:33:54 +0000 (16:33 +0000)]
Merge "Fix return value inconsistency in VNX Driver"

9 years agoFix exception error on HNAS drivers
Rodrigo Barbieri [Fri, 6 Feb 2015 12:27:05 +0000 (10:27 -0200)]
Fix exception error on HNAS drivers

This patch fixes the error thrown on the loading of HNAS drivers (NFS and
iSCSI). The bug was added by commit 450a35e2. Also, it adds unit tests to cover
exception situations.

Change-Id: I00957c4d39117a50d2ac2753f853841eedbe86a0
Closes-bug: #1418645

9 years agoFix comments style according to the Hacking Rules
Yuriy Nesenenko [Wed, 11 Feb 2015 11:19:40 +0000 (13:19 +0200)]
Fix comments style according to the Hacking Rules

According to the PEP8(E265) there should be at least
one space before block comment.

Change-Id: Ic51f80210becc375b30f0f4e9eeb54995775c817
Partial-Bug: #1407162

9 years agoMerge "Snapshot of bootable volume goes in error state"
Jenkins [Wed, 18 Feb 2015 10:34:14 +0000 (10:34 +0000)]
Merge "Snapshot of bootable volume goes in error state"

9 years agoFix return value inconsistency in VNX Driver
Jeegn Chen [Tue, 17 Feb 2015 05:05:26 +0000 (13:05 +0800)]
Fix return value inconsistency in VNX Driver

When iscsi_initiators option for EMC Cinder Driver has no value,
a dict object is returned by find_available_iscsi_targets() in
EMC Cinder Driver while a list is expected. Thus an
initialize_connection() will fail due to the inconsistency.

This patch is to fix this inconsistency in the driver.

Change-Id: I094340cc60da4a8b423233983a1d00784bbbb8ea
Closes-Bug: 1422563

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 agoFix logging guideline violations in volume/api.py
Sean McGinnis [Fri, 13 Feb 2015 21:17:28 +0000 (15:17 -0600)]
Fix logging guideline violations in volume/api.py

There were a few cases where logging was not following
the logging guidelines for i18m, delayed string
interpolation, and non-duplicating strings at different
levels. This patch cleans up those instances.

Change-Id: Ic42f3e9d084cbb7262ad6e479d9608fbf56a63ee

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 agoSnapshot of bootable volume goes in error state
PranaliDeore [Tue, 27 Jan 2015 12:46:58 +0000 (04:46 -0800)]
Snapshot of bootable volume goes in error state

If volume is not created from image, no glance
metadata would be available for that volume/snapshot
in volume glance metadata table. So simply catch
GlanceMetadataNotFound and do nothing.

Closes-Bug: #1413880
Change-Id: Ic3267d422912f94e966412859e2b8bddeddfb75f

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 agoChange exception message in volume api
Anton Arefiev [Tue, 23 Dec 2014 11:24:59 +0000 (13:24 +0200)]
Change exception message in volume api

When reading logs, some exception message isn't informative
and has some typo, this patch change message in volume api.

APIImpact
Closes-Bug: #1405169

Change-Id: I783b37bf32fd19d25fe213d4bd915059d8e6d674

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