Merge "Fixes Hyper-V volume discovery exception message"

This commit is contained in:
Jenkins 2014-12-12 10:44:18 +00:00 committed by Gerrit Code Review
commit 444934309e
1 changed files with 5 additions and 2 deletions

View File

@ -311,8 +311,11 @@ class ISCSIVolumeDriver(object):
time.sleep(CONF.hyperv.volume_attach_retry_interval)
if not mounted_disk_path:
raise exception.NotFound(_('Unable to find a mounted disk '
'for target_iqn: %s') % target_iqn)
raise exception.NotFound(_('Unable to find a mounted disk for '
'target_iqn: %s. Please ensure that '
'the host\'s SAN policy is set to '
'"OfflineAll" or "OfflineShared"') %
target_iqn)
return mounted_disk_path
def get_target_from_disk_path(self, physical_drive_path):