]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "Sync 'versionutils' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 11:18:08 +0000 (11:18 +0000)]
Merge "Sync 'versionutils' module from oslo-incubator"

9 years agoMerge "Sync 'service' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 07:58:55 +0000 (07:58 +0000)]
Merge "Sync 'service' module from oslo-incubator"

9 years agoMerge "Update 'systemd' module from oslo-incubator"
Jenkins [Thu, 26 Feb 2015 07:17:50 +0000 (07:17 +0000)]
Merge "Update 'systemd' module from oslo-incubator"

9 years agoMerge "Over subscription for Pure Storage iSCSI driver."
Jenkins [Thu, 26 Feb 2015 07:17:39 +0000 (07:17 +0000)]
Merge "Over subscription for Pure Storage iSCSI driver."

9 years agoMerge "Use oslo_config choices support"
Jenkins [Thu, 26 Feb 2015 07:06:33 +0000 (07:06 +0000)]
Merge "Use oslo_config choices support"

9 years agoMerge "Add CHAP persistence to SCST target helper"
Jenkins [Thu, 26 Feb 2015 04:52:43 +0000 (04:52 +0000)]
Merge "Add CHAP persistence to SCST target helper"

9 years agoMerge "Import only modules: H302"
Jenkins [Thu, 26 Feb 2015 04:24:02 +0000 (04:24 +0000)]
Merge "Import only modules: H302"

9 years agoMerge "EQLX: Consolidate CHAP config options"
Jenkins [Thu, 26 Feb 2015 04:09:33 +0000 (04:09 +0000)]
Merge "EQLX: Consolidate CHAP config options"

9 years agoMerge "Fix for infinity capacity reporting in EQL driver"
Jenkins [Thu, 26 Feb 2015 00:02:22 +0000 (00:02 +0000)]
Merge "Fix for infinity capacity reporting in EQL driver"

9 years agoMerge "Use Unique SCST Group names in SCST cinder helper driver."
Jenkins [Wed, 25 Feb 2015 23:38:38 +0000 (23:38 +0000)]
Merge "Use Unique SCST Group names in SCST cinder helper driver."

9 years agoMerge "Revert "Remove retry_deactivation directive on lvremove""
Jenkins [Wed, 25 Feb 2015 20:27:45 +0000 (20:27 +0000)]
Merge "Revert "Remove retry_deactivation directive on lvremove""

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 agoUse Unique SCST Group names in SCST cinder helper driver.
nikeshmahalka [Wed, 25 Feb 2015 15:14:13 +0000 (20:44 +0530)]
Use Unique SCST Group names in SCST cinder helper driver.

Currently, while setting up GROUPS under targets in scst.conf,
we are using the Initiator IQN as the group name. When we have
multiple targets and we want to connect LUN's from these multiple
targets to the same initiator, we are using the same GROUP name in
all the Target sections.

It would be good to provide a unique group name by prepending the
GROUP name with the target name. So the GROUP name will be
"Target name+Initiator IQN".

Change-Id: Ia0fbab18f792e602e1f4dae6f9ca0e607d0cfde3
Closes-Bug: #1424973

9 years agoAdd CHAP persistence to SCST target helper
nikeshmahalka [Thu, 19 Feb 2015 12:33:01 +0000 (18:03 +0530)]
Add CHAP persistence to SCST target helper

The SCST target helper currently does not have a mechanism to
persist CHAP records. Added this support so that LUNs will
get re-exported if Cinder service restarts.

Change-Id: I3daa48e7f460feef9764b79b47d7be308579fe40
Closes-Bug: #1421570

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 agoImport only modules: H302
Anton Arefiev [Thu, 8 Jan 2015 13:20:13 +0000 (15:20 +0200)]
Import only modules: H302

H302 PEP8 check should be enabled to make core more clean
and readable and consistent with OpenStack Hacking rules.

Change-Id: Ie189f2418d12800a46664705eacfc127e7269f45
Partial-Bug: #1407162

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 agoRevert "Remove retry_deactivation directive on lvremove"
John Griffith [Wed, 25 Feb 2015 05:53:26 +0000 (05:53 +0000)]
Revert "Remove retry_deactivation directive on lvremove"

This reverts commit 3bc7ccdf95ef366d49a6c4e5924dde1327b1e9a6.

Long shot, but only related change in Cinder since this started was this one.  It's possible that the config specification on the cmd line does something "different".  Let's find out.

Change-Id: I61b05624ede4e86859789c332377c714925ef2e8

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 agoOver subscription for Pure Storage iSCSI driver.
Daniel Wilson [Thu, 19 Feb 2015 18:35:05 +0000 (10:35 -0800)]
Over subscription for Pure Storage iSCSI driver.

Add support for over subscription in Pure Storage iSCSI driver.

Implements: blueprint pure-iscsi-over-subscription-thin-provisioning
Change-Id: Ia9de828ad718c0790f4f04ee2a2f1eb4c3fe2788

9 years agoUse oslo_config choices support
Eric Brown [Tue, 24 Feb 2015 07:02:50 +0000 (23:02 -0800)]
Use oslo_config choices support

The oslo_config library added support for a choices keyword argument in
version 1.2.0a3.  This commit leverages the use of choices for StrOpts in
Cinder's configuration.

References:
http://docs.openstack.org/developer/oslo.config/#a3
https://bugs.launchpad.net/oslo-incubator/+bug/1123043

Change-Id: Id94904d9b15bc1c52f47aafe7e59ec738d93f966

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 'versionutils' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 23:12:49 +0000 (17:12 -0600)]
Sync 'versionutils' module from oslo-incubator

The versionutils module hasn't had a sync since November of 2014.
There have been namespace changes and changes to enable moving to
the new oslo_log library.  So, we need this sync so that we can
move forward with those changes.

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:
---------------------
9bf01f9d - Switch from oslo.config to oslo_config
2fbf5065 - Remove oslo.log code and clean up versionutils API

Change-Id: I4344ed8fb234135a199649c5ef7620e4166fbb12

9 years agoUpdate 'systemd' module from oslo-incubator
Jay S. Bryant [Fri, 20 Feb 2015 22:45:29 +0000 (16:45 -0600)]
Update 'systemd' module from oslo-incubator

This sync is needed as part of the clean up so that
we can move to the new oslo_log library.

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

Change-Id: I6d566416d021a95ddd1f212341104cef7aea2dda

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

The service module hasn't had a sync to Cinder since November
of 2014.  There have been a number of changes, including updates
to get it using the appropriate namespace for oslo and support
for moving away from using oslo.log.  So, we need to update the
module.

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
dbca53e9 - Merge "Added graceful argument on Service.stop method"
442fc223 - Added graceful argument on Service.stop method
cf429e50 - Remove extra white space in log message

Change-Id: If78596d8779b8dd5b2fc22891d7ca21ccdabc9d6

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 agoEQLX: Consolidate CHAP config options
Rushi Agrawal [Sun, 18 Jan 2015 06:53:32 +0000 (12:23 +0530)]
EQLX: Consolidate CHAP config options

In order to reduce configuration option bloat, it would be a good exercise
to consolidate configuration options which many drivers implement under
their own distinct name but have same functionality. Here, a first attempt
is made to consolidate CHAP configuration options. Dell's EQLSanISCSIDriver
is made to use these new set of configuration options 'use_chap_auth',
'chap_username' and 'chap_password' instead of the driver-specific options
'eqlx_use_chap', 'eqlx_chap_login' and 'eqlx_chap_password' respectively in
this patch. More drivers are to be added in the future.

DocImpact: Config options of Dell EQLSanISCSIDriver are changed

Change-Id: I5c51301653ad0f76ce0550e12177ad08f20290e0
Partial-Bug: 1398976

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