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 connect o GKE due to gke-gcloud-auth-plugin executable file not found #25

Open
bingwei-hong-partior opened this issue Oct 5, 2022 · 0 comments

Comments

@bingwei-hong-partior
Copy link

When try to use the chaos-actions on GKE cluster, it always encounter this issue of executable file not found.

time="2022-10-05T10:34:03Z" level=info msg="exit status 1: Unable to connect to the server: getting credentials: exec: exec: "gke-gcloud-auth-plugin": executable file not found in $PATH\n"
time="2022-10-05T10:34:03Z" level=info msg="Error: exit status 1"

Full log below:

/usr/bin/docker run --name e350d5da05cd70441190ed46c7bafd8425_3f6ee7 --label 5364e3 --workdir /github/workspace --rm -e "KUBE_CONFIG_DATA" -e "INSTALL_LITMUS" -e "APP_NS" -e "APP_LABEL" -e "APP_KIND" -e "EXPERIMENT_NAME" -e "EXPERIMENT_IMAGE" -e "EXPERIMENT_IMAGE_TAG" -e "IMAGE_PULL_POLICY" -e "TARGET_CONTAINER" -e "TOTAL_CHAOS_DURATION" -e "CHAOS_INTERVAL" -e "CONTAINER_RUNTIME" -e "LITMUS_CLEANUP" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/litmus-chaos-test/litmus-chaos-test":"/github/workspace" 5364e3:50d5da05cd70441190ed46c7bafd8425
Cloning into 'chaos-ci-lib'...
Note: switching to 'af07034b6c4875217ee785e6e552eae57e6b0286'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

go: downloading github.com/onsi/ginkgo v1.16.2
go: downloading github.com/onsi/gomega v1.12.0
go: downloading k8s.io/apimachinery v0.0.0-20191004115801-a2eda9f80ab8
go: downloading k8s.io/client-go v0.0.0-20191016111102-bec269661e48
go: downloading k8s.io/klog v1.0.0
go: downloading github.com/litmuschaos/chaos-operator v0.0.0-20210430184607-cb675e58922d
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
go: downloading github.com/litmuschaos/litmus-go v0.0.0-20210430161537-788b26f5b445
go: downloading k8s.io/api v0.0.0-20191016110408-35e52d86657a
go: downloading github.com/sirupsen/logrus v1.7.0
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/google/gofuzz v1.1.0
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
go: downloading github.com/imdario/mergo v0.3.9
go: downloading github.com/spf13/pflag v1.0.5
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading github.com/go-openapi/spec v0.19.7
go: downloading k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
go: downloading sigs.k8s.io/controller-runtime v0.4.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading sigs.k8s.io/yaml v1.2.0
go: downloading golang.org/x/sys v0.0.0-20210423082822-04245dca01da
go: downloading github.com/nxadm/tail v1.4.8
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/googleapis/gnostic v0.4.0
go: downloading golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1
go: downloading k8s.io/utils v0.0.0-20200414100711-2df71ebbae66
go: downloading cloud.google.com/go v0.54.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/json-iterator/go v1.1.9
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/go-openapi/jsonpointer v0.19.3
go: downloading github.com/go-openapi/jsonreference v0.19.3
go: downloading github.com/go-openapi/swag v0.19.9
go: downloading github.com/emicklei/go-restful v2.12.0+incompatible
go: downloading golang.org/x/text v0.3.6
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/mailru/easyjson v0.7.1
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
=== RUN TestInstallLitmus
Running Suite: BDD test

Random Seed: 1664966043
Will run 1 of 1 specs

I1005 10:34:03.782150 3866 install-litmus_test.go:50] [PreReq]: Getting the ENVs for the test
time="2022-10-05T10:34:03Z" level=info msg="Installing Litmus ..."
time="2022-10-05T10:34:03Z" level=info msg="Updating ChaosOperator Image ..."
time="2022-10-05T10:34:03Z" level=info msg="Updating Chaos Runner Image ..."
time="2022-10-05T10:34:03Z" level=info msg="exit status 1: Unable to connect to the server: getting credentials: exec: exec: "gke-gcloud-auth-plugin": executable file not found in $PATH\n"
time="2022-10-05T10:34:03Z" level=info msg="Error: exit status 1"
STEP: [PreChaos]: Getting kubeconfig and generate clientset
STEP: [PreChaos]: Fetching all default ENVs
STEP: Installing Litmus
• Failure [0.109 seconds]
BDD of Litmus installation
/github/home/go/src/github.com/litmuschaos/chaos-ci-lib/litmus/install-litmus_test.go:33
Check for the Litmus components
/github/home/go/src/github.com/litmuschaos/chaos-ci-lib/litmus/install-litmus_test.go:36
Should check for creation of Litmus [It]
/github/home/go/src/github.com/litmuschaos/chaos-ci-lib/litmus/install-litmus_test.go:38

Litmus installation failed, due to {fail to apply litmus installation file, err: exit status 1}
Expected
    <*errors.fundamental | 0xc0001241e0>: {
        msg: "fail to apply litmus installation file, err: exit status 1",
        stack: [0xfe52[25](https://github.com/BingweiH/litmus-chaos-test/actions/runs/3189114833/jobs/5202554715#step:3:26), 0x1034bff, 0xfeb[29](https://github.com/BingweiH/litmus-chaos-test/actions/runs/3189114833/jobs/5202554715#step:3:30)1, 0xfeac85, 0xfea35b, 0xfed809, 0xfed1f2, 0xff9651, 0xff9376, 0xff89c5, 0xffae05, 0x1005489, 0x10052aa, 0x10[34](https://github.com/BingweiH/litmus-chaos-test/actions/runs/3189114833/jobs/5202554715#step:3:35)9a5, 0x516b4b, 0x46dcc1],
    }
to be nil

/github/home/go/src/github.com/litmuschaos/chaos-ci-lib/litmus/install-litmus_test.go:56

Summarizing 1 Failure:

[Fail] BDD of Litmus installation Check for the Litmus components [It] Should check for creation of Litmus
/github/home/go/src/github.com/litmuschaos/chaos-ci-lib/litmus/install-litmus_test.go:56

Ran 1 of 1 Specs in 0.113 seconds
FAIL! -- 0 Passed | 1 Failed | 0 Pending | 0 Skipped
--- FAIL: TestInstallLitmus (0.11s)
FAIL
FAIL command-line-arguments 0.140s
FAIL

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

1 participant