cri-o/server
Antonio Murdaca a0157078ad
sandbox: fix sandbox logPath when crio restarts
We weren't setting the logPath of the sandbox when restoring sandboxes
and containers upon a crio restarts. That means that if you restart
CRI-O you get sandboxes with empty logPath. That means that when you're
starting a container in a restored sandbox you get a relative logPath
for the container:

sandboxLogPath: "/var/something"
- restore
sandboxLogPath: ""
- create container foo
containerLogPath: "foo_attempt.log"

With this patch we actually get an absolute path (which is correct):

sandboxLogPath: "/var/something"
- restore
sandboxLogPath: "/var/something"
- create container foo
containerLogPath: "/var/something/foo_attempt.log"

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2018-02-09 15:54:47 +01:00
..
apparmor container_create: fix apparmor from container config 2017-11-30 16:12:16 +01:00
fixtures Adding unit tests for server/secrets.go 2017-11-29 17:42:19 +08:00
metrics server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
seccomp container_create: fix seccomp annotations 2017-09-25 21:08:11 +02:00
config.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
config_test.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
container_attach.go container_attach: Ensure ctl file is closed 2018-01-25 17:04:01 -08:00
container_create.go sandbox: fix sandbox logPath when crio restarts 2018-02-09 15:54:47 +01:00
container_exec.go container_exec: fix terminal true process json 2017-12-07 20:51:05 +01:00
container_execsync.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_list.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
container_portforward.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_remove.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_start.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_stats.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_stats_list.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_status.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
container_stop.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_update_resources.go allow update running/created container. 2017-11-11 11:04:07 -05:00
container_updateruntimeconfig.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
image_fs_info.go Implement the stats for the image_fs_info command 2018-01-29 10:01:19 -08:00
image_list.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
image_pull.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
image_remove.go Switch to ImageServer.UntagImage in RemoveImage handler 2017-12-14 14:23:53 -05:00
image_status.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
inspect.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
inspect_test.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
naming.go server: Rename infra container to POD 2017-09-01 08:47:55 -07:00
runtime_status.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
sandbox_list.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_network.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_remove.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_run.go sandbox: fix sandbox logPath when crio restarts 2018-02-09 15:54:47 +01:00
sandbox_status.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
sandbox_stop.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
secrets.go Fixed logic flaw in the secrets mounts 2017-10-17 13:08:42 -04:00
secrets_test.go Adding unit tests for server/secrets.go 2017-11-29 17:42:19 +08:00
server.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
utils.go Merge pull request #1192 from runcom/no-libkpod 2017-12-01 08:44:44 -05:00
utils_test.go container_create: correctly set image and kube envs 2017-11-30 12:28:50 +01:00
version.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00