Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CPU configuration to VM provisioning from Template UI form #129

Open
vfebvre opened this issue Dec 14, 2022 · 4 comments
Open

Add CPU configuration to VM provisioning from Template UI form #129

vfebvre opened this issue Dec 14, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vfebvre
Copy link
Contributor

vfebvre commented Dec 14, 2022

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:

      :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"

(https://github.com/IBM/ibm_power_hmc_sdk_ruby/blob/0fac4b7a9e1bff8940740e129715412e3b9a8fdb/lib/ibm_power_hmc/schema/templates.rb#L20)

  • dedicated is set to true or false
    • 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 than proc_units and there is also a minimum of proc_units required per vproc)
      • proc_units is the cpu entitlement to claim from the selected shared CPU pool
      • pool_id is an integer between 0 and 63 supposed to identify the shared CPU pool (0 = DefaultPool)

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.

@miq-bot miq-bot added the stale label Apr 10, 2023
@miq-bot
Copy link
Member

miq-bot commented Apr 10, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

1 similar comment
@miq-bot
Copy link
Member

miq-bot commented Apr 10, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@agrare agrare added enhancement New feature or request help wanted Extra attention is needed and removed stale labels Apr 12, 2023
@agrare
Copy link
Member

agrare commented Apr 12, 2023

cc @jaywcarman is this something you want on the roadmap?

@jaywcarman
Copy link
Member

It's still in our backlog but we don't have it on our road-map for upcoming releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants