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.
- Parameters:
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 – an error for malformed OVA and OVF files