The nova.virt.libvirt.storage.dmcrypt Module

create_volume(target, device, cipher, key_size, key)

Sets up a dmcrypt mapping

Parameters:
  • target – device mapper logical device name
  • device – underlying block device
  • cipher – encryption cipher string digestible by cryptsetup
  • key_size – encryption key size
  • key – encryption key as an array of unsigned bytes
delete_volume(target)

Deletes a dmcrypt mapping

Parameters:target – name of the mapped logical device
is_encrypted(path)

Returns true if the path corresponds to an encrypted disk.

list_volumes()

Function enumerates encrypted volumes.

volume_name(base)

Returns the suffixed dmcrypt volume name.

This is to avoid collisions with similarly named device mapper names for LVM volumes

Previous topic

The nova.virt.libvirt.instancejobtracker Module

Next topic

The nova.virt.libvirt.storage.lvm Module

Project Source

This Page