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

unable to run k-bench for GKE clusters #39

Open
vdesikanvmware opened this issue Dec 16, 2021 · 5 comments
Open

unable to run k-bench for GKE clusters #39

vdesikanvmware opened this issue Dec 16, 2021 · 5 comments

Comments

@vdesikanvmware
Copy link

vdesikanvmware commented Dec 16, 2021

Running in to the following issue while running k-bench against GKE.
``
tceuser@tkg-cli-client:~/k-bench$ ./run.sh -r gke_notap -t all
Running test command_in_container_predicate and results redirected to "./results_gke_notap_15-Dec-2021-08-58-54-am/command_in_container_predicate"
Starting benchmark, writing logs to results_gke_notap_15-Dec-2021-08-58-54-am/command_in_container_predicate/kbench.log...
Running workload, please check kbench log for details...
panic: no Auth Provider found for name "gcp"

goroutine 1 [running]:
k-bench/util.Run(0xc000206800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/k-bench/util/testdriver.go:164 +0x22f1
main.main()
/root/go/src/k-bench/cmd/kbench.go:193 +0xe76
Running test command_outside_container_and_resource_predicate and results redirected to "./results_gke_notap_15-Dec-2021-08-58-54-am/command_outside_container_and_resource_predicate"
Starting benchmark, writing logs to results_gke_notap_15-Dec-2021-08-58-54-am/command_outside_container_and_resource_predicate/kbench.log...
Running workload, please check kbench log for details...
panic: no Auth Provider found for name "gcp"

goroutine 1 [running]:
k-bench/util.Run(0xc00023a800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/k-bench/util/testdriver.go:164 +0x22f1
main.main()
/root/go/src/k-bench/cmd/kbench.go:193 +0xe76
Running test cp_heavy_12client and results redirected to "./results_gke_notap_15-Dec-2021-08-58-54-am/cp_heavy_12client"
Starting benchmark, writing logs to results_gke_notap_15-Dec-2021-08-58-54-am/cp_heavy_12client/kbench.log...
Running workload, please check kbench log for details...
panic: no Auth Provider found for name "gcp"

goroutine 1 [running]:
k-bench/util.Run(0xc0001f2800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/k-bench/util/testdriver.go:164 +0x22f1
main.main()
/root/go/src/k-bench/cmd/kbench.go:193 +0xe76
``

@vdesikanvmware
Copy link
Author

Any updates on this issue?

@vdesikanvmware
Copy link
Author

Is there a fix planned for this issue?

@krizh1990
Copy link

krizh1990 commented Apr 29, 2022

Adding this line in headers of testdriver.go fixed the issue

_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"

@vipinms2
Copy link

vipinms2 commented May 5, 2022

I have added "k8s.io/client-go/plugin/pkg/client/auth/gcp" in the header as

import (
        "k8s.io/client-go/plugin/pkg/client/auth/gcp"
        "bytes"
        "io/ioutil"
        "k-bench/manager"
        "k8s.io/client-go/dynamic"
        "reflect"
        "strings"
        "sync"
        "time"

        log "github.com/sirupsen/logrus"
        metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
        "k8s.io/client-go/kubernetes"
        restclient "k8s.io/client-go/rest"
        //"k8s.io/client-go/tools/clientcmd"
        "k-bench/perf_util"
        "os"
        "os/exec"
        "path/filepath"
)

I am facing the below error while performing ./run.sh -t dp_fio:

./run.sh -t dp_fio
Running test dp_fio and results redirected to "./results_run_05-May-2022-12-14-18-pm/dp_fio"
W0505 12:14:18.254344  150342 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
Error from server (NotFound): error when creating "./config/dp_fio/fio_pvc.yaml": namespaces "kbench-pod-namespace" not found
Starting benchmark, writing logs to results_run_05-May-2022-12-14-18-pm/dp_fio/kbench.log... 
Running workload, please check kbench log for details... 
panic: no Auth Provider found for name "gcp"

goroutine 1 [running]:
k-bench/util.Run(0xc000222600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/go/src/k-bench/util/testdriver.go:164 +0x22f1
main.main()
	/root/go/src/k-bench/cmd/kbench.go:195 +0xdcd

@satishsudini
Copy link

satishsudini commented Aug 29, 2022

_k8s.io/client-go/plugin/pkg/client/auth/gcp .Adding this in test driver resolved the issue
import (
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
"bytes"
"io/ioutil"
"k-bench/manager"
"k8s.io/client-go/dynamic"
"reflect"
"strings"
"sync"
"time"

@chmey chmey mentioned this issue Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants