Re: [kubernetes/kubernetes] Can't delete statefulsets (#59867)

57 views
Skip to first unread message

k8s-ci-robot

unread,
Feb 15, 2018, 8:20:28 AM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@phsiao: Reiterating the mentions to trigger a notification:
@kubernetes/sig-cli-bugs

In response to this:

@kubernetes/sig-cli-bugs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Shawn Hsiao

unread,
Feb 15, 2018, 8:20:52 AM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@kubernetes/sig-cli-bugs

k8s-ci-robot

unread,
Feb 15, 2018, 8:21:35 AM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@phsiao: Reiterating the mentions to trigger a notification:
@kubernetes/sig-cli-bugs

In response to this:

@kubernetes/sig-cli-bugs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Shawn Hsiao

unread,
Feb 15, 2018, 8:35:12 AM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

To summarize, I think the issue is 1.8.2 client (likely 1.8.x and 1.7.x from the reports) can't delete a statefulset in 1.9.2 (likely starting from at least 1.9.1 from the report), and it generates

Error in request: no kind "GetOptions" is registered for version "apps/v1"

back to the user in CLI.

Using this yaml to reproduce, no error in controller-manager log.

STVKRAO

unread,
Feb 15, 2018, 1:18:30 PM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I upgraded my kubernetes-cli to 1.9.3 and statefulset deletion worked fine with no issues.
It seems to be the incompatibility issue in client 1.8.2

ecebuzz

unread,
Feb 15, 2018, 1:24:57 PM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I can also confirm that upgrading kubectl to 1.9.3 can help to delete the statefulset. But the error message remains.

Paul Shahid

unread,
Feb 15, 2018, 2:34:31 PM2/15/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Had this issue as well with 1.7.4. Upgrading to 1.9.3 eliminated the problem and the error message.

Sune Kjærgård

unread,
Feb 16, 2018, 4:14:24 AM2/16/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I can confirm that upgrading kubectl from 1.7.4 to 1.9.3 helped

Vishwas Pai

unread,
Feb 16, 2018, 8:24:00 PM2/16/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I'm using gcloud provided kubectl version with GKE and sill facing the issue.

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.2-gke.1", GitCommit:"4ce7af72d8d343ea2f7680348852db641ff573af", GitTreeState:"clean", BuildDate:"2018-01-31T22:30:55Z", GoVersion:"go1.9.2b4", Compiler:"gc", Platform:"linux/amd64"}

$ which kubectl
....google-cloud-sdk/bin/kubectl

$ gcloud version
Google Cloud SDK 189.0.0
alpha 2017.09.15
beta 2017.09.15
bq 2.0.29
core 2018.02.12
gcloud
gsutil 4.28
kubectl

$ kubectl delete statefulset foo -v=4
I0217 06:52:26.732817 13294 request.go:606] Error in request: no kind "GetOptions" is registered for version "apps/v1"
F0217 06:52:26.733069 13294 helpers.go:120] error: no kind "GetOptions" is registered for version "apps/v1"

Lluis

unread,
Feb 19, 2018, 6:51:49 AM2/19/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I can confirm that moving to 1.9.3 also works.
In our case we had to update the SDK docker container google/cloud-sdk:latest as we was using an older version. Latest version contains 1.9.3 client version and deletes the statefulsets correctly.

Jonathan Delfour

unread,
Feb 23, 2018, 5:51:39 PM2/23/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

any one reported that we need an update to gcloud components to package the latest version? can't find any ticket
latest version is 1.8.6 in the sdk.

Devin W. Hurley

unread,
Mar 11, 2018, 10:46:56 PM3/11/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Anyone know where I can open a request to ask gcloud make kubectl 1.9.x available via gcloud components update?

Vishwas Pai

unread,
Mar 12, 2018, 12:21:10 AM3/12/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@dhurley14 - I've asked google the same question using our support account. Will update this thread if there is anything worth sharing.

Vincenzo Ferrari

unread,
Mar 12, 2018, 4:16:16 PM3/12/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I solved by deleting it from the dashboard instead of using the CLI.

calina

unread,
Mar 20, 2018, 10:54:49 AM3/20/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@vishwaspai Did google respond to you? I'm having the same issue. @wilk are you aware of any other way to delete the statefulset? We're not using the kubernetes dashboard.

Vishwas Pai

unread,
Mar 20, 2018, 10:58:54 AM3/20/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention
Google's reply was "download 1.9x kubectl" if you want one. They didn't
commit to when gcloud will include it.

On Tue, Mar 20, 2018, 8:24 PM calina <notifi...@github.com> wrote:

> @vishwaspai <https://github.com/vishwaspai> Did google respond to you?
> I'm having the same issue. @wilk <https://github.com/wilk> are you aware

> of any other way to delete the statefulset? We're not using the kubernetes
> dashboard.
>
> —
> You are receiving this because you were mentioned.

> Reply to this email directly, view it on GitHub
> <https://github.com/kubernetes/kubernetes/issues/59867#issuecomment-374627355>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHct72uyxp72BxFlLV7F6WJO3j_zDeAIks5tgRg2gaJpZM4SFRKe>

Devin W. Hurley

unread,
Mar 20, 2018, 8:11:19 PM3/20/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@vishwaspai that's unfortunate.. thanks for the update. That's what I ended up doing was just doing brew install kubectl and uninstalling the command installed by gcloud. Thanks.

Jérémy Wimsingues

unread,
Mar 23, 2018, 7:58:16 AM3/23/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Probably linked to this problem: I tried to solve it using your tips (delete from kubectl 1.9x, dashboard delete...) but now some of my pods are stuck in terminating status. Does anyone faced this problem afterwards?

Lena

unread,
Apr 18, 2018, 6:26:55 PM4/18/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Had the same issue on 1.9.6, but updated my kubectl version and everything works now!

Maxim Vasilev

unread,
Apr 30, 2018, 11:12:44 AM4/30/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I have encountered this issue trying to delete a StatefulSet in 1.8 cluster (kops@AWS) using kubectl 1.10.2. Downgrading kubectl to 1.9.7 fixed the issue.

Vitor Baptista

unread,
Apr 30, 2018, 11:59:03 AM4/30/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Same issue using kubectl 1.10.0 and 1.10.1 trying to delete a StatefulSet in 1.8.8-gke.0. Running with kubectl 1.8.6 worked.

krmayankk

unread,
May 2, 2018, 8:58:05 PM5/2/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/area stateful

jfelten-isp

unread,
May 7, 2018, 4:43:18 PM5/7/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

reproducible with:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-13T22:27:55Z", GoVersion:"go1.9.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.7", GitCommit:"b30876a5539f09684ff9fde266fda10b37738c9c", GitTreeState:"clean", BuildDate:"2018-01-16T21:52:38Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Zida

unread,
May 8, 2018, 4:29:47 AM5/8/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reproduced:

IBMMasterMBP:~ bjxzi$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-27T00:13:02Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.11-2+fa6873d3e386d7", GitCommit:"fa6873d3e386d7ead42923b24aea3b76e74395a3", GitTreeState:"clean", BuildDate:"2018-04-17T08:10:40Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

IBMMasterMBP:~ bjxzi$ kubectl delete sts api -n default --force -v=9
I0508 16:27:50.701625    8176 loader.go:357] Config loaded from file /Users/bjxzi/.bluemix/plugins/container-service/clusters/bcf-develop/kube-config-dal10-bcf-develop.yml
I0508 16:27:50.714521    8176 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.10.0 (darwin/amd64) kubernetes/fc32d2f" https://169.46.7.238:28641/apis/apps/v1/namespaces/default/statefulsets/api
I0508 16:27:51.715543    8176 round_trippers.go:405] GET https://169.46.7.238:28641/apis/apps/v1/namespaces/default/statefulsets/api 404 Not Found in 1001 milliseconds
I0508 16:27:51.715580    8176 round_trippers.go:411] Response Headers:
I0508 16:27:51.715592    8176 round_trippers.go:414]     Content-Type: application/json
I0508 16:27:51.715602    8176 round_trippers.go:414]     Content-Length: 174
I0508 16:27:51.715611    8176 round_trippers.go:414]     Date: Tue, 08 May 2018 08:27:51 GMT
I0508 16:27:51.715660    8176 request.go:874] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}
I0508 16:27:51.716699    8176 helpers.go:201] server response object: [{
  "metadata": {},
  "status": "Failure",
  "message": "the server could not find the requested resource",
  "reason": "NotFound",
  "details": {},
  "code": 404
}]
F0508 16:27:51.716733    8176 helpers.go:119] Error from server (NotFound): the server could not find the requested resource

Nicola Ben

unread,
May 16, 2018, 9:41:25 AM5/16/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

This issue is similar to kubernetes/kubectl#426

fejta-bot

unread,
Aug 14, 2018, 9:44:10 AM8/14/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

dchesterman

unread,
Sep 10, 2018, 5:50:24 PM9/10/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Any update on this issue? Seems to happen with v1.9.7. Is there a list of versions that work or fully delete the sts?

krmayankk

unread,
Sep 10, 2018, 8:37:08 PM9/10/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Seems more like an api issue then sig apps
/sig api-machinery

fejta-bot

unread,
Oct 10, 2018, 8:54:35 PM10/10/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle rotten

ianseyer

unread,
Oct 26, 2018, 12:35:54 PM10/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Was also hitting this problem. Upgraded my kubectl version to 1.12 and it worked. Was on 1.8 with cluster on 1.10

Jordan Liggitt

unread,
Nov 24, 2018, 11:56:01 AM11/24/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/close

kubectl supports skew of 1 version against the apiserver. in 1.10, it started making use of the apps/v1 API objects added in 1.9. Running commands related to apps objects (like statefulsets) against a 1.8-era API server will result in 404 errors, because the apps/v1 API does not exist in 1.8

k8s-ci-robot

unread,
Nov 24, 2018, 11:56:05 AM11/24/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #59867.

k8s-ci-robot

unread,
Nov 24, 2018, 11:56:07 AM11/24/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@liggitt: Closing this issue.

In response to this:

/close

kubectl supports skew of 1 version against the apiserver. in 1.10, it started making use of the apps/v1 API objects added in 1.9. Running commands related to apps objects (like statefulsets) against a 1.8-era API server will result in 404 errors, because the apps/v1 API does not exist in 1.8

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kartik

unread,
Feb 13, 2019, 6:46:01 AM2/13/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I have upgrade to 1.13.0 form 8, and able to delete statefulset.
kubectl delete statefulsets

Orlix

unread,
Sep 27, 2019, 9:23:30 AM9/27/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I hit the same issue because of uncoptability between kubectl and kube-apiserver .. with newer version of kubectl works. e.g.
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.10", GitCommit:"8f5e38f04b88241facc4969a16b244e11085a626", GitTreeState:"clean", BuildDate:"2019-08-21T09:56:18Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}

vs

Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.10", GitCommit:"8f5e38f04b88241facc4969a16b244e11085a626", GitTreeState:"clean", BuildDate:"2019-08-21T09:56:18Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}

Reply all
Reply to author
Forward
0 new messages