NFS: Log exception when update_migrated_volume fails
There isn't enough log context here to debug some failures, ensure that the OSError exception information is logged to provide sufficient info. Closes-Bug: #1825029 Change-Id: Ie499f7d914848b185531f101be49424fe8c64da6
This commit is contained in:
parent
73329e1640
commit
326d2bcb9b
@ -471,8 +471,8 @@ class NfsDriver(remotefs.RemoteFSSnapDriverDistributed):
|
||||
try:
|
||||
os.rename(current_path, original_path)
|
||||
except OSError:
|
||||
LOG.error('Unable to rename the logical volume '
|
||||
'for volume: %s', volume.id)
|
||||
LOG.exception('Unable to rename the logical volume '
|
||||
'for volume: %s', volume.id)
|
||||
# If the rename fails, _name_id should be set to the new
|
||||
# volume id and provider_location should be set to the
|
||||
# one from the new volume as well.
|
||||
|
Loading…
x
Reference in New Issue
Block a user