Stephen J Day
157cfb1ad2
api, linux/runcopts: ensure output is current
...
Ensure that the descriptors are re-generated on the CI and block merges
that don't include updates. We also enable the `check-protos` check as
part of this process. The installation process for protobufs has been
fixed to support protobuild.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-09-06 14:51:53 -07:00
Michael Crosby
2ed3c62e27
Update cgroups to 5933ab4dc4f7caa3a73a1dc141bd11f4
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-06 16:20:19 -04:00
Michael Crosby
843b35c9f2
Merge pull request #1478 from estesp/freebsd-compile
...
Fix FreeBSD compilation
2017-09-06 15:03:49 -04:00
Phil Estes
8b938b00bc
Fix FreeBSD compilation
...
Corrects compile on FreeBSD by handling the lack of ENODATA on FreeBSD.
Since continuity project has already handled this, using their const is
simpler than separating a few extra files in containerd/containerd.
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-09-06 14:38:07 -04:00
Derek McGowan
e0f7b5f1bb
Merge pull request #1477 from stevvooe/revert-rootfs-init
...
Revert "rootfs: remove unused functions"
2017-09-06 11:32:32 -07:00
Kenfe-Mickaël Laventure
e1eeb0e0a2
Merge pull request #1475 from dmcgowan/content-commit-context
...
Add context to content commit
2017-09-06 11:04:31 -07:00
Stephen J Day
4d8f7895e4
Revert "rootfs: remove unused functions"
...
This reverts commit 4e2337794c
.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-09-06 11:00:21 -07:00
Derek McGowan
9613acb2ed
Add context to content commit
...
Content commit is updated to take in a context, allowing
content to be committed within the same context the writer
was in. This is useful when commit may be able to use more
context to complete the action rather than creating its own.
An example of this being useful is for the metadata implementation
of content, having a context allows tests to fully create
content in one database transaction by making use of the context.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-09-06 10:19:12 -07:00
Michael Crosby
bf08f7cd08
Merge pull request #1474 from mlaventure/update-gorunc
...
Update go-runc to b3c048c028ddd789c6f9510c597f8b9c62f25359
2017-09-06 11:16:23 -04:00
Kenfe-Mickael Laventure
f766801a99
Update go-runc to b3c048c028ddd789c6f9510c597f8b9c62f25359
...
This fixes an issue with Exec not returning a proper error
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-09-06 08:09:09 -07:00
Kenfe-Mickaël Laventure
026ebe145c
Merge pull request #1472 from dmcgowan/fix-gcr-registries
...
remotes/docker: expand allowed status codes on push
2017-09-05 15:28:16 -07:00
Derek McGowan
48afd44514
Support blob commit returning a 200 instead of 201
...
Support registries returning 204 or 200 in place of 201/202.
Ensure body is closed when request is retried.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-09-05 15:02:21 -07:00
Michael Crosby
4c5ed9c068
Move metrics requests to services
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:41:30 -04:00
Michael Crosby
c07f7cab37
Add task.Metrics to windows
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Michael Crosby
8510512e7e
Add test for client metrics
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Michael Crosby
f45269be6b
Update cgroups to 4be134fe43b9e207558365ad2675546b
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Michael Crosby
ed45952826
Use cgroups proto for prom metrics
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Michael Crosby
0973a084cf
Update cgroups to e364e5d4183340acdf51f943ba033543
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Michael Crosby
697dcdd407
Refactor task service metrics
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 17:26:26 -04:00
Phil Estes
16fcb8dc08
Merge pull request #1470 from crosbymichael/lossy
...
Return grpc errs from task service
2017-09-05 17:15:38 -04:00
Derek McGowan
a6aa3ccd07
Merge pull request #1469 from crosbymichael/sys
...
Update golang/sys to 7ddbeae9ae08c6a06a59597f0c9ed
2017-09-05 14:14:21 -07:00
Michael Crosby
f5d81a631e
Return grpc errs from task service
...
Closes #1201
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 16:10:19 -04:00
Derek McGowan
887f97f2ff
Merge pull request #1463 from stevvooe/switch-snapshot-kind
...
snapshot: use switch to parse snapshot.Kind
2017-09-05 12:44:57 -07:00
Michael Crosby
f7dc0ab9e1
Update golang/sys to 7ddbeae9ae08c6a06a59597f0c9ed
...
ref #1422
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-05 15:39:46 -04:00
Stephen J Day
1c31199797
snapshot: use switch to parse snapshot.Kind
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-09-05 11:04:15 -07:00
Michael Crosby
f4b84987c7
Merge pull request #1373 from AkihiroSuda/fix-snapshot-view
...
mount: fix read-only bind
2017-09-05 10:29:19 -04:00
Akihiro Suda
a560e5e0ef
mount: fix read-only bind ( #1368 )
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-04 04:44:56 +00:00
Kenfe-Mickaël Laventure
b4cc42d028
Merge pull request #1460 from mlaventure/pid-host-kill-init
...
Ensure all init children are dead when it exits
2017-09-01 15:17:40 -07:00
Kenfe-Mickael Laventure
939ad32117
Update go-runc to ba22f6a82e52be3be4eb4a00000fe816f4b41c2e
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-09-01 14:50:56 -07:00
Kenfe-Mickael Laventure
a6fb9bc111
reaper: Return an error if exit status is not 0
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-09-01 14:50:56 -07:00
Kenfe-Mickael Laventure
92772bd471
linux: Ensure all init children are dead when it exits
...
This ensure that when using the host pid, we don't let process alive,
preventing Wait() to return until they all die.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-09-01 14:50:56 -07:00
Kenfe-Mickael Laventure
9d251cbd1b
Delete bundle dir on restore if we're not debugging the shim
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-09-01 14:50:56 -07:00
Kenfe-Mickaël Laventure
d3e1132588
Merge pull request #1453 from crosbymichael/oom
...
Convert oom metric to const
2017-09-01 14:45:46 -07:00
Stephen Day
378e3343fe
Merge pull request #1362 from AkihiroSuda/ctr-snapshot-info
...
ctr: add `ctr snapshot info <key>`
2017-09-01 14:25:25 -07:00
Michael Crosby
b04e408a4b
Convert OOM Metric to Const
...
This converts the oom metric to be a const metric so that deleted tasks
do not fill up the metric labels.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-01 16:43:30 -04:00
Michael Crosby
93395c0b1d
Merge pull request #1462 from stevvooe/fieldpath-fix
...
service/containers: correctly plumb fieldpaths
2017-09-01 16:30:57 -04:00
Stephen J Day
5cc108605f
service/containers: correctly plumb fieldpaths
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-09-01 13:17:31 -07:00
Derek McGowan
7182085551
Merge pull request #1447 from stevvooe/nice-events
...
containerd: export Subscribe method on client
2017-09-01 11:42:49 -07:00
Phil Estes
4291fb4803
Merge pull request #1454 from mlaventure/per-container-runtime-binary
...
Per container runtime binary
2017-09-01 13:25:17 -04:00
Phil Estes
a3f0bbaac1
Merge pull request #1459 from crosbymichael/exec-wait
...
Wait on exec process not task
2017-09-01 12:12:28 -04:00
Michael Crosby
5614e9c7b3
Wait on exec process not task
...
Fixes #1449
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-01 11:51:45 -04:00
Michael Crosby
3e2a9c60af
Merge pull request #1458 from AkihiroSuda/net-host
...
ctr: net-host: bind-mount host /etc/{hosts,resolv.conf}
2017-09-01 10:28:17 -04:00
Phil Estes
dd05301bef
Merge pull request #1457 from AkihiroSuda/nit-doc
...
RELEASES.md: Go API -> Go client API
2017-09-01 10:00:23 -04:00
Akihiro Suda
053deb5ce2
ctr: net-host: bind-mount host /etc/{hosts,resolv.conf}
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-01 07:16:31 +00:00
Akihiro Suda
37896edfed
RELEASES.md: Go API -> Go client API
...
So as to make sure the Go plugin API is not in the scope
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-01 07:05:35 +00:00
Akihiro Suda
525bffd194
snapshot: support JSON marshalling for Info
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-01 04:47:35 +00:00
Akihiro Suda
fef7f3addc
ctr: add ctr snapshot info <key>
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-01 04:41:34 +00:00
Ian Campbell
94b0d0ecd0
ctr: drop labels from ctr containers
subcommand list
...
The labels can be very long (e.g. cri-containerd stores a large JSON metadata
blob as `io.cri-containerd.container.metadata`) which renders the output
useless due to all the line wrapping etc.
The information is still available in `ctr containers info «name»`.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-08-31 23:42:21 +01:00
Kenfe-Mickael Laventure
1b79170849
linux: Add RuntimeRoot to RuncOptions
...
This allow specifying wher the OCI runtime should store its state data.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-31 14:35:05 -07:00
Kenfe-Mickael Laventure
ab0cb4e756
linux: Honor RuncOptions if set on container
...
This also fix the type used for RuncOptions.SystemCgroup, hence introducing
an API break.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-31 14:35:05 -07:00