From b1f6974f7b7924327387b4bbc207531d7309e695 Mon Sep 17 00:00:00 2001 From: zouyee Date: Thu, 26 Sep 2019 21:48:50 +0800 Subject: [PATCH] using online instead to fix kubelet service failed with wrong number of possible NUMA nodes Signed-off-by: Zou Nengren --- pkg/kubelet/cm/cpumanager/topology/topology.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/cm/cpumanager/topology/topology.go b/pkg/kubelet/cm/cpumanager/topology/topology.go index c5fd99019da..54a5394503f 100644 --- a/pkg/kubelet/cm/cpumanager/topology/topology.go +++ b/pkg/kubelet/cm/cpumanager/topology/topology.go @@ -293,7 +293,7 @@ func GetNUMANodeInfo() (NUMANodeInfo, error) { // nil NUMANodeInfo, indicating that no NUMA information is available // on this machine. This should implicitly be interpreted as having a // single NUMA node with id 0 for all CPUs. - nodelist, err := ioutil.ReadFile("/sys/devices/system/node/possible") + nodelist, err := ioutil.ReadFile("/sys/devices/system/node/online") if err != nil { return nil, nil }