Commit Graph

11956 Commits

Author SHA1 Message Date
Kenfe-Mickael Laventure
6bf779c589
Use defaults pkg for all platforms
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-11-28 18:04:21 -08:00
yanxuean
9a03957090 upgrade protobuf and grpc
fix #435

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-11-29 09:44:17 +08:00
Derek McGowan
bc9cb25012
Update tar to use PAXRecords instead of Xattrs
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-11-28 17:03:14 -08:00
Derek McGowan
16d00870ef
Add test for prefix header issue
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-11-28 16:38:26 -08:00
Darren Stahl
444e4220c2
Revendor hcsshim and go-tar
Signed-off-by: Darren Stahl <darst@microsoft.com>
2017-11-28 16:19:56 -08:00
Stephen Day
90a6b79bfc
Merge pull request #1810 from dnephin/add-staticcheck-linter
Fix usage of sync.Pool
2017-11-28 15:46:41 -08:00
Lantao Liu
d4ee7aacc5
Merge pull request #441 from Random-Liu/update-containerd
Update containerd and add synchronous image deletion.
2017-11-28 15:26:30 -08:00
Kenfe-Mickaël Laventure
a3955e1d21
Merge pull request #1822 from crosbymichael/subreaper
Change default subreaper setting
2017-11-28 14:51:11 -08:00
Lantao Liu
5f0fba4204 Update containerd and add synchronous image deletion.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-11-28 22:44:25 +00:00
Mike Brown
4934098e27
Merge pull request #440 from dnephin/use-oci-package
Use containerd.oci package
2017-11-28 16:41:26 -06:00
Michael Crosby
6e9f24b711 Change default subreaper setting
This subreaper should always be turned on for containerd unless
explicitly needed for it to be off.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-11-28 17:04:21 -05:00
Lantao Liu
6b8ffc53c3
Merge pull request #437 from cpuguy83/unpack_on_error_only
Remove explicit unpack on all container creates
2017-11-28 13:47:42 -08:00
Michael Crosby
967caeeacc
Merge pull request #1821 from dnephin/remove-use-of-deprecated-grpc-funcs
Replace calls to deprecated grpc functions
2017-11-28 15:34:49 -05:00
Daniel Nephin
85d3bf0660 Use SpecOpts from new oci package
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-28 15:30:11 -05:00
Daniel Nephin
dab3ba2aff Replace calls to deprecated grpc functions
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-28 15:12:05 -05:00
Kenfe-Mickaël Laventure
118c0a279e
Merge pull request #1820 from crosbymichael/shim-lockup
Resolve issues with signal handling and exec exit events
2017-11-28 11:57:21 -08:00
Michael Crosby
74b3cb3391 Fix exit event handling in shim
Could issues where when exec processes fail the wait block is not
released.

Second, you could not dump stacks if the reaper loop locks up.

Third, the publisher was not waiting on the correct pid.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-11-28 14:32:06 -05:00
Brian Goff
f6fe36d17a Remove explicit unpack on all container creates
This only performs an unpack if there is an error when creating the
container snapshot (and only if it's a "not found' error) since it should
already be unpacked.

Signed-off-by: Brian Goff <brian.goff@docker.com>
2017-11-28 14:28:20 -05:00
Michael Crosby
723f37d846 Add exec support to stress test tool
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-11-28 14:18:58 -05:00
Daniel Nephin
bf5f17ac1e Update containerd vendor
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-28 14:09:58 -05:00
Daniel Nephin
a05e5fd77a restore deferred cleanup in rootfs.init
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-28 13:14:39 -05:00
Daniel Nephin
ee04cfa3f9 Add staticcheck linter
Fix issues with sync.Pool being passed an array and not a pointer.
See https://github.com/dominikh/go-tools/blob/master/cmd/staticcheck/docs/checks/SA6002

Add missing tests for content.Copy

Fix T.Fatal being called in a goroutine

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-28 13:05:30 -05:00
Phil Estes
2556c594ec
Merge pull request #1767 from stevvooe/ttrpc-shim
linux/shim: reduce memory overhead by using ttrpc
2017-11-28 12:43:41 -05:00
Michael Crosby
9e04cff8e9
Merge pull request #1814 from stevvooe/panic-client-fix-oci-spec
oci: allocate process if not already set
2017-11-28 10:29:57 -05:00
Michael Crosby
ca39f76f82
Merge pull request #1798 from stevvooe/shim-gomaxprocs
cmd/containerd-shim: set GOMAXPROCS to 2
2017-11-28 09:55:31 -05:00
Stephen J Day
d54961ccaa
vendor: add ttrpc as vendored dependency
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-27 18:22:37 -08:00
Stephen Day
372cdfac3b
Merge pull request #1638 from dmcgowan/gc-policy
gc: add policy plugin
2017-11-27 18:20:10 -08:00
Derek McGowan
f011bec35e
Merge pull request #1800 from yanxuean/image-store-redandunt
remove redandunt check for imagestore create
2017-11-27 17:46:47 -08:00
Stephen J Day
0d957b1da5
oci: allocate process if not already set
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-27 17:36:43 -08:00
yanxuean
3b670ebc94 remove redundant check for imagestore create
correct check object for imagestore update
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-11-28 09:24:46 +08:00
Stephen J Day
5764bf1bad
cmd/containerd-shim: set GOMAXPROCS to 2
The shim doesn't need massive concurrency and a bunch of CPUs to do its
job correctly. We can reduce the number of threads to save memory at
little cost to performance.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-27 13:40:35 -08:00
Michael Crosby
abeb262d0d
Merge pull request #1796 from dnephin/move-oci-pkg
Move spec*.go files into a new oci package
2017-11-27 16:26:06 -05:00
Daniel Nephin
f6e877e8be Proposed fix for image content store
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-27 16:16:17 -05:00
Daniel Nephin
a21a19a658 fix windows oci package
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-27 16:16:17 -05:00
Daniel Nephin
cdf62f69a1 Fix usage of oci in other packages.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-27 16:16:17 -05:00
Daniel Nephin
081f8c7ce0 oci package passing tests
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-11-27 16:14:43 -05:00
Lantao Liu
4b4714eaca
Merge pull request #432 from mikebrow/vet-fixes
fixing vet errors
2017-11-27 12:03:30 -08:00
Lantao Liu
80c7d18703
Merge pull request #431 from Random-Liu/update-containerd
Update containerd
2017-11-27 12:03:18 -08:00
Lantao Liu
1b05f088b5
Merge pull request #375 from yanxuean/image-trunc
support get image by truncindex
2017-11-27 11:36:58 -08:00
Lantao Liu
2e3c510c92 Update containerd to 70e0c8443f.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-11-27 19:24:14 +00:00
yanxuean
50cb8a0571 update containerd for refactor
fix #423

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-11-27 19:24:14 +00:00
Mike Brown
983994dc87 fixing vet errors
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-11-27 13:13:21 -06:00
Michael Crosby
70e0c8443f
Merge pull request #1809 from Random-Liu/fix-build
fix build for WithLease
2017-11-27 13:38:09 -05:00
Lantao Liu
33c95bb418 Fix build.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-11-27 18:27:20 +00:00
Derek McGowan
a7ade66815
Merge pull request #1799 from yanxuean/provide-withLease
provide client.WithLease to user
2017-11-27 10:15:52 -08:00
Michael Crosby
9bf0a15946
Merge pull request #1808 from crosbymichael/stress-race
Fix race in stress test tool
2017-11-27 11:08:52 -05:00
Phil Estes
ff6c12b284
Merge pull request #1803 from dnephin/warn-on-mem-not-supported
Warn if OOM monitoring is not available instead of error
2017-11-27 11:07:11 -05:00
Michael Crosby
1cb0e81b5a Fix race in stress test tool
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-11-27 10:55:13 -05:00
Phil Estes
12e7c76771
Merge pull request #1802 from yanxuean/unpack-lease
save snapshot from gc when unpack image
2017-11-27 09:37:21 -05:00
Michael Crosby
153fcfaea0
Merge pull request #1806 from dnephin/fix-ctr-events
Fix ctr events
2017-11-27 09:35:12 -05:00