[RBD] Fix snapshot backup name
We always create a full backup for snapshots. It means we have to
generate a correct buckup name for a base backup.
Closes-Bug:
@@ -805,6 +805,9 @@ class CephBackupDriver(driver.BackupDriver):
image.
"""
volume_id = backup.volume_id
+ if backup.snapshot_id:
+ backup_name = self._get_backup_base_name(volume_id)
+ else:
backup_name = self._get_backup_base_name(volume_id, backup=backup)
with eventlet.tpool.Proxy(rbd_driver.RADOSClient(self,
