Skip to content

Conversation

@tao12345666333
Copy link
Contributor

@tao12345666333 tao12345666333 commented May 11, 2021

full diff opencontainers/runc@v1.0.0-rc93...v1.0.0-rc94

release notes (https://github.com/opencontainers/runc/releases/tag/v1.0.0-rc94):

Potentially breaking changes:

  • cgroupv1: kernel memory limits are now always ignored, as kmemcg has
    been effectively deprecated by the kernel. Users should make use of
    regular memory cgroup controls.
  • libcontainer/cgroups: cgroup managers' Set now accept
    configs.Resources rather than configs.Cgroups
  • libcontainer/cgroups/systemd: reconnect and retry in case dbus
    connection is closed (after dbus restart)
  • libcontainer/cgroups/systemd: don't set limits in Apply

Bugfixes:

  • seccomp: fix 32-bit compilation errors (regression in rc93)
  • cgroupv2: blkio weight value conversion fix
  • runc init: fix a hang caused by deadlock in seccomp/ebpf loading code (regression in rc93)
  • runc start: fix "chdir to cwd: permission denied" for some setups (regression in rc93)
  • s390: fix broken terminal (regression in rc93)

Improvements:

  • runc start/exec: better diagnostics when container limits are too low
  • runc start/exec: better cleanup after failed runc init
  • cgroupv1: improve freezing chances
  • cgroupv2: multiple GetStats improvements
  • cgroupv2: fallback to setting io.weight if io.bfq.weight is not available
  • capabilities: WARN, not ERROR, for unknown / unavailable capabilities

@tao12345666333 tao12345666333 requested a review from tianon as a code owner May 11, 2021 02:04
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Please see #42308 to fix up the mount path and KernelMemory

@tao12345666333
Copy link
Contributor Author

@AkihiroSuda Should I submit it directly on this PR, or will you separate the commits in #42308

@AkihiroSuda
Copy link
Member

Should I submit it directly on this PR, or will you separate the commits in #42308

You may cherry-pick my commits from #42308 (if you would like).

@thaJeztah
Copy link
Member

Should I submit it directly on this PR, or will you separate the commits in #42308

You may cherry-pick my commits from #42308 (if you would like).

I opened #42370 for the mount path fix, as they should be ok for older runc versions as well (but the kernel-memory test changes should probably be cherry-picked into this PR)

@tao12345666333
Copy link
Contributor Author

You may cherry-pick my commits from #42308 (if you would like).

Sure! Thanks for your work. Let me update this.

Starting with runc v1.0.0-rc94, runc no longer supports KernelMemory.

opencontainers/runc@52390d6

Signed-off-by: Akihiro Suda <[email protected]>
@tao12345666333
Copy link
Contributor Author

I have cherry-picked @AkihiroSuda 's commits. (kernel-memory test changes)
May need to wait #42370 for the mount path fix.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

yes, this will go green / depends on #42370 to be merged

@thaJeztah thaJeztah added this to the 21.xx milestone May 12, 2021
Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

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

LGTM

@YanzhaoLi
Copy link

Hi, will this be patched into docker version 19.03.x?

BTW, since kuberentes 1.20.x depends on docker 19.03 whose latest containerd version is 1.3.9 which doesn't include runc-1.0.0-rc94.
So can I just patch the containerd 1.4.5 into docker 19.03? Will that breaking docker or can I have test to verify the compatibility?

@tao12345666333
Copy link
Contributor Author

ping @thaJeztah can we merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants