-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
The "Provisioning from Template" form could be improved to add CPU configuration (shared/dedicated, number of CPUs and CPU Pool/Entitlement in the case of shared CPUs).
Any of these attributes can be passed to the template_provision
call, similarly to what is currently done for VLANs or LPAR name here:
Line 28 in e2a8fd2
connection.template_provision( |
:dedicated => "logicalPartitionConfig/processorConfiguration/hasDedicatedProcessors",
:sharing_mode => "logicalPartitionConfig/processorConfiguration/sharingMode",
:vprocs => "logicalPartitionConfig/processorConfiguration/sharedProcessorConfiguration/desiredVirtualProcessors",
:proc_units => "logicalPartitionConfig/processorConfiguration/sharedProcessorConfiguration/desiredProcessingUnits",
:pool_id => "logicalPartitionConfig/processorConfiguration/sharedProcessorConfiguration/sharedProcessorPoolId",
:procs => "logicalPartitionConfig/processorConfiguration/dedicatedProcessorConfiguration/desiredProcessors"
dedicated
is set totrue
orfalse
- if
true
(dedicated CPU):procs
can be set to the number of desired processors
- if
false
(shared CPU):vprocs
is the number of virtual processors (cannot be less thanproc_units
and there is also a minimum ofproc_units
required pervproc
)proc_units
is the cpu entitlement to claim from the selected shared CPU poolpool_id
is an integer between 0 and 63 supposed to identify the shared CPU pool (0 = DefaultPool)
- if
The pool_id attribute is not currently saved in the ManageIQ database, so from the provisionning form side, the template name or UUID we get would have to be converted to a pool_id and this will require an extra call to the SDK (templates
) to get the full list of templates.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed