Ceph backup driver could not restore a volume other than ceph

Bug #1895035 reported by Sofia Enriquez
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Cinder
High
Sofia Enriquez

Bug Description

Steps to Reproduce:
   1. Setup the cinder backup driver to 'cinder.backup.drivers.ceph.CephBackupDriver'

      backup_driver=cinder.backup.drivers.ceph.CephBackupDriver

   2. Create 'LVM' volume.

     $ cinder create --volume-type lvm --name "lvm_vol" 1

   3. Create backup from 'LVM' volume.

     $ cinder backup-create lvm_vol --name "backup_from_lvm_vol"

   4. Create 'LVM' volume to restore the backup.

     $ cinder create --volume-type lvm --name "restore_backup_lvm" 1

   5. Restore from the backup to 4) volume.

     $ cinder backup-restore backup_from_lvm_vol --volume restore_backup_lvm

Actual results:
   Restoring from backup failed

Expected results:
   Restoring from backup success.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/750782

Changed in cinder:
assignee: nobody → Sofia Enriquez (lsofia-enriquez)
status: New → In Progress
tags: added: rbd
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :

Currently the Ceph Backend fails when restoring non-ceph volumes. This happens because the current code is generating the wrong base image when performing a full restore. If we are not using a RBD destination volume we need to specify the backup in the same way than If a source snapshot is provided.In order to locale the right base image used for the backup It should use  backup.service_metadata.

Changed in cinder:
importance: Undecided → High
tags: added: backup-service ceph restore
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers