]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "RemoteFS: Reporting configured reserved_percentage in _update_volume_stats"
Jenkins [Wed, 8 Jul 2015 02:16:38 +0000 (02:16 +0000)]
Merge "RemoteFS: Reporting configured reserved_percentage in _update_volume_stats"

9 years agoMerge "Dell SC: Add support for consistency groups"
Jenkins [Wed, 8 Jul 2015 02:07:45 +0000 (02:07 +0000)]
Merge "Dell SC: Add support for consistency groups"

9 years agoMerge "Port NetApp E-Series iSCSI driver to ABC model"
Jenkins [Wed, 8 Jul 2015 02:07:23 +0000 (02:07 +0000)]
Merge "Port NetApp E-Series iSCSI driver to ABC model"

9 years agoMerge "Port huawei driver to Python 3"
Jenkins [Wed, 8 Jul 2015 02:06:53 +0000 (02:06 +0000)]
Merge "Port huawei driver to Python 3"

9 years agoMerge "Fix error message in Pure driver with correct text"
Jenkins [Wed, 8 Jul 2015 02:06:43 +0000 (02:06 +0000)]
Merge "Fix error message in Pure driver with correct text"

9 years agoMerge "Return 404 if volume type encryption is not found"
Jenkins [Tue, 7 Jul 2015 20:09:59 +0000 (20:09 +0000)]
Merge "Return 404 if volume type encryption is not found"

9 years agoFix error message in Pure driver with correct text
Simon Dodsley [Tue, 7 Jul 2015 14:06:37 +0000 (10:06 -0400)]
Fix error message in Pure driver with correct text

The error message was specifically mentioning the PureISCSIDriver but
now there is a PureFCDriver which could call the error message. This
change gets the name of the driver and uses that to ensure
the error message refers to the correct driver.

Closes-Bug: #1469523
Change-Id: Ib724073ea352dadfbe7ddcf4ee4ceedd5d2c7c41

9 years agoMerge "Notify the transfer volume action in cinder"
Jenkins [Tue, 7 Jul 2015 14:26:08 +0000 (14:26 +0000)]
Merge "Notify the transfer volume action in cinder"

9 years agoNotify the transfer volume action in cinder
wanghao [Tue, 26 May 2015 07:32:42 +0000 (15:32 +0800)]
Notify the transfer volume action in cinder

Now when we transfer a volume, there is not corresponding action
notification that is sent to ceilometer. Include the actions of create,
accept and delete.

The bp that this patch implements, proposes adding those action to enrich
the notification in cinder.

Notify is added in Create, Accept, and Delete actions.

Change-Id: I9d71c55d103cc501f60585b64902d364af21d4d9
Implements:  blueprint notify-the-transfer-volume-action-in-cinder

9 years agoMerge "Avoid race condition at snapshot deletion stage"
Jenkins [Tue, 7 Jul 2015 04:31:44 +0000 (04:31 +0000)]
Merge "Avoid race condition at snapshot deletion stage"

9 years agoMerge "Remove duplicate volume.filters entry"
Jenkins [Mon, 6 Jul 2015 22:35:19 +0000 (22:35 +0000)]
Merge "Remove duplicate volume.filters entry"

9 years agoDell SC: Add support for consistency groups
tswanson [Mon, 29 Jun 2015 19:21:45 +0000 (14:21 -0500)]
Dell SC: Add support for consistency groups

Added support for consistency groups. Associated tests added to
test_dellsc.py and test_dellscapi.py. create_consistency_group_from_src
is not implemented in this patch.

Minor change to iscsi driver inheritance.

Change-Id: I485329883ba35b341f1b3e79897e5fe6680de1f3
Implements: blueprint dell-add-consistency-groups

9 years agoMerge "Validate bool value using strutils.bool_from_string method"
Jenkins [Mon, 6 Jul 2015 18:47:45 +0000 (18:47 +0000)]
Merge "Validate bool value using strutils.bool_from_string method"

9 years agoMerge "Add unit tests for the capacity filter"
Jenkins [Mon, 6 Jul 2015 18:47:13 +0000 (18:47 +0000)]
Merge "Add unit tests for the capacity filter"

9 years agoMerge "Remove X-IO volume driver"
Jenkins [Mon, 6 Jul 2015 18:47:02 +0000 (18:47 +0000)]
Merge "Remove X-IO volume driver"

9 years agoMerge "Separate FlashSystem FC and iSCSI common code"
Jenkins [Mon, 6 Jul 2015 18:44:34 +0000 (18:44 +0000)]
Merge "Separate FlashSystem FC and iSCSI common code"

9 years agoMerge "Port hitachi driver to Python 3"
Jenkins [Mon, 6 Jul 2015 18:44:23 +0000 (18:44 +0000)]
Merge "Port hitachi driver to Python 3"

9 years agoRemove duplicate volume.filters entry
Sean Chen [Fri, 5 Jun 2015 19:29:44 +0000 (12:29 -0700)]
Remove duplicate volume.filters entry

mv has already been added by gpfs driver

Change-Id: I1cac9088e377b4cf8a44a5a25174ea68cbe900d4

9 years agoMerge "Port test_db_api to Python 3"
Jenkins [Mon, 6 Jul 2015 17:46:00 +0000 (17:46 +0000)]
Merge "Port test_db_api to Python 3"

9 years agoMerge "Mock socket.gethostbyaddr in test_v7000_fcp"
Jenkins [Mon, 6 Jul 2015 17:10:28 +0000 (17:10 +0000)]
Merge "Mock socket.gethostbyaddr in test_v7000_fcp"

9 years agoMerge "Do not allow to modify access for public volume type"
Jenkins [Mon, 6 Jul 2015 17:10:16 +0000 (17:10 +0000)]
Merge "Do not allow to modify access for public volume type"

9 years agoMerge "smbfs: fix invalid check for smbfs_used_ratio correctness"
Jenkins [Mon, 6 Jul 2015 16:57:35 +0000 (16:57 +0000)]
Merge "smbfs: fix invalid check for smbfs_used_ratio correctness"

9 years agoMerge "Use right oslo.service entry points"
Jenkins [Mon, 6 Jul 2015 15:43:11 +0000 (15:43 +0000)]
Merge "Use right oslo.service entry points"

9 years agoMerge "Update expected error message from lvs"
Jenkins [Mon, 6 Jul 2015 15:39:55 +0000 (15:39 +0000)]
Merge "Update expected error message from lvs"

9 years agoPort NetApp E-Series iSCSI driver to ABC model
Tom Barron [Sat, 20 Jun 2015 08:57:54 +0000 (04:57 -0400)]
Port NetApp E-Series iSCSI driver to ABC model

This commit modifies the NetApp E-Series volume driver to the
new ABC driver model.  The corresponding FibreChannel driver
already uses that model since it was recently implemented and
was written with an appropriate ABC class signature in the first
place.  A corresponding class signature is now used for iSCSI.

This commit also modifies a couple doc strings to match the
corresponding FibreChannel driver.

Change-Id: I624efd6e511f15d34fff1d97a0848c2610185e17
Partially-implements: blueprint abc-driver-update

9 years agoMerge "Fixed misspelling in solidfire.py"
Jenkins [Mon, 6 Jul 2015 14:23:28 +0000 (14:23 +0000)]
Merge "Fixed misspelling in solidfire.py"

9 years agoSeparate FlashSystem FC and iSCSI common code
xiaolei hu [Thu, 25 Jun 2015 02:22:50 +0000 (10:22 +0800)]
Separate FlashSystem FC and iSCSI common code

The patch is mainly to split original FC driver code into common
code and FC driver for IBM FlashSystem. iSCSI driver merged in L-1
has been inherited from original FC driver for common functions
already.

In this patch,
* Separate FC driver into new driver and common code.
* Modify iSCSI driver to inherite the common code.
* Common function _get_node_data in iSCSI driver is moved into
common code.
* Add locks in initialize_connection and terminate_connection
for iSCSI driver.
* Remove flashsystem_multipath_enabled to use Cinder iSCSI
multipath support.

Implements: blueprint ibm-flashsystem-split-fc
Change-Id: I166a14e3eef370a22f4c0a675d451a3a4a6989f1

9 years agoMerge "Fix Python 3 issues in cmd"
Jenkins [Sat, 4 Jul 2015 00:35:08 +0000 (00:35 +0000)]
Merge "Fix Python 3 issues in cmd"

9 years agoUpdate expected error message from lvs
Alberto Murillo [Tue, 30 Jun 2015 21:12:55 +0000 (16:12 -0500)]
Update expected error message from lvs

drivers/lvm.py uses _volume_not_present() to avoid deleting a snapshot
when it does not exist in the lvm backend. This functions uses brick/
local_dev/lvm.py get_lv_info() which expects "not found" as error message.

Since LVM2 2.102.112, The error message returned by lvs changed
From:
    One or more specified logical volume(s) not found
To:
    Failed to find logical volume \"%s/%s\"

Change-Id: I032a916666918b07d00983a42f10dd8efc17ee8b
Closes-Bug: #1470218

9 years agoMerge "Switch to oslo.reports"
Jenkins [Fri, 3 Jul 2015 17:03:28 +0000 (17:03 +0000)]
Merge "Switch to oslo.reports"

9 years agoMerge "Fix block eventlet threads on rbd calls"
Jenkins [Fri, 3 Jul 2015 16:25:40 +0000 (16:25 +0000)]
Merge "Fix block eventlet threads on rbd calls"

9 years agoMerge "Revert First version of Cinder driver for Quobyte"
Jenkins [Thu, 2 Jul 2015 23:14:39 +0000 (23:14 +0000)]
Merge "Revert First version of Cinder driver for Quobyte"

9 years agoRemove X-IO volume driver
Mike Perez [Thu, 2 Jul 2015 22:50:05 +0000 (15:50 -0700)]
Remove X-IO volume driver

CI hasn't been reporting for almost a month and the maintainer hasn't
been responsive on the third party mailing list.

Change-Id: Ia99f7ec11f2dd31d458a34ec35200c0d644e5d90

9 years agoMerge "Implement the update_migrated_volume for the drivers"
Jenkins [Thu, 2 Jul 2015 20:17:52 +0000 (20:17 +0000)]
Merge "Implement the update_migrated_volume for the drivers"

9 years agoMerge "Port image/glance.py to Python 3"
Jenkins [Thu, 2 Jul 2015 20:09:14 +0000 (20:09 +0000)]
Merge "Port image/glance.py to Python 3"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 2 Jul 2015 14:44:58 +0000 (14:44 +0000)]
Merge "Updated from global requirements"

9 years agoImplement the update_migrated_volume for the drivers
Vincent Hou [Thu, 7 May 2015 05:53:25 +0000 (13:53 +0800)]
Implement the update_migrated_volume for the drivers

This patch implements update_migrated_volume for LVM, Storwize
and updates Dell, StorPool and Infortrend drivers accordingly. It
makes sure that after a successful volume migration, the cinder
volume name(id) is the same as the backend volume name(id). Other
back-end drivers can take this patch as a reference to implement
update_migrated_volume.

PS: Not applicable to multi-attached volumes, since we need to wait
until the multi-attach lands in Nova.

This patch also adds a unit test for the StorPool driver's
update_migrated_volume() implementation.

Co-Authored-By: Peter Penchev <openstack-dev@storpool.com>
Change-Id: I69707340ddf2b55286ff0d84319529b2f502cefa
Partial-Bug: #1450649

9 years agoAvoid race condition at snapshot deletion stage
Andrey Pavlov [Fri, 19 Jun 2015 15:03:19 +0000 (18:03 +0300)]
Avoid race condition at snapshot deletion stage

Snapshot`s list method can raise SnapshotNotFound exception.
It happens because of race condition:
1. List method gets all snapshots from DB.
2. At the same time one of the snapshots is being deleted from DB.
3. List method gets snapshot metadata from DB and checks
   that snapshot exists in DB and raises the exception.

This patchset changes behaviour of getting snapshot metadata from DB.
Code now gets metadata from db_snapshot object that was queried
by joined query from DB instead of second query for each snapshot
for metadata.

And I removed checking of snapshot existence for getting
metadata for private method because all public methods already have
such decorator. Using second decorator will slow public method.

Change-Id: I7f743638d9be4c01e18315a3459aecd2b3e9fd87
Closes-Bug: #1462453

9 years agoFix Python 3 issues in cmd
Victor Stinner [Tue, 30 Jun 2015 14:47:15 +0000 (16:47 +0200)]
Fix Python 3 issues in cmd

* Replace filter() with a list-comprehension using if to get a list on
  Python 3.
* Get the mock module from the stdlib unittest module on Python 3.3 and
  newer, or fallback to the third-party mock module.
* Replace __builtin__ with six.moves.builtins.
* tox.ini: add the following tests for Python 3.4

  - cinder.tests.unit.test_api
  - cinder.tests.unit.test_cmd

Blueprint cinder-python3
Change-Id: Iea516ae598e8eebfc1087663a9b3e0a00d0633d3

9 years agoPort image/glance.py to Python 3
Victor Stinner [Tue, 30 Jun 2015 14:06:28 +0000 (16:06 +0200)]
Port image/glance.py to Python 3

* Fix usage of six.reraise(): new_exc is the exception value, not the
  exception type
* Replace __builtin__ with six.moves.builtins.
* test_extracting_v2_boot_properties(): set config.glance_num_retries to
  fix the test on Python 3 (comparison between mock and int now raises
  a TypeError on Python 3).
* TestGlanceSerializer: use dictionaries with only one key to have a
  reliable output even if the hash is randomized (hash randomization is
  now enabled by default in Python 3).
* tox.ini: add cinder.tests.unit.image.test_glance to Python 3.4.

Blueprint cinder-python3
Change-Id: I33cd02e1b0666d7b5999b2fdaf469dc59fff1866

9 years agoSwitch to oslo.reports
liu-sheng [Mon, 29 Jun 2015 01:43:31 +0000 (09:43 +0800)]
Switch to oslo.reports

The Guru Meditation Reports has graduated from oslo-incubator, Cinder
should switch to use oslo.reports to keep the code base clean.

NOTE: this should be merged after the requirements has been synchronized.

Change-Id: Ic91a0c5eed09ecdec93e707e901f4bcc55980f72
Closes-Bug: 1469575

9 years agoMerge "Fix backup.rpcapi to pass object backup"
Jenkins [Thu, 2 Jul 2015 00:16:07 +0000 (00:16 +0000)]
Merge "Fix backup.rpcapi to pass object backup"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 1 Jul 2015 22:21:06 +0000 (22:21 +0000)]
Updated from global requirements

Change-Id: Ifc6a27522a5f47306f909a7de651291a96befe54

9 years agoMerge "Replace missed basestring by six for python3 compatability"
Jenkins [Wed, 1 Jul 2015 22:16:35 +0000 (22:16 +0000)]
Merge "Replace missed basestring by six for python3 compatability"

9 years agoMerge "Fix timeout issue in EMC VNX driver unit test"
Jenkins [Wed, 1 Jul 2015 21:45:52 +0000 (21:45 +0000)]
Merge "Fix timeout issue in EMC VNX driver unit test"

9 years agoMerge "Fix typo in solidfire driver option"
Jenkins [Wed, 1 Jul 2015 19:34:53 +0000 (19:34 +0000)]
Merge "Fix typo in solidfire driver option"

9 years agoMerge "Fix Python 3 issues in targets unit tests"
Jenkins [Wed, 1 Jul 2015 18:59:14 +0000 (18:59 +0000)]
Merge "Fix Python 3 issues in targets unit tests"

9 years agoFix block eventlet threads on rbd calls
Ivan Kolodyazhny [Wed, 1 Jul 2015 18:54:23 +0000 (21:54 +0300)]
Fix block eventlet threads on rbd calls

Commit Ibaf43858d60e1320c339f2523b5c09c7f7c7f91e caused new problem with
cross thread communication. According to Python documentation, code can
lead to a deadlock if the spawned thread directly or indirectly attempts
to import a module. python-rados spawns new thread to connect to
cluster. So I removed new spawning new thread to connect to rados. All
long-running operations calls whith python-rbd are still implemented in
native Python threads to block eventlet loop.

Change-Id: Ic9971254102914080383b63cd2807e36213dd6eb
Closes-Bug: #1401335

9 years agoRemoteFS: Reporting configured reserved_percentage in _update_volume_stats
Bharat Kumar Kobagana [Tue, 12 May 2015 12:56:34 +0000 (18:26 +0530)]
RemoteFS: Reporting configured reserved_percentage in _update_volume_stats

In remotefs, reserved_percentage will be always reported up to the
scheduler as 0, irrespective of the value of cfg.reserved_percentage.

This patch modifies the code to use reserved_percentage configuration
parameter while updating status.

Closes-Bug: #1458640
Change-Id: I53917835b79797417aca7b1b3c794c84b6143ab5

9 years agoPort dothill to Python 3
Victor Stinner [Mon, 29 Jun 2015 13:33:12 +0000 (15:33 +0200)]
Port dothill to Python 3

* Replace urllib2 with six.moves.urllib
* On Python 3, encode string to UTF-8 to hash it using MD5
* On Python 3, decode base64 from ASCII to get Unicode
* Replace "pattern in exc" with "pattern in exc.args"
* test_initialize_connection(): fix get_active_iscsi_target_portals()
  mock. Use the return_value attribute to return a dictionary, instead
  of returning a single IP address.
* tox.ini: add cinder.tests.unit.test_dothill to Python 3.4

Blueprint cinder-python3
Change-Id: Ib20bca813c2352eae447c374ded75c6dafb2e18d

9 years agoFix backup.rpcapi to pass object backup
lisali [Wed, 1 Jul 2015 06:32:28 +0000 (14:32 +0800)]
Fix backup.rpcapi to pass object backup

Transfer object backup instead of backup.id in
rpcapi.import_record().

Change-Id: Ie535c48d3987971f0541cdb1594363a4decd4d1c
Closes-Bug: #1470355

9 years agoFix typo in solidfire driver option
Tom Fifield [Wed, 1 Jul 2015 07:58:04 +0000 (15:58 +0800)]
Fix typo in solidfire driver option

As reported by Ed Balduf, the description of sf_account_prefix
had a simple typo in it, which this patch fixes.

Change-Id: Ib3864de0bdae6763810f3a5a40789ac1e5b0bbff
Co-Authored-By: Ed Balduf <ed.balduf@solidfire.com>
9 years agoMock socket.gethostbyaddr in test_v7000_fcp
Michal Dulko [Wed, 1 Jul 2015 06:41:03 +0000 (08:41 +0200)]
Mock socket.gethostbyaddr in test_v7000_fcp

Currently test_v7000_fcp doesn't mock socket.gethostbyaddr and
hardcodes expected response to be google-public-dns-a.google.com
(as it is querying for 8.8.8.8 as IP). This introduces dependency on
external DNS lookup to pass unit tests and causes problems with
running tests behind a proxy.

This commit mocks socket.gethostbyaddr in the problematic test.

Change-Id: I3a0288d8e51c832a72e16e23af5adbee990f9e20
Closes-Bug: 1470113

9 years agoReplace missed basestring by six for python3 compatability
lisali [Wed, 1 Jul 2015 03:05:27 +0000 (11:05 +0800)]
Replace missed basestring by six for python3 compatability

Basestring has been replaced by six.string_types in cinder except
the ones in the file v7000_common.py.

Change-Id: I43c0f4cd2e2a990df8d0cceea2f04ee33afe2104
Closes-Bug: #1470315

9 years agoReturn 404 if volume type encryption is not found
Rakesh H S [Tue, 23 Jun 2015 14:06:24 +0000 (19:36 +0530)]
Return 404 if volume type encryption is not found

This commit adds a check for volume type encryption existence before
marking it as deleted. If it isn't present call returns 404 error
code so that it can be handled properly in services that use the
REST API (like Heat).

APIImpact
HTTP 404 will be returned if volume type encryption is not found.

Change-Id: I3107b8df0121de1ebe9e812ef7a842d09500e030
Closes-Bug: #1468751

9 years agoMerge "Add dependency check in RBD delete_snapshot"
Jenkins [Wed, 1 Jul 2015 02:41:53 +0000 (02:41 +0000)]
Merge "Add dependency check in RBD delete_snapshot"

9 years agoMerge "Sync the latest fileutils module from oslo-incubator"
Jenkins [Wed, 1 Jul 2015 02:27:20 +0000 (02:27 +0000)]
Merge "Sync the latest fileutils module from oslo-incubator"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 1 Jul 2015 02:27:01 +0000 (02:27 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Move HDS drivers to Hitachi folder"
Jenkins [Wed, 1 Jul 2015 00:28:02 +0000 (00:28 +0000)]
Merge "Move HDS drivers to Hitachi folder"

9 years agoMerge "Ensure initialize_connection in targets pass multipath parameter"
Jenkins [Tue, 30 Jun 2015 23:49:39 +0000 (23:49 +0000)]
Merge "Ensure initialize_connection in targets pass multipath parameter"

9 years agoMerge "Port drbdmanagedrv driver to Python 3"
Jenkins [Tue, 30 Jun 2015 23:31:14 +0000 (23:31 +0000)]
Merge "Port drbdmanagedrv driver to Python 3"

9 years agoMerge "Change generic NotFound to specific exception"
Jenkins [Tue, 30 Jun 2015 23:31:03 +0000 (23:31 +0000)]
Merge "Change generic NotFound to specific exception"

9 years agoMerge "XtremIO driver fix array snapshot problem"
Jenkins [Tue, 30 Jun 2015 22:40:55 +0000 (22:40 +0000)]
Merge "XtremIO driver fix array snapshot problem"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 30 Jun 2015 22:37:40 +0000 (22:37 +0000)]
Updated from global requirements

Change-Id: Iba1314c6d0aba78dc39ef018522f12b09b4586da

9 years agosmbfs: fix invalid check for smbfs_used_ratio correctness
Dmitry Guryanov [Wed, 10 Jun 2015 20:01:55 +0000 (23:01 +0300)]
smbfs: fix invalid check for smbfs_used_ratio correctness

The check allowed to specify values greater than 1
because of a error in condition. So I've fixed the
condition and updated unit test, so it would catch
the bug.

Closes-Bug: #1469249

Change-Id: I34f4128a8a80ae57be5c0af90308d2d517022d8e

9 years agoMove HDS drivers to Hitachi folder
Erlon R. Cruz [Tue, 30 Jun 2015 12:56:45 +0000 (09:56 -0300)]
Move HDS drivers to Hitachi folder

This patch moves the drivers from Hitachi to a common folder. Now all Hitachi
drivers will be under 'cinder/volume/drivers/hitachi'.

Change-Id: I2c725b9a130f055d7da487329c1e09abb333bcd4
Implements: blueprint rename-hitachi-drivers

9 years agoFix Python 3 issues in targets unit tests
Victor Stinner [Tue, 30 Jun 2015 14:14:09 +0000 (16:14 +0200)]
Fix Python 3 issues in targets unit tests

* Replace StandardError with ZeroDivisionError: StandardError was
  removed in Python 3.
* Replace __builtin__ with six.moves.builtins.
* Open text mode with "w" mode (instead of "wb").
* tox.ini: add targets unit tests to Python 3.4

Note: cinder.tests.unit.targets.test_iet_driver still fails on Python 3,
it will be fixed in a different change.

Blueprint cinder-python3
Change-Id: Ie0f5d2dfaf2ffdeab29fe40f692a2f09fb5a7aba

9 years agoPort drbdmanagedrv driver to Python 3
Victor Stinner [Mon, 29 Jun 2015 13:53:44 +0000 (15:53 +0200)]
Port drbdmanagedrv driver to Python 3

* Replace map() with a list-comprehension where a list is expected
* Replace apply(fn, args) with fn(*args)
* Use str.replace() to remove "{" and "}" characters in _clean_uuid(),
  instead of using str.translate()
* Use literal syntax to create a new dictionary instead of using
  dict() + dict.items()
* tox.ini: add cinder.tests.unit.test_drbdmanagedrv to Python 3.4

Blueprint cinder-python3
Change-Id: I4cb3ae422381442b778de024882e75f31eded5eb

9 years agoPort test_db_api to Python 3
Victor Stinner [Mon, 29 Jun 2015 13:11:12 +0000 (15:11 +0200)]
Port test_db_api to Python 3

* _dict_from_object(): on dictionaries, call the items() method instead
  of iteritems() method. oslo.db objects have no items() method yet, so
  check the object type to decide which method should be called.
* test_db_api: fix usage of db.quota_reserve(), quotas dictionary values
  must be integers (hard limit of quotas), not Quota instances of
  cinder.db.sqlalchemy.models.
* tox.ini:  add the following tests to Python 3.4

  - cinder.tests.unit.test_db_api
  - cinder.tests.unit.test_quota

Blueprint cinder-python3
Change-Id: I93f5e0f2fe34c9a6c135f34d64ec068c5696032d

9 years agoPort hitachi driver to Python 3
Victor Stinner [Mon, 29 Jun 2015 20:20:16 +0000 (22:20 +0200)]
Port hitachi driver to Python 3

* On Python 3, shlex expects Unicode, not bytes: don't encode
* Replace map() with list-comprehension where a list is expected.
* tox.ini: add cinder.tests.unit.test_hitachi_hbsd_horcm_fc to Python 3.4

Blueprint cinder-python3
Change-Id: Id0db0dabef98f7dd8331a5149e88dee0622917b3

9 years agoDo not allow to modify access for public volume type
wanghao [Tue, 23 Jun 2015 08:38:29 +0000 (16:38 +0800)]
Do not allow to modify access for public volume type

Now public volume type can be added/removed project access, but when
listing access, cinder returns 'Access list not available for public
volume types.' It's weird for users experience.

We should check if a type is public and do not allow public volume type
to modify project access.

APIImpact
When modifying access for public volume type, API will return 400 and message:
"Invalid volume type: Type access modification is not applicable to public
volume type."

Closes-Bug: #1467808

Change-Id: Id03eb3649ce02549c131c85697d8431c3f8c04dd

9 years agoAdd dependency check in RBD delete_snapshot
lisali [Fri, 26 Jun 2015 05:29:39 +0000 (13:29 +0800)]
Add dependency check in RBD delete_snapshot

List dependencies in log when failed to delete snapshot.

Change-Id: Ie21ba27735d8b65560adabb92a26cd86ef328a1d
Closes-Bug: #1463682

9 years agoPort huawei driver to Python 3
Victor Stinner [Mon, 29 Jun 2015 20:31:45 +0000 (22:31 +0200)]
Port huawei driver to Python 3

* On Python 3, encode text to UTF-8 before encoding it to base64
* On Python 3, decode encoded base64 from ASCII to get Unicode
* Fix JSON in unit test: COUNT must be an integer, not a string
* tox.ini: add cinder.tests.unit.test_huawei_18000 to Python 3.4

Blueprint cinder-python3
Change-Id: I8a2356e7faa98bf0a1a74fc15202866f5d5499a3

9 years agoMerge "Use versionutils from oslo.log"
Jenkins [Mon, 29 Jun 2015 20:20:01 +0000 (20:20 +0000)]
Merge "Use versionutils from oslo.log"

9 years agoMerge "Fix cinder.conf.sample generation"
Jenkins [Mon, 29 Jun 2015 20:03:10 +0000 (20:03 +0000)]
Merge "Fix cinder.conf.sample generation"

9 years agoXtremIO driver fix array snapshot problem
Shay Halsband [Mon, 22 Jun 2015 06:33:11 +0000 (09:33 +0300)]
XtremIO driver fix array snapshot problem

Use create snapshot v2, to resolve a potential bug
when 2 such requests are processed in the same second.

Change-Id: If2801cb737e8a3d1847c68c9e19265c2123e6687
Closes-Bug: #1467386

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 29 Jun 2015 15:08:18 +0000 (15:08 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Storwize driver report capability for multiattach"
Jenkins [Mon, 29 Jun 2015 14:50:50 +0000 (14:50 +0000)]
Merge "Storwize driver report capability for multiattach"

9 years agoFix cinder.conf.sample generation
Kazumasa Nomura [Thu, 25 Jun 2015 18:33:16 +0000 (03:33 +0900)]
Fix cinder.conf.sample generation

Introduction of the hp_xp driver broke cinder.conf.sample generation due to
the way the driver was registering the configuration items. Originally the
options were being included into the FC driver file and registered there.
When the config generator found the options in the separate hp_xp_opts.py
file it did not know what group to include the options in since they were
not registered at all.

This fix moves registration of the options to the hp_xp_opts.py file so
that the config generation will work. Since cfg.CONF is a global, the
hp_xp driver will still have access to the options in there after they are
set by importing the opts file. An additional problem that was uncovered
when creating this fix is the fact that the old config generator we are
using from oslo-incubator doesn't support using cfg.Opt. To temporarily
workaround this I have changed the cfg.Opts to be cfg.IntOpts or
cfg.ListOpts(as appropriate) and documented the valid values for those
options.

The last change that was necessary was to add config values for several of
the options in cinder/tests.py as the options were marked as required by
the driver. If values were not set this caused oslo config to error out
reporting that they values needed to be set.

Change-Id: Ie47d38c2f8fde675cf00ea2ec9abf60691c57ef9
Closes-Bug: 1466198
Signed-off-by: Jay S. Bryant<jsbryant@us.ibm.com>,
               Kazumasa Nomura <kazumasa.nomura.rx@hitachi.com>

9 years agoUse versionutils from oslo.log
Sergey Vilgelm [Mon, 29 Jun 2015 10:58:17 +0000 (12:58 +0200)]
Use versionutils from oslo.log

Change-Id: I9aa6cf7ccddad1d7c891230332e49e25b536f5bc
Closes-Bug: 1469693

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 29 Jun 2015 05:19:54 +0000 (05:19 +0000)]
Updated from global requirements

Change-Id: I7b8928a105d5666ce2d63a4444037866c43e1e9f

9 years agoMerge "Fix library includes for config generator"
Jenkins [Mon, 29 Jun 2015 04:21:38 +0000 (04:21 +0000)]
Merge "Fix library includes for config generator"

9 years agoMerge "Remove generate_glance_url"
Jenkins [Mon, 29 Jun 2015 04:21:27 +0000 (04:21 +0000)]
Merge "Remove generate_glance_url"

9 years agoMerge "Fix manage_existing function in infortrend driver"
Jenkins [Mon, 29 Jun 2015 04:21:21 +0000 (04:21 +0000)]
Merge "Fix manage_existing function in infortrend driver"

9 years agoFix timeout issue in EMC VNX driver unit test
Xi Yang [Tue, 23 Jun 2015 09:42:18 +0000 (05:42 -0400)]
Fix timeout issue in EMC VNX driver unit test

This patch is going to fix the timeout issue in EMC VNX
driver unit test.

Currently, the timeout value of a looping call in EMC unit test
is set to 0.000002s which is too small. The execution time of
a looping call may exceed this timeout value and cause the test
case failure. This fix is changing the timeout to the default
value of VNX driver.

Change-Id: I4aea02403ada8892e45b974be70fb5753721ed39
Closes-Bug: #1467763

9 years agoMerge "Use symbol for error code in VNX cinder driver"
Jenkins [Mon, 29 Jun 2015 03:00:32 +0000 (03:00 +0000)]
Merge "Use symbol for error code in VNX cinder driver"

9 years agoMerge "Storwize: add the missing stops in the end of the messages"
Jenkins [Mon, 29 Jun 2015 02:59:26 +0000 (02:59 +0000)]
Merge "Storwize: add the missing stops in the end of the messages"

9 years agoMerge "Fix Python 3 issues in the blockbridge driver"
Jenkins [Mon, 29 Jun 2015 02:52:05 +0000 (02:52 +0000)]
Merge "Fix Python 3 issues in the blockbridge driver"

9 years agoMerge "Fix cinder-manage volume delete cmd"
Jenkins [Mon, 29 Jun 2015 02:49:01 +0000 (02:49 +0000)]
Merge "Fix cinder-manage volume delete cmd"

9 years agoMerge "Remove oslo logging from backup unit tests"
Jenkins [Mon, 29 Jun 2015 02:46:27 +0000 (02:46 +0000)]
Merge "Remove oslo logging from backup unit tests"

9 years agoMerge "Make VNX Cinder Driver aware of VNX Pool Full Threshold"
Jenkins [Sun, 28 Jun 2015 14:27:10 +0000 (14:27 +0000)]
Merge "Make VNX Cinder Driver aware of VNX Pool Full Threshold"

9 years agoMerge "Fix 'no actual-pathname' NetApp API error"
Jenkins [Sun, 28 Jun 2015 03:34:36 +0000 (03:34 +0000)]
Merge "Fix 'no actual-pathname' NetApp API error"

9 years agoRemove oslo logging from backup unit tests
Tom Barron [Thu, 11 Jun 2015 17:07:07 +0000 (13:07 -0400)]
Remove oslo logging from backup unit tests

Many of the unit tests for backup services import oslo_log and
invoke LOG.debug, LOG.info, etc.  There appears to be no current
reason to do this and, more generally, unit tests for everything
but oslo_log itself should not be doing logging themselves.

This commit removes oslo logging from the backup unit tests.
Closes-bug: 1464772

Change-Id: I2c9f258a43a155e785bac4158cb5e5e0ecfcc797

9 years agoMerge "Add notifications about snapshot.update.*"
Jenkins [Sat, 27 Jun 2015 16:05:09 +0000 (16:05 +0000)]
Merge "Add notifications about snapshot.update.*"

9 years agoMerge "Fix Python 3 issues in the swift backup driver"
Jenkins [Sat, 27 Jun 2015 14:35:53 +0000 (14:35 +0000)]
Merge "Fix Python 3 issues in the swift backup driver"

9 years agoMerge "Fix Python 3 issues in ceph and rbd drivers"
Jenkins [Sat, 27 Jun 2015 14:35:36 +0000 (14:35 +0000)]
Merge "Fix Python 3 issues in ceph and rbd drivers"

9 years agoMerge "Fix Python 3 issues in backup"
Jenkins [Sat, 27 Jun 2015 14:32:53 +0000 (14:32 +0000)]
Merge "Fix Python 3 issues in backup"

9 years agoAdd notifications about snapshot.update.*
Lena Novokshonova [Mon, 26 Jan 2015 08:51:02 +0000 (12:51 +0400)]
Add notifications about snapshot.update.*

Now we have notifications about volume.update.*, but don't have
notifications about snapshot.update.*
In this patchset added this notifications.

Change-Id: Idc17516436b06871421c17cde0e2128f81613716

9 years agoSync the latest fileutils module from oslo-incubator
Jay S. Bryant [Fri, 26 Jun 2015 20:56:47 +0000 (15:56 -0500)]
Sync the latest fileutils module from oslo-incubator

As part of our normal development in a release we should get
our openstack/common directory code synced up with the latest
code in oslo-incubator.  This is the sync for fileutils:

Current HEAD in OSLO:
---------------------
commit 2e41adeb4c19114fd3504eb69891e9149dba7072
Date:   Wed Jun 24 14:45:25 2015 +0000
Updated from global requirements

Changes merged with this patch:
---------------------
16eb642eb -- Clean up logging to conform to guidelines

Change-Id: I2cfdb7ca1f876cdb8f0deae5a82484409c0b40cc

9 years agoFix 'no actual-pathname' NetApp API error
Tom Barron [Wed, 17 Jun 2015 18:54:01 +0000 (14:54 -0400)]
Fix 'no actual-pathname' NetApp API error

Cinder volume logs sometimes show this error

      NetApp API failed. Reason - 13114:
      No actual-pathname for 10.1.0.9:/vol/whatever

with Kilo code and 7-mode DOT system.

The issue is due to our Cinder driver passing the
entire share to the relevant API instead of just
the export path portion of the share.  This only
happens when the NFS image cache is full, and cached
files need to be removed.

Change-Id: I0c40840dac975dd7fd2c62f1f9c0cd3f8c5c1252
Closes-Bug: #1468884