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

No Auth Provider found for name "gcp" #192

Closed
maprietom opened this issue May 20, 2019 · 8 comments · Fixed by #231
Closed

No Auth Provider found for name "gcp" #192

maprietom opened this issue May 20, 2019 · 8 comments · Fixed by #231
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/high

Comments

@maprietom
Copy link

maprietom commented May 20, 2019

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

What happened:
panic: No Auth Provider found for name "gcp"

goroutine 1 [running]:
volcano.sh/volcano/vendor/github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/versioned/typed/scheduling/v1alpha1.NewForConfigOrDie(...)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/vendor/github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/versioned/typed/scheduling/v1alpha1/scheduling_client.go:65
volcano.sh/volcano/vendor/github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/versioned.NewForConfigOrDie(0xc000288000, 0x0)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/vendor/github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/versioned/clientset.go:85 +0x10d
volcano.sh/volcano/pkg/cli/queue.ListQueue(0xc0000bfd08, 0x0)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/pkg/cli/queue/list.go:57 +0x7f
main.buildQueueCmd.func2(0xc000204f00, 0x1c095b0, 0x0, 0x0)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/cmd/cli/queue.go:45 +0x22
volcano.sh/volcano/vendor/github.com/spf13/cobra.(*Command).execute(0xc000204f00, 0x1c095b0, 0x0, 0x0, 0xc000204f00, 0x1c095b0)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/vendor/github.com/spf13/cobra/command.go:766 +0x2ae
volcano.sh/volcano/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc000107900, 0xc0000bff70, 0x1, 0x1)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/vendor/github.com/spf13/cobra/command.go:852 +0x2c0
volcano.sh/volcano/vendor/github.com/spf13/cobra.(*Command).Execute(...)
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/vendor/github.com/spf13/cobra/command.go:800
main.main()
        /home/miguelangel_prieto_martos/gopath/src/volcano.sh/volcano/cmd/cli/vkctl.go:47 +0x194

What you expected to happen:
No error

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
I have resolved this issue with the import _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" in volcano.sh/volcano/pkg/cli/queue/util.go

Environment:

  • Volcano Version: release-0.1
  • Kubernetes version (use kubectl version): v1.13.5-gke.10
  • Cloud provider or hardware configuration: GCP
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@k82cn
Copy link
Member

k82cn commented May 20, 2019

@asifdxtreme , please help on that.

@k82cn
Copy link
Member

k82cn commented May 20, 2019

As far as I known, we already import gcp at cmd/kube-batch/app/service.go

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

@k82cn
Copy link
Member

k82cn commented May 20, 2019

/kind bug
/priority high

@volcano-sh-bot volcano-sh-bot added kind/bug Categorizes issue or PR as related to a bug. priority/high labels May 20, 2019
@TommyLike
Copy link
Contributor

Are we using this site for kube-batch repo as well?

@k82cn
Copy link
Member

k82cn commented Jun 4, 2019

Are we using this site for kube-batch repo as well?

Yes, it's the scheduler of volcano; we're going to trace everything in this repo.

@k82cn
Copy link
Member

k82cn commented Jun 9, 2019

/assign @TommyLike

please help on this on when you're back from vocation :)

@TommyLike
Copy link
Contributor

@k82cn, sure will handle it next week:)

@k82cn
Copy link
Member

k82cn commented Jun 17, 2019

@maprietom , please have a try with the latest code :)

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. priority/high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants