For restore from LVM volumes to work, the restore must be done
on the host that serves the volume, since local_path is used
in the restore code.
Change-Id: Iad1fb5588b8365a0a165754389340bca3f1830b5
Closes-Bug: #
1365065
self.db.backup_update(context, backup_id, {'status': 'restoring'})
self.db.volume_update(context, volume_id, {'status':
'restoring-backup'})
+
+ volume_host = volume_utils.extract_host(volume['host'], 'host')
self.backup_rpcapi.restore_backup(context,
- backup['host'],
+ volume_host,
backup['id'],
volume_id)