@kubernetes/sig-testing-bugs
/sig testing
Upon following the documentation located here: https://github.com/kubernetes/test-infra/tree/master/kubetest
it fails for me when i try an do # go get -u k8s.io/test-infra/kubetest on unbuntu bionic I have set my GOROOT an GOPATH variables.
/help
/good-first-issue
@rus4:
This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.
In response to this:
/help
/good-first-issue
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
@rus4 i also faced the same probelm, but i solved it by adding the path of kubetest executable in $PATH in ubuntu
@phoenixking25 Thanks for your reply, still not getting anywhere fast here you can see
as root
# exportPATH=$PATH:/root/go/bin/kubetest `
` # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/root/go/bin/kubetest `
~/go/bin# ./kubetest --build
2019/01/15 10:12:25 util.go:46: Warning: Couldn't find directory src/k8s.io/kubernetes under any of GOPATH /root/go, defaulting to /root/go/src/k8s.io/kubernetes
2019/01/15 10:12:25 process.go:153: Running: make -C /root/go/src/k8s.io/kubernetes quick-release
make: *** /root/go/src/k8s.io/kubernetes: No such file or directory. Stop.
2019/01/15 10:12:25 process.go:155: Step 'make -C /root/go/src/k8s.io/kubernetes quick-release' finished in 775.664碌s
2019/01/15 10:12:25 main.go:315: Something went wrong: failed to acquire k8s binaries: error during make -C /root/go/src/k8s.io/kubernetes quick-release: exit status 2
root@BIONIC1:~/go/bin# cd /root/go/src/k8s.io/kubernetes
-bash: cd: /root/go/src/k8s.io/kubernetes: No such file or directory
as my uid
@BIONIC1:~$ kubetest --build
2019/01/15 10:18:41 util.go:46: Warning: Couldn't find directory src/k8s.io/kubernetes under any of GOPATH /home/rus/go/pkg, defaulting to /home/rus/go/pkg/src/k8s.io/kubernetes
2019/01/15 10:18:41 process.go:153: Running: make -C /home/rus/go/pkg/src/k8s.io/kubernetes quick-release
make: *** /home/rus/go/pkg/src/k8s.io/kubernetes: No such file or directory. Stop.
2019/01/15 10:18:41 process.go:155: Step 'make -C /home/rus/go/pkg/src/k8s.io/kubernetes quick-release' finished in 933.119碌s
2019/01/15 10:18:41 main.go:315: Something went wrong: failed to acquire k8s binaries: error during make -C /home/rus/go/pkg/src/k8s.io/kubernetes quick-release: exit status 2
@rus4 here's what i added to my path /home/<username>/go/bin , point is dont add kubetest in path. Give path of the dir that is containing the executable and yeah please check for the executable if it is present there or not beforehand
Sure that's what I did originally but still no joy ,
~# export PATH=$PATH:/root/go/bin
root@BIONIC1:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/root/go/bin/kubetest:/root/go/bin
' root@BIONIC1:~# file /root/go/bin/kubetest
/root/go/bin/kubetest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, with debug_info, not stripped'
'root@BIONIC1:~# ls -l /root/go/bin/kubetest
-rwxr-xr-x 1 root root 52058377 Jan 14 17:40 /root/go/bin/kubetest'
root@BIONIC1:~# kubetest --build
2019/01/15 10:34:12 util.go:46: Warning: Couldn't find directory src/k8s.io/kubernetes under any of GOPATH /root/go, defaulting to /root/go/src/k8s.io/kubernetes
2019/01/15 10:34:12 process.go:153: Running: make -C /root/go/src/k8s.io/kubernetes quick-release
make: *** /root/go/src/k8s.io/kubernetes: No such file or directory. Stop.
2019/01/15 10:34:12 process.go:155: Step 'make -C /root/go/src/k8s.io/kubernetes quick-release' finished in 750.079碌s
2019/01/15 10:34:12 main.go:315: Something went wrong: failed to acquire k8s binaries: error during make -C /root/go/src/k8s.io/kubernetes quick-release: exit status 2
@phoenixking25 Im guessing theres a step that is not documented or written in another section that is required to get this working either that or something wrong with my base bionic install
You got it running or not?
not yet
well adding dir path to $PATH worked for me
@phoenixking25 looking at this again does it need kubernetes/kubernetes from github to run ? (upto now I not been using that actual one) is it using a docker container with all the ancillary stuff rather than containing all it needs in its own install? in the docs this containerized version is specified for development but not for testing i guess its assumed/implied its this way for testing?
this is the bit i did not do last time
$ cd kubernetes/
BIONIC1:~/work_directory/kubernetes$ build/run.sh make
+++ [0115 11:21:05] Verifying Prerequisites....
+++ [0115 11:21:06] Building Docker image kube-build:build-ca5af74d58-5-v1.11.4-1
cloning test-infra and then doing:
cd kubetest
go build
works fine for me. the resulted binary is in the kubetest folder.
Hi @neolit123 thanks for having a go an helping, that build seemed to run ok , yet then when i try to execute the created binary it says cannot execute binary ... so for now it still not working
root@BIONIC1:~/kubernetes# git clone https://github.com/kubernetes/test-infra.git
Cloning into 'test-infra'...
remote: Enumerating objects: 249, done.
remote: Counting objects: 100% (249/249), done.
remote: Compressing objects: 100% (196/196), done.
remote: Total 133783 (delta 96), reused 111 (delta 48), pack-reused 133534
Receiving objects: 100% (133783/133783), 71.85 MiB | 31.06 MiB/s, done.
Resolving deltas: 100% (93866/93866), done.
Checking out files: 100% (5179/5179), done.
root@BIONIC1:~/kubernetes# ls -lrt
total 12
drwxr-xr-x 2 root root 4096 Jan 17 17:07 etcd
drwxr-xr-x 21 root root 4096 Jan 17 18:44 kubernetes
drwxr-xr-x 33 root root 4096 Jan 21 12:28 test-infra
root@BIONIC1:~/kubernetes# cd test-infra/
root@BIONIC1:~/kubernetes/test-infra# cd kubetest/
root@BIONIC1:~/kubernetes/test-infra/kubetest# go build
go: finding github.com/go-openapi/swag v0.0.0-20171111214437-cf0bdb963811
go: finding github.com/PuerkitoBio/purell v1.1.0
go: finding github.com/Azure/azure-storage-blob-go v0.0.0-20180507052152-66ba96e49ebb
go: finding github.com/Azure/azure-pipeline-go v0.0.0-20180507050906-098e490af5dc
go: finding github.com/aws/aws-k8s-tester v0.0.0-20190114231546-b411acf57dfe
go: finding github.com/mattbaird/jsonpatch v0.0.0-20171005235357-81af80346b1a
go: finding github.com/denisenkom/go-mssqldb v0.0.0-20190111225525-2fea367d496d
go: finding github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce
go: finding github.com/go-openapi/jsonreference v0.0.0-20161105162150-36d33bfe519e
go: finding cloud.google.com/go v0.30.0
go: finding github.com/knative/build v0.2.0
go: finding github.com/knative/pkg v0.0.0-20181205230426-0e41760cea1d
go: finding github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1
go: finding github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47
go: finding k8s.io/api v0.0.0-20181128191700-6db15a15d2d3
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/go-openapi/jsonpointer v0.0.0-20170102174223-779f45308c19
go: finding github.com/deckarep/golang-set v0.0.0-20171013212420-1d4478f51bed
go: finding github.com/bwmarrin/snowflake v0.0.0-20170221160716-02cc386c183a
go: finding github.com/google/go-querystring v0.0.0-20150414214848-547ef5ac9797
go: finding github.com/docker/distribution v0.0.0-20170726174610-edc3ab29cdff
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/golang/groupcache v0.0.0-20180513044358-24b0969c4cb7
go: finding github.com/google/go-github v0.0.0-20170604030111-7a51fb928f52
go: finding github.com/peterbourgon/diskv v0.0.0-20171120014656-2973218375c3
go: finding github.com/go-yaml/yaml v2.1.0+incompatible
go: finding github.com/mitchellh/ioprogress v0.0.0-20180201004757-6a23b12fa88e
go: finding github.com/onsi/gomega v1.4.2
go: finding go.uber.org/atomic v1.3.2
go: finding github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19
go: finding github.com/influxdata/influxdb v0.0.0-20161215172503-049f9b42e9a5
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding github.com/docker/docker v0.0.0-20171206114025-5e5fadb3c020
go: finding github.com/mattn/go-zglob v0.0.0-20180607075734-49693fbb3fe3
go: finding k8s.io/apimachinery v0.0.0-20181015213631-60666be32c5d
go: finding github.com/go-openapi/spec v0.0.0-20171219195406-fa03337d7da5
go: finding github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/mailru/easyjson v0.0.0-20171120080333-32fa128f234d
go: finding k8s.io/client-go v9.0.0+incompatible
go: finding sigs.k8s.io/yaml v1.1.0
go: finding github.com/knative/build v0.1.2
go: finding github.com/json-iterator/go v1.1.5
go: finding github.com/jinzhu/now v0.0.0-20181116074157-8ec929ed50c3
go: finding github.com/bazelbuild/buildtools v0.0.0-20180226164855-80c7f0d45d7e
go: finding github.com/go-sql-driver/mysql v0.0.0-20160411075031-7ebe0a500653
go: finding github.com/satori/go.uuid v0.0.0-20160713180306-0aa62d5ddceb
go: finding github.com/Microsoft/go-winio v0.4.6
go: finding github.com/golang/mock v1.1.1
go: finding github.com/googleapis/gnostic v0.1.0
go: finding github.com/googleapis/gax-go v2.0.0+incompatible
go: finding github.com/docker/go-connections v0.3.0
go: finding github.com/shurcooL/graphql v0.0.0-20180924043259-e4a3a37e6d42
go: finding github.com/NYTimes/gziphandler v0.0.0-20160419202541-63027b26b87e
go: finding github.com/prometheus/client_golang v0.9.0
go: finding github.com/opencontainers/go-digest v1.0.0-rc1
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding google.golang.org/api v0.0.0-20181021000519-a2651947f503
go: finding golang.org/x/sys v0.0.0-20181004145325-8469e314837c
go: finding github.com/pelletier/go-toml v1.2.0
go: finding google.golang.org/appengine v1.2.0
go: finding github.com/mattn/go-sqlite3 v0.0.0-20160514122348-38ee283dabf1
go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: finding k8s.io/utils v0.0.0-20181019225348-5e321f9a457c
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/BurntSushi/toml v0.3.0
go: finding github.com/andygrunwald/go-gerrit v0.0.0-20171029143327-95b11af228a1
go: finding k8s.io/test-infra v0.0.0-20181019233642-2e10a0bbe9b3
go: finding github.com/joshdk/go-junit v0.0.0-20180412085512-bf76511d0869
go: finding github.com/aws/aws-sdk-go v1.16.18
go: finding golang.org/x/text v0.3.0
go: finding github.com/google/go-cmp v0.2.0
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding github.com/gorilla/securecookie v1.1.1
go: finding github.com/jinzhu/inflection v0.0.0-20151009084129-3272df6c21d0
go: finding github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/gorilla/mux v1.6.2
go: finding github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5
go: finding github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/hashicorp/go-multierror v0.0.0-20171204182908-b7773ae21874
go: finding k8s.io/apimachinery v0.0.0-20181128191346-49ce2735e507
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/Azure/go-autorest v10.15.5+incompatible
go: finding vbom.ml/util v0.0.0-20170409195630-256737ac55c4
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/gregjones/httpcache v0.0.0-20160524185540-16db777d8ebe
go: finding golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e
go: finding golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4
go: finding google.golang.org/grpc v1.15.0
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/opencontainers/image-spec v1.0.1
go: finding github.com/hpcloud/tail v1.0.0
go: finding github.com/google/martian v2.1.0+incompatible
go: finding go.etcd.io/etcd v0.0.0-20181031231232-83304cfc808c
go: finding go.uber.org/zap v1.9.1
go: finding k8s.io/kube-openapi v0.0.0-20180711000925-0cf8f7e6ed1d
go: finding github.com/Azure/azure-sdk-for-go v21.1.0+incompatible
go: finding github.com/lib/pq v1.0.0
go: finding github.com/gophercloud/gophercloud v0.0.0-20181215224939-bdd8b1ecd793
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding gopkg.in/inf.v0 v0.9.1
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding github.com/client9/misspell v0.3.4
go: finding github.com/evanphx/json-patch v4.1.0+incompatible
go: finding github.com/dustin/go-humanize v1.0.0
go: finding github.com/shurcooL/githubv4 v0.0.0-20180925043049-51d7b505e2e9
go: finding golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
go: finding google.golang.org/genproto v0.0.0-20181016170114-94acd270e44e
go: finding github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
go: finding github.com/djherbis/atime v1.0.0
go: finding github.com/qor/inflection v0.0.0-20180308033659-04140366298a
go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522
go: finding github.com/fsouza/fake-gcs-server v0.0.0-20180612165233-e85be23bdaa8
go: finding github.com/blang/semver v3.5.1+incompatible
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/mattn/go-isatty v0.0.4
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding google.golang.org/grpc v1.14.0
go: finding github.com/prometheus/client_golang v0.8.0
go: finding github.com/kr/pty v1.0.0
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding github.com/prometheus/procfs v0.0.0-20180612222113-7d6f385de8be
go: finding go.opencensus.io v0.17.0
go: finding github.com/sirupsen/logrus v1.0.5
go: finding gopkg.in/airbrake/gobrake.v2 v2.0.9
go: finding github.com/mattn/go-runewidth v0.0.2
go: finding google.golang.org/genproto v0.0.0-20180608181217-32ee49c4dd80
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.0
go: finding github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
go: finding github.com/prometheus/client_model v0.0.0-20170216185247-6f3806018612
go: finding github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/gogo/protobuf v1.0.0
go: finding github.com/sirupsen/logrus v1.1.1
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding golang.org/x/crypto v0.0.0-20180608092829-8ac0e0d97ce4
go: finding github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e
go: finding google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf
go: finding k8s.io/apiextensions-apiserver v0.0.0-20181128195303-1f84094d7e8e
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c
go: finding github.com/gorilla/sessions v1.1.3
go: finding github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5
go: finding github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding gopkg.in/cheggaaa/pb.v1 v1.0.25
go: finding github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe
go: finding github.com/urfave/cli v1.18.0
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding go.etcd.io/bbolt v1.3.1-etcd.7
go: finding github.com/jinzhu/gorm v0.0.0-20170316141641-572d0a0ab1eb
go: finding go.uber.org/multierr v1.1.0
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/docker/go-units v0.3.2
go: finding github.com/prometheus/common v0.0.0-20180518154759-7600349dcfe1
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a
go: finding github.com/coreos/go-semver v0.2.0
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/onsi/ginkgo v1.6.0
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273
go: finding github.com/gorilla/context v1.1.1
go: finding git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8
go: finding github.com/openzipkin/zipkin-go v0.1.1
go: finding k8s.io/api v0.0.0-20181018013834-843ad2d9b9ae
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding github.com/google/uuid v1.0.0
go: finding cloud.google.com/go v0.26.0
go: finding gopkg.in/robfig/cron.v2 v2.0.0-20150107220207-be2e0b0deed5
go: finding github.com/grpc-ecosystem/grpc-gateway v1.4.1
go: finding github.com/ugorji/go v1.1.1
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: finding github.com/fatih/color v1.7.0
go: downloading github.com/Azure/azure-sdk-for-go v21.1.0+incompatible
go: downloading github.com/aws/aws-sdk-go v1.16.18
go: downloading github.com/docker/docker v0.0.0-20171206114025-5e5fadb3c020
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/aws/aws-k8s-tester v0.0.0-20190114231546-b411acf57dfe
go: downloading github.com/Azure/azure-storage-blob-go v0.0.0-20180507052152-66ba96e49ebb
go: downloading golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e
go: downloading github.com/Azure/go-autorest v10.15.5+incompatible
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/satori/go.uuid v0.0.0-20160713180306-0aa62d5ddceb
go: downloading github.com/Azure/azure-pipeline-go v0.0.0-20180507050906-098e490af5dc
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading k8s.io/apimachinery v0.0.0-20181128191346-49ce2735e507
go: downloading k8s.io/client-go v9.0.0+incompatible
go: downloading github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: downloading github.com/gogo/protobuf v1.1.1
go: downloading github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19
go: downloading github.com/sirupsen/logrus v1.1.1
go: downloading github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: downloading sigs.k8s.io/yaml v1.1.0
go: downloading k8s.io/api v0.0.0-20181128191700-6db15a15d2d3
go: downloading golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: downloading golang.org/x/sys v0.0.0-20181004145325-8469e314837c
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: downloading github.com/ghodss/yaml v1.0.0
go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
go: downloading github.com/hashicorp/go-multierror v0.0.0-20171204182908-b7773ae21874
go: downloading golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4
go: downloading github.com/gregjones/httpcache v0.0.0-20160524185540-16db777d8ebe
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/googleapis/gnostic v0.1.0
go: downloading gopkg.in/yaml.v2 v2.2.1
go: downloading github.com/json-iterator/go v1.1.5
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/golang/protobuf v1.2.0
go: downloading github.com/peterbourgon/diskv v0.0.0-20171120014656-2973218375c3
go: downloading github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce
go: downloading github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/docker/go-connections v0.3.0
go: downloading github.com/docker/go-units v0.3.2
go: downloading github.com/opencontainers/image-spec v1.0.1
go: downloading github.com/opencontainers/go-digest v1.0.0-rc1
go: downloading github.com/docker/distribution v0.0.0-20170726174610-edc3ab29cdff
go: downloading github.com/pkg/errors v0.8.0
root@BIONIC1:~/kubernetes/test-infra/kubetest# ls -lrt
total 47516
-rw-r--r-- 1 root root 8875 Jan 21 12:28 README.md
-rw-r--r-- 1 root root 123 Jan 21 12:28 OWNERS
drwxr-xr-x 2 root root 4096 Jan 21 12:28 kubeadmdind
-rw-r--r-- 1 root root 22289 Jan 21 12:28 kops.go
drwxr-xr-x 2 root root 4096 Jan 21 12:28 kind
-rw-r--r-- 1 root root 23902 Jan 21 12:28 gke.go
-rw-r--r-- 1 root root 3421 Jan 21 12:28 federation.go
-rw-r--r-- 1 root root 4900 Jan 21 12:28 extract_test.go
-rw-r--r-- 1 root root 15814 Jan 21 12:28 extract_k8s.go
-rw-r--r-- 1 root root 6562 Jan 21 12:28 extract_federation.go
-rw-r--r-- 1 root root 9313 Jan 21 12:28 eks.go
-rw-r--r-- 1 root root 23790 Jan 21 12:28 e2e.go
drwxr-xr-x 2 root root 4096 Jan 21 12:28 e2e
-rw-r--r-- 1 root root 11252 Jan 21 12:28 dump_test.go
-rw-r--r-- 1 root root 11813 Jan 21 12:28 dump.go
drwxr-xr-x 2 root root 4096 Jan 21 12:28 conformance
-rw-r--r-- 1 root root 3306 Jan 21 12:28 build.go
-rw-r--r-- 1 root root 3204 Jan 21 12:28 BUILD.bazel
-rw-r--r-- 1 root root 3254 Jan 21 12:28 bash.go
-rw-r--r-- 1 root root 7442 Jan 21 12:28 azure_helpers.go
-rw-r--r-- 1 root root 19617 Jan 21 12:28 azure.go
-rw-r--r-- 1 root root 9714 Jan 21 12:28 anywhere_test.go
-rw-r--r-- 1 root root 15545 Jan 21 12:28 anywhere.go
-rw-r--r-- 1 root root 2873 Jan 21 12:28 util_test.go
-rw-r--r-- 1 root root 4074 Jan 21 12:28 util.go
drwxr-xr-x 2 root root 4096 Jan 21 12:28 util
-rw-r--r-- 1 root root 3809 Jan 21 12:28 stage.go
drwxr-xr-x 2 root root 4096 Jan 21 12:28 process
-rw-r--r-- 1 root root 1370 Jan 21 12:28 none.go
-rw-r--r-- 1 root root 1499 Jan 21 12:28 node.go
-rw-r--r-- 1 root root 6458 Jan 21 12:28 main_test.go
-rw-r--r-- 1 root root 37024 Jan 21 12:28 main.go
-rw-r--r-- 1 root root 6526 Jan 21 12:28 local.go
-rw-r--r-- 1 root root 3438 Jan 21 12:28 kubernetes_test.go
-rw-r--r-- 1 root root 4016 Jan 21 12:28 kubernetes.go
-rwxr-xr-x 1 root root 48309991 Jan 21 12:32 kubetest
root@BIONIC1:~/kubernetes/test-infra# uname -a
Linux BIONIC1 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@BIONIC1:~/kubernetes/test-infra/kubetest# file kubetest
kubetest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, not stripped
root@BIONIC1:~/kubernetes/test-infra# bash /root/kubernetes/test-infra/kubetest/kubetest
/root/kubernetes/test-infra/kubetest/kubetest: /root/kubernetes/test-infra/kubetest/kubetest: cannot execute binary file
@rus4
bash /root/kubernetes/test-infra/kubetest/kubetest
this would fail because bash cannot execute the elf binary.
try ./kubetest
also chmod +x kubetest if the file doesn't have executable permissions.
yeah im not sure if its doing anything , is this the expected result?
root@BIONIC1:~/kubernetes# ls -la test-infra/kubetest/kubetest
-rwxr-xr-x 1 root root 48309991 Jan 21 14:09 test-infra/kubetest/kubetest
root@BIONIC1:~/kubernetes# ./test-infra/kubetest/kubetest
root@BIONIC1:~/kubernetes# set -x o
root@BIONIC1:~/kubernetes# ./test-infra/kubetest/kubetest
+ ./test-infra/kubetest/kubetest
root@BIONIC1:~/kubernetes#
try passing a flag to it like --help.
also ideally you want to setup your paths as:
go/src/k8s.io/kubernetes
go/src/k8s.io/test-infra
not sure which variables you mean?
The import path for the test-infra repo is k8s.io/test-infra not github.com/kubernetes/test-infra. You should clone the repo to ${GOPATH}/src/k8s.io/test-infra. The kubernetes repo is similar (k8s.io/kubernetes).
That said, this is the wrong repo to ask for support for kubetest, so I'm going to go ahead and close this issue.