]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoChange volume and snapshot stuck creating to error
Yasuaki Nagata [Thu, 22 Jan 2015 08:45:08 +0000 (17:45 +0900)]
Change volume and snapshot stuck creating to error

Service of volume goes down after the status of
the volume is turned 'creating', volume to remain with
the status of the 'creating'.

Status of the volume is still 'creating' even if
volume service is restarted, it is impossible for user
to remove it without force-delete.

With this patch, in order to keep consistence with Nova,
volume state 'creating' should be shifted to the 'error' properly.

Closes-Bug: #1310526
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Change-Id: I89ef201f25b739cc443cb2920de2bd6ce89d97e1

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 25 Mar 2015 15:17:15 +0000 (15:17 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Enable request-id in cinder API logs"
Jenkins [Wed, 25 Mar 2015 04:38:17 +0000 (04:38 +0000)]
Merge "Enable request-id in cinder API logs"

9 years agoMerge "Fix: Synchronise Quobyte Share mounting"
Jenkins [Wed, 25 Mar 2015 00:31:52 +0000 (00:31 +0000)]
Merge "Fix: Synchronise Quobyte Share mounting"

9 years agoMerge "Dell Storage Center API change fails init_conn"
Jenkins [Tue, 24 Mar 2015 23:00:18 +0000 (23:00 +0000)]
Merge "Dell Storage Center API change fails init_conn"

9 years agoMerge "Simplify cxt test_create_export() unit test"
Jenkins [Tue, 24 Mar 2015 22:29:34 +0000 (22:29 +0000)]
Merge "Simplify cxt test_create_export() unit test"

9 years agoDell Storage Center API change fails init_conn
Tom Swanson [Tue, 24 Mar 2015 17:57:22 +0000 (12:57 -0500)]
Dell Storage Center API change fails init_conn

An attribute in the dell storage center REST API containing
the world wide name of the target device changed.  This meant
that on intialize connection we were returning None instead of
the wwn.

The driver has been changed to look for the new attribute and
to fall back to the old.  If neither is found it will not
return a target wwn of None.

Change-Id: I6ae6870d46937089bd6ed8799895f7068eebf01d
Closes-Bug: 1435935

9 years agoEnable request-id in cinder API logs
John Griffith [Tue, 24 Mar 2015 03:08:15 +0000 (03:08 +0000)]
Enable request-id in cinder API logs

Using common.local:store.context doesn't work correctly with
the new oslo_log module.  This change removes the calls to
common.local and removes the file altogether which allows the
proper settings to be passed in to the logging module and give
us back our request-id in the API logs.

Change-Id: If312f419fb465c9128bcfa0a280d6c35a46cb29b
Closes-Bug: #1435588

9 years agoMerge "Change leftover oslo.* to oslo_*"
Jenkins [Mon, 23 Mar 2015 22:03:14 +0000 (22:03 +0000)]
Merge "Change leftover oslo.* to oslo_*"

9 years agoMerge "Tests: Fix az test failure when PYTHONHASHSEED != 0"
Jenkins [Mon, 23 Mar 2015 21:45:36 +0000 (21:45 +0000)]
Merge "Tests: Fix az test failure when PYTHONHASHSEED != 0"

9 years agoChange leftover oslo.* to oslo_*
Anish Bhatt [Thu, 19 Mar 2015 08:08:06 +0000 (01:08 -0700)]
Change leftover oslo.* to oslo_*

Use oslo_i18n instead of "from oslo import i18n"
Use oslo_messaging instead of "from oslo import messaging"

Partial-Bug: 1409733

Change-Id: If119603e4f89965d0c9e5917b2772ae0e7ddf3d2

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 23 Mar 2015 17:05:43 +0000 (17:05 +0000)]
Updated from global requirements

Change-Id: I6f506eaa69ba7ae26cd13403d0dec491848db3c6

9 years agoFix: Synchronise Quobyte Share mounting
Silvan Kaiser [Fri, 20 Mar 2015 13:30:26 +0000 (14:30 +0100)]
Fix: Synchronise Quobyte Share mounting

Quobyte ci tests show random failures with multiple similar shares.
A single share is listed in mounted shares twice after two (or more)
chronologically close successive calls to
_ensure_shares_mounted (examples see bug or similar Quobyte ci error
reports).
This is now prevented by synchronizing the method.

Closes-Bug: #1434502

Change-Id: Iae5cfb529c56681eaaf5868042264e4f8d71c0fb

9 years agoUpdate file doc string for pure.py
Patrick East [Fri, 20 Mar 2015 18:27:52 +0000 (11:27 -0700)]
Update file doc string for pure.py

The PureISCSIDriver now requires a higher version of the REST API, this
causes the required Purity version to go up to 4.0.0. The doc string
for the pure.py file was not updated to reflect this.

Change-Id: Ibb133a6ab689c98aee0ac16946d059a647f482d3
Closes-Bug: 1434580

9 years agoMerge "Remove chap secret DEBUG logging in PureISCSIDriver"
Jenkins [Fri, 20 Mar 2015 17:17:07 +0000 (17:17 +0000)]
Merge "Remove chap secret DEBUG logging in PureISCSIDriver"

9 years agoMerge "update oslo policy to remove policy.d log spam"
Jenkins [Fri, 20 Mar 2015 15:38:54 +0000 (15:38 +0000)]
Merge "update oslo policy to remove policy.d log spam"

9 years agoMerge "Scality SOFS : Use ensure_tree from fileutils"
Jenkins [Fri, 20 Mar 2015 15:37:24 +0000 (15:37 +0000)]
Merge "Scality SOFS : Use ensure_tree from fileutils"

9 years agoupdate oslo policy to remove policy.d log spam
Sean Dague [Fri, 20 Mar 2015 12:26:08 +0000 (08:26 -0400)]
update oslo policy to remove policy.d log spam

After oslo policy added config dirs it started spamming the logs
relentlessly on if you didn't have a policy.d directory on your
system. This is a very unfriendly upgrade to operators.

A fix was provided in the incubator just before incubator policy was
deleted. This syncs in that fix.

Change-Id: Idf9c63c52561acdfe5463fee35dbc497c5e1fde5
Related-Bug: #1421863

9 years agoMerge "Logging not using oslo.i18n guidelines"
Jenkins [Fri, 20 Mar 2015 11:27:31 +0000 (11:27 +0000)]
Merge "Logging not using oslo.i18n guidelines"

9 years agoMerge "Fix logging mistake in swift backup driver"
Jenkins [Fri, 20 Mar 2015 11:00:32 +0000 (11:00 +0000)]
Merge "Fix logging mistake in swift backup driver"

9 years agoMerge "Fix SAN generic driver ssh whitespaced commands"
Jenkins [Fri, 20 Mar 2015 07:50:06 +0000 (07:50 +0000)]
Merge "Fix SAN generic driver ssh whitespaced commands"

9 years agoMerge "Removing Windows drivers for no reported CI"
Jenkins [Fri, 20 Mar 2015 07:49:53 +0000 (07:49 +0000)]
Merge "Removing Windows drivers for no reported CI"

9 years agoMerge "Remove error messages from multipath command output before parsing"
Jenkins [Fri, 20 Mar 2015 07:32:29 +0000 (07:32 +0000)]
Merge "Remove error messages from multipath command output before parsing"

9 years agoMerge "Removing Huawei drivers for no reported CI"
Jenkins [Fri, 20 Mar 2015 05:45:40 +0000 (05:45 +0000)]
Merge "Removing Huawei drivers for no reported CI"

9 years agoRemove chap secret DEBUG logging in PureISCSIDriver
Daniel Wilson [Fri, 20 Mar 2015 04:35:14 +0000 (21:35 -0700)]
Remove chap secret DEBUG logging in PureISCSIDriver

We are removing a small piece of code that caused the CHAP secret to be logged
in plain text in the log file when DEBUG level logging is turned on in Cinder.
This is undesirable so it is being taken out.

Change-Id: I119800e2c3695201e9fca544f597ea9a577a2809
Closes-Bug: 1434320

9 years agoMerge "Removing Zadara driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 01:37:31 +0000 (01:37 +0000)]
Merge "Removing Zadara driver for no reported CI"

9 years agoRemoving Windows drivers for no reported CI
Mike Perez [Fri, 20 Mar 2015 01:32:04 +0000 (18:32 -0700)]
Removing Windows drivers for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: Idd348bb81680c3f06a3a732d7e2ae657cceaa6f2

9 years agoMerge "Removing Netapp FC drivers for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:34:18 +0000 (00:34 +0000)]
Merge "Removing Netapp FC drivers for no reported CI"

9 years agoMerge "Removing DRBD driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:34:08 +0000 (00:34 +0000)]
Merge "Removing DRBD driver for no reported CI"

9 years agoMerge "Removing Fujitsu driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:55 +0000 (00:33 +0000)]
Merge "Removing Fujitsu driver for no reported CI"

9 years agoMerge "Removing FusionIO driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:36 +0000 (00:33 +0000)]
Merge "Removing FusionIO driver for no reported CI"

9 years agoMerge "Removing Nexenta driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:24 +0000 (00:33 +0000)]
Merge "Removing Nexenta driver for no reported CI"

9 years agoMerge "Removing Symantec NFS driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:11 +0000 (00:33 +0000)]
Merge "Removing Symantec NFS driver for no reported CI"

9 years agoMerge "Removing StorPool driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:32:55 +0000 (00:32 +0000)]
Merge "Removing StorPool driver for no reported CI"

9 years agoMerge "Removing ZFSSA driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:24:33 +0000 (00:24 +0000)]
Merge "Removing ZFSSA driver for no reported CI"

9 years agoMerge "Removing Coraid driver for no reported CI"
Jenkins [Thu, 19 Mar 2015 21:58:54 +0000 (21:58 +0000)]
Merge "Removing Coraid driver for no reported CI"

9 years agoMerge "Removing HP MSA driver for no reported CI"
Jenkins [Thu, 19 Mar 2015 21:58:39 +0000 (21:58 +0000)]
Merge "Removing HP MSA driver for no reported CI"

9 years agoMerge "Make the 3PAR drivers honor the pool in create"
Jenkins [Thu, 19 Mar 2015 21:42:13 +0000 (21:42 +0000)]
Merge "Make the 3PAR drivers honor the pool in create"

9 years agoMerge "Add retry to create resource in Datera driver"
Jenkins [Thu, 19 Mar 2015 21:26:42 +0000 (21:26 +0000)]
Merge "Add retry to create resource in Datera driver"

9 years agoFix logging mistake in swift backup driver
Michal Dulko [Thu, 19 Mar 2015 20:53:46 +0000 (21:53 +0100)]
Fix logging mistake in swift backup driver

After recent swift driver refactoring a small mistake was introduced
causing c-bak to log an exception because of wrong number of arguments
to format a string. This commit fixes the issue.

Change-Id: I2e322ae6a2495771c89fa25ab5474da20eecc80d
Closes-Bug: 1434188

9 years agoRemoving Zadara driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 20:37:32 +0000 (13:37 -0700)]
Removing Zadara driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]-
http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I016e22c857f520a7eb79e1ed5b36735a97f68b68

9 years agoRemoving Huawei drivers for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:38:55 +0000 (12:38 -0700)]
Removing Huawei drivers for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I0599a8721b14ba4f2a255188b71be6d62ae8cc1a

9 years agoRemoving Netapp FC drivers for no reported CI
Mike Perez [Thu, 19 Mar 2015 20:02:10 +0000 (13:02 -0700)]
Removing Netapp FC drivers for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I85ed137ddb1929509f9930cd1de91671dde3db42

9 years agoRemoving Fujitsu driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:12:45 +0000 (12:12 -0700)]
Removing Fujitsu driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer has chosen not to respond
to the CI deadline email and report a CI to ensure their driver
integration is successful. Therfore, we can not validate the driver is
working in Cinder today in a continuous way.

DocImpact
[1] - http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: Ibe9a3cc9831a1ef4aa7cbdb15e09bced353c738a

9 years agoRemoving DRBD driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:44:38 +0000 (12:44 -0700)]
Removing DRBD driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: If4b119ec6ca80dcf28530e77e1f98bda04ba6eab

9 years agoRemoving FusionIO driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:29:30 +0000 (12:29 -0700)]
Removing FusionIO driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer has chosen not to respond
to the CI deadline email and report a CI to ensure their driver
integration is successful. Therfore, we can not validate the driver is
working in Cinder today in a continuous way.

DocImpact
[1] - http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: Ic5881eec84e3069f80543bb20b0132ddb20d90ad

9 years agoRemoving Nexenta driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 17:51:36 +0000 (10:51 -0700)]
Removing Nexenta driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I732612e671c57c0b611f1016f22c89a886a317f7

9 years agoRemoving Symantec NFS driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 18:15:01 +0000 (11:15 -0700)]
Removing Symantec NFS driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I38b66f8df30508704df6081f18a09a3a12853858

9 years agoRemoving StorPool driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:25:19 +0000 (12:25 -0700)]
Removing StorPool driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I024d97038f6e027bd5f154d2933438847962fcb4

9 years agoRemoving ZFSSA driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:20:16 +0000 (12:20 -0700)]
Removing ZFSSA driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html
Change-Id: I5126ee5c56d2a7382e67626d28197eafa5940be5

9 years agoMerge "Revert "Datera's export to avoid deprecated keys""
Jenkins [Thu, 19 Mar 2015 18:55:52 +0000 (18:55 +0000)]
Merge "Revert "Datera's export to avoid deprecated keys""

9 years agoMake the 3PAR drivers honor the pool in create
Walter A. Boring IV [Wed, 18 Mar 2015 21:11:45 +0000 (14:11 -0700)]
Make the 3PAR drivers honor the pool in create

Currently, the 3PAR drivers rely on the pool (CPG) existing
in the extra specs of a volume type.   This is the way that the
3PAR drivers supported the idea of 'pools' prior to Cinder
itself supporting pools.

Now, the 3PAR drivers will not use the CPG specified in the
extra specs of a volume type.   The drivers will log a warning
explaining that CPG is deprecated, and then override the CPG
setting with the pool name specified by the scheduler in the
volume['host'] entry.    This fixes a few bugs in the 3PAR
drivers.

Existing 3PAR deployments will need to update their cinder.conf
to specify the list of CPGs they want the driver to support as
pools in the hp3par_cpg=[list of cpgs] entry.  hp3par_cpg can be
a single CPG, or a comma separated list of CPGS.

The 3PAR best practice guide will be updated for the Kilo release
explaining how to upgrade from existing deployments and describe
how best to use CPGS as pools.

Closes-Bug: #1432876
DocImpact

Change-Id: I2c733ff3f13ba309cc07e07331b4945b1981a07a

9 years agoRemoving HP MSA driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 18:08:37 +0000 (11:08 -0700)]
Removing HP MSA driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because it's not supported, so it won't have
a CI reporting to ensure their driver integration is successful.
Therfore, we can not validate the driver is working in Cinder today in
a continuous way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: Ia6681e943ffb807ff6b3064976f6ef8eb3259e65

9 years agoMerge "Fix retype return value in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:05:42 +0000 (18:05 +0000)]
Merge "Fix retype return value in volume driver base class"

9 years agoMerge "Fix retype arguments in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:03:16 +0000 (18:03 +0000)]
Merge "Fix retype arguments in volume driver base class"

9 years agoMerge "Fix allocated_capacity tracking when rescheduling"
Jenkins [Thu, 19 Mar 2015 17:51:06 +0000 (17:51 +0000)]
Merge "Fix allocated_capacity tracking when rescheduling"

9 years agoRemoving Coraid driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 04:56:39 +0000 (21:56 -0700)]
Removing Coraid driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer has chosen not to respond
to the CI deadline email and report a CI to ensure their driver
integration is successful. Therfore, we can not validate the driver is
working in Cinder today in a continuous way.

DocImpact
[1] - http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I033960c21db91c3150daeffa3dae38005b7ef39b

9 years agoAdd retry to create resource in Datera driver
Mike Perez [Wed, 18 Mar 2015 09:19:45 +0000 (02:19 -0700)]
Add retry to create resource in Datera driver

If the volume is still in a creating state, wait, and retry a few times.
Otherwise, raise an exception for the manager to set the volume into an
error state.

Closes-Bug: #1433543
Change-Id: If49fd9229f08301cedbd63399fe46475e73a83ef

9 years agoLogging not using oslo.i18n guidelines
Sean McGinnis [Thu, 19 Mar 2015 13:37:49 +0000 (08:37 -0500)]
Logging not using oslo.i18n guidelines

Part of multi-patch set for easier chunks.

There have been quite a few instances found where the
i18n guidelines are not being followed. I believe this
has helped lead to some of the confusion around how to
correctly do this. Other developers see this code and
assume it is an example of the correct usage.

This patch attempts to clean up most of those violations
in the existing codebase to hopefully help avoid some of
that confusion in reviews.

Some issues address:
* Correct log translation markers for different log levels
* Passing format values as arguments to call, not preformatting
* Not forcing translation via six.text_type and others

Guidelines can be found here:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Hacking checks will not be able to identify all violations of
the guidelines, but it could be useful for catching obvious ones
such as LOG.info("No markers!").

Change-Id: I38f52c6408b47ccb59ec2064b360f7d4427d6830
Partial-bug: 1433216

9 years agoMerge "Windows iSCSI driver: Fixes copy disk method exception handling"
Jenkins [Thu, 19 Mar 2015 17:11:30 +0000 (17:11 +0000)]
Merge "Windows iSCSI driver: Fixes copy disk method exception handling"

9 years agoTests: Fix az test failure when PYTHONHASHSEED != 0
Eric Harney [Thu, 19 Mar 2015 16:27:59 +0000 (12:27 -0400)]
Tests: Fix az test failure when PYTHONHASHSEED != 0

The test_list_availability_zones_enabled_service test calls
a method which returns a tuple that is generated from a dict.
This is compared to a tuple in the test, which can fail when
PYTHONHASHSEED is not 0, due to the tuples containing elements
in different orders.  (Because the dict used to build the tuple
was ordered differently.)

For this test, we can convert to lists and sort them to do the
comparison, since the ordering is not important.

Partial-Bug: #1348818

Change-Id: Ib7e5d59073e5e243450e28492d68942f6088bb5f

9 years agoMerge "Change datetime.now() to timeutils.utcnow() from oslo_utils"
Jenkins [Thu, 19 Mar 2015 16:19:31 +0000 (16:19 +0000)]
Merge "Change datetime.now() to timeutils.utcnow() from oslo_utils"

9 years agoChange datetime.now() to timeutils.utcnow() from oslo_utils
Yuriy Nesenenko [Fri, 27 Feb 2015 14:06:03 +0000 (16:06 +0200)]
Change datetime.now() to timeutils.utcnow() from oslo_utils

We use an UTC time to avoid the difference with time zones.

Change-Id: I15aa3b5d3337b90ccdcc6c4ac5d3c7d78108fe21
Related-Bug: #1288979

9 years agoMerge "Update Violin REST client library name"
Jenkins [Thu, 19 Mar 2015 05:45:39 +0000 (05:45 +0000)]
Merge "Update Violin REST client library name"

9 years agoMerge "Add minimum qemu-img version check functions"
Jenkins [Thu, 19 Mar 2015 05:16:50 +0000 (05:16 +0000)]
Merge "Add minimum qemu-img version check functions"

9 years agoMerge "cinder-manage man update"
Jenkins [Thu, 19 Mar 2015 05:16:39 +0000 (05:16 +0000)]
Merge "cinder-manage man update"

9 years agoMerge "Remove the reference of volume['instance_uuid']in VNX driver"
Jenkins [Thu, 19 Mar 2015 05:12:08 +0000 (05:12 +0000)]
Merge "Remove the reference of volume['instance_uuid']in VNX driver"

9 years agoMerge "EMC: Fix use of "_" as variable name"
Jenkins [Thu, 19 Mar 2015 05:11:51 +0000 (05:11 +0000)]
Merge "EMC: Fix use of "_" as variable name"

9 years agoMerge "Don't override extra specs with config in VMAX"
Jenkins [Thu, 19 Mar 2015 05:11:39 +0000 (05:11 +0000)]
Merge "Don't override extra specs with config in VMAX"

9 years agoMerge "Return updated volume object to the caller of _attach_volume()"
Jenkins [Thu, 19 Mar 2015 05:06:48 +0000 (05:06 +0000)]
Merge "Return updated volume object to the caller of _attach_volume()"

9 years agoMerge "Check license before clone in VMAX driver"
Jenkins [Thu, 19 Mar 2015 00:59:15 +0000 (00:59 +0000)]
Merge "Check license before clone in VMAX driver"

9 years agoMerge "Reduce configured file size for nfs backup unit tests"
Jenkins [Wed, 18 Mar 2015 22:00:22 +0000 (22:00 +0000)]
Merge "Reduce configured file size for nfs backup unit tests"

9 years agoMerge "Sort snapshots in create CG from CG snapshot"
Jenkins [Wed, 18 Mar 2015 21:16:20 +0000 (21:16 +0000)]
Merge "Sort snapshots in create CG from CG snapshot"

9 years agoMerge "Change default value of gpfs_images_share_mode to None"
Jenkins [Wed, 18 Mar 2015 19:16:59 +0000 (19:16 +0000)]
Merge "Change default value of gpfs_images_share_mode to None"

9 years agoRemove error messages from multipath command output before parsing
tsekiyam [Tue, 17 Mar 2015 23:59:08 +0000 (19:59 -0400)]
Remove error messages from multipath command output before parsing

This fixes an issue in _get_multipath_device_name() that fails to
parse the output from 'multipath -ll <device>' command when the
stdout contains error messages in addition to the expected output.

Change-Id: I498edd950627daca01eaf6343e6d742440ca4b04
Related-Bug: #1380742
Closes-Bug: #1433202

9 years agoReturn updated volume object to the caller of _attach_volume()
Mitsuhiro Tanino [Wed, 18 Mar 2015 15:48:25 +0000 (11:48 -0400)]
Return updated volume object to the caller of _attach_volume()

Currently, migrate volume between two back-ends using LIO scsi
target fails due to the error of "Unable to terminate volume
connection: 'NoneType' object has no attribute 'split'".

The root cause of this error is _detach_volume() during volume
migration does not use updated volume object which is updated
during _attach_volume() by create_export().
As a result terminate_connection() which is called from
_detach_volume() tries to split volume['provider_location']
even if the entry is None and causes above error.

Also same error would be happened following methods.

- copy_volume_data(-> volume migration)
- backup_volume
- restore_backup
- copy_image_to_volume
- copy_volume_to_image

This change adds updated volume as an additional return value
for _attach_volume().

Change-Id: I7b76941d8b2e761c2c0147b13a201583d7e0a1c4
Closes-Bug: #1433360

9 years agoFix SAN generic driver ssh whitespaced commands
Kallebe Monteiro [Fri, 6 Mar 2015 19:03:39 +0000 (16:03 -0300)]
Fix SAN generic driver ssh whitespaced commands

SAN driver was sending commands over ssh with whitespaces between
every character resulting in commands like "u n a m e - s" instead
of "uname -s" (example from bug report).

As the bug reporter noted, the problem was that there were two joins
in the process of mounting the command. The first one got the
tuple and joined into a string. The second one joined a whitespace
between each character of the string.

Additionally, this behavior made utils.ssh_injection a bad check,
because it expected a list of args used in 'for arg in cmd_list' and
what it got was a single string. This resulted in the check being made
over the single characters instead of each arg.

All this is to explain why I chose to remove the first join instead of
the second one.

An unit test for this issue was created. SAN driver had no unit test.

Change-Id: I8e8624f2b82c26522936adf05e637a7bbe34a069
Closes-Bug: #1422604

9 years agoEMC: Fix use of "_" as variable name
Vipin Balachandran [Thu, 12 Mar 2015 22:21:30 +0000 (15:21 -0700)]
EMC: Fix use of "_" as variable name

Variables with name "_" will clash with translation lookup
function "_" in cinder.i18n. This patch fixes usage of "_"
as variable name.

Change-Id: I4f03dcfd7b92dcae78e741486ded7028e481d0ee

9 years agoReduce configured file size for nfs backup unit tests
Tom Barron [Mon, 16 Mar 2015 07:43:18 +0000 (03:43 -0400)]
Reduce configured file size for nfs backup unit tests

Unit tests that were ported from the Swift backup
service for NFS backup trigger memory errors when
run in tox on a 1GB VM.  This commit configures
NFS backup 'backup_file_size' to match the default
Swift 'chunk_size' so that the NFS backup unit test
memory consumption is dialed down to match the Swift
unit tests.

Closes-Bug: 1432687

Change-Id: I4b71d47190179b97baefe9bc390276f720670919

9 years agotests: remove useless variable
Julien Danjou [Mon, 2 Mar 2015 11:07:09 +0000 (12:07 +0100)]
tests: remove useless variable

Change-Id: Ieb0871e0da707d34338c0aa7b2bafccf9267b3d0

9 years agoRevert "Datera's export to avoid deprecated keys"
Mike Perez [Mon, 16 Mar 2015 02:59:43 +0000 (19:59 -0700)]
Revert "Datera's export to avoid deprecated keys"

The changes on the Datera solution have been reverted, so the driver
is being updated as well.

This reverts commit a754f317a708d9932aea743588468f0bb1cabdbb.

Change-Id: I369abca84d224c71b0ea7c55d0ecda8db9a76759

9 years agoMerge "Fix typo in log message"
Jenkins [Wed, 18 Mar 2015 07:52:13 +0000 (07:52 +0000)]
Merge "Fix typo in log message"

9 years agoMerge "Raise exception for invalid mock assert calls"
Jenkins [Wed, 18 Mar 2015 07:47:09 +0000 (07:47 +0000)]
Merge "Raise exception for invalid mock assert calls"

9 years agoMerge "Fix some issues with pool name sent to SVC"
Jenkins [Wed, 18 Mar 2015 07:46:55 +0000 (07:46 +0000)]
Merge "Fix some issues with pool name sent to SVC"

9 years agoDon't override extra specs with config in VMAX
Xing Yang [Mon, 9 Mar 2015 15:18:11 +0000 (11:18 -0400)]
Don't override extra specs with config in VMAX

A recent merge in https://review.openstack.org/#/c/157679
brought in regression because it tied volume type extra specs to
config file settings.

This patch rolled back most of the changes and don't let extra specs
be overwritten by the config file settings. Intervals and retries
will be read from the config file.

Partial-Bug: #1425641
Change-Id: I7b7959d64f9cc5e954d03f56f6a37021c4c0e9e1

9 years agoCheck license before clone in VMAX driver
Xing Yang [Thu, 26 Feb 2015 17:27:16 +0000 (12:27 -0500)]
Check license before clone in VMAX driver

This patch checks if a license for clone is available before
doing the clone operation.

Change-Id: I69d009b2cac775c301e9a5254079238b2b2a3b10
Closes-Bug: #1385450

9 years agoMerge "Fixing mount when state_path is configured with a final '/'"
Jenkins [Tue, 17 Mar 2015 22:03:32 +0000 (22:03 +0000)]
Merge "Fixing mount when state_path is configured with a final '/'"

9 years agoMerge "Decrement remaining retries after failed REST call."
Jenkins [Tue, 17 Mar 2015 21:40:48 +0000 (21:40 +0000)]
Merge "Decrement remaining retries after failed REST call."

9 years agoMerge "SMBFS: Fix retrieving the volume path and format"
Jenkins [Tue, 17 Mar 2015 18:24:25 +0000 (18:24 +0000)]
Merge "SMBFS: Fix retrieving the volume path and format"

9 years agoMerge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"
Jenkins [Tue, 17 Mar 2015 18:14:58 +0000 (18:14 +0000)]
Merge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"

9 years agoFixing mount when state_path is configured with a final '/'
Rushil Chugh [Thu, 5 Mar 2015 22:16:26 +0000 (17:16 -0500)]
Fixing mount when state_path is configured with a final '/'

If state_path variable is configured with a final '/' on path, then
mount_path variable is created with wrong syntax. This causes
a failure when the c-vol process tries to mount the filesystem.

This patch proposes to fix the aforementioned problem by checking
the validity of the mount point and fixing the mount point in case
it has an incorrect value.

Closes-bug: 1425551

Change-Id: I9fe50fe07953fb5e94da467a7446528e5030e41b

9 years agoMerge "Fixed the order of mock decorators in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:27:55 +0000 (04:27 +0000)]
Merge "Fixed the order of mock decorators in VMAX driver"

9 years agoMerge "VMware: Fail immediately for images in a container"
Jenkins [Tue, 17 Mar 2015 04:27:44 +0000 (04:27 +0000)]
Merge "VMware: Fail immediately for images in a container"

9 years agoMerge "VMware: Relocate volume to compliant datastore"
Jenkins [Tue, 17 Mar 2015 04:27:10 +0000 (04:27 +0000)]
Merge "VMware: Relocate volume to compliant datastore"

9 years agoMerge "i18n Compatibility in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:26:58 +0000 (04:26 +0000)]
Merge "i18n Compatibility in VMAX driver"

9 years agoUpdate Violin REST client library name
Ryan Lucio [Tue, 10 Mar 2015 00:00:09 +0000 (17:00 -0700)]
Update Violin REST client library name

Fixed all drivers and tests to use the 'vmemclient' library.

Change-Id: I337e67ecd7c45d7b28e1bc4a551245ec0705ea31
Closes-bug: 1430009

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Tue, 17 Mar 2015 03:15:48 +0000 (03:15 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoMerge "Increase LeftHand driver minimum client version"
Jenkins [Tue, 17 Mar 2015 03:14:40 +0000 (03:14 +0000)]
Merge "Increase LeftHand driver minimum client version"

9 years agoMerge "Remove global mocking from test_pure.py"
Jenkins [Tue, 17 Mar 2015 03:10:07 +0000 (03:10 +0000)]
Merge "Remove global mocking from test_pure.py"

9 years agoRemove the reference of volume['instance_uuid']in VNX driver
Tina [Mon, 16 Mar 2015 22:55:31 +0000 (18:55 -0400)]
Remove the reference of volume['instance_uuid']in VNX driver

Multiattach feature removed the column 'instance_uuid' and
'attached_host' from volume DB model. However, these 2 fields are
used by VNX driver to determine the volume's original status
in retype. This patch changed the VNX driver to not use those
removed fields.

Change-Id: I4b4820d93e784913eeb7e485439d5f434141bcb9
Closes-Bug: 1432925