Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky UT TestStatefulSetControl/CreatePodFailure/Burst/ScaleDownOnly/StatefulSetAutoDeletePVCEnabled #124526

Closed
Rajalakshmi-Girish opened this issue Apr 25, 2024 · 2 comments · Fixed by #124624
Assignees
Labels
kind/flake Categorizes issue or PR as related to a flaky test. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/testing Categorizes an issue or PR as relevant to SIG Testing. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@Rajalakshmi-Girish
Copy link
Contributor

Which jobs are flaking?

https://prow.ppc64le-cloud.cis.ibm.net/job-history/gs/ppc64le-kubernetes/logs/periodic-kubernetes-unit-test-ppc64le

Which tests are flaking?

TestStatefulSetControl/CreatePodFailure/Burst/ScaleDownOnly/StatefulSetAutoDeletePVCEnabled of pkg/controller/statefulset/stateful_set_control_test.go

Since when has it been flaking?

Have started observing more flakes recently since last week.

Testgrid link

https://testgrid.k8s.io/ibm-k8s-unit-tests-ppc64le#periodic-k8s-unit-tests-ppc64le

Reason for failure (if possible)

No response

Anything else we need to know?

Able to reproduce using stress tool.

[root@maxwells1 kubernetes]# /root/go/bin/stress ./statefulset.test -test.run TestStatefulSetControl/CreatePodFailure/Burst/ScaleDownOnly/StatefulSetAutoDeletePVCEnabled
5s: 0 runs so far, 0 failures
10s: 0 runs so far, 0 failures
--------
--------
--------
8m25s: 108 runs so far, 0 failures
8m30s: 110 runs so far, 0 failures

/tmp/go-stress-20240425T015624-1279903570
--- FAIL: TestStatefulSetControl (0.16s)
    --- FAIL: TestStatefulSetControl/CreatePodFailure/Burst/ScaleDownOnly/StatefulSetAutoDeletePVCEnabled (0.08s)
        stateful_set_control_test.go:526: StatefulSetControl did not return InternalError, found %!s(<nil>)
E0425 02:04:54.791294 2073044 stateful_set.go:374] "Unhandled Error" err="user error: more than one StatefulSet is selecting pods with labels: map[apps.kubernetes.io/pod-index:0 foo:bar statefulset.kubernetes.io/pod-name:foo-0]. Sets: [foo foo2]" logger="UnhandledError"
E0425 02:04:54.803356 2073044 stateful_set.go:374] "Unhandled Error" err="user error: more than one StatefulSet is selecting pods with labels: map[apps.kubernetes.io/pod-index:0 foo:bar statefulset.kubernetes.io/pod-name:foo-0]. Sets: [foo foo2]" logger="UnhandledError"
E0425 02:04:54.806908 2073044 stateful_set.go:374] "Unhandled Error" err="user error: more than one StatefulSet is selecting pods with labels: map[apps.kubernetes.io/pod-index:0 foo:bar statefulset.kubernetes.io/pod-name:foo-0]. Sets: [foo foo2]" logger="UnhandledError"
E0425 02:04:54.814283 2073044 stateful_set.go:374] "Unhandled Error" err="user error: more than one StatefulSet is selecting pods with labels: map[apps.kubernetes.io/pod-index:0 foo:bar statefulset.kubernetes.io/pod-name:foo-0]. Sets: [foo foo2]" logger="UnhandledError"
FAIL


ERROR: exit status 1

8m35s: 112 runs so far, 1 failures (0.89%)

Relevant SIG(s)

/sig testing
/sig apps

@Rajalakshmi-Girish Rajalakshmi-Girish added the kind/flake Categorizes issue or PR as related to a flaky test. label Apr 25, 2024
@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. sig/apps Categorizes an issue or PR as relevant to SIG Apps. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 25, 2024
@atiratree
Copy link
Member

/triage accepted
/assign

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 26, 2024
@atiratree
Copy link
Member

opened a PR with a fix: #124624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/flake Categorizes issue or PR as related to a flaky test. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/testing Categorizes an issue or PR as relevant to SIG Testing. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants