Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-emulation: add cri-tools #42

Merged
merged 1 commit into from Jul 1, 2019

Conversation

Projects
None yet
2 participants
@dongsupark
Copy link
Contributor

commented Jun 29, 2019

To be able to use cri-o, we need a new tool cri-tools, which includes crictl.

app-emulation: add cri-tools
To be able to use cri-o, we need a new tool cri-tools, which includes
`crictl`.
@invidian

This comment has been minimized.

Copy link
Member

commented Jun 29, 2019

Cool @dongsupark! And what about conmon? This one is also required by crio daemon as far as I know:

$ grep conmon /etc/crio/crio.conf.example 
# Path to the conmon binary, used for monitoring the OCI runtime.
conmon = "/usr/local/libexec/crio/conmon"
# Environment variable list for the conmon process, used for passing necessary
# environment variables to conmon or the runtime.
conmon_env = [
# match/exceed conmon's read buffer. The file is truncated and re-opened so the
# Path to directory in which container exit files are written to by conmon

And from journalctl after some investigation:

$ journalctl -u crio
-- Logs begin at Fri 2019-06-28 19:29:16 UTC, end at Sat 2019-06-29 22:07:29 UTC. --
Jun 28 21:52:16 controller-testing-1 systemd[1]: Starting Open Container Initiative Daemon...
Jun 28 21:52:16 controller-testing-1 crio[7209]: time="2019-06-28T21:52:16Z" level=warning msg="default configuration file does not exist: /etc/crio/crio.conf"
Jun 28 21:52:16 controller-testing-1 crio[7209]: time="2019-06-28 21:52:16.297066049Z" level=fatal msg="config validation: invalid conmon path: stat /usr/local/libexec/crio/conmon: no such file or directory"
Jun 28 21:52:16 controller-testing-1 systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 21:52:16 controller-testing-1 systemd[1]: crio.service: Failed with result 'exit-code'.
Jun 28 21:52:16 controller-testing-1 systemd[1]: Failed to start Open Container Initiative Daemon.
Jun 28 21:54:28 controller-testing-1 systemd[1]: Starting Open Container Initiative Daemon...
Jun 28 21:54:28 controller-testing-1 crio[7405]: time="2019-06-28 21:54:28.963002316Z" level=fatal msg="config validation: invalid conmon path: stat /usr/local/libexec/crio/conmon: no such file or directory"
Jun 28 21:54:28 controller-testing-1 systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 21:54:28 controller-testing-1 systemd[1]: crio.service: Failed with result 'exit-code'.
Jun 28 21:54:28 controller-testing-1 systemd[1]: Failed to start Open Container Initiative Daemon.
Jun 28 22:25:22 controller-testing-1 systemd[1]: Starting Open Container Initiative Daemon...
Jun 28 22:25:23 controller-testing-1 crio[13585]: time="2019-06-28 22:25:23.205468505Z" level=fatal msg="config validation: invalid network_dir: stat /etc/cni/net.d/: no such file or directory"
Jun 28 22:25:23 controller-testing-1 systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 22:25:23 controller-testing-1 systemd[1]: crio.service: Failed with result 'exit-code'.
Jun 28 22:25:23 controller-testing-1 systemd[1]: Failed to start Open Container Initiative Daemon.
Jun 28 22:33:06 controller-testing-1 systemd[1]: Starting Open Container Initiative Daemon...
Jun 28 22:33:06 controller-testing-1 crio[14148]: time="2019-06-28 22:33:06.851711160Z" level=fatal msg="config validation: invalid plugin_dirs entry: stat /opt/cni/bin/: no such file or directory"
Jun 28 22:33:06 controller-testing-1 systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 22:33:06 controller-testing-1 systemd[1]: crio.service: Failed with result 'exit-code'.
Jun 28 22:33:06 controller-testing-1 systemd[1]: Failed to start Open Container Initiative Daemon.
@dongsupark

This comment has been minimized.

Copy link
Contributor Author

commented Jun 30, 2019

conmon is already included in Flatcar edge, as /usr/libexec/crio/conmon.
So we only need to update the example cri-o config.

@invidian

This comment has been minimized.

Copy link
Member

commented Jun 30, 2019

conmon is already included in Flatcar edge, as /usr/libexec/crio/conmon.
So we only need to update the example cri-o config.

Ah, cool! 👍

@dongsupark dongsupark merged commit 2a354e7 into flatcar-master-edge Jul 1, 2019

@dongsupark dongsupark deleted the dongsu/cri-tools branch Jul 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.