glance.async.flows package

Submodules

glance.async.flows.base_import module

glance.async.flows.base_import.get_flow(**kwargs)[source]

Return task flow

Parameters:
  • task_id – Task ID
  • task_type – Type of the task
  • task_repo – Task repo
  • image_repo – Image repository used
  • image_factory – Glance Image Factory
  • uri – uri for the image file

glance.async.flows.convert module

glance.async.flows.convert.get_flow(**kwargs)[source]

Return task flow for converting images to different formats.

Parameters:
  • task_id – Task ID.
  • task_type – Type of the task.
  • image_repo – Image repository used.

glance.async.flows.introspect module

glance.async.flows.introspect.get_flow(**kwargs)[source]

Return task flow for introspecting images to obtain metadata about the image.

Parameters:
  • task_id – Task ID
  • task_type – Type of the task.
  • image_repo – Image repository used.

glance.async.flows.ovf_process module

class glance.async.flows.ovf_process.OVAImageExtractor[source]

Bases: object

Extracts and parses the uploaded OVA package

A class that extracts the disk image and OVF file from an OVA tar archive. Parses the OVF file for metadata of interest.

extract(ova)[source]

Extracts disk image and OVF file from OVA package

Extracts a single disk image and OVF from OVA tar archive and calls OVF parser method. :param ova: a file object containing the OVA file :returns: a tuple of extracted disk file object and dictionary of

properties parsed from the OVF file
Raises:RuntimeError for malformed OVA and OVF files
glance.async.flows.ovf_process.get_flow(**kwargs)[source]

Returns task flow for OVF Process.

Parameters:
  • task_id – Task ID
  • task_type – Type of the task.
  • image_repo – Image repository used.

Module contents