Friday, 2020-04-24

*** sameo has joined #kata-dev05:10
*** jodh has joined #kata-dev06:37
*** dklyle has quit IRC06:50
*** sgarzare has joined #kata-dev07:23
*** gwhaley has joined #kata-dev08:05
*** davidgiluk has joined #kata-dev08:05
*** gwhaley has quit IRC11:06
*** devimc has joined #kata-dev11:54
*** vgoyal has joined #kata-dev12:09
*** gwhaley has joined #kata-dev12:11
*** ailan has joined #kata-dev12:12
*** dklyle has joined #kata-dev14:36
*** pcaruana has quit IRC14:44
*** pcaruana has joined #kata-dev14:45
*** ailan has quit IRC15:40
kata-irc-bot<fidencio> Another day, another thing to solve. I'm trying to build the admission controller (hey @archana.m.shinde :-)) following what's described here: https://github.com/kata-containers/tests/tree/master/kata-webhook but I'm getting: ```fidencio@laerte ~/go/src/github.com/kata-containers/tests/kata-webhook $ echo $GOPATH /home/fidencio/go  fidencio@laerte ~/go/src/github.com/kata-containers/tests/kata-webhook $ docker build -t15:50
kata-irc-botkatadocker/kata-webhook-example:latest . Sending build context to Docker daemon  13.82kB Step 1/7 : FROM golang:latest AS builder  ---> 2421885b04da Step 2/7 : WORKDIR /go/src/kata-pod-annotate  ---> Using cache  ---> 2fbde962f238 Step 3/7 : COPY . ./  ---> Using cache  ---> 20cf32a11a54 Step 4/7 : RUN CGO_ENABLED=0 go build -o /go/bin/kata-pod-annotate  ---> Running in a90ab84e36bc main.go:18:2: cannot find package15:50
kata-irc-bot"github.com/slok/kubewebhook/pkg/http" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/http (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/http (from $GOPATH) main.go:19:2: cannot find package "github.com/slok/kubewebhook/pkg/log" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/log (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/log (from $GOPATH) main.go:20:2: cannot find package15:50
kata-irc-bot"github.com/slok/kubewebhook/pkg/webhook/context" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/webhook/context (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/webhook/context (from $GOPATH) main.go:21:2: cannot find package "github.com/slok/kubewebhook/pkg/webhook/mutating" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/webhook/mutating (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/webhook/mutating15:50
kata-irc-bot(from $GOPATH) main.go:15:2: cannot find package "k8s.io/api/core/v1" in any of: /usr/local/go/src/k8s.io/api/core/v1 (from $GOROOT) /go/src/k8s.io/api/core/v1 (from $GOPATH) main.go:16:2: cannot find package "k8s.io/apimachinery/pkg/apis/meta/v1" in any of: /usr/local/go/src/k8s.io/apimachinery/pkg/apis/meta/v1 (from $GOROOT) /go/src/k8s.io/apimachinery/pkg/apis/meta/v1 (from $GOPATH) The command '/bin/sh -c CGO_ENABLED=0 go build -o15:50
kata-irc-bot/go/bin/kata-pod-annotate' returned a non-zero code: 1```15:50
kata-irc-bot<fidencio> So, yes, I get that I should `go get` the packages, but why is this not respecting my GOPATH?15:50
kata-irc-bot<fidencio> Or @salvador.fuentes, maybe: ^15:59
*** sameo has quit IRC16:03
kata-irc-bot<greg.bock> local env != env inside of container16:09
kata-irc-bot<greg.bock> would be my guess16:09
*** sameo has joined #kata-dev16:11
*** sgarzare has quit IRC16:24
kata-irc-bot<salvador.fuentes> hi @fidencio, yeah I guess the env is the issue. If so, documentation needs be updated, let me check16:27
kata-irc-bot<archana.m.shinde> @fidencio @salvador.fuentes https://github.com/kata-containers/tests/blob/master/kata-webhook/Dockerfile#L816:28
kata-irc-bot<archana.m.shinde> The dockerfile copies the vendor directory16:28
kata-irc-bot<archana.m.shinde> but since then the vendor directory seems to have moved from there16:29
kata-irc-bot<archana.m.shinde> https://github.com/kata-containers/tests/commit/6e5f72adade11e78dfce112eb286444203c9d4ba#diff-0b97967c9aeebfe5054e2ecb584d4e8316:29
kata-irc-bot<archana.m.shinde> That seems to be the issue16:29
kata-irc-bot<archana.m.shinde> @fidencio Maybe try a go get ./... as in this commit https://github.com/kata-containers/tests/commit/577ca15229956d2fb28629aa376388be5ab9b942#diff-0b97967c9aeebfe5054e2ecb584d4e8316:30
*** devimc has quit IRC16:35
*** devimc has joined #kata-dev16:36
kata-irc-bot<fidencio> Progress: ```# cd .; git clone -- https://github.com/slok/kubewebhook /go/src/github.com/slok/kubewebhook Cloning into '/go/src/github.com/slok/kubewebhook'... fatal: unable to access 'https://github.com/slok/kubewebhook/': Could not resolve host: github.com package github.com/slok/kubewebhook/pkg/http: exit status 128 package github.com/slok/kubewebhook/pkg/log: cannot find package "github.com/slok/kubewebhook/pkg/log" in any of:16:39
kata-irc-bot/usr/local/go/src/github.com/slok/kubewebhook/pkg/log (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/log (from $GOPATH) package github.com/slok/kubewebhook/pkg/webhook/context: cannot find package "github.com/slok/kubewebhook/pkg/webhook/context" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/webhook/context (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/webhook/context (from $GOPATH) package16:39
kata-irc-botgithub.com/slok/kubewebhook/pkg/webhook/mutating: cannot find package "github.com/slok/kubewebhook/pkg/webhook/mutating" in any of: /usr/local/go/src/github.com/slok/kubewebhook/pkg/webhook/mutating (from $GOROOT) /go/src/github.com/slok/kubewebhook/pkg/webhook/mutating (from $GOPATH) unrecognized import path "k8s.io/api/core/v1": https fetch: Get "https://k8s.io/api/core/v1?go-get=1": dial tcp: lookup k8s.io on 8.8.4.4:53: read udp16:39
kata-irc-bot172.17.0.2:51601->8.8.4.4:53: read: no route to host unrecognized import path "k8s.io/apimachinery/pkg/apis/meta/v1": https fetch: Get "https://k8s.io/apimachinery/pkg/apis/meta/v1?go-get=1": dial tcp: lookup k8s.io on 8.8.4.4:53: read udp 172.17.0.2:51842->8.8.4.4:53: read: no route to host```16:39
kata-irc-bot<fidencio> Is this actually built as part of some CI?16:45
kata-irc-bot<fidencio> Or is CI just using some image that could've been generated a long time ago?16:45
kata-irc-bot<archana.m.shinde> @salvador.fuentes ^16:49
kata-irc-bot<archana.m.shinde> Are we using a image that was generated a while ago16:49
kata-irc-bot<salvador.fuentes> no, not part of our CI16:51
kata-irc-bot<salvador.fuentes> yeah, we are using one generated time ago that is now on dockerhub16:51
kata-irc-bot<fidencio> can you point me to that? That would be more than enough for what I'm doing :slightly_smiling_face:16:52
kata-irc-bot<salvador.fuentes> ohh oks, sure16:52
kata-irc-bot<fidencio> I just want to use the admission hook16:53
kata-irc-bot<fidencio> no need to build / change it for now16:53
kata-irc-bot<salvador.fuentes> the image is this one: `katadocker/kata-webhook-example:latest`16:54
kata-irc-bot<salvador.fuentes> https://github.com/kata-containers/tests/blob/master/kata-webhook/deploy/webhook.yaml#L2316:54
kata-irc-bot<fidencio> Thanks!16:55
*** devimc has quit IRC16:58
*** devimc has joined #kata-dev16:58
*** jodh has quit IRC17:07
*** gwhaley has quit IRC17:08
sbrivioHi, newbie question: is there a general assumption that a pod with kata-runtime should configure "things" (say, network interfaces) in the same way as they would come up without kata-runtime?17:10
sbriviofor example, I wonder: default virtio-net interface comes up with "noqueue" tc (not) qdisc without kata-runtime, and with fq_codel on kata. Is that... intended? Desirable? Something that might cause issues?17:11
devimc@archana.m.shinde ^^17:20
*** pcaruana has quit IRC17:21
*** pcaruana has joined #kata-dev17:34
kata-irc-bot<fidencio> @salvador.fuentes @archana.m.shinde: MountVolume.SetUp failed for volume "webhook-certs" : secret "pod-annotate-webhook-certs" not found ... I guess it's because the images has certs that I don't have, maybe?18:32
kata-irc-bot<salvador.fuentes> @fidencio you should run `./create_certs.sh`  from the kata-webhook directory18:33
kata-irc-bot<salvador.fuentes> and then  `kubectl apply -f deploy/`18:33
kata-irc-bot<salvador.fuentes> from same dir18:33
kata-irc-bot<fidencio> aha!18:33
kata-irc-bot<salvador.fuentes> ;)18:33
kata-irc-bot<fidencio> okay, alive and kicking!18:34
kata-irc-bot<fidencio> Ow, what the greatest Mexican hero from my childhood would say "eso, eso, eso, eso"18:36
devimclol18:36
*** pcaruana has quit IRC18:40
*** davidgiluk has quit IRC19:37
*** sameo has quit IRC19:59
*** sameo has joined #kata-dev20:36
*** vgoyal has quit IRC20:45
*** devimc has quit IRC21:09
*** sameo has quit IRC21:35

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!