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

e2e: test topology-aware NUMA node change by AvailableResources #93

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ verify "cpus['pod1c0'] == {'cpu08', 'cpu09', 'cpu10'}" \
"cpus['pod1c1'] == {'cpu08', 'cpu09', 'cpu10'}" \
"mems['pod1c0'] == {'node2'}" \
"mems['pod1c1'] == {'node2'}"
vm-command "kubectl delete pods pod1 --now"

# Relaunch NRI-plugins with a set of CPUs from a different socket compared
# to where pod0 is currently running. Restoring pod0 to current CPUs will fail
# so the workload should be moved to new CPUs.
terminate nri-resource-policy
AVAILABLE_CPU="cpuset:0-1,11-14"
nri_resource_policy_cfg=$(instantiate nri-resource-policy-available-resources.cfg)
launch nri-resource-policy
report allowed
verify "cpus['pod0c0'] == {'cpu12', 'cpu13', 'cpu14'}" \
"mems['pod0c0'] == {'node3'}"

vm-command "kubectl delete pods --all --now"
reset counters

Expand Down