Bases: object
Base operator for IVM and HMC managed systems.
Attach disk name to a specific vhost.
Parameters: |
|
---|
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 |
Returns the managed system hostname.
Returns: | string – hostname |
---|
Finds and calculates the logical volume size in GB
Parameters: | diskname – name of the logical volume |
---|---|
Returns: | size of logical volume in GB |
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 LPAR.
Parameters: | instance_name – LPAR instance name |
---|
Rename LPAR given by instance_name to new_name
Parameters: |
|
---|---|
Returns: | new name of renamed LPAR trimmed to 31 characters if necessary |
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. |
---|
Set LPAR’s property virtual_eth_mac_base_value
Parameters: |
|
---|
Start a LPAR instance.
Parameters: | instance_name – LPAR instance name |
---|
Stop a running LPAR.
Parameters: |
|
---|
Resizing an LPAR
Parameters: | lpar_info – dictionary of LPAR information |
---|
Bases: nova.virt.powervm.operator.BaseOperator
Integrated Virtualization Manager (IVM) Operator.
Runs specific commands on an IVM managed system.
Generates set of valid MAC addresses for an IVM instance.
Bases: object
PowerVM main operator.
The PowerVMOperator is intended to wrap all operations from the driver and handle either IVM or HMC managed systems.
Capture the root disk for a snapshot
Parameters: |
|
---|
Deploy the logical volume and attach to new lpar.
Parameters: |
|
---|
Destroy (shutdown and delete) the specified instance.
Parameters: | instance_name – Instance name. |
---|
Retrieve resource info.
Returns: | dictionary containing resource info |
---|
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.
Migrates SVC or Logical Volume based disks
Parameters: |
|
---|---|
Returns: | disk_info dictionary object describing root volume information used for locating/mounting the volume |