Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install kubetest #15700

Closed
ozbillwang opened this issue Dec 29, 2019 · 9 comments
Closed

can't install kubetest #15700

ozbillwang opened this issue Dec 29, 2019 · 9 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ozbillwang
Copy link

What happened:

master $ go get -u k8s.io/test-infra/kubetest
package github.com/aws/aws-k8s-tester/ekstester: cannot find package "github.com/aws/aws-k8s-tester/ekstester" in any of:
        /usr/local/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOROOT)
        /opt/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOPATH)

Anything else we need to know?:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04

master $ kubectl get nodes
NAME     STATUS   ROLES    AGE   VERSION
master   Ready    master   30m   v1.17.0
node01   Ready    <none>   28m   v1.17.0
master $
@ozbillwang ozbillwang added the kind/bug Categorizes issue or PR as related to a bug. label Dec 29, 2019
@ozbillwang
Copy link
Author

I also try with golang container, get same issue

$ cat Dockerfile
FROM golang:1.13
RUN go get -u k8s.io/test-infra/kubetest

$ docker build -t kubetest .
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM golang:1.13
 ---> ed081345a3da
Step 2/2 : RUN go get -u k8s.io/test-infra/kubetest
 ---> Running in f131764f431e
package github.com/aws/aws-k8s-tester/ekstester: cannot find package "github.com/aws/aws-k8s-tester/ekstester" in any of:
	/usr/local/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOROOT)
	/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOPATH)

@danielvaughan
Copy link

danielvaughan commented Jan 6, 2020

I am experiencing a similar issue.

Linux version 4.15.0-72-generic (buildd@lcy01-amd64-026) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019
kubectl get nodes
NAME   STATUS   ROLES    AGE   VERSION
pib    Ready    <none>   15d   v1.16.3-k3s.2
vm1    Ready    master   15d   v1.16.3-k3s.2
vm3    Ready    <none>   14d   v1.16.3-k3s.2
vm4    Ready    <none>   15d   v1.16.3-k3s.2
vm2    Ready    <none>   15d   v1.16.3-k3s.2
pid    Ready    <none>   14d   v1.16.3-k3s.2
go/src/k8s.io/test-infra/kubetest/eks.go:34:2: cannot find package "github.com/aws/aws-k8s-tester/ekstester" in any of:
	/usr/lib/go-1.10/src/github.com/aws/aws-k8s-tester/ekstester (from $GOROOT)
	/home/dvaughan/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOPATH)

@mattjmcnaughton
Copy link
Contributor

+1 I'm also unfortunately having the same issue when trying to use go get -u.

If its helpful, I worked around it by cloning the test-infra repo and then running go install k8s.io/test-infra/kubetest.

@ozbillwang
Copy link
Author

ozbillwang commented Jan 6, 2020

Thanks, @mattjmcnaughton . I can install now.

FROM golang:1.13

RUN git clone https://github.com/kubernetes/test-infra.git
RUN cd test-infra && \
    go install k8s.io/test-infra/kubetest

@danielvaughan
Copy link

I still have the problem. It looks like there was a rewrite of the aws-k8s-tester in the last couple weeks that removed and renamed ekstester. See this commit: aws/aws-k8s-tester@2e28fc4

@danielvaughan
Copy link

My bad - it looks like I was trying to build using go 1.10 without module support. Updated to 1.13 and now ok.

@gerrywastaken
Copy link

gerrywastaken commented Jan 24, 2020

@ozbillwang this isn't wasn't fixed this is only a work around. I suggest reopening this.

$ go get k8s.io/test-infra/kubetest
package github.com/aws/aws-k8s-tester/ekstester: cannot find package "github.com/aws/aws-k8s-tester/ekstester" in any of:
	/usr/local/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOROOT)
	/home/nope/go/src/github.com/aws/aws-k8s-tester/ekstester (from $GOPATH)
$ go version
go version go1.13.6 linux/amd64

@danielvaughan I think you must have done something else to fix the issue as it still doesn't work on 1.13.6 (latest release right now).

@ozbillwang
Copy link
Author

ozbillwang commented Jan 24, 2020

@gerrywastaken

Did you see the Dockerfile i provided? follow it up, you should be fine to install it

#15700 (comment)

@torenware
Copy link

@ozbillwang How would I use this image to do a conformance test for my k8s cluster? Your image builds fine; I just don't see how to kick off a test run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

5 participants