Helper methods for operations related to the management of volumes, and storage repositories
Bases: exceptions.Exception
To raise errors related to SR, VDI, PBD, and VBD commands
Create an iSCSI storage repository that will be used to mount the volume for the specified instance
Return the storage repository given a uuid.
Find the SR reference from the VBD reference
Forgets the storage repository without destroying the VDIs within
Introduce VDI in the host
Translate a mountpoint like /dev/sdc into a numeric
Parse device_path and mountpoint as they can be used by XenAPI. In particular, the mountpoint (e.g. /dev/sdc) must be translated into a numeric literal. FIXME(armando): As for device_path, currently cannot be used as it is, because it does not contain target information. As for interim solution, target details are passed either via Flags or obtained by iscsiadm. Long-term solution is to add a few more fields to the db in the iscsi_target table with the necessary info and modify the iscsi driver to set them.