You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
deploying kata example fails (cannot stat '/etc/crio/crio.conf') #87
Trying to follow the create_stack.sh example, and doing :
kubectl apply -f tests/deploy-svc-ing/test-deploy-kata-qemu.yaml
I get: kubectl get pod
NAME READY STATUS RESTARTS AGE
php-apache-kata-qemu-7d4647498f-srlmw 0/1 Pending 0 8m26s
looking at /var/log/containers/kata-deploy-v22pt_kube-system_kube-kata-18d156ed33052c5a7d2bda4637d147f30d1d92f4812746f3e196a5479f98ea09.log I can see:
2019-04-19T17:18:13.158164470+01:00 stdout F copying kata artifacts onto host
2019-04-19T17:18:13.831374115+01:00 stdout F Add Kata Containers as a supported runtime for CRIO:
2019-04-19T17:18:13.832274647+01:00 stderr F cp: cannot stat '/etc/crio/crio.conf': No such file or directory
@olberger Seems like there was an issue with kata-deploy. cri-o does not seem to be installed for some reason. You are doing this on the vagrant setup correct?
I was able to bring it up and curl the endpoint
clear@clr-01 ~/clr-k8s-examples $ kubectl logs -n kube-system kata-deploy-kxdff
copying kata artifacts onto host
Add Kata Containers as a supported runtime for CRIO:
[crio.runtime.runtimes.kata-qemu]
runtime_path = "/opt/kata/bin/kata-qemu"
[crio.runtime.runtimes.kata-fc]
runtime_path = "/opt/kata/bin/kata-fc"
node/clr-01 labeled
kata-deploy restart crio successfully
clear@clr-01 ~/clr-k8s-examples $ sudo systemctl status crio
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/usr/lib/systemd/system/crio.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/crio.service.d
└─crio-clearlinux.conf
Active: active (running) since Fri 2019-04-19 17:17:03 WEST; 40s ago
Docs: https://github.com/kubernetes-sigs/cri-o
Main PID: 7493 (crio)
Tasks: 22
Memory: 80.2M
CGroup: /system.slice/crio.service
└─7493 /usr/bin/crio
clear@clr-01 ~/clr-k8s-examples $ kubectl apply -f tests/deploy-svc-ing/test-deploy-kata-qemu.yaml
clear@clr-01 ~/clr-k8s-examples $ kubectl get pod -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
php-apache-kata-qemu-7d4647498f-9wzfc 1/1 Running 0 87s 10.244.0.6 clr-01 <none> <none>
clear@clr-01 ~/clr-k8s-examples $ curl -w "\n" -s $(kubectl get svc php-apache-kata-qemu | awk 'NR==2 {print $3}')
OK!
$ swupd search crio
Bundle with the best search result:
containers-basic - Run container applications from Dockerhub. (454MB) (installed)
This bundle can be installed with:
swupd bundle-add containers-basic
and:
$ swupd info containers-basic
Installed version: 28950
Version URL: https://cdn.download.clearlinux.org/update/
Content URL: https://cdn.download.clearlinux.org/update/
$ systemctl status crio.service
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/usr/lib/systemd/system/crio.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/crio.service.d
└─crio-clearlinux.conf
Active: active (running) since Fri 2019-04-19 22:27:47 WEST; 2min 1s ago
Docs: https://github.com/kubernetes-sigs/cri-o
Main PID: 2573 (crio)
Tasks: 12
Memory: 14.0M
CGroup: /system.slice/crio.service
└─2573 /usr/bin/crio
However, still:
$ sudo ls /etc/crio
ls: cannot access '/etc/crio': No such file or directory
The conf file does not exist after installing on a recent version of Clear with sudo -E swupd bundle-add --quiet cloud-native-basic storage-utils
There is no /etc/crio directory or conf file there but it does exist at /usr/share/defaults/crio/crio.conf
I thought our system_setup was copying the file over by default to /etc/crio
Clear's kata-runtime package installs crio-set-runtime.service which is run upon crio.service restart. The conf file is created by crio-set-runtime if /dev/kvm exists.
Activity
krsna1729 commentedon Apr 19, 2019
@olberger Seems like there was an issue with kata-deploy. cri-o does not seem to be installed for some reason. You are doing this on the vagrant setup correct?
I was able to bring it up and curl the endpoint
kata-deploy restart crio successfully
olberger commentedon Apr 19, 2019
Uh @krsna1729, I'm not sure... I'm following the instructions using create_stack.sh... and saw no traces of kata-deploy :-/
kubectl logs -n kube-system kata-deploy-kxdff won't return anything then...
krsna1729 commentedon Apr 19, 2019
@olberger substitute without your pod name or else try this
krsna1729 commentedon Apr 19, 2019
also use
./create_stack.sh minimal. You wont need the extra stuff for this testolberger commentedon Apr 19, 2019
Hi.
Just did a create_stack.sh minimal again, and here's the output of :
clear@clr-01 ~/clr-k8s-examples $ kubectl logs -n kube-system -l name=kata-deploy
krsna1729 commentedon Apr 19, 2019
Not sure why crio folder does not exist.
setup_system.shmust have set everything upolberger commentedon Apr 19, 2019
and:
$ swupd info containers-basic
$ systemctl status crio.service
However, still:
$ sudo ls /etc/crio
ls: cannot access '/etc/crio': No such file or directory
krsna1729 commentedon Apr 19, 2019
@olberger umm this is so weird. @ganeshmaharaj any ideas
olberger commentedon Apr 19, 2019
I think I nailed it : I had no nested KVM virtualization activated... which probably made the crio installation/restart fail.
krsna1729 commentedon Apr 20, 2019
@olberger did you get it to work? I still do not understand why crio.conf is missing. it is independent of virtualization
NitinAtIntel commentedon Aug 5, 2019
@olberger Are you still encountering this problem?
jascott1 commentedon Aug 26, 2019
The conf file does not exist after installing on a recent version of Clear with
sudo -E swupd bundle-add --quiet cloud-native-basic storage-utilsThere is no
/etc/criodirectory or conf file there but it does exist at/usr/share/defaults/crio/crio.confganeshmaharaj commentedon Aug 27, 2019
I thought our system_setup was copying the file over by default to
/etc/crio. Also i thought crio would work by looking at/usr/share/defaultstoo based on https://github.com/clearlinux-pkgs/cri-o/blob/master/0001-include-usr-share-defaults-in-conf-file-search.patch Is that no longer the case?mythi commentedon Aug 27, 2019
Clear's kata-runtime package installs
crio-set-runtime.servicewhich is run uponcrio.servicerestart. The conf file is created bycrio-set-runtimeif/dev/kvmexists.jascott1 commentedon Oct 24, 2019
@olberger closing this as obsolete (file exists now). Please re-open if the issue persists for you.