Comment 5 for bug 1340552

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

Reviewed: https://review.openstack.org/111553
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=bd5c5d5bbd808b4f83da58dce433cac711575bee
Submitter: Jenkins
Branch: master

commit bd5c5d5bbd808b4f83da58dce433cac711575bee
Author: Sampath Priyankara <email address hidden>
Date: Sun Aug 3 15:23:23 2014 +0900

    Fix for volume detach error when use NFS as the cinder backend

    For NFS volumes, every time you detach a volume, nova tries to umount
    the device path. If the device path is busy (or in use), it should
    output a message to log and continue.
    In current code, if the device is busy, it cannot catch the ‘device is busy’
    message returned by umount, because it looking for the ‘target is busy’.
     Therefore, current code skip the ‘if’ statement and run the ‘else’ and
    raise the exception.
    Fix: Add ‘device is busy’ to if statement.

    Add a mock test to check the behaviour of the
    virt.libvirt.volume.LibvirtNFSVolumeDriver.disconnect_volume
    when it has umount errors.

    Closes-Bug: #1340552

    Change-Id: Iac946c37064c5f5bf5a102305de40d21d16846c1