cinder backup recovery api - import/export backups
We are almost at the stage where we will have backups that, should your cloud go offline/blow up/fall off a cliff, would allow complete restoration of volumes to their original state including db metadata. What we do not have is a means of restoring the backup metadata so that volume can then be restored with the existing backup/restore api.
Blueprint information
- Status:
- Complete
- Approver:
- John Griffith
- Priority:
- Medium
- Drafter:
- Edward Hope-Morley
- Direction:
- Approved
- Assignee:
- RonenKat
- Definition:
- Approved
- Series goal:
- Accepted for icehouse
- Implementation:
-
Implemented
- Milestone target:
-
2014.1
- Started by
- Thierry Carrez
- Completed by
- John Griffith
Related branches
Related bugs
Sprints
Whiteboard
Use cases:
1. Enable recovering from a DB loss
2. "Tape/backup shipping" - deliver a "backup" to a secondary site
Implementation details:
New admin API: backup-import host=<cinder-
Creates a new backup DB entry and populates the entry using the details in the backup-string on the backup host.
<cinder-
<description-
Backup drivers: can implement import_verify to validate that the backup is intact on the backup storage and that restore operations are possible, return model_update with details of backup.
Default implementation: (if no driver implementation) create backup entry from the description string and return to caller.
New admin API: backup-export backupid=
Return a description string that can be used at a future time for backup-import
<backup-id> must exists
Backup drivers: can implement backup_export to return a driver-specific string. For example, the Swift backup driver may generate a URL that contains the container and backup prefix, where all the information can be found as metadata.
Default implementation: (if no driver implementation) generates a description string from the cinder-backup database fields.
Gerrit topic: https:/
Addressed by: https:/
Export and import backup service metadata
Python client code: https:/
Documentation: https:/
New sections in OpenStack Cloud Administrator Guide