freezer.engine.glance.glance module

class freezer.engine.glance.glance.GlanceEngine(storage, **kwargs)

Bases: freezer.engine.engine.BackupEngine

backup_data(backup_resource, manifest_path)
Parameters
  • backup_path

  • manifest_path

Returns

backup_glance_tenant(project_id, hostname_backup_name, no_incremental, max_level, always_level, restart_always_level)
get_glance_tenant(project_id)
get_storage_info(project_id)
get_tenant_meta(path)
static image_active(glance_client, image_id)

Check if the image is in the active state or not

metadata(backup_resource)

Construct metadata

property name
Return type

str

Returns

Engine name

restore_glance_tenant(project_id, hostname_backup_name, overwrite, recent_to_date)
restore_level(restore_resource, read_pipe, backup, except_queue)
set_tenant_meta(path, metadata)

push data to the manifest file

stream_image(pipe)

Reading bytes from a pipe and converting it to a stream-like