Bases: object
Base operator for IVM and HMC managed systems.
Attach disk name to a specific vhost.
Parameters: |
|
---|
Copy file to device.
Parameters: |
|
---|
Copy file to VIOS, decompress it, and return its new size and name.
Parameters: | source_path – source file path |
---|
:param remote_path remote file path
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 |
Receives a LPAR data object and creates a LPAR instance.
Parameters: | lpar – LPAR object |
---|
Get CPU info.
Returns: | tuple - cpu info (total_procs, avail_procs) |
---|
Get the disk usage information.
Returns: | tuple - disk info (disk_total, disk_used, disk_avail) |
---|
Returns the disk name attached to a vhost.
Parameters: | vhost – a vhost name |
---|---|
Returns: | string – disk name |
Return a LPAR object by its instance name.
Parameters: |
|
---|---|
Returns: | LPAR object |
Get memory info.
Returns: | tuple - memory info (total_mem, avail_mem) |
---|
Return the vhost name by the instance id.
Parameters: | instance_id – LPAR instance id |
---|---|
Returns: | string – vhost name or None in case none is found |
Virtual ethernet adapter id.
Searches for the shared ethernet adapter and returns its id.
Returns: | id of the virtual ethernet adapter. |
---|
List all existent LPAR instances names.
Returns: | list – list with instances names. |
---|
Removes a disk.
Parameters: | disk – a disk name |
---|
Removes the lv and the connection between its associated vscsi.
Parameters: | lv_name – a logical volume name |
---|
Removes a LPAR.
Parameters: | instance_name – LPAR instance name |
---|
Run cfgdev command for a specific device.
Parameters: | device_name – device name the cfgdev command will run. |
---|
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. |
---|
Start a LPAR instance.
Parameters: | instance_name – LPAR instance name |
---|
Stop a running LPAR.
Parameters: | instance_name – LPAR instance name |
---|
Bases: nova.virt.powervm.operator.BaseOperator
Integrated Virtualization Manager (IVM) Operator.
Runs specific commands on an IVM managed system.
Bases: object
PowerVM main operator.
The PowerVMOperator is intented to wrapper all operations from the driver and handle either IVM or HMC managed systems.
Destroy (shutdown and delete) the specified instance.
Parameters: | instance_name – Instance name. |
---|
Return currently known host stats
Get the current status of an LPAR instance.
Returns a dict containing:
State : | the running state, one of the power_state codes |
---|---|
Max_mem : | (int) the maximum memory in KBytes allowed |
Mem : | (int) the memory in KBytes used by the domain |
Num_cpu : | (int) the number of virtual CPUs for the domain |
Cpu_time : | (int) the CPU time used in nanoseconds |
Raises : | PowerVMLPARInstanceNotFound |
Return the names of all the instances known to the virtualization layer, as a list.