Bases: object
Constructs image for selected backend
| Instance : | Instance name. |
|---|---|
| Name : | Image name. |
| Image_type : | Image type. |
Optional, is CONF.libvirt_images_type by default.
Returns snapshot for given image
| Path : | path to image |
|---|---|
| Snapshot_name : | snapshot name |
| Image_type : | type of image |
Bases: object
Creates image from template.
Ensures that template and image not already exists. Ensures that base directory exists. Synchronizes on template fetching.
| Fetch_func : | Function that creates the base image Should accept target argument. |
|---|---|
| Filename : | Name of the file in the image directory |
| Size : | Size of created image in bytes (optional) |
Create image from template.
Contains specific behavior for each image type.
| Prepare_template : | |
|---|---|
| function, that creates template. | |
Should accept target argument. :base: Template name :size: Size of created image in bytes
Get LibvirtConfigGuestDisk filled for this image.
| Disk_dev : | Disk bus device name |
|---|---|
| Disk_bus : | Disk bus type |
| Device_type : | Device type for this image. |
| Cache_mode : | Caching mode for this image |
| Extra_specs : | Instance type extra specs dict. |
Bases: nova.virt.libvirt.imagebackend.Image