Comment 5 for bug 1169290

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/31941
Committed: http://github.com/openstack/cinder/commit/aa7fde57a37ae8e03f137e7b525cc77109cc31c1
Submitter: Jenkins
Branch: master

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.

    Fixed Bug1169290.

    Change-Id: I133b4cc1bac493df073d42e240092cf2e6300454