Commit graph

987 commits

Author SHA1 Message Date
Antonio Murdaca
0edf5efa7a
server: move StopAllSandboxes in sandbox_stop.go
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:54 +02:00
Antonio Murdaca
e1f7f0c156
add a note on server shutdown...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:46 +02:00
Antonio Murdaca
49f0857928
server: do not remove but stop sandboxes on shutdown
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:36 +02:00
Antonio Murdaca
f40bbce464
oci: do not serialize empty fields on disk
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:29 +02:00
Antonio Murdaca
c9f60011c3
server: still update status on container not found in runc
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:20 +02:00
Antonio Murdaca
cdb59528fc
server: ignore runc not exist errors
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:14 +02:00
Antonio Murdaca
ddb9e73d55
server: restore containers state from disk on startup
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:08:05 +02:00
Antonio Murdaca
d8d4861647
server: store containers state on disk
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:56 +02:00
Antonio Murdaca
06ec274d27
oci: ignore non existing containers on delete
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:50 +02:00
Antonio Murdaca
20d5a600a5
oci: save container's finished time
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:43 +02:00
Antonio Murdaca
c11254c0fd
server: store creation in containers
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:31 +02:00
Antonio Murdaca
00909c985f
oci: add container directory to Container struct
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:20 +02:00
Antonio Murdaca
9c9ef3bc7c
server: restore sandbox created time from disk
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:12 +02:00
Antonio Murdaca
4bdb2aa437
server: return sandbox's own created time
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:07:03 +02:00
Antonio Murdaca
f380f0b7eb
server: store sandbox creation time
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-26 15:06:55 +02:00
Antonio Murdaca
6395319aef
Upgrade k8s to v1.6.4
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-22 16:19:39 +02:00
Antonio Murdaca
d09f928fac
test: run gofmt
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-18 16:19:40 +02:00
Mrunal Patel
0594d6f940
Convert pod cgroupPath to runc format for systemd cgroup
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
2017-05-18 15:49:37 +02:00
Mrunal Patel
35d9a0bf86
Add function to convert kube pod cgroup format to runc format
This is a slightly modified version of the function in k8s.

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
2017-05-18 15:49:29 +02:00
Antonio Murdaca
d64b86bc10
vendor: upgrade containers/storage
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-18 15:48:49 +02:00
Antonio Murdaca
3fac039b4b
test: testdata: use redis:alpine
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-16 10:51:39 +02:00
Antonio Murdaca
f6489f4bc6
server: honor container stop timeout from CRI
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-16 10:44:18 +02:00
Mrunal Patel
3fa4d5eb75
Capture errors from runtime create failures
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-05-16 10:43:50 +02:00
Mrunal Patel
76d7b492b9
Fix remnants of ocid -> crio rename
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-05-16 10:43:24 +02:00
Matthew Heon
ec520ce5dd
Fix unit test to use crio/crioctl
The rename to crio missed this test, update it so tests pass

Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-05-16 10:42:57 +02:00
Matthew Heon
c3d65147d1
Update gitignore to replace ocic with crioctl
Matches the rename that just got merged

Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-05-16 10:42:48 +02:00
Antonio Murdaca
912c7a9b07
test: use redis:alpine
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-16 10:41:15 +02:00
Dan Walsh
60e25392c8
Rename ocid to crio.
The ocid project was renamed to CRI-O, months ago, it is time that we moved
all of the code to the new name.  We want to elminate the name ocid from use.
Move fully to crio.

Also cric is being renamed to crioctl for the time being.

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2017-05-16 10:39:56 +02:00
Antonio Murdaca
0183dcb392
Makefile: clean and rebuild binaries before testing
if you run `make localintegration` from a branch, switch to another and
re-run the command again, `ocid` won't get built again causing tests to
run with binaries from the old branch you switched from.
This patch makes sure we cleanup binaries and rebuild before running
tests.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-12 19:53:26 +02:00
Antonio Murdaca
ea739ca9dd
test: add caps drop test
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-12 19:53:15 +02:00
Antonio Murdaca
51a618f9c1
vendor: bump oci/runtime-tools to fix caps drop
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-12 19:52:47 +02:00
Antonio Murdaca
602c162037
server: add RO and masked paths on container creation
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-12 17:27:01 +02:00
Mrunal Patel
c3efdae412
bats: Add a test for adding device to a container
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
2017-05-12 17:27:01 +02:00
Mrunal Patel
0c05353806
Add a test config for device
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-12 17:26:57 +02:00
Mrunal Patel
91dc079aa3
Add devices to OCI config
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-05-11 13:28:26 +02:00
Mrunal Patel
4ec841c441
Add helper for adding devices to OCI spec
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-05-11 13:28:26 +02:00
Antonio Murdaca
37b5d432bd
server: store kubeName in annotations
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-09 23:23:32 +02:00
Dan Williams
82597be648
sandbox: pass correct pod Namespace/Name to network plugins and fix id/name ordering
Two issues:
1) pod Namespace was always set to "", which prevents plugins from figuring out
what the actual pod is, and from getting more info about that pod from the
runtime via out-of-band mechanisms

2) the pod Name and ID arguments were switched, further preventing #1

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-06 18:24:05 +02:00
Antonio Murdaca
47a8e6611f
contrib: systemd: fix ocid path
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-06 13:28:50 +02:00
Antonio Murdaca
655b1b46a8
server: fix set caps on container create
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-06 13:28:38 +02:00
Antonio Murdaca
860a38335d
manifest.json: stick to k8s v1.6.1
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-02 11:11:51 +02:00
Mrunal Patel
f648cd6e60 Merge pull request #480 from mrunalp/bump_0.3
Bump up to version 0.3
2017-04-28 09:36:01 -07:00
Mrunal Patel
22babd5bcd Bump up to version 0.3
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
2017-04-28 08:13:00 -07:00
Antonio Murdaca
27510ac346 Merge pull request #473 from mrunalp/port_forward
Add support for port forwarding
2017-04-28 01:16:45 +02:00
Antonio Murdaca
d45ecac0f8 Merge pull request #450 from nalind/canonical
Fix pull-by-digest
2017-04-27 23:18:16 +02:00
Nalin Dahyabhai
b75a1ba44d Remove some redundant target image namesetting
Remove some logic that messed with the names we assigned to just-pulled
images in the storage layer, since the image and storage libraries now
take care of that for us.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-04-27 14:13:02 -04:00
Nalin Dahyabhai
a0b1da15a3 Expand image refs and handle refs with digests
If an image that we're pulling from a registry has a digest in its
reference, use that to construct the destination image's reference.
This should help us detect cases where the image has previously been
pulled.

When we have a filter to use when listing images, expand it into a
reference so that we can properly match against names of images that
we've previously stored using fully expanded references.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-04-27 14:13:02 -04:00
Nalin Dahyabhai
3d15bc571b Bump github.com/containers/image@efae299
Update the vendored copy of github.com/containers/image to revision
efae29995d4846ffa6163eb4d466fd61bda43aae.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-04-27 14:13:00 -04:00
Nalin Dahyabhai
7c551964c0 Bump github.com/containers/storage@d10d868
Update the vendored copy of github.com/containers/storage to revision
d10d8680af74070b362637408a7fe28c4b1f1eff.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-04-27 14:11:05 -04:00
Mrunal Patel
d6bf131c07 Merge pull request #470 from surajssd/enable-cpu-profiling
Add flag --cpu-profile to enable pprof
2017-04-27 10:34:41 -07:00