]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoDo not use api-paste.ini osprofiler options
Dina Belova [Fri, 13 Nov 2015 10:05:42 +0000 (13:05 +0300)]
Do not use api-paste.ini osprofiler options

Starting with opsrofiler 0.3.1 release there is no need to set HMAC_KEYS
and ENABLED arguments in the api-paste.ini file, this can be set in the
cinder.conf configuration file.

DocImpact
Change-Id: I17b89ffdf5613103be83284ddf8549e963a69c4f

8 years agoMerge "Update retype API to use versionedobjects"
Jenkins [Fri, 13 Nov 2015 04:52:33 +0000 (04:52 +0000)]
Merge "Update retype API to use versionedobjects"

8 years agoMerge "Update get/delete_volume API to use versionedobjects"
Jenkins [Fri, 13 Nov 2015 04:52:19 +0000 (04:52 +0000)]
Merge "Update get/delete_volume API to use versionedobjects"

8 years agoMerge "py3: Fix error handling in prophetstor driver"
Jenkins [Fri, 13 Nov 2015 03:06:03 +0000 (03:06 +0000)]
Merge "py3: Fix error handling in prophetstor driver"

8 years agoMerge "Updated from global requirements"
Jenkins [Fri, 13 Nov 2015 03:02:44 +0000 (03:02 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Port vzstorage to Python 3"
Jenkins [Fri, 13 Nov 2015 00:51:13 +0000 (00:51 +0000)]
Merge "Port vzstorage to Python 3"

8 years agopy3: Fix error handling in prophetstor driver
Victor Stinner [Sun, 8 Nov 2015 20:49:09 +0000 (21:49 +0100)]
py3: Fix error handling in prophetstor driver

* Port prophetstor driver to Python 3
* Replace "except exception as e:" with "except Exception as e:"
  to handle "Fexvisor failed to join the volume ..." and "Fexvisor
  failed to remove the volume ..." errors. Here, lower case
  "exception" is the cinder.exception module, not an exception class.
  On Python 3, "except" requires exception classes.
* tests-py3.txt: add cinder.tests.unit.test_prophetstor_dpl

Partial-Implements: blueprint cinder-python3
Change-Id: I0447b62cc0afe5a10ecbc888dfb6608b69f977d2

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 12 Nov 2015 22:07:31 +0000 (22:07 +0000)]
Updated from global requirements

Change-Id: I7aa9545451d910681f114e856e8ab82e898b9f20

8 years agoMerge "OpenStack typo"
Jenkins [Thu, 12 Nov 2015 20:25:00 +0000 (20:25 +0000)]
Merge "OpenStack typo"

8 years agoMerge "Update create_volume API to use versionedobjects"
Jenkins [Thu, 12 Nov 2015 19:26:11 +0000 (19:26 +0000)]
Merge "Update create_volume API to use versionedobjects"

8 years agoMerge "CG driver function should not access db"
Jenkins [Thu, 12 Nov 2015 19:24:03 +0000 (19:24 +0000)]
Merge "CG driver function should not access db"

8 years agoMerge "NetApp: Fix issue with E-Series volume expand"
Jenkins [Thu, 12 Nov 2015 19:21:18 +0000 (19:21 +0000)]
Merge "NetApp: Fix issue with E-Series volume expand"

8 years agoUpdate retype API to use versionedobjects
Thang Pham [Sun, 27 Sep 2015 02:09:39 +0000 (19:09 -0700)]
Update retype API to use versionedobjects

The following patch updates retype API to use volume
versionedobjects.  Changes were made to be backwards
compatible with older RPC clients.  It only includes
changes to the core cinder code.  Changes in the
drivers are left to each driver maintainer to update.

Note that this patch DOES NOT try to use object dot
notation everywhere, since it would increase the
size of the patch.  Instead, it will be done in
subsequent patches.

Change-Id: Ie79abf085349b496930fb75a76f299e65587ba6d
Partial-Implements: blueprint cinder-objects

8 years agoUpdate get/delete_volume API to use versionedobjects
Thang Pham [Tue, 3 Nov 2015 14:15:37 +0000 (06:15 -0800)]
Update get/delete_volume API to use versionedobjects

The following patch updates get_volume and delete_volume
API to use volume versionedobjects.  Changes were made to
be backwards compatible with older RPC clients. It only
includes changes to the core cinder code.  Changes in the
drivers are left to each driver maintainer to update.

Note that this patch DOES NOT try to use
object dot notation everywhere, since it would
increase the size of the patch.  Instead, it
will be done in subsequent patches.

Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Co-Authored-By: Szymon Wroblewski <szymon.wroblewski@intel.com>
Change-Id: Ifb36726f8372e21d1d9825d6ab04a072e5db4a6a
Partial-Implements: blueprint cinder-objects

8 years agoUpdate create_volume API to use versionedobjects
Thang Pham [Tue, 27 Oct 2015 22:38:54 +0000 (15:38 -0700)]
Update create_volume API to use versionedobjects

The following patch updates create_volume API to use
volume versionedobjects.  Changes were made to be
backwards compatible with older RPC clients.  It
only includes changes to the core cinder code.
Changes in the drivers are left to each driver
maintainer to update.

Note that this patch DOES NOT try to use
object dot notation everywhere, since it would
increase the size of the patch.  Instead, it
will be done in subsequent patches.

Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Change-Id: Ic1b0f09132f8fc500b29650abbd57f18ea8bd9dd
Partial-Implements: blueprint cinder-objects

Change-Id: Ief9c63e8bddb2b40bdef4465b9099cff33d7c3bc

8 years agoMerge "CG creation should be scheduled on backend level"
Jenkins [Thu, 12 Nov 2015 04:03:00 +0000 (04:03 +0000)]
Merge "CG creation should be scheduled on backend level"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Thu, 12 Nov 2015 04:02:46 +0000 (04:02 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Test for object version hash changes"
Jenkins [Thu, 12 Nov 2015 03:57:20 +0000 (03:57 +0000)]
Merge "Test for object version hash changes"

8 years agoMerge "Add retype logic in manage_existing for VNX"
Jenkins [Thu, 12 Nov 2015 03:57:08 +0000 (03:57 +0000)]
Merge "Add retype logic in manage_existing for VNX"

8 years agoMerge "Use oslo_config new type PortOpt for port options"
Jenkins [Thu, 12 Nov 2015 03:56:56 +0000 (03:56 +0000)]
Merge "Use oslo_config new type PortOpt for port options"

8 years agoTest for object version hash changes
Matt Riedemann [Tue, 10 Nov 2015 20:55:46 +0000 (12:55 -0800)]
Test for object version hash changes

Use the ObjectVersionChecker fixture from oslo.versionedobjects to check
when Cinder's registered objects have a change (new remotable method,
new field, etc) that require a version bump.

Fixes some registration problems along the way:

1. CinderObject doesn't need to be registered.
2. TestObject should be registered where it's used, not globally.

Removes deps=requirements.txt from tox.ini since it's not necessary and
prevents us from pip installing oslo.versionedobjects[fixtures].

Closes-Bug: #1514926

Change-Id: Id57c56a75ea11411e9e54104165bd44b577c1485

8 years agoFix cinder objects unit test registration
Matt Riedemann [Tue, 10 Nov 2015 23:45:29 +0000 (15:45 -0800)]
Fix cinder objects unit test registration

The base test case was extending test code from oslo_versionedobjects
which is bad because (1) it was adding test objects from the o.vo
registry into the cinder object registry and (2) it was extending
internal private test classes from o.vo which are subject to change and
would break cinder.

This cleans up the base test case and object registration to basically
do it the same way that nova does.

It also moves the duplicate _compare() method into the base class and
fixes a bug where db obj fields that were lists were compared
incorrectly against object lists.

This will allow us to verify object version hashes using o.vo's
ObjectVersionChecker fixture in a follow on change without the
extraneous object registrations from o.vo messing with the results.

Partial-Bug: #1514926

Change-Id: Ie34675e378951cda9aa218f3181dc86767717450

8 years agoMerge "Adds CORS support to Cinder"
Jenkins [Wed, 11 Nov 2015 17:01:37 +0000 (17:01 +0000)]
Merge "Adds CORS support to Cinder"

8 years agoMerge "XtremIO fix create CG from src flow"
Jenkins [Wed, 11 Nov 2015 16:00:40 +0000 (16:00 +0000)]
Merge "XtremIO fix create CG from src flow"

8 years agoCG driver function should not access db
Xing Yang [Tue, 25 Aug 2015 04:46:53 +0000 (00:46 -0400)]
CG driver function should not access db

Currently the following CG driver interfaces don't pass in volumes
or snapshots to the driver. As a result, drivers have to retrieve info
from db. In this patch, these interfaces are changed so that drivers
don't have to access db.

Removing the access to db from driver CG functions will be handled by
separate patches.

* create_consistencygroup
* delete_consistencygroup
* create_cgsnapshot
* delete_cgsnapshot

Change-Id: I63287fd43927fc09dad77292ecfe561917f7bda5
Closes-Bug: #1501466

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 11 Nov 2015 06:36:56 +0000 (06:36 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ia332d04fab7164036e3343bda560008450588240

8 years agoUse oslo_config new type PortOpt for port options
chenying [Tue, 10 Nov 2015 07:17:57 +0000 (15:17 +0800)]
Use oslo_config new type PortOpt for port options

The oslo_config library provides new type PortOpt to validate the
range of port now.
ref: https://github.com/openstack/oslo.config/blob/2.6.0/oslo_config/cfg.py#L1114

DocImpact
Change-Id: I9a3e4d13feef67b4a43936c6099b822e4f1f6a57
Closes-Bug: #1514702

8 years agoMerge "Removal of deprecated NPIV option in Storwize"
Jenkins [Tue, 10 Nov 2015 16:58:03 +0000 (16:58 +0000)]
Merge "Removal of deprecated NPIV option in Storwize"

8 years agoCG creation should be scheduled on backend level
wanghao [Thu, 17 Sep 2015 02:23:54 +0000 (10:23 +0800)]
CG creation should be scheduled on backend level

Currently, cinder scheduler schedules the CG creation
on pool level, that means if there are multiple volume
types in one CG if each volume type is associated with a
different pool (those pools under same backend), you can't
create the CG successfully.

According to the design of CG's, it should be scheduled on
backend level to support the case mentioned above.

DocImpact
UpgradeImpact
Change-Id: I335dbdd1d2b1146543148ccce8d52162804369f4
Closes-Bug: #1496655

8 years agoRemoval of deprecated NPIV option in Storwize
Kendall Nelson [Mon, 9 Nov 2015 16:52:43 +0000 (10:52 -0600)]
Removal of deprecated NPIV option in Storwize

The storwize_svc_npiv_compatibility_mode option was deprecated and
set to be removed during the M release. This patch removes the
option, the associated code, and the test cases for the associated
code. This patch also removes the unused import versionutils.

Closes-Bug:1514585
Change-Id: Ib91dae38e28cd0ff1994fd8efe7c3eb4ee2c3d39

8 years agoMerge "Update cinder-manage man to match current options"
Jenkins [Mon, 9 Nov 2015 20:51:37 +0000 (20:51 +0000)]
Merge "Update cinder-manage man to match current options"

8 years agoMerge "VMware: Relocate volume only during no disk space"
Jenkins [Mon, 9 Nov 2015 20:51:25 +0000 (20:51 +0000)]
Merge "VMware: Relocate volume only during no disk space"

8 years agoMerge "Change nfs to NFS in the help strings of nfs.py"
Jenkins [Mon, 9 Nov 2015 20:39:11 +0000 (20:39 +0000)]
Merge "Change nfs to NFS in the help strings of nfs.py"

8 years agoOpenStack typo
venkatamahesh [Mon, 9 Nov 2015 15:28:53 +0000 (20:58 +0530)]
OpenStack typo

Change Openstack to OpenStack as
per standard

Change-Id: I1ecdbdf529a7c12c0a72869f95984db1fe4e2023

8 years agoMerge "Update the devref for volume migration"
Jenkins [Mon, 9 Nov 2015 06:24:06 +0000 (06:24 +0000)]
Merge "Update the devref for volume migration"

8 years agoMerge "3PAR drivers volume size conversion is incorrect"
Jenkins [Mon, 9 Nov 2015 06:03:12 +0000 (06:03 +0000)]
Merge "3PAR drivers volume size conversion is incorrect"

8 years agoMerge "Port cinder.utils.monkey_patch() to Python 3"
Jenkins [Mon, 9 Nov 2015 04:19:42 +0000 (04:19 +0000)]
Merge "Port cinder.utils.monkey_patch() to Python 3"

8 years agoChange nfs to NFS in the help strings of nfs.py
Christian Berendt [Tue, 4 Aug 2015 12:33:06 +0000 (14:33 +0200)]
Change nfs to NFS in the help strings of nfs.py

The correct short form of Network File System is NFS and not nfs.

Change-Id: I14d839ff67e13accffc8d5f683fd0e92ea0da589

8 years agoMerge "Port cinder.hacking to Python 3"
Jenkins [Mon, 9 Nov 2015 00:22:40 +0000 (00:22 +0000)]
Merge "Port cinder.hacking to Python 3"

8 years agoPort vzstorage to Python 3
Victor Stinner [Sun, 8 Nov 2015 21:04:45 +0000 (22:04 +0100)]
Port vzstorage to Python 3

* vzstorage: replace a/b with a//b to use integer division on
  Python 3.
* fix os.path.exists mock: only override return for path /fake
  (shares config)
* tests-py3.txt: add cinder.tests.unit.test_vzstorage

Note: remove also spaces in parameters in two functions calls to
respect the PEP 8.

Partial-Implements: blueprint cinder-python3
Change-Id: I7cee7009d8bc87cd0294e90cb2967f4560276994

8 years agoPort cinder.utils.monkey_patch() to Python 3
Victor Stinner [Thu, 5 Nov 2015 16:30:30 +0000 (17:30 +0100)]
Port cinder.utils.monkey_patch() to Python 3

On Python 3, unbound methods are regular functions: use pass
inspect.isfunction to inspect.getmembers().

tox.ini: add test_utils to Python 3.4.

Partial-Implements: blueprint cinder-python3
Change-Id: I4fe9936792a43aff301010780e86244bdf2d05de

8 years agoMerge "Fix UsedLimitsController's authorizer to soft"
Jenkins [Sun, 8 Nov 2015 18:13:31 +0000 (18:13 +0000)]
Merge "Fix UsedLimitsController's authorizer to soft"

8 years agoMerge "Case sensitivity problem in cinder scheduler"
Jenkins [Sun, 8 Nov 2015 14:56:43 +0000 (14:56 +0000)]
Merge "Case sensitivity problem in cinder scheduler"

8 years agoMerge "Use Service object instead of DB API directly"
Jenkins [Sun, 8 Nov 2015 13:57:07 +0000 (13:57 +0000)]
Merge "Use Service object instead of DB API directly"

8 years agoMerge "Add reno for release notes management"
Jenkins [Sun, 8 Nov 2015 13:54:51 +0000 (13:54 +0000)]
Merge "Add reno for release notes management"

8 years agoXtremIO fix create CG from src flow
Shay Halsband [Tue, 3 Nov 2015 14:33:03 +0000 (16:33 +0200)]
XtremIO fix create CG from src flow

Fix a bug during volume creation with CG,
    that prevented the volume from being added to the CG on the array.
Query array snapshots names for CG snapshot before copying them
    to a new volume.
Add unittest for create_cg_from_src.

liberty-backport-potential

Change-Id: Ieb76cc3e039e4c5495d00a8703c79930bc8b4df1
Closes-Bug: #1512682

8 years agoMerge "Update register_opts hacking check to allow tuples"
Jenkins [Sun, 8 Nov 2015 05:51:20 +0000 (05:51 +0000)]
Merge "Update register_opts hacking check to allow tuples"

8 years agoMerge "Docstring fix in scheduler-stats"
Jenkins [Sun, 8 Nov 2015 05:48:56 +0000 (05:48 +0000)]
Merge "Docstring fix in scheduler-stats"

8 years agoMerge "Don't use default=None for config options"
Jenkins [Sun, 8 Nov 2015 05:48:44 +0000 (05:48 +0000)]
Merge "Don't use default=None for config options"

8 years agoMerge "Add protocol to help of glance_api_servers option"
Jenkins [Sun, 8 Nov 2015 00:24:33 +0000 (00:24 +0000)]
Merge "Add protocol to help of glance_api_servers option"

8 years agoDon't use default=None for config options
Nate Potter [Tue, 27 Oct 2015 16:09:40 +0000 (16:09 +0000)]
Don't use default=None for config options

In the config module default=None is set as the default value,
so it isn't necessary to set it again when doing config options.

Change-Id: I09989ab679d249a9f7dea6af5d53c14dd1726e09
Closes-Bug: #1323975

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sat, 7 Nov 2015 06:37:25 +0000 (06:37 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ifa7a8f2610f20afd7416adae8c32ddaa47e55262

8 years agoMerge "Port vmware datastore to Python 3"
Jenkins [Sat, 7 Nov 2015 05:35:22 +0000 (05:35 +0000)]
Merge "Port vmware datastore to Python 3"

8 years agoMerge "Fix delete quota of subprojects"
Jenkins [Sat, 7 Nov 2015 05:30:21 +0000 (05:30 +0000)]
Merge "Fix delete quota of subprojects"

8 years agoMerge "Using extra-specs in cloned vols for Nimble driver"
Jenkins [Fri, 6 Nov 2015 23:59:15 +0000 (23:59 +0000)]
Merge "Using extra-specs in cloned vols for Nimble driver"

8 years agoMerge "Port test_tintri to Python 3"
Jenkins [Fri, 6 Nov 2015 19:41:53 +0000 (19:41 +0000)]
Merge "Port test_tintri to Python 3"

8 years agoMerge "NetApp: Cleanup if E-Series volume create fails"
Jenkins [Fri, 6 Nov 2015 18:38:51 +0000 (18:38 +0000)]
Merge "NetApp: Cleanup if E-Series volume create fails"

8 years ago3PAR drivers volume size conversion is incorrect
Kurt Martin [Fri, 6 Nov 2015 16:42:50 +0000 (08:42 -0800)]
3PAR drivers volume size conversion is incorrect

The 3PAR drivers conversion of the volume size to gibibytes (GiBs) is
incorrect, resulting in slightly smaller volumes than expected. The
drivers were assuming the input was gigabytes (GBs) when in fact the
input was gibibytes (GiBs) as documented by the cinder API.

Change-Id: I5c86f506790723195f8f9433c9e5eedddd53a4ab
Closes-bug: 1513158

8 years agoPort vmware datastore to Python 3
Victor Stinner [Thu, 5 Nov 2015 16:00:15 +0000 (17:00 +0100)]
Port vmware datastore to Python 3

* _filter_datastores(): replace filter() with list comprehension
  to get a list on Python 3.
* tox.ini: add test_vmware_datastore to Python 3.4.

Partial-Implements: blueprint cinder-python3
Change-Id: Ide4e4adf012e155b99b528ddde937df1a48a079b

8 years agoUse Service object instead of DB API directly
Michał Dulko [Fri, 6 Nov 2015 11:37:23 +0000 (12:37 +0100)]
Use Service object instead of DB API directly

In cmd.manage and volume.api we had code accessing DB API directly.
This should be done through Service versioned object instead and this
commit fixes that.

Change-Id: I7c65323279b86c37fce7ffeb2b2626508842edfb
Closes-Bug: 1513806

8 years agoMerge "Brocade driver add_zone optimization"
Jenkins [Fri, 6 Nov 2015 12:27:07 +0000 (12:27 +0000)]
Merge "Brocade driver add_zone optimization"

8 years agoDocstring fix in scheduler-stats
Atsushi SAKAI [Fri, 16 Oct 2015 03:24:35 +0000 (12:24 +0900)]
Docstring fix in scheduler-stats

Docstring fixes in scheduler-stats

Change-Id: I0044c5c35a35eb99d2b9549065c401b0f1ccbd28
Closes-Bug: #1506706

8 years agoMerge "SMBFS: Fix retrieving total allocated size"
Jenkins [Fri, 6 Nov 2015 07:02:46 +0000 (07:02 +0000)]
Merge "SMBFS: Fix retrieving total allocated size"

8 years agoPort cinder.hacking to Python 3
Victor Stinner [Thu, 5 Nov 2015 13:28:54 +0000 (14:28 +0100)]
Port cinder.hacking to Python 3

Fix the N325 check on Python 3: the AST changed between Python 2 and
Python 3 for try/except.

tox.ini: Add cinder.tests.unit.test_hacking to Python 3.4.

Partial-Implements: blueprint cinder-python3
Change-Id: I7c7d1c5e52f525ade14b13ecf2dec1681997da22

8 years agoPort test_tintri to Python 3
Victor Stinner [Thu, 5 Nov 2015 16:20:41 +0000 (17:20 +0100)]
Port test_tintri to Python 3

* Set configuration.nfs_oversub_ratio, otherwise tests
  fail with TypeError on comparison between mock.Mock and int.
* tox.ini: add test_tintri to Python 3.4.

Change-Id: Ie2b5215795481bdfb11116876d83ef777a10c224
Partial-Implements: blueprint cinder-python3

8 years agoAdd reno for release notes management
Michał Dulko [Wed, 4 Nov 2015 16:07:04 +0000 (17:07 +0100)]
Add reno for release notes management

Change-Id: Id4d6604d9775c34e9a8e911ec6e7afd02d56ef47

8 years agoMerge "Execute mount.nfs check with absolute path"
Jenkins [Thu, 5 Nov 2015 13:20:57 +0000 (13:20 +0000)]
Merge "Execute mount.nfs check with absolute path"

8 years agoMerge "Fix failure of unit test TestCinderAllCmd"
Jenkins [Thu, 5 Nov 2015 11:22:22 +0000 (11:22 +0000)]
Merge "Fix failure of unit test TestCinderAllCmd"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 5 Nov 2015 06:06:20 +0000 (06:06 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I6ab2b52a778e11c5bf6af424624deb9bfee24c84

8 years agoFix failure of unit test TestCinderAllCmd
Mitsuhiro Tanino [Wed, 4 Nov 2015 23:42:04 +0000 (18:42 -0500)]
Fix failure of unit test TestCinderAllCmd

After introducing the commit 93d26e40098c966e7d791a9fb6152244a9f9409d
unit test TestCinderAllCmd fails if a test environment has
/etc/cinder/cinder.conf with proper backend configuration.
We should mock out some variables not to depend on test environment.

Change-Id: I3218f6be1c38ed228aa96346d6976a04ecb8d421
Closes-Bug: #1513263

8 years agoExecute mount.nfs check with absolute path
Tom Patzig [Mon, 26 Oct 2015 19:28:05 +0000 (20:28 +0100)]
Execute mount.nfs check with absolute path

Currently the existence of mount.nfs is checked by executing
the relative binary 'mount.nfs' with a non-root user,
in this case cinder. This results, for example on SUSE, in the error:

      NfsException: mount.nfs is not installed

Because mount.nfs is located under /sbin, unprivileged users
do not have /sbin in their PATH to search for executables.
The change runs the mount.nfs check by using the absolute binary
path /sbin/mount.nfs. This seems to be common for most distributions
(SUSE, RedHat, CentOS, Ubuntu, Debian). The check can still be executed
as non privileged user, by not relying on correctly set PATH variable
and using the absolute path.

Change-Id: I3c1ecfdadd9ea492d58d69cbdf33045b002668c7
Closes-Bug: #1510150

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Wed, 4 Nov 2015 12:32:05 +0000 (12:32 +0000)]
Merge "Imported Translations from Zanata"

9 years agoMerge "Update minimum tox version to 1.8"
Jenkins [Wed, 4 Nov 2015 07:06:29 +0000 (07:06 +0000)]
Merge "Update minimum tox version to 1.8"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 4 Nov 2015 06:06:47 +0000 (06:06 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9f984456b5e7196acb93d7bb4f1b71fcf8c0e97b

9 years agoMerge "Return volume_type extra specs based on policy"
Jenkins [Tue, 3 Nov 2015 22:51:12 +0000 (22:51 +0000)]
Merge "Return volume_type extra specs based on policy"

9 years agoUpdate minimum tox version to 1.8
Sean McGinnis [Tue, 3 Nov 2015 22:47:01 +0000 (16:47 -0600)]
Update minimum tox version to 1.8

Other projects have updated to 1.8 or later for the minimum
tox version (nova, neutron), so we should probably do the
same.

Change-Id: Iddb9ab286519d555671ec39c0ce75c9351025730

9 years agoMerge "Add qos_specs_id to volume type show"
Jenkins [Tue, 3 Nov 2015 20:13:58 +0000 (20:13 +0000)]
Merge "Add qos_specs_id to volume type show"

9 years agoMerge "Implement update_migrated_volume for NFS driver"
Jenkins [Tue, 3 Nov 2015 20:00:57 +0000 (20:00 +0000)]
Merge "Implement update_migrated_volume for NFS driver"

9 years agoUpdate cinder-manage man to match current options
Jimmy McCrory [Tue, 3 Nov 2015 19:10:34 +0000 (11:10 -0800)]
Update cinder-manage man to match current options

Add missing 'volume update_host' and 'service remove' commands, and
remove 'storage management' and 'volume reattach' commands.

Change-Id: Ie37fb4288b1bea1035d934136454af186eb8b44c
Closes-Bug: #1512844

9 years agoMerge "Replace warnings.warn in sqlalchemy-api"
Jenkins [Tue, 3 Nov 2015 16:53:02 +0000 (16:53 +0000)]
Merge "Replace warnings.warn in sqlalchemy-api"

9 years agoMerge "Move CloneableVD to common functions"
Jenkins [Tue, 3 Nov 2015 15:45:04 +0000 (15:45 +0000)]
Merge "Move CloneableVD to common functions"

9 years agoMerge "Replace warnings.warn in glusterfs"
Jenkins [Tue, 3 Nov 2015 15:30:17 +0000 (15:30 +0000)]
Merge "Replace warnings.warn in glusterfs"

9 years agoReplace warnings.warn in sqlalchemy-api
Ankit Agrawal [Tue, 3 Nov 2015 09:43:27 +0000 (01:43 -0800)]
Replace warnings.warn in sqlalchemy-api

There is a warning message logged by warnings.warn,
it should be replaced by LOG.warning.

Change-Id: Ifcff0ebeb13b07420f6b8073b094c3b1687999e8

9 years agoReplace warnings.warn in glusterfs
Xi Yang [Tue, 3 Nov 2015 05:44:29 +0000 (13:44 +0800)]
Replace warnings.warn in glusterfs

There is a warning message logged by warnings.warn,
it should be replaced by LOG.warn.

Change-Id: Ia15d2cdfe6ed1b000a399bbdd0ccafe02aaa0197

9 years agoMerge "Fix calling delete_zones method with a wrong argument"
Jenkins [Tue, 3 Nov 2015 06:19:20 +0000 (06:19 +0000)]
Merge "Fix calling delete_zones method with a wrong argument"

9 years agoMerge "lvconvert missing from cinder volume.filters"
Jenkins [Tue, 3 Nov 2015 04:48:15 +0000 (04:48 +0000)]
Merge "lvconvert missing from cinder volume.filters"

9 years agoUsing extra-specs in cloned vols for Nimble driver
Sonia Ghanekar [Mon, 2 Nov 2015 21:58:42 +0000 (13:58 -0800)]
Using extra-specs in cloned vols for Nimble driver

This patch uses the set extra-specs while cloning a volume. All
existing extra-specs: 'nimble:encryption', 'nimble:perfpol-name'
and 'nimble:multi-initiator' are being reflected in the cloned
volume.

In the existing code, the extra-specs were not being considered
while cloning volumes; the parent volume attributes were used
directly in the cloned volume. This patch uses the extra-spec
values if they are set or if not then uses the default values
for the same.

Change-Id: I7610377e557720038f77ebd318422456e658e2ce
Closes-Bug: #1507821

9 years agoSheepdogDriver: Improve get_volume_stats operation
zhangsong [Mon, 2 Nov 2015 10:28:22 +0000 (18:28 +0800)]
SheepdogDriver: Improve get_volume_stats operation

This patch improves get_volume_stats method to invoke
dog command in SheepdogClient Class method instead of
in SheepdogDriver class method directly. Here are two
benefits we can realize as a result:

1.The current implementation can only get volume status
by local sheepdog node, but the SheepdogClient Class also
supports the method to run dog command with remote sheepdog
node.

2.SheepdogClient Class methods are implemented to run dog
command with fine grained Error handling. So it can improve
the robustness and is more readable to run dog command in
SheepdogClient Class method.

Change-Id: I64ca193cd50e6914d0d5fb6cf711c760dfb65b8c
Closes-Bug: #1512287

9 years agoMerge "VMware: Enforce min vCenter version"
Jenkins [Mon, 2 Nov 2015 07:59:21 +0000 (07:59 +0000)]
Merge "VMware: Enforce min vCenter version"

9 years agoMerge "Add -constraints for CI jobs"
Jenkins [Mon, 2 Nov 2015 07:44:33 +0000 (07:44 +0000)]
Merge "Add -constraints for CI jobs"

9 years agoAdd retype logic in manage_existing for VNX
Cedric Zhuang [Wed, 17 Jun 2015 10:02:04 +0000 (18:02 +0800)]
Add retype logic in manage_existing for VNX

The manage existing API for VNX driver didn't check the volume type.
Add type check and retype the volume if it's not match.
Raise ManageExistingVolumeTypeMismatch if volume type cannot be
satisfied.

Details of the change:

  * In order to compare the type of the LUN and the volume type, new
    logic need to be introduced to convert LUN properties to
    provisioning type and tiering type used in volume type.  Following
    changes are introduced as a side effect of this enhancement.
      * _Enum class is extracted from VNXError as a base class for
        enumerations.
      * Provisioning type and tiering type are converted to enum.
      * More properties need to be retrieved from array to check the
        type.
        Following changes are introduced by this change:
          * Separate resource property descriptors to individual class
            so that they are better organized.
          * Remove common matchers from property descriptor to reduce
            the possibility of error.
          * Enhance the output parsing framework and assemble the logic
            in VNXCliParser class.
          * Create helper class Dict to allow access of properties with
            dot.
  * Reuse the logic in retype API when LUN type and volume type doesn't
    match.
  * Add API level unit tests for the retype logic.
  * Add unit tests for all refactoring.

Closes-Bug: #1480851
Change-Id: I1de604124f9896ac4762854853a6215020a459d9

9 years agoMerge "Retype support for CloudByte iSCSI cinder driver"
Jenkins [Mon, 2 Nov 2015 02:40:36 +0000 (02:40 +0000)]
Merge "Retype support for CloudByte iSCSI cinder driver"

9 years agoAdds CORS support to Cinder
Michael Krotscheck [Mon, 19 Oct 2015 13:43:40 +0000 (06:43 -0700)]
Adds CORS support to Cinder

This patch adds the CORS support middleware to Cinder, allowing a
deployer to optionally configure rules under which a javascript client
may break the single-origin policy and access the API directly.

For cinder, the paste.ini method of deploying the middleware was
chosen, because it needs to be able to annotate responses created
by keystonemiddleware. If the middleware was explicitly included,
keystone would reject the request before the cross-domain headers
could be annotated, resulting in an error response that is
unreadable by the user agent.

Note that tests were explicitly not included. Cinder does not
possess a functional test suite, and thus constructing any
fake application with the CORS Middleware would not correctly
test the paste.ini initialization code path.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html
DocImpact

Change-Id: Ifac1f2c56365089a36091dc2e38d4641c135ea34

9 years agoFix calling delete_zones method with a wrong argument
chenying [Wed, 2 Sep 2015 09:48:59 +0000 (17:48 +0800)]
Fix calling delete_zones method with a wrong argument

Add a new zone with cisco zonemanager driver. If the added zone
name is the same as the existed name, the function delete_zones
will be called. But it fails because of passing a argument with
incorrect type. This patch fixes this error.

Co-Authored-By: Al Lau <alau2@cisco.com>
Closes-Bug: #1496283
Change-Id: Ib340b6828cfeb2bb318db23971268c7974ecc9f6

9 years agoReturn volume_type extra specs based on policy
Nate Potter [Mon, 19 Oct 2015 16:24:29 +0000 (16:24 +0000)]
Return volume_type extra specs based on policy

Currently extra specs are only shown to the admin user
when showing volume types. This patch grants the flexibility
to grant other users privelages to see them based on policy.

It also hides the extra_specs entry in the dictionary from
users who can't see it rather than just showing "None" as
the value.

Closes-Bug: #1504577
APIImpact

Change-Id: Ia8f71180f048ba9b253e35ee136915812ef8df0c

9 years agoMerge "Revert "Handle correct exception raised by python-novaclient""
Jenkins [Thu, 29 Oct 2015 14:10:53 +0000 (14:10 +0000)]
Merge "Revert "Handle correct exception raised by python-novaclient""

9 years agoMerge "Eager load snapshot_metadata in *snapshot_get_all"
Jenkins [Thu, 29 Oct 2015 02:53:25 +0000 (02:53 +0000)]
Merge "Eager load snapshot_metadata in *snapshot_get_all"

9 years agoRevert "Handle correct exception raised by python-novaclient"
Matt Riedemann [Thu, 29 Oct 2015 00:00:46 +0000 (17:00 -0700)]
Revert "Handle correct exception raised by python-novaclient"

This reverts commit 99dc6d34754954a27f6998406a94743c41b93981

With the block on novaclient 2.33 we can undo this workaround.
The regression in novaclient was reverted and will be in the next
release.

Change-Id: If561b699eb04486660009f100c5db425c3586d3c
Related-Bug: #1510790

9 years agoNetApp: Fix issue with E-Series volume expand
Michael Price [Fri, 2 Oct 2015 20:21:23 +0000 (15:21 -0500)]
NetApp: Fix issue with E-Series volume expand

The volume extend operation is using the wrong backend
API to expand the volume capacity. A volume copy is being
used to achieve the expansion for performance reasons,
but this results in snapshots defined on the original
volume being lost.

This patch updates the volume extend API to use the correct
method for expanding the volume capacity. For a thin-provisioned
volume or a volume defined on a DDP, this operation is very fast.
However, for a standard volume-group, this method will block
until the expansion has completed, because the expansion capacity
will not be available until completion.

Closes-Bug: 1506212
Change-Id: I1cb91b96ede732a76204287043b63a2a67f805f4

9 years agoUpdate register_opts hacking check to allow tuples
Ryan McNair [Tue, 27 Oct 2015 22:46:46 +0000 (22:46 +0000)]
Update register_opts hacking check to allow tuples

Update the hacking check for register_opts to allow tuples to be
passed in directly as an argument. Previously tuples were getting
flagged as invalid due to a missing pair of parenthesis in the
hacking check.

Change-Id: Ida2ae47eae4ebc6188696dc25943226acd67b5de
Closes-Bug: 1511010