Skip to content

[release/1.5] upgrade containerd/cgroups to v1.0.3#6961

Merged
kzys merged 1 commit intocontainerd:release/1.5from
kzys:backport-1.5-6498
May 20, 2022
Merged

[release/1.5] upgrade containerd/cgroups to v1.0.3#6961
kzys merged 1 commit intocontainerd:release/1.5from
kzys:backport-1.5-6498

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented May 19, 2022

This commit brings the resource leak fix below.
containerd/cgroups#212

The upgrade PR in main was #6498. I didn't cherry-pick the commit due
to conflicts.

Signed-off-by: Kazuyoshi Kato [email protected]

@k8s-ci-robot
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kzys kzys force-pushed the backport-1.5-6498 branch 2 times, most recently from d52cb44 to 34374b2 Compare May 19, 2022 16:36
@kzys kzys marked this pull request as ready for review May 19, 2022 16:39
Comment thread runtime/opts/opts_linux.go Outdated
cg, err := cgroupsv2.LoadManager("/sys/fs/cgroup", i.Name)
if err != nil {
if err == cgroupsv2.ErrCgroupDeleted {
if err == cgroups.ErrCgroupDeleted {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Member Author

@kzys kzys May 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2: remove errors that are never returned
Unlike v1, the v2 package never returns these errors. 

Do we need this if check at all then?

Copy link
Copy Markdown
Member Author

@kzys kzys May 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was the discussion on #5739

(sorry for short comment; typing from my phone)

@kzys kzys force-pushed the backport-1.5-6498 branch from 34374b2 to c06758a Compare May 19, 2022 17:30
This commit brings the resource leak fix below.
containerd/cgroups#212

- The original upgrade PR was containerd#6498. I didn't cherry-pick the commit due
  to conflicts.
- ErrCgroupDeleted check is removed since LoadManager won't return
  the error (see containerd#5739) and the variable was removed in 1.0.3.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys force-pushed the backport-1.5-6498 branch from c06758a to f890c79 Compare May 19, 2022 20:16
Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kzys kzys merged commit 51f20c0 into containerd:release/1.5 May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants