If the CinderVolume service is restarted while an image-copy is
happening, the volume gets left in a 'downloading' state and
cannot be used or deleted. This fix adds code to init_host to
look for volumes (on this host) in such a state, and move them
to an error state. It also calls clear_download in the driver
in case the driver needs to perform an action, such as
detaching the volume.
Reviewed: https:/ /review. openstack. org/27472 github. com/openstack/ cinder/ commit/ 3d18b30329183c6 d89f287c5dd2324 8cbcc24607
Committed: http://
Submitter: Jenkins
Branch: master
commit 3d18b30329183c6 d89f287c5dd2324 8cbcc24607
Author: Dermot Tynan <email address hidden>
Date: Thu Apr 25 10:46:34 2013 +0100
Clear volumes stuck in 'downloading'
If the CinderVolume service is restarted while an image-copy is
happening, the volume gets left in a 'downloading' state and
cannot be used or deleted. This fix adds code to init_host to
look for volumes (on this host) in such a state, and move them
to an error state. It also calls clear_download in the driver
in case the driver needs to perform an action, such as
detaching the volume.
Fixes Bug #1172645
Change-Id: Ia5dab9ebf997f5 73c0b4e57d983f5 996af81ede5