kubernetes / kops

Kubernetes Operations (kOps) - Production Grade k8s Installation, Upgrades and Management
https://kops.sigs.k8s.io/
Apache License 2.0
15.95k stars 4.65k forks source link

Error when create gke #12047

Closed sd2020bs closed 2 years ago

sd2020bs commented 3 years ago

/kind bug

1. What kops version are you running? The command kops version, will display this information. Version 1.21.0 2. What Kubernetes version are you running? kubectl version will print the version if a cluster is running or provide the Kubernetes version specified as a kops flag. 1.20.4-00 3. What cloud provider are you using? gcloud 4. What commands did you run? What is the simplest way to reproduce this issue? i tried by this: https://kops.sigs.k8s.io/getting_started/gce/ command: kops create cluster k8s-cluster.k8s.local --zones $ZONES --master-zones $ZONES --node-count 3 --state ${KOPS_STATE_STORE}/ --project=${PROJECT} --authorization=RBAC 5. What happened after the commands executed? i get error: I0726 14:35:53.446223 15793 featureflag.go:165] FeatureFlag "AlphaAllowGCE"=true

error reading cluster configuration "k8s-cluster.k8s.local": error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" }

6. What did you expect to happen?

7. Please provide your cluster manifest. Execute kops get --name my.example.com -o yaml to display your cluster manifest. You may want to remove your cluster name and other sensitive information.

8. Please run the commands with most verbose logging by adding the -v 10 flag. Paste the logs into this report, or in a gist and provide the gist link here. kops create cluster k8s-cluster.k8s.local --zones $ZONES --master-zones $ZONES --node-count 3 --state ${KOPS_STATE_STORE}/ --project=${PROJECT} --authorization=RBAC -v 10 I0726 15:05:54.281991 16965 featureflag.go:165] FeatureFlag "AlphaAllowGCE"=true I0726 15:05:54.309775 16965 factory.go:68] state store gs://kubernetes-clusters-sssik/ I0726 15:05:54.310038 16965 gsfs.go:245] Reading file "gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config" I0726 15:05:54.448258 16965 context.go:284] retrying after error error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" } I0726 15:05:55.519569 16965 gsfs.go:245] Reading file "gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config" I0726 15:05:55.560331 16965 context.go:284] retrying after error error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" } I0726 15:05:57.107976 16965 gsfs.go:245] Reading file "gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config" I0726 15:05:57.148857 16965 context.go:284] retrying after error error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" } I0726 15:05:59.612412 16965 gsfs.go:245] Reading file "gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config" I0726 15:05:59.666522 16965 context.go:288] hit maximum retries 4 with error error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" }

error reading cluster configuration "k8s-cluster.k8s.local": error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: error reading gs://kubernetes-clusters-sssik/k8s-cluster.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/kubernetes-clusters-sssik/o/k8s-cluster.k8s.local%2Fconfig?alt=media&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request Response: { "error": "invalid_grant", "error_description": "Bad Request" }

9. Anything else do we need to know? before creating cluster i tried upload and download files to/from gs. and it was without errors

johngmyers commented 3 years ago

/area provider/gcp

k8s-triage-robot commented 3 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-ci-robot commented 2 years ago

@k8s-triage-robot: Closing this issue.

In response to [this](https://github.com/kubernetes/kops/issues/12047#issuecomment-1000583722): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues and PRs according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue or PR with `/reopen` >- Mark this issue or PR as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.