Skip to content

Feat/cpu topology profile split#170

Merged
hemanthnakkina merged 3 commits intocanonical:mainfrom
ahmad-can:feat/cpu-topology-profile-split
Apr 2, 2026
Merged

Feat/cpu topology profile split#170
hemanthnakkina merged 3 commits intocanonical:mainfrom
ahmad-can:feat/cpu-topology-profile-split

Conversation

@ahmad-can
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for a CPU topology “pinning profile” that requests CPU allocations from the EPA orchestrator by percentage, then splits the resulting allocation into Nova dedicated/shared CPU sets for nova.conf rendering.

Changes:

  • Introduce compute.cpu-pinning-profile config to drive percent-based CPU allocation and dedicated/shared splitting.
  • Add new socket protocol schema/action (allocate_cores_percent) and client helper to request allocations by percentage.
  • Update unit test expectations and document the new config option in README.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
openstack_hypervisor/hooks.py Adds profile-driven CPU pinning logic (percent request + split) and new CPU range helpers.
openstack_hypervisor/cli/schemas.py Extends socket request/response models with allocate_cores_percent action.
openstack_hypervisor/cli/common.py Updates socket JSON serialization and adds get_cpu_pinning_percent_from_socket() helper.
tests/unit/test_hooks.py Adjusts CPU pinning injection test setup/expectations for the new config option.
README.md Documents compute.cpu-pinning-profile behavior and expected JSON payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openstack_hypervisor/hooks.py
Comment thread openstack_hypervisor/hooks.py
Comment thread openstack_hypervisor/hooks.py
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openstack_hypervisor/hooks.py
Comment thread tests/unit/test_hooks.py
@ahmad-can ahmad-can marked this pull request as ready for review March 27, 2026 06:58
@hemanthnakkina hemanthnakkina merged commit 08f8a3f into canonical:main Apr 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants