Giter Club home page Giter Club logo

Comments (15)

krsna1729 avatar krsna1729 commented on July 24, 2024

@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!

from cloud-native-setup.

olberger avatar olberger commented on July 24, 2024

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

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 24, 2024

@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

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 24, 2024

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

from cloud-native-setup.

olberger avatar olberger commented on July 24, 2024

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

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 24, 2024

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

from cloud-native-setup.

olberger avatar olberger commented on July 24, 2024
$ 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

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 24, 2024

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

from cloud-native-setup.

olberger avatar olberger commented on July 24, 2024

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

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 24, 2024

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

from cloud-native-setup.

NitinAtIntel avatar NitinAtIntel commented on July 24, 2024

@olberger Are you still encountering this problem?

from cloud-native-setup.

jascott1 avatar jascott1 commented on July 24, 2024

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

from cloud-native-setup.

ganeshmaharaj avatar ganeshmaharaj commented on July 24, 2024

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?

from cloud-native-setup.

mythi avatar mythi commented on July 24, 2024

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.

from cloud-native-setup.

jascott1 avatar jascott1 commented on July 24, 2024

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

from cloud-native-setup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.