Log backup_service.restore() exception
If _detach_device() fails, the original exception raised by
backup_service.restore() will not be logged. Adding a log
statement in the exception handler.
Closes-bug:
@@ -621,6 +621,13 @@ class BackupManager(manager.ThreadPoolManager):
else:
backup_service.restore(backup, volume.id,
tpool.Proxy(device_path))
+ except exception.BackupRestoreCancel:
+ raise
+ except Exception:
+ LOG.exception('Restoring backup %(backup_id)s to volume '
+ '%(volume_id)s failed.', {'backup_id': backup.id,
+ 'volume_id': volume.id})
+ raise
finally:
self._detach_device(context, attach_info, volume, properties,
force=True)
