Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
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

Closed

Description

@olberger

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

Something weird seems broken wrt crio :-/

Activity

  1. krsna1729 commented on Apr 19, 2019

    @krsna1729
    Contributor

    @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!
    
  2. olberger commented on Apr 19, 2019

    @olberger
    Author

    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...

  3. krsna1729 commented on Apr 19, 2019

    @krsna1729
    Contributor

    @olberger substitute without your pod name or else try this

    clear@clr-01 ~ $ kubectl logs -n kube-system -l name=kata-deploy
    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
    
  4. krsna1729 commented on Apr 19, 2019

    @krsna1729
    Contributor

    also use ./create_stack.sh minimal. You wont need the extra stuff for this test

  5. olberger commented on Apr 19, 2019

    @olberger
    Author

    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

    copying kata artifacts onto host
    Add Kata Containers as a supported runtime for CRIO:
    cp: cannot stat '/etc/crio/crio.conf': No such file or directory
    
  6. krsna1729 commented on Apr 19, 2019

    @krsna1729
    Contributor

    Not sure why crio folder does not exist. setup_system.sh must have set everything up

    clear@clr-01 ~ $ swupd search crio
    Bundle with the best search result:
         containers-basic                   - Run container applications from Dockerhub.  (454MB) (installed)
    
    clear@clr-01 ~ $ 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 19:03:03 WEST; 2h 20min ago
         Docs: https://github.com/kubernetes-sigs/cri-o
     Main PID: 7481 (crio)
        Tasks: 38
       Memory: 1.1G
       CGroup: /system.slice/crio.service
               ├─ 7481 /usr/bin/crio
               ├─15847 /usr/bin/socat - TCP4:localhost:3000
               ├─15855 /usr/bin/socat - TCP4:localhost:3000
               ├─15864 /usr/bin/socat - TCP4:localhost:3000
               ├─22842 /usr/bin/socat - TCP4:localhost:3000
               ├─22859 /usr/bin/socat - TCP4:localhost:3000
               └─22872 /usr/bin/socat - TCP4:localhost:3000
    
    clear@clr-01 ~ $ ls /etc/crio/
    crio.conf  crio.conf.bak
    
  7. olberger commented on Apr 19, 2019

    @olberger
    Author
    $ 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

  8. krsna1729 commented on Apr 19, 2019

    @krsna1729
    Contributor

    @olberger umm this is so weird. @ganeshmaharaj any ideas

  9. olberger commented on Apr 19, 2019

    @olberger
    Author

    I think I nailed it : I had no nested KVM virtualization activated... which probably made the crio installation/restart fail.

  10. krsna1729 commented on Apr 20, 2019

    @krsna1729
    Contributor

    @olberger did you get it to work? I still do not understand why crio.conf is missing. it is independent of virtualization

  11. NitinAtIntel commented on Aug 5, 2019

    @NitinAtIntel
    Contributor

    @olberger Are you still encountering this problem?

  12. jascott1 commented on Aug 26, 2019

    @jascott1
    Contributor

    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

  13. ganeshmaharaj commented on Aug 27, 2019

    @ganeshmaharaj
    Contributor

    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/defaults too 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?

  14. mythi commented on Aug 27, 2019

    @mythi
    Contributor

    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.

  15. jascott1 commented on Oct 24, 2019

    @jascott1
    Contributor

    @olberger closing this as obsolete (file exists now). Please re-open if the issue persists for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions