Enable per pod cgroups, fix defaulting of cgroup-root when not specified

This commit is contained in:
Derek Carr
2017-02-20 12:05:06 -05:00
parent 7fe105ebc7
commit 43ae6f49ad
7 changed files with 12 additions and 21 deletions

View File

@@ -194,6 +194,9 @@ func (m *podContainerManagerImpl) GetAllPodsFromCgroups() (map[types.UID]CgroupN
qc := path.Join(val, qcConversion)
dirInfo, err := ioutil.ReadDir(qc)
if err != nil {
if os.IsNotExist(err) {
continue
}
return nil, fmt.Errorf("failed to read the cgroup directory %v : %v", qc, err)
}
for i := range dirInfo {