*** sameo has joined #kata-dev | 05:10 | |
*** jodh has joined #kata-dev | 06:37 | |
*** dklyle has quit IRC | 06:50 | |
*** sgarzare has joined #kata-dev | 07:23 | |
*** gwhaley has joined #kata-dev | 08:05 | |
*** davidgiluk has joined #kata-dev | 08:05 | |
*** gwhaley has quit IRC | 11:06 | |
*** devimc has joined #kata-dev | 11:54 | |
*** vgoyal has joined #kata-dev | 12:09 | |
*** gwhaley has joined #kata-dev | 12:11 | |
*** ailan has joined #kata-dev | 12:12 | |
*** dklyle has joined #kata-dev | 14:36 | |
*** pcaruana has quit IRC | 14:44 | |
*** pcaruana has joined #kata-dev | 14:45 | |
*** ailan has quit IRC | 15: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 -t | 15:50 |
---|---|---|
kata-irc-bot | katadocker/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 package | 15: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 package | 15: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/mutating | 15: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 -o | 15: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 IRC | 16:03 | |
kata-irc-bot | <greg.bock> local env != env inside of container | 16:09 |
kata-irc-bot | <greg.bock> would be my guess | 16:09 |
*** sameo has joined #kata-dev | 16:11 | |
*** sgarzare has quit IRC | 16:24 | |
kata-irc-bot | <salvador.fuentes> hi @fidencio, yeah I guess the env is the issue. If so, documentation needs be updated, let me check | 16:27 |
kata-irc-bot | <archana.m.shinde> @fidencio @salvador.fuentes https://github.com/kata-containers/tests/blob/master/kata-webhook/Dockerfile#L8 | 16:28 |
kata-irc-bot | <archana.m.shinde> The dockerfile copies the vendor directory | 16:28 |
kata-irc-bot | <archana.m.shinde> but since then the vendor directory seems to have moved from there | 16:29 |
kata-irc-bot | <archana.m.shinde> https://github.com/kata-containers/tests/commit/6e5f72adade11e78dfce112eb286444203c9d4ba#diff-0b97967c9aeebfe5054e2ecb584d4e83 | 16:29 |
kata-irc-bot | <archana.m.shinde> That seems to be the issue | 16: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-0b97967c9aeebfe5054e2ecb584d4e83 | 16:30 |
*** devimc has quit IRC | 16:35 | |
*** devimc has joined #kata-dev | 16: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) package | 16:39 |
kata-irc-bot | github.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 udp | 16:39 |
kata-irc-bot | 172.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 ago | 16:49 |
kata-irc-bot | <salvador.fuentes> no, not part of our CI | 16:51 |
kata-irc-bot | <salvador.fuentes> yeah, we are using one generated time ago that is now on dockerhub | 16: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, sure | 16:52 |
kata-irc-bot | <fidencio> I just want to use the admission hook | 16:53 |
kata-irc-bot | <fidencio> no need to build / change it for now | 16: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#L23 | 16:54 |
kata-irc-bot | <fidencio> Thanks! | 16:55 |
*** devimc has quit IRC | 16:58 | |
*** devimc has joined #kata-dev | 16:58 | |
*** jodh has quit IRC | 17:07 | |
*** gwhaley has quit IRC | 17:08 | |
sbrivio | Hi, 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 |
sbrivio | for 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 IRC | 17:21 | |
*** pcaruana has joined #kata-dev | 17: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 directory | 18:33 |
kata-irc-bot | <salvador.fuentes> and then `kubectl apply -f deploy/` | 18:33 |
kata-irc-bot | <salvador.fuentes> from same dir | 18: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 |
devimc | lol | 18:36 |
*** pcaruana has quit IRC | 18:40 | |
*** davidgiluk has quit IRC | 19:37 | |
*** sameo has quit IRC | 19:59 | |
*** sameo has joined #kata-dev | 20:36 | |
*** vgoyal has quit IRC | 20:45 | |
*** devimc has quit IRC | 21:09 | |
*** sameo has quit IRC | 21:35 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!