commit aa7fde57a37ae8e03f137e7b525cc77109cc31c1
Author: Vincent Hou <email address hidden>
Date: Thu Jun 6 16:46:52 2013 +0800
Add the iscsi device check and exception processing.
Before downloading the image and executing the command "qemu-img convert",
check if the iSCSI device is still available via the command "sudo dd
if=<device> of=/dev/null count=1". This command will raise an exception with
the message "Input/output error", if the back-end storage is disconnected to
the cinder-volume node, so we use it to test the availability of the storage
device. If it is unavailable, there is no need to download the image &
"qemu-img convert" and an exception DeviceUnavailable will be raised.
Reviewed: https:/ /review. openstack. org/31941 github. com/openstack/ cinder/ commit/ aa7fde57a37ae8e 03f137e7b525cc7 7109cc31c1
Committed: http://
Submitter: Jenkins
Branch: master
commit aa7fde57a37ae8e 03f137e7b525cc7 7109cc31c1
Author: Vincent Hou <email address hidden>
Date: Thu Jun 6 16:46:52 2013 +0800
Add the iscsi device check and exception processing.
Before downloading the image and executing the command "qemu-img convert",
check if the iSCSI device is still available via the command "sudo dd
if=<device> of=/dev/null count=1". This command will raise an exception with
the message "Input/output error", if the back-end storage is disconnected to
the cinder-volume node, so we use it to test the availability of the storage
device. If it is unavailable, there is no need to download the image &
"qemu-img convert" and an exception DeviceUnavailable will be raised.
Fixed Bug1169290.
Change-Id: I133b4cc1bac493 df073d42e240092 cf2e6300454