mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
e2e: topomgr: remove single-numa node hack
On single-NUMA node systems the numa_node of sriov devices was sometimes reported as "-1" instead of, say, 0. This makes some tests that should succeed[0] fail unexpectedly. The reporting works as expected on real multi-NUMA node systems. This small workaround was added to handle this corner case, but it makes overall the code less readable and a bit too lenient, hence we remove it. +++ [0] on a single NUMA node system some resources are obviously always aligned if the pod can be admitted. It boils down to the node capacity at pod admittal time. Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
parent
bb6beb99e5
commit
0c2827cb50
@ -44,8 +44,7 @@ func (R *numaPodResources) CheckAlignment() bool {
|
||||
}
|
||||
}
|
||||
for _, devNode := range R.PCIDevsToNUMANode {
|
||||
// TODO: explain -1
|
||||
if devNode != -1 && nodeNum != devNode {
|
||||
if nodeNum != devNode {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user