From 326d2bcb9b8dbffc003b07243649dfbce69b3c67 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Tue, 16 Apr 2019 14:22:52 -0400 Subject: [PATCH] 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 --- cinder/volume/drivers/nfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/volume/drivers/nfs.py b/cinder/volume/drivers/nfs.py index ada70677dc8..7287876eb72 100644 --- a/cinder/volume/drivers/nfs.py +++ b/cinder/volume/drivers/nfs.py @@ -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.