Lantao Liu
73735c4dba
Cleanup FIFOs on error.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-04 18:58:10 +00:00
Phil Estes
bb39d1d982
Merge pull request #1289 from mlaventure/add-missing-return
...
Add missing return when failing to write tar header
2017-08-04 13:50:21 -04:00
Kenfe-Mickael Laventure
308ebe7e43
Add missing return when failing to write tar header
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-04 10:41:38 -07:00
Derek McGowan
99315f8e02
Merge pull request #1285 from crosbymichael/client-godoc
...
Update godoc for client package
2017-08-04 10:38:53 -07:00
Michael Crosby
bce8fe7bf7
Merge pull request #1288 from mlaventure/dont-touch-grpclog-in-client
...
Do not touch grpc logger from within the packages
2017-08-04 13:31:07 -04:00
Kenfe-Mickaël Laventure
2eaf91177d
Merge pull request #1279 from Random-Liu/cancel-context-on-wait
...
Cancel event subscribe context in Wait.
2017-08-04 19:18:30 +02:00
Kenfe-Mickael Laventure
16f6e0944a
Do not touch grpc logger from within the packages
...
Libraries should not make process wide changes unless requested to.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-04 10:11:46 -07:00
Lantao Liu
8fae8a5b77
Cancel event subscribe context in Wait.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-04 16:46:53 +00:00
Michael Crosby
0a85f6e47d
Update godoc for client package
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-04 11:53:31 -04:00
Phil Estes
7e0063320c
Merge pull request #1282 from AkihiroSuda/dismiss-progressbar-on-debug
...
ctr: dismiss progressbar on --debug
2017-08-04 11:51:17 -04:00
Phil Estes
ff15d18f1f
Merge pull request #1287 from crosbymichael/exitstatus
...
Return exit status from Wait of stopped process
2017-08-04 11:49:51 -04:00
Michael Crosby
0e97bdfea2
Merge pull request #1284 from mlaventure/use-tmp-console-socket
...
Use a temp socket to receive the console from runc
2017-08-04 09:14:22 -04:00
Michael Crosby
fdc5a475a8
Gate task.Wait status check on checkpoints
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-03 18:02:48 -04:00
Kenfe-Mickael Laventure
8700e23a10
Use root dir when storing temporary checkpoint data
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 14:38:18 -07:00
Michael Crosby
9f13b414b9
Return exit status from Wait of stopped process
...
This changes Wait() from returning an error whenever you call wait on a
stopped process/task to returning the exit status from the process.
This also adds the exit status to the Status() call on a process/task so
that a user can Wait(), check status, then cancel the wait to avoid
races in event handling.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-03 17:22:33 -04:00
Kenfe-Mickael Laventure
fbe4751b83
Use a temp socket to receive the console from runc
...
This greatly reduce the risk that we will hit the unix socket maximum path
length.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 10:44:10 -07:00
Kenfe-Mickael Laventure
642620cae3
Resurrect State directory
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 09:15:53 -07:00
Kenfe-Mickael Laventure
829845d268
Fix ineffassign warnings
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 08:27:15 -07:00
Akihiro Suda
b45fb98530
ctr: dismiss progressbar on --debug
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-08-03 09:35:52 +00:00
Edward Pilatowicz
534a137ed3
vendor: update github.com/containerd/console
...
Signed-off-by: Edward Pilatowicz <edward.pilatowicz@oracle.com>
2017-08-02 17:25:29 -07:00
Edward Pilatowicz
949d4903ee
vendor: update golang.org/x/sys
...
Signed-off-by: Edward Pilatowicz <edward.pilatowicz@oracle.com>
2017-08-02 17:25:29 -07:00
Edward Pilatowicz
47637f2aa2
vendor: update github.com/containerd/continuity
...
Signed-off-by: Edward Pilatowicz <edward.pilatowicz@oracle.com>
2017-08-02 17:22:33 -07:00
Derek McGowan
be36d26eb1
Update windows snapshotter
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 16:32:52 -07:00
Derek McGowan
24783b9e11
Add snapshot test suite for update
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 16:28:42 -07:00
Derek McGowan
efca0c5347
Update GRPC api to support labels and snapshot updates
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 16:28:41 -07:00
Derek McGowan
55c3711fab
Update snapshot metadata to support labels
...
Updates structure of snapshot metadata to add labels and
updates.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 16:28:41 -07:00
Stephen Day
0fa76584f8
Merge pull request #1280 from stevvooe/alpha3
...
release: prepare for 1.0.0-alpha3
2017-08-02 16:12:11 -07:00
Derek McGowan
7d3a1e7737
Add snapshot labels
...
Update snapshot storage to use boltdb keys instead of protobuf.
Add update function to snapshotter to allow updating labels.
Add option type for creating snapshots to allow setting labels.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 15:57:31 -07:00
Derek McGowan
ad72036e58
Refactor common boltdb fields to subpackage
...
Moves label and timestamp bolt functions to subpackage
for use outside the metadata package without importing
metadata package.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-02 15:49:23 -07:00
Stephen J Day
916254e40a
release: prepare for 1.0.0-alpha3
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-02 15:05:42 -07:00
Michael Crosby
c8b4e4dbe8
Merge pull request #1277 from crosbymichael/tty-block
...
Shutdown console after process exits
2017-08-02 17:36:56 -04:00
Kenfe-Mickaël Laventure
ee2dea2bb2
Merge pull request #1278 from stevvooe/update-oci-spec
...
vendor: update OCI image-spec dependency
2017-08-02 23:28:41 +02:00
Michael Crosby
bf4838eb71
Shutdown console after process exits
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 17:09:50 -04:00
Stephen J Day
610e1a250d
vendor: update OCI image-spec dependency
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-02 14:08:13 -07:00
Kenfe-Mickaël Laventure
8b0a040004
Merge pull request #1268 from crosbymichael/exec-state
...
Add exec process states
2017-08-02 19:59:01 +02:00
Michael Crosby
f945cdc704
Update windows locking code
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
d18af8699c
Update for epoll console handling
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
e827adaf11
Update windows with exec create/start actions
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
83b27db923
Check status for stopped processes before wait
...
Fixes #1054
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
cd00216fd7
Rename TaskStatus to Status
...
This can be renamed because both Tasks and Processes share the same
status consts
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
504033e373
Add Get of task and process state
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
2974e485f3
Add no-criu flag for running tests
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
9f08965699
Change Exited/Status to SetExited/ExitStatus
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
a2a3451925
Implement Exec + Start for tasks service
...
This splits up the exec creation and start in the tasks service
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
63878d14ea
Add create/start to exec processes in shim
...
This splits up the create and start of an exec process in the shim to
have two separate steps like the initial process. This will allow
better state reporting for individual process along with a more robust
wait for execs.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
2533bfeaaf
Merge pull request #1271 from stevvooe/autogenerate-fieldpaths
...
events: autogenerate fieldpath filters
2017-08-02 10:12:24 -04:00
Kenfe-Mickael Laventure
789330033a
Invoke ineffassign during CI
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-01 15:16:38 -07:00
Kenfe-Mickael Laventure
9526f5366d
Remove Windows cross compile from Travis
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-01 14:54:32 -07:00
Stephen J Day
c857ba2d0b
events: autogenerate fieldpath filters
...
To ensure consistent fieldpath matching for events, we generate the
fieldpath matching using protobuf definitions. This is done through a
plugin called "fieldpath" that defines a `Field` method for each type
with the plugin enabled. Generated code handles top-level envelope
fields, as well as deferred serialization for matching any types.
In practice, this means that we can cheaply match events on `topic` and
`namespace`. If we want to match on attributes within the event, we can
use the `event` prefix to address these fields. For example, the
following will match all envelopes that have a field named
`container_id` that has the value `testing`:
```
ctr events "event.container_id==testing"
```
The above will decode the underlying event and check that particular
field. Accordingly, if only `topic` or `namespace` is used, the event
will not be decoded and only match on the envelope.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-01 14:09:38 -07:00
Stephen Day
bb7b41ad7b
Merge pull request #1269 from stevvooe/plumb-correct-interfaces
...
linux/shim: use events.Publisher interface
2017-07-31 15:53:35 -07:00