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
36015903
Commit
36015903
authored
Mar 07, 2018
by
Lantao Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cadvisor to v0.29.1
parent
f196b7c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
89 deletions
+108
-89
Godeps.json
Godeps/Godeps.json
+86
-86
handler.go
...ithub.com/google/cadvisor/container/containerd/handler.go
+22
-3
No files found.
Godeps/Godeps.json
View file @
36015903
...
...
@@ -1475,218 +1475,218 @@
},
{
"ImportPath"
:
"github.com/google/cadvisor/accelerators"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/api"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/cache/memory"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/client/v2"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/collector"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/common"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/containerd"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/crio"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/docker"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/libcontainer"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/raw"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/rkt"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container/systemd"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/devicemapper"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/events"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/fs"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/healthz"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/http"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/http/mux"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/info/v1"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/info/v2"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/machine"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/manager"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/manager/watcher"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/manager/watcher/raw"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/manager/watcher/rkt"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/metrics"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/pages"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/pages/static"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/storage"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/summary"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/cloudinfo"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/cpuload"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/cpuload/netlink"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/docker"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/oomparser"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/sysfs"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils/sysinfo"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/validate"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/version"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/cadvisor/zfs"
,
"Comment"
:
"v0.29.
0
"
,
"Rev"
:
"
aaaa65dba02880718d0237cd4e80ab8eb278bb1
9"
"Comment"
:
"v0.29.
1
"
,
"Rev"
:
"
2e02d28350c5fbbad9cfb7e5a1733468b75ab3f
9"
},
{
"ImportPath"
:
"github.com/google/certificate-transparency/go"
,
...
...
vendor/github.com/google/cadvisor/container/containerd/handler.go
View file @
36015903
...
...
@@ -22,6 +22,7 @@ import (
"strings"
"time"
"github.com/containerd/containerd/errdefs"
"github.com/opencontainers/runc/libcontainer/cgroups"
cgroupfs
"github.com/opencontainers/runc/libcontainer/cgroups/fs"
libcontainerconfigs
"github.com/opencontainers/runc/libcontainer/configs"
...
...
@@ -103,10 +104,28 @@ func newContainerdContainerHandler(
return
nil
,
err
}
taskPid
,
err
:=
client
.
TaskPid
(
ctx
,
id
)
if
err
!=
nil
{
return
nil
,
err
// Cgroup is created during task creation. When cadvisor sees the cgroup,
// task may not be fully created yet. Use a retry+backoff to tolerant the
// race condition.
// TODO(random-liu): Use cri-containerd client to talk with cri-containerd
// instead. cri-containerd has some internal synchronization to make sure
// `ContainerStatus` only returns result after `StartContainer` finishes.
var
taskPid
uint32
backoff
:=
100
*
time
.
Millisecond
retry
:=
5
for
{
taskPid
,
err
=
client
.
TaskPid
(
ctx
,
id
)
if
err
==
nil
{
break
}
retry
--
if
!
errdefs
.
IsNotFound
(
err
)
||
retry
==
0
{
return
nil
,
err
}
time
.
Sleep
(
backoff
)
backoff
*=
2
}
rootfs
:=
"/"
if
!
inHostNamespace
{
rootfs
=
"/rootfs"
...
...
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