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:
Eric Harney 2019-04-16 14:22:52 -04:00
parent 73329e1640
commit 326d2bcb9b
1 changed files with 2 additions and 2 deletions

View File

@ -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.