Bases: object
PowerVM disk adapter interface Provides a contract to implement multiple ways to generate and attach volumes to virtual machines using local and/or external storage
Attaches volume to host using info passed in *args and **kargs
Capture the contents of a volume and upload to glance
Parameters: |
|
---|
Creates a volume with a minimum size
Parameters: | size – size of the volume in bytes |
---|---|
Returns: | string – the name of the disk device. |
Creates a Volume and copies the specified image to it
Parameters: |
|
---|---|
Returns: | dictionary with the name of the created disk device in ‘device_name’ key |
Removes the disk and its associated vSCSI connection
Parameters: | volume_info – dictionary with volume info including name of |
---|
disk device in /dev/
Detaches volume from host using info passed in *args and **kargs
Copy a logical volume to file, compress, and transfer
Parameters: |
|
---|---|
Returns: | file path on destination of image file that was moved |
Bases: nova.virt.powervm.blockdev.PowerVMDiskAdapter
Default block device providor for PowerVM
This disk adapter uses logical volumes on the hosting VIOS to provide backing block devices for instances/LPARs
Capture the contents of a volume and upload to glance
Parameters: |
|
---|
Creates a logical volume with a minimum size
Parameters: | size – size of the logical volume in bytes |
---|---|
Returns: | string – the name of the new logical volume. |
Raises : | PowerVMNoSpaceLeftOnVolumeGroup |
Creates a Logical Volume and copies the specified image to it
Parameters: |
|
---|---|
Returns: | dictionary with the name of the created Logical Volume device in ‘device_name’ key |
Removes the Logical Volume and its associated vSCSI connection
Parameters: | volume_info – Dictionary with volume info including name of |
---|
Logical Volume device in /dev/ via device_name key
Copy a logical volume to file, compress, and transfer
Parameters: |
|
---|---|
Returns: | file path on destination of image file that was moved |
Run a remote command using an active ssh connection.
Parameters: | command – String with the command to run. |
---|
Run a remote command as root using an active ssh connection.
Parameters: | command – List of commands. |
---|