Feat/cpu topology profile split#170
Merged
hemanthnakkina merged 3 commits intocanonical:mainfrom Apr 2, 2026
Merged
Conversation
There was a problem hiding this comment.
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-profileconfig 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.
dd0980b to
3995f6a
Compare
There was a problem hiding this comment.
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.
hemanthnakkina
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.