]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
py3: Fix error handling in prophetstor driver
authorVictor Stinner <vstinner@redhat.com>
Sun, 8 Nov 2015 20:49:09 +0000 (21:49 +0100)
committerWalter A. Boring IV (hemna) <walter.boring@hpe.com>
Thu, 12 Nov 2015 23:54:28 +0000 (23:54 +0000)
commit2ff3f0be12cfe18d264fa14905011068069585cf
tree2454dd5f65d1693be94fd109084faa2dc166676d
parent94f21f802068b97a0713be50748e584da079bbdf
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
cinder/volume/drivers/prophetstor/dplcommon.py
tests-py3.txt