cinder/cinder
Zhiteng Huang a73e37aff5 SolidFire: Handle connect_volume() failure when create vol from image
Currently the _create_image_volume() method in solidfire.py doesn't
catch the exception for initialize_connection() or connect_volume(),
therefore when something wrong happens at this stage, which is as
critial as image conversion, the empty volume created as image cache
wouldn't be deleted.  And that invalid image cache would cause all
consecutive volume creation from same image fail silently.

This change makes simple adjustment of the code to make sure the
errors happen at connecting volume to controler stage is being
covered.

Change-Id: Idd192be86a83dc341431593ab27bed9178cc36d1
Closes-bug: #1663782
(cherry picked from commit 55c1863e1d)
2017-02-17 20:04:00 +00:00
..
api Merge "Add strict Boolean checking for storage pools" 2016-09-13 19:24:53 +00:00
backup Fix backup NFS share mount with default backup_mount_options 2016-10-17 19:10:26 +00:00
brick Provide cfg to ignore lvm descriptor leak warnings 2016-09-27 14:25:36 -06:00
cmd Merge "Fix invalid services caused by enabled_backends" 2016-09-08 17:05:11 +00:00
common Register state_path opts and add it to sample conf 2016-09-07 11:53:12 +02:00
compute Fix the interface to call update_server_volume 2016-08-18 11:45:47 +08:00
config Replace key manager with Castellan 2016-08-29 10:19:10 +08:00
consistencygroup Removed RPC topic config options 2016-08-29 11:16:53 +05:30
db Merge "Add group snapshots - APIs" 2016-08-31 16:47:09 +00:00
group Save volume_type/group_type uuid into db when creating group 2016-09-12 06:37:17 -04:00
hacking Revert "Add hacking check to prevent assert_called_once" 2016-05-24 12:36:22 -04:00
image Limit memory & CPU when running qemu-img info 2016-09-22 20:48:27 +00:00
interface Driver documentation cleanup 2016-08-25 15:51:37 +05:30
keymgr Modifies override logic for key_manager 2016-09-26 13:57:43 -04:00
locale Imported Translations from Zanata 2016-10-24 07:17:48 +00:00
message Add pagination support to messages 2016-05-27 10:49:00 +00:00
objects Have a default OPTIONAL_FIELDS for persistent OVOs 2016-09-22 19:04:35 +02:00
replication Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
scheduler Merge "Fix request_spec conversion from o.vo to dict" into stable/newton 2016-09-26 05:00:50 +00:00
tests VNX: Update sg cache if it already existed 2017-02-06 22:22:40 -05:00
transfer check quota per_volume_gigabytes for transfer-accept 2016-09-02 03:13:25 +00:00
volume SolidFire: Handle connect_volume() failure when create vol from image 2017-02-17 20:04:00 +00:00
wsgi Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
zonemanager Add supported driver checks to Zone Manager 2016-09-01 15:45:42 -07:00
__init__.py Set EVENTLET_NO_GREENDNS for IPv6 and dnspython compat 2016-11-15 16:27:08 +00:00
context.py Use to_policy_values for enforcing policy 2016-09-13 01:13:15 +00:00
coordination.py update coordination.Lock.release's docstring 2016-06-19 01:55:35 -04:00
exception.py Add supported driver checks to Zone Manager 2016-09-01 15:45:42 -07:00
flow_utils.py
i18n.py
manager.py Add cluster job distribution 2016-07-22 21:00:11 +02:00
opts.py Register state_path opts and add it to sample conf 2016-09-07 11:53:12 +02:00
policy.py Use to_policy_values for enforcing policy 2016-09-13 01:13:15 +00:00
quota.py Add generic volume groups 2016-07-16 19:34:39 -04:00
quota_utils.py Handle API NotFound exceptions at WSGI level 2016-07-22 21:06:13 +02:00
rpc.py Add volume RPC API v3.0 2016-09-15 15:02:01 +02:00
service.py Merge "Added config option to enable SSL" 2016-09-15 02:01:23 +00:00
ssh_utils.py Fix sshpool.remove code 2016-03-01 03:20:04 +00:00
test.py Merge "Stop using mox in unit/*.py tests (1/2)" 2016-08-30 10:51:16 +00:00
utils.py Modifies override logic for key_manager 2016-09-26 13:57:43 -04:00
version.py