Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

guest OCI hooks are not working with Kata #818

Closed
bpradipt opened this issue Aug 24, 2020 · 1 comment
Closed

guest OCI hooks are not working with Kata #818

bpradipt opened this issue Aug 24, 2020 · 1 comment
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.

Comments

@bpradipt
Copy link
Contributor

Description of problem

OCI hooks are not working with Kata. Created a rootfs with hook scripts and enabled guest_hook_path = "/usr/share/oci/hooks" in the configuration.toml.
Running the container results in the following error:

Error response from daemon: OCI runtime create failed: rpc error: code = Unknown desc = open /run/kata-containers/shared/containers/7217217f69ef8af65581790aa06fe3b54499dd3b8f1a79e6116
94ec670a6182a/config.json: read-only file system: unknown.
time="2020-06-10T11:49:58Z" level=error msg="error waiting for container: context canceled"
The problem got introduced since the following commit a3dec26

Expected result

Container should start and hooks should run

Actual result

Container fails to start.

Reference Issue - kata-containers/runtime#2763

@bpradipt bpradipt added bug Incorrect behaviour needs-review Needs to be assessed by the team. labels Aug 24, 2020
bpradipt added a commit to bpradipt/agent that referenced this issue Aug 24, 2020
OCI hooks fails to run since the code was writing the config.json
to the read-only path. This patch fixes it

Fixes: kata-containers#818

Signed-off-by: Pradipta Kr. Banerjee <[email protected]>
@jodh-intel
Copy link
Contributor

Closing as PR is already merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.
Projects
None yet
Development

No branches or pull requests

2 participants