Ceph backup driver could not restore a volume other than ceph

Bug #1895035 reported by Sofia Enriquez
This bug affects 5 people
Affects Status Importance Assigned to Milestone
In Progress
Sofia Enriquez

Bug Description

Steps to Reproduce:
   1. Setup the cinder backup driver to '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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by "Sofia Enriquez <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/750782
Reason: I have decided not to continue with the refactor of the Ceph backup driver for this bug. Instead, I am currently working on the bug mentioned in https://review.opendev.org/c/openstack/cinder/+/880965, and I plan to follow up with a refactor/cleaning of the code for this driver in another patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.