]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
ZFSSA iSCSI vol create fails with vol type option
authorJuan Zuluaga <juan.c.zuluaga@oracle.com>
Wed, 24 Sep 2014 22:51:07 +0000 (18:51 -0400)
committerThierry Carrez <thierry@openstack.org>
Wed, 8 Oct 2014 10:30:29 +0000 (12:30 +0200)
commita8cec39f8243fd4ee6c0a16fc0620d4b0980c749
treecda0d8d6fffd06df69fc02366e18a3a4cd7caeb6
parent20d1476624d7257bd7f5439a54f802fd4f20f765
ZFSSA iSCSI vol create fails with vol type option

Vol create with volume-type option is not working since
volume_backend_name contains the class name as
predefined string. No matter what was specified in cinder.conf
as volume_backend_name, volume creation failed.
Multi-backend option and using extra specs to create custom volumes
won't work.
The fix is to look whether volume_backend_name is part of the
configuration or falls into the class name in case there is
no backend name.

Closes-Bug: 1373621
DocImpact

(cherry picked from commit 5c61d57d3693523e9cbf11bf0b5b09bafe699247)

Change-Id: I1bc501dd4c5689d96c7beb720b64112df1770232
cinder/volume/drivers/zfssa/zfssaiscsi.py