kubernetes icon indicating copy to clipboard operation
kubernetes copied to clipboard

Statefulset never create pod when one of replica pod create failed

Open chaohan1 opened this issue 1 year ago • 2 comments

What happened?

In our k8s cluster,I create a statefulset named test-sts with replicas=3 and podManagementPolicy=Parallel. The statefulset create replica test-sts-1 failed if the pod test-sts-1 has already exists,then the statefulset never create replica test-sts-2, and never update statefulset status。

In the issue 109694, it fixed statefulset update status when replica pod create failed. [root@master2 test]# kubectl get sts,pod |grep test-sts statefulset.apps/test-sts 0/3 40m pod/test-sts-0 1/1 Running 0 40m pod/test-sts-1 1/1 Terminating 0 42m

What did you expect to happen?

I think the podManagementPolicy setting Parallel means all repilcas of statefulset is created parallel. Even though one of pod create failed, should not affect others pod creating. So, even though test-sts-1 create failed, test-sts-2 should be created.

I want to know what i think above is crrect or not???

How can we reproduce it (as minimally and precisely as possible)?

  1. create statefulset test-sts with replicas=3 and podManagementPolicy=Parallel;
  2. stop kubelet where replica test-sts-1 on;
  3. delete statefulset test-sts, wait for test-sts-0 and test-sts-1 deleted;
  4. create statefulset test-sts again;
  5. we can see that test-sts-2 is not created;

Anything else we need to know?

No response

Kubernetes version

```console $ kubectl version # paste output here ``` [root@master2 test]# kubectl version Client Version: version.Info{Major:"", Minor:"", GitVersion:"v1.19.4-20220804+935fb54a01d4bc5c09da631bbef69df923fe7f11", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.15.13", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4-20220804+935fb54a01d4bc5c09da631bbef69df923fe7f11", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.15.13", Compiler:"gc", Platform:"linux/amd64"}

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

chaohan1 avatar Aug 10 '22 08:08 chaohan1

@chaohan1: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

k8s-ci-robot avatar Aug 10 '22 08:08 k8s-ci-robot

/sig apps

GitVersion:"v1.19.4-

< 1.22 versions are out of support

neolit123 avatar Aug 18 '22 09:08 neolit123

/sig apps

GitVersion:"v1.19.4-

< 1.22 versions are out of support

I am sorry,what is means of 1.22 versions are out of support?

chaohan1 avatar Aug 25 '22 12:08 chaohan1

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:

  • 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:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

k8s-triage-robot avatar Nov 23 '22 13:11 k8s-triage-robot

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:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

k8s-triage-robot avatar Dec 23 '22 13:12 k8s-triage-robot

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

This bot triages issues 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 with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

k8s-triage-robot avatar Jan 22 '23 14:01 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

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

This bot triages issues 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 with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

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.

k8s-ci-robot avatar Jan 22 '23 14:01 k8s-ci-robot