freezer.openstack.restore module

freezer.openstack.restore module

Freezer restore modes related functions

class freezer.openstack.restore.RestoreOs(client_manager, container, storage)

Bases: object

get_storage_info(path)
restore_cinder(volume_id=None, backup_id=None, restore_from_timestamp=None)

Restoring cinder backup using :param volume_id: :param backup_id: :param restore_from_timestamp: :return:

restore_cinder_by_glance(volume_id, restore_from_timestamp)
  1. Define swift directory
  2. Download and upload to glance
  3. Create volume from glance
  4. Delete
Parameters:
  • restore_from_timestamp (int) –
  • volume_id
    • id of attached cinder volume
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.