Re: [kubernetes/kubernetes] kubectl apply fails on create AlreadyExists even though the command was apply (#44165)

1 view
Skip to first unread message

Jordan Liggitt

unread,
Apr 6, 2017, 2:03:23 PM4/6/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

cc @kubernetes/sig-cli-bugs

—
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.

Avi Deitcher

unread,
Apr 6, 2017, 2:09:50 PM4/6/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

it is applied client-side

So sounds like my understanding of it as a timing issue is likely correct. Ah well. In the meantime, I added a wrap around it to catch and retry, so it can handle a few failures. Since I only am starting 3 master nodes, 3 retries with a 10 second backoff should be far more than enough to handle it.

Still and all, it probably is right to have the upsert logic handled server side?

Thanks @liggitt

TonyAdo

unread,
Apr 9, 2017, 2:41:01 AM4/9/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@liggitt @deitch this is definitely client side behavior. kubectl apply will first check whether obj exists, if not then try to do create logical. But it cannot avoid other client create the same object meantime, for such situation(AlreadyExists error), kubectl should fallback to do normal patch logcial, since there is no guarantee the new object created in the meantime matches the manifest that was requested to be applied. wdyt?

Avi Deitcher

unread,
Apr 9, 2017, 3:57:54 AM4/9/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@adohe so the upsert activity really isn't a kube-apiserver capability (well, controller-manager, but whatever), but a kubectl capability that just does "check if exists: if yes, update; if not, create."

kubectl should fallback to do normal patch logcial, since there is no guarantee the new object created in the meantime matches the manifest that was requested to be applied

Yes.

Ideally, I think you would want that upsert logic in the server, so kubectl (i.e. a rest API call) can just do a simple apply call. In the meantime, though, yes, a kubectl-side: "check if exists: if yes, update; if not, try to create, but trap AlreadyExists error, and then fall back to update."

Come to think of it, would it not be simpler if every apply just did, "create; if it fails with AlreadyExists error, then update"?

TonyAdo

unread,
Apr 9, 2017, 4:04:59 AM4/9/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch we did plan to move apply to server-side :)

Avi Deitcher

unread,
Apr 9, 2017, 4:07:48 AM4/9/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

we did plan to move apply to server-side

@adohe Thinner client, simpler logic, complexity on the server instead of client? I cannot imagine why... :-)

Of course, you still will need the same logic, since two threads of the server could handle it at the same time.

TonyAdo

unread,
Apr 18, 2017, 9:22:32 AM4/18/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/assign @adohe

TonyAdo

unread,
Apr 18, 2017, 9:22:38 AM4/18/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

will fix this before this weekend.

fejta-bot

unread,
Dec 23, 2017, 5:01:26 AM12/23/17
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.

Prevent issues from auto-closing with an /lifecycle frozen comment.

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

Avi Deitcher

unread,
Dec 23, 2017, 12:31:42 PM12/23/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@adohe was this fixed? Which version?

Thanks

fejta-bot

unread,
Jan 22, 2018, 1:57:12 PM1/22/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
/remove-lifecycle stale

Avi Deitcher

unread,
Jan 22, 2018, 4:05:12 PM1/22/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/remove-lifecycle rotten

Avi Deitcher

unread,
Jan 22, 2018, 4:05:54 PM1/22/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@adohe any update?

Philip Lombardi

unread,
Jan 25, 2018, 11:03:02 AM1/25/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@adohe did you ever fix this? Still seeing this issue in server 1.7.2 and client 1.8.4

fejta-bot

unread,
Apr 25, 2018, 12:15:03 PM4/25/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

fejta-bot

unread,
May 25, 2018, 1:01:20 PM5/25/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
/remove-lifecycle stale

Avi Deitcher

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

Feilong Wang

unread,
Jun 7, 2018, 11:30:48 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I can reproduce this with v1.9.3 when creating 3 masters at the same time, just FYI.

Marius Grigoriu

unread,
Jun 26, 2018, 5:14:26 PM6/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

This issue poses challenges to those who run kubectl apply in their deployment pipelines.

fejta-bot

unread,
Jul 26, 2018, 5:24:59 PM7/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.


Mark the issue as fresh with /remove-lifecycle rotten.

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

k8s-ci-robot

unread,
Jul 26, 2018, 5:25:02 PM7/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Erik Parmann

unread,
Jul 9, 2019, 4:34:38 PM7/9/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

This is definitely still an issue, /reopen

Peter Blum

unread,
Aug 25, 2019, 10:20:45 PM8/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Kubernetes Prow Robot

unread,
Aug 25, 2019, 10:21:00 PM8/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@Oskoss: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

Avi Deitcher

unread,
Aug 25, 2019, 10:34:05 PM8/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Aug 25, 2019, 10:34:26 PM8/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

Kubernetes Prow Robot

unread,
Aug 25, 2019, 10:34:29 PM8/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

fejta-bot

unread,
Sep 24, 2019, 11:04:01 PM9/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Sep 24, 2019, 11:04:27 PM9/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Sep 24, 2019, 11:04:36 PM9/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Erik Parmann

unread,
Sep 25, 2019, 12:58:24 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Sep 25, 2019, 12:58:51 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@epa095: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

—

Avi Deitcher

unread,
Sep 25, 2019, 2:13:00 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Sep 25, 2019, 2:13:21 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

Kubernetes Prow Robot

unread,
Sep 25, 2019, 2:13:22 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Avi Deitcher

unread,
Sep 25, 2019, 2:13:26 AM9/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Is there any way to disable the rotten closure bot on this issue?

fejta-bot

unread,
Oct 25, 2019, 2:52:23 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Kubernetes Prow Robot

unread,
Oct 25, 2019, 2:52:34 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Oct 25, 2019, 2:52:40 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Avi Deitcher

unread,
Oct 25, 2019, 2:56:49 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Oct 25, 2019, 2:57:02 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

Kubernetes Prow Robot

unread,
Oct 25, 2019, 2:57:42 AM10/25/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

fejta-bot

unread,
Nov 24, 2019, 2:30:44 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Nov 24, 2019, 2:30:52 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Kubernetes Prow Robot

unread,
Nov 24, 2019, 2:30:53 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Avi Deitcher

unread,
Nov 24, 2019, 2:46:59 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Nov 24, 2019, 2:47:06 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Nov 24, 2019, 2:47:07 AM11/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

fejta-bot

unread,
Dec 24, 2019, 3:15:01 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Dec 24, 2019, 3:15:10 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Dec 24, 2019, 3:15:12 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Avi Deitcher

unread,
Dec 24, 2019, 3:18:29 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Dec 24, 2019, 3:18:37 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Dec 24, 2019, 3:18:38 AM12/24/19
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

fejta-bot

unread,
Jan 23, 2020, 4:00:07 AM1/23/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Jan 23, 2020, 4:00:15 AM1/23/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Jan 23, 2020, 4:00:17 AM1/23/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

diegom626

unread,
Feb 25, 2020, 3:41:25 PM2/25/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

any update on this?
/reopen

Kubernetes Prow Robot

unread,
Feb 25, 2020, 3:41:33 PM2/25/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@diegom626: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

any update on this?
/reopen

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.

—

Steph van Schalkwyk

unread,
Jun 3, 2020, 4:11:47 PM6/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Please reopen this issue.
V 1.18.0

Avi Deitcher

unread,
Jun 3, 2020, 11:10:57 PM6/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Jun 3, 2020, 11:11:11 PM6/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Jun 3, 2020, 11:11:11 PM6/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

fejta-bot

unread,
Jul 3, 2020, 11:31:56 PM7/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Jul 3, 2020, 11:32:09 PM7/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Jul 3, 2020, 11:32:10 PM7/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Harrison Katz

unread,
Jul 7, 2020, 10:40:52 AM7/7/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Jul 7, 2020, 10:41:09 AM7/7/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@hjkatz: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

—

Avi Deitcher

unread,
Jul 7, 2020, 10:46:01 AM7/7/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Jul 7, 2020, 10:46:16 AM7/7/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Jul 7, 2020, 10:46:16 AM7/7/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

fejta-bot

unread,
Aug 6, 2020, 11:34:13 AM8/6/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Aug 6, 2020, 11:34:27 AM8/6/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Aug 6, 2020, 11:34:28 AM8/6/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Harrison Katz

unread,
Aug 10, 2020, 10:47:20 AM8/10/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Please bot, stop closing this issue if it still exists.

Kubernetes Prow Robot

unread,
Aug 10, 2020, 10:47:33 AM8/10/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@hjkatz: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Please bot, stop closing this issue if it still exists.

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.

—

Avi Deitcher

unread,
Aug 10, 2020, 10:49:06 AM8/10/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Kubernetes Prow Robot

unread,
Aug 10, 2020, 10:49:17 AM8/10/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Aug 10, 2020, 10:49:19 AM8/10/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

fejta-bot

unread,
Sep 9, 2020, 11:49:58 AM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

—

Kubernetes Prow Robot

unread,
Sep 9, 2020, 11:50:13 AM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

—

Kubernetes Prow Robot

unread,
Sep 9, 2020, 11:50:15 AM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Harrison Katz

unread,
Sep 9, 2020, 12:11:42 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch Would you do the honors? 😆 Every 30 days!

Avi Deitcher

unread,
Sep 9, 2020, 12:14:19 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

Avi Deitcher

unread,
Sep 9, 2020, 12:14:24 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/remove-lifecycle rotten

Kubernetes Prow Robot

unread,
Sep 9, 2020, 12:14:33 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #44165.

Kubernetes Prow Robot

unread,
Sep 9, 2020, 12:14:35 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@deitch: Reopened this issue.

In response to this:

/reopen

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.

—

Avi Deitcher

unread,
Sep 9, 2020, 12:15:17 PM9/9/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I am honoured @hjkatz 😄

fejta-bot

unread,
Dec 8, 2020, 11:58:35 AM12/8/20
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

fejta-bot

unread,
Jan 7, 2021, 12:42:45 PM1/7/21
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

fejta-bot

unread,
Feb 6, 2021, 1:27:46 PM2/6/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.

Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

Kubernetes Prow Robot

unread,
Feb 6, 2021, 1:27:53 PM2/6/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #44165.

Kubernetes Prow Robot

unread,
Feb 6, 2021, 1:27:54 PM2/6/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.


Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

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.

—

hetii

unread,
Feb 11, 2023, 5:16:26 PM2/11/23
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/reopen

—


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/44165/1426887553@github.com>

Kubernetes Prow Robot

unread,
Feb 11, 2023, 5:16:30 PM2/11/23
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@hetii: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

—


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/44165/1426887565@github.com>

zhangguanzhang

unread,
Jan 6, 2025, 10:45:56 PMJan 6
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

samy issue on:

$ kubectl get node 
NAME          STATUS   ROLES         AGE   VERSION
10.xx.xx.37   Ready    master,node   35m   v1.27.16
10.xx.xx.45   Ready    master,node   35m   v1.27.16
10.xx.xx.46   Ready    master,node   35m   v1.27.16
"cmd": ["kubectl", "--kubeconfig=/etc/kubernetes/cluster1/.kube/config", "apply", "-f", "/tmp/mysql-svc.yaml"], 
"delta": "0:00:00.649216", "end": "2025-01-07 11:16:24.104712", 
"msg": "non-zero return code", "rc": 1, "start": "2025-01-07 11:16:23.455496", 
"stderr": "Error from server (AlreadyExists): error when creating \"/tmp/mysql-svc.yaml\": services \" test-database\" already exists\nError from server (AlreadyExists): error when creating \"/tmp/mysql-svc.yaml\": endpoints \" test-database\" already exists",
 "stderr_lines": ["Error from server (AlreadyExists): error when creating \"/tmp/mysql-svc.yaml\": services \" test-database\" already exists", "Error from server (AlreadyExists): error when creating \"/tmp/mysql-svc.yaml\": endpoints \" test-database\" already exists"], "stdout": "", "stdout_lines": []}

—
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/44165/2574335830@github.com>

c4tz

unread,
Jan 13, 2025, 9:17:16 AMJan 13
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Quote:

will fix this before this weekend.

Whew, I wish I also had (almost) 7 year long weekends.

Jokes aside, this is still an issue and can be easily reproduced using the following script:

#!/bin/bash

kubectl delete ns test-ns || true

kubectl create ns test-ns --dry-run=client -o yaml | kubectl apply -f - &
kubectl create ns test-ns --dry-run=client -o yaml | kubectl apply -f - &
kubectl create ns test-ns --dry-run=client -o yaml | kubectl apply -f - &

which results in:

Error from server (NotFound): namespaces "test-ns" not found
namespace/test-ns created
Error from server (AlreadyExists): error when creating "STDIN": namespaces "test-ns" already exists
Error from server (AlreadyExists): error when creating "STDIN": namespaces "test-ns" already exists

My use-case are several CI jobs running at the same time which each are supposed to deploy a different Helm release, but in the same namespace. (Because the NS needs to be labeled as well, I need to run kubectl and can't use Helm's --create-namespace.)

If the check would happen on the server-side, this probably wouldn't be a problem.

—
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/44165/2587223545@github.com>

Reply all
Reply to author
Forward
0 new messages