When the driver copy_image_to_volume fails it can
at the current time raise more than just CinderException
as its root exception type. This causes rescheduling due
to the blacklisted exception list that is used to determine
if a exception is 'bad enough' to trigger rescheduling or
should the volume creation action just set the volume to
error state.
To avoid the situation where this would cause a rescheduling
we should make sure (for now) that any exception that is
emitted on copying an image to a volume is translated
into a image copy failure and reraised.
Reviewed: https:/ /review. openstack. org/46177 github. com/openstack/ cinder/ commit/ 4227b128a42a1c5 785ac13245de511 fbcd358e37
Committed: http://
Submitter: Jenkins
Branch: master
commit 4227b128a42a1c5 785ac13245de511 fbcd358e37
Author: Joshua Harlow <email address hidden>
Date: Wed Sep 11 19:36:18 2013 -0700
Catch generic exceptions
When the driver copy_image_ to_volume fails it can
at the current time raise more than just CinderException
as its root exception type. This causes rescheduling due
to the blacklisted exception list that is used to determine
if a exception is 'bad enough' to trigger rescheduling or
should the volume creation action just set the volume to
error state.
To avoid the situation where this would cause a rescheduling
we should make sure (for now) that any exception that is
emitted on copying an image to a volume is translated
into a image copy failure and reraised.
Fixes: bug 1224211
Change-Id: Ia4a0a81d9e0967 b1e7de07577d770 84462304c60