Skip to content

@dmcgowan dmcgowan released this Jun 14, 2019

Welcome to the v1.2.7 release of containerd!

The seventh patch release for containerd 1.2 introduces OCI
image descriptor annotation support and contains fixes for
containerd shim logs, container stop/deletion, cri plugin
and selinux.

It also contains several important bug fixes for goroutine and
file descriptor leakage in containerd and containerd shims.

Notable Updates

  • Support annotations in the OCI image descriptor, and filtering image by annotations. #3254
  • Support context timeout in ttrpc which can help avoid containerd hangs when a shim is unresponsive. ttrpc#31
  • Fix a bug that containerd shim leaks goroutine and file descriptor after containerd restarts. ttrpc#37
  • Fix a bug that a container can't be deleted if first deletion attempt is canceled or timeout. #3264
  • Fix a bug that containerd leaks file descriptor when using v2 containerd shims, e.g. containerd-shim-runc-v1. #3273
  • Fix a bug that a container with lingering processes can't terminate when it shares pid namespace with another container. moby/moby#38978
  • Fix a bug that containerd can't read shim logs after restart. #3282
  • Fix a bug that shim_debug option is not honored for existing containerd shims after containerd restarts. #3283
  • cri: Fix a bug that a container can't be stopped when the exit event is not successfully published by the containerd shim. #3125, #3177
  • cri: Fix a bug that exec process is not cleaned up if grpc context is canceled or timeout. cri#1159
  • Fix a selinux keyring labeling issue by updating runc to v1.0.0-rc.8 and selinux library to v1.2.2. opencontainers/selinux#50
  • Update ttrpc to f82148331ad2181edea8f3f649a1f7add6c3f9c2. #3316
  • Update cri to 49ca74043390bc2eeea7a45a46005fbec58a3f88. #3330

Please try out the release binaries and report any issues at
https://github.com/containerd/containerd/issues.

Contributors

  • Phil Estes
  • Lantao Liu
  • Michael Crosby
  • Stefan Berger
  • Derek McGowan
  • Brian Goff
  • Georgi Sabev
  • Sebastiaan van Stijn
  • Li Yuxuan
  • Wei Fu
  • Jared Cordasco
  • Julia Nedialkova
  • Justin Terry
  • Lifubang
  • Mike Brown
  • Stephen J Day
  • Tõnis Tiigi
  • zhoulin xie

Changes

  • 85f6aa5 Merge pull request #3331 from Random-Liu/1.2.7-release-note
  • bad4fdd Prepare release note for v1.2.7.
  • 1bda2ed Merge pull request #3338 from dmcgowan/backport-user-agent-fix
  • 1af8e6e Add user agent header to all requests
  • 71f5018 Merge pull request #3332 from crosbymichael/cherry
  • ea70cd6 Merge pull request #3330 from Random-Liu/update-cri-release-1.2
  • e4e631a differ: fix deadlock on commit error
  • dbd25c8 Update cri to 49ca74043390bc2eeea7a45a46005fbec58a3f88
  • 7c69912 Merge pull request #3316 from estesp/update-ttrpc
  • d2d36e5 Bump ttrpc
  • 367c672 Merge pull request #3283 from fuweid/cp-v1_respect_shim_debug
  • 845990f Merge pull request #3282 from fuweid/cp-redirect-shim-v1-output
  • 57f79a1 v1: Respect the shim_debug flag when load tasks
  • 5508046 containerd-shim: redirect output into stdout fifo
  • 5a62161 Merge pull request #3273 from fuweid/cp-fifo-fd-leak
  • d0319ec Merge pull request #3274 from thaJeztah/1.2_backport_pidnamespace
  • 1014235 fix shouldKillAllOnExit check
  • 5cd83f3 Fix fd leak of shim log
  • 0717fe6 Use named pipes for shim logs
  • ea75cfc Merge pull request #3264 from Random-Liu/cherry-pick-#3244-#3263-release-1.2
  • 3d276b4 Fix error handling for task deletion.
  • 247de3f Return NotFound error for kill and delete in deleted state.
  • 3923c02 Merge pull request #3254 from jcordasc/cherrypick-annotation-fix-1.2
  • 9196892 Merge pull request #3250 from thaJeztah/1.2_backport_bump_ttrpc
  • 9ad688a Extend adaptImage function with annotations case
  • 5538d71 Extend metadata images test with fieldpaths for Annotations
  • 309e1db Write the Annotations map into the bolt db
  • a456958 Prepare boltutil for reading and writing another map
  • 4bb9151 Add test for ocispec.Descriptor Annotations
  • 2364b03 Copy annotations around where necessary
  • 9844ce4 Add missing annotations map to Descriptor for gRPC transfer
  • 502ed64 Merge pull request #3257 from jcordasc/jcordasc/vndr-go-mod-only
  • f7b8ac5 Merge pull request #3247 from thaJeztah/1.2_bump_runc_1.0.0rc8
  • d37c5e0 Add go.mod file for gopkg.in/yaml.v2
  • 79f6941 bump containerd/ttrpc 699c4e40d1e7416e08bf7019c7ce2e9beced4636
  • 5f1c66f Update ttrpc to support context timeout.
  • 05c3be6 bump opencontainers/selinux v1.2.2
  • abd5f7c bump runc v1.0.0-rc8
  • af407fb Merge pull request #3235 from estesp/update-to-ms-image
  • 6bfa149 Convert Windows CI to use Microsoft MCR image urls
  • 6cdfa49 Merge pull request #3219 from jcordasc/cherrypick-#3213-release-1.2
  • b9da989 Merge pull request #3213 from jcordasc/small-fixes
  • 56a6552 Merge pull request #3229 from estesp/fix-appveyor
  • 0b2d89c Fix error on pull hang in CI
  • 0b58491 Move to sha-specified test image for nanoserver

Changes from containerd/cri

  • 49ca740 Merge pull request #1159 from Random-Liu/cherrypick-#1156-release-1.2
  • 7a5e210 Make sure exec process is killed when context is canceled.
  • cdbb238 Merge pull request #1136 from Random-Liu/cherrypick-#1133-release-1.2
  • 27b70db Use wait instead of TaskExit.
  • cb0eb47 Merge pull request #1123 from Random-Liu/update-containerd-release-1.2
  • 34c9699 Update containerd to v1.2.6.
  • 1ee63ba Merge pull request #1120 from Random-Liu/cherrypick-#1118-release-1.2
  • 35f1216 Support comment in vendor.

Changes from containerd/ttrpc

  • f821483 Merge pull request #38 from masters-of-cats/pr-client-eof-improvement
  • 911c9cd Improve connection error handling
  • 69eadd1 Merge pull request #37 from masters-of-cats/pr-handle-client-eof
  • 96dcf73 Handle EOF to prevent file descriptor leak
  • 699c4e4 Merge pull request #35 from Random-Liu/make-on-close-an-options
  • ba15956 Make onclose an option.
  • 6914432 Merge pull request #33 from JoeWrightss/patch-1
  • ce5c1c4 Fix returns error message
  • f02858b Merge pull request #31 from cpuguy83/support_context_deadlines
  • a364f44 Add support for request timeout propgation.
  • f51df44 Merge pull request #30 from estesp/add-common-project-content
  • 6c96b39 Add common check scripts and project references

Dependency Changes

Previous release can be found at v1.2.6

  • github.com/containerd/cri eb926cd79d3bac188dcc4ed7694fc9298f8831be -> 49ca74043390bc2eeea7a45a46005fbec58a3f88
  • github.com/containerd/ttrpc 2a805f71863501300ae1976d29f0454ae003e85a -> f82148331ad2181edea8f3f649a1f7add6c3f9c2
  • github.com/opencontainers/runc 029124da7af7360afa781a0234d1b083550f797c -> v1.0.0-rc8
  • github.com/opencontainers/selinux v1.2.1 -> v1.2.2
Assets 3
You can’t perform that action at this time.