Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0ca25b8d
Unverified
Commit
0ca25b8d
authored
Sep 26, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68816 from FengyunPan2/cgroup-info
Add helpful log for checking cgrop path
parents
245f360a
34a8b1fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
cgroup_manager_linux.go
pkg/kubelet/cm/cgroup_manager_linux.go
+7
-1
No files found.
pkg/kubelet/cm/cgroup_manager_linux.go
View file @
0ca25b8d
...
@@ -255,6 +255,7 @@ func (m *cgroupManagerImpl) Exists(name CgroupName) bool {
...
@@ -255,6 +255,7 @@ func (m *cgroupManagerImpl) Exists(name CgroupName) bool {
// once resolved, we can remove this code.
// once resolved, we can remove this code.
whitelistControllers
:=
sets
.
NewString
(
"cpu"
,
"cpuacct"
,
"cpuset"
,
"memory"
,
"systemd"
)
whitelistControllers
:=
sets
.
NewString
(
"cpu"
,
"cpuacct"
,
"cpuset"
,
"memory"
,
"systemd"
)
var
missingPaths
[]
string
// If even one cgroup path doesn't exist, then the cgroup doesn't exist.
// If even one cgroup path doesn't exist, then the cgroup doesn't exist.
for
controller
,
path
:=
range
cgroupPaths
{
for
controller
,
path
:=
range
cgroupPaths
{
// ignore mounts we don't care about
// ignore mounts we don't care about
...
@@ -262,8 +263,13 @@ func (m *cgroupManagerImpl) Exists(name CgroupName) bool {
...
@@ -262,8 +263,13 @@ func (m *cgroupManagerImpl) Exists(name CgroupName) bool {
continue
continue
}
}
if
!
libcontainercgroups
.
PathExists
(
path
)
{
if
!
libcontainercgroups
.
PathExists
(
path
)
{
return
false
missingPaths
=
append
(
missingPaths
,
path
)
}
}
}
if
len
(
missingPaths
)
>
0
{
glog
.
V
(
4
)
.
Infof
(
"The Cgroup %v has some missing paths: %v"
,
name
,
missingPaths
)
return
false
}
}
return
true
return
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment