Skip to content

kops cli terminates without error message when --project flag is empty  #17542

@linde

Description

@linde

/kind bug

1. What kops version are you running? The command kops version, will display
this information.

Client version: 1.32.1 (git-v1.32.1)

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.

Client Version: v1.32.4-dispatcher

3. What cloud provider are you using?

GCP

4. What commands did you run? What is the simplest way to reproduce this issue?

export GCP_PROJECT=[project name]
export GCP_BILLING_ACCOUNT=[billing account]
export GCP_FOLDER=[folder]

gcloud projects create ${GCP_PROJECT} --folder=${GCP_FOLDER}
gcloud billing projects link $GCP_PROJECT --billing-account ${GCP_BILLING_ACCOUNT}

gcloud auth application-default login --project $GCP_PROJECT

export BUCKET=gs://state-${GCP_PROJECT}
gsutil mb -p $GCP_PROJECT ${BUCKET}

export KOPS_STATE_STORE=${BUCKET}

kops -v9 create cluster simple.k8s.local --zones us-central1-a
--state ${KOPS_STATE_STORE}/ --project=${PROJECT}

5. What happened after the commands executed?

kops create cluster simple.k8s.local --zones us-central1-a --state ${KOPS_STATE_STORE}/ --project=${PROJECT}

I0806 00:10:26.999580 862615 factory.go:98] state store gs://[the bucket]
I0806 00:10:26.999833 862615 gsfs.go:277] Reading file "gs://[the bucket]/simple.k8s.local/config"
I0806 00:10:27.350495 862615 context.go:313] retrying after error error reading gs://[the bucket]/simple.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/[the bucket]/o/simple.k8s.local%2Fconfig?alt=media&prettyPrint=false": Post "https://oauth2.mtls.googleapis.com/token": signal: segmentation fault (core dumped)
I0806 00:10:28.395846 862615 gsfs.go:277] Reading file "gs://[the bucket]/simple.k8s.local/config"
I0806 00:10:28.667281 862615 context.go:313] retrying after error error reading gs://[the bucket]/simple.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/[the bucket]/o/simple.k8s.local%2Fconfig?alt=media&prettyPrint=false": Post "https://oauth2.mtls.googleapis.com/token": signal: segmentation fault (core dumped)
I0806 00:10:30.312114 862615 gsfs.go:277] Reading file "gs://[the bucket]/simple.k8s.local/config"
I0806 00:10:30.588128 862615 context.go:313] retrying after error error reading gs://[the bucket]/simple.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/[the bucket]/o/simple.k8s.local%2Fconfig?alt=media&prettyPrint=false": Post "https://oauth2.mtls.googleapis.com/token": signal: segmentation fault (core dumped)
I0806 00:10:33.018138 862615 gsfs.go:277] Reading file "gs://[the bucket]/simple.k8s.local/config"
I0806 00:10:33.305145 862615 context.go:317] hit maximum retries 4 with error error reading gs://[the bucket]/simple.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/[the bucket]/o/simple.k8s.local%2Fconfig?alt=media&prettyPrint=false": Post "https://oauth2.mtls.googleapis.com/token": signal: segmentation fault (core dumped)
Error: error reading cluster configuration "simple.k8s.local": error reading gs://[the bucket]/simple.k8s.local/config: error reading gs://[the bucket]/simple.k8s.local/config: Get "https://storage.googleapis.com/storage/v1/b/[the bucket]/o/simple.k8s.local%2Fconfig?alt=media&prettyPrint=false": Post "https://oauth2.mtls.googleapis.com/token": signal: segmentation fault (core dumped)

6. What did you expect to happen?

cluster config creation as in the getting started.

**7. Please provide your cluster manifest. Execute

didn't get that far

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.

done above

9. Anything else do we need to know?

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions