Kops: Error removing cluster for state store

Created on 11 Oct 2016  路  6Comments  路  Source: kubernetes/kops

After deploying a new cluster and trying to delete, showing an error for an unknown file.

F1011 16:42:50.294185       6 delete_cluster.go:33] error removing cluster from state store: refusing to delete: unknown file found: s3://oscar-ai-k8s-dev/k8s-02.dev.aws-us-west-2.datapipe.io/addons/bootstrap-channel.yaml

With kops command

dkops delete cluster --state s3://oscar-ai-k8s-dev --name k8s-02.dev.aws-us-west-2.datapipe.io 鈥攜es

Most helpful comment

For anyone that finds this: configBase is not the same as KOPS_STATE_STORE

configBase = $KOPS_STATE_STORE/$NAME

All 6 comments

CC @chrislovecnm

This was s3 being pissy, not kops. The error message was odd, so I will keep it open.

If this is not relevant we should re-open another issue around the new problem.. yeah?

@chrislovecnm @kris-nova i am also getting this kops 1.7.0 , was trying to make a new config for a new cluster i have to spin up.

  • kops create -f xxx.yaml
  • kops get clusters
    xxx
  • kops delete cluster xxx.org.com --yes
    error removing cluster from state store: refusing to delete: unknown file found: s3://clusters-store/xxx.org.com/addons/core.addons.k8s.io/v1.4.0.yaml

Ok got it. This issue is not an issue after all. It happens when a incorrect configBase is defined in your cluster configuration. Fixing that will fix this issue.

For anyone that finds this: configBase is not the same as KOPS_STATE_STORE

configBase = $KOPS_STATE_STORE/$NAME

Was this page helpful?
0 / 5 - 0 ratings

Related issues

olalonde picture olalonde  路  4Comments

DocValerian picture DocValerian  路  4Comments

yetanotherchris picture yetanotherchris  路  3Comments

joshbranham picture joshbranham  路  3Comments

chrislovecnm picture chrislovecnm  路  3Comments