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

Wait for controllerrevision informer to sync on statefulset controller startup #56356

Conversation

tnozicka
Copy link
Contributor

Fixes: #56355

Needs to be backported to at least 1.8, 1.9 and triaged for impact on 1.9 release

/cc @smarterclayton @kow3ns @enisoc

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Nov 24, 2017
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 24, 2017
@tnozicka
Copy link
Contributor Author

/kind bug
/priority critical-urgent

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels Nov 24, 2017
@tnozicka
Copy link
Contributor Author

/retest

@kow3ns kow3ns added this to the v1.9 milestone Nov 25, 2017
@kow3ns
Copy link
Member

kow3ns commented Nov 25, 2017

/approve

@k8s-github-robot k8s-github-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. milestone/incomplete-labels labels Nov 25, 2017
@tnozicka
Copy link
Contributor Author

/sig apps

@smarterclayton
Copy link
Contributor

Serious issue for stateful set users and can result in large numbers of controller revisions created unexpectedly. Minor risk.

@tnozicka
Copy link
Contributor Author

status: needs lgtm :)

@kow3ns
Copy link
Member

kow3ns commented Nov 27, 2017

@enisoc @foxish PTAL

@kow3ns
Copy link
Member

kow3ns commented Nov 27, 2017

@tnozicka I like to get a second review as apposed to lgtm and approve from the same person.

@janetkuo
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 27, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: janetkuo, kow3ns, tnozicka

Associated issue: 56355

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link

[MILESTONENOTIFIER] Milestone Pull Request Current

@foxish @janetkuo @kow3ns @tnozicka

Note: This pull request is marked as priority/critical-urgent, and must be updated every 1 day during code freeze.

Example update:

ACK.  In progress
ETA: DD/MM/YYYY
Risks: Complicated fix required
Pull Request Labels
  • sig/apps: Pull Request will be escalated to these SIGs if needed.
  • priority/critical-urgent: Never automatically move pull request out of a release milestone; continually escalate to contributor and SIG through all available channels.
  • kind/bug: Fixes a bug discovered during the current release.
Help

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Nov 28, 2017

@tnozicka: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-unit ba6ed64 link /test pull-kubernetes-unit

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 56356, 56435). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 52bd638 into kubernetes:master Nov 28, 2017
@tnozicka tnozicka deleted the fix-statefulset-creating-controllerrevision-multiple-times branch November 29, 2017 13:18
k8s-github-robot pushed a commit that referenced this pull request Nov 30, 2017
…mersync-to-1.8

Automatic merge from submit-queue.

1.8 Backport: Wait for controllerrevision informer to sync on statefulset controller startup

backporting #56356

```release-note
None
```
@krmayankk
Copy link

@tnozicka @kow3ns @smarterclayton can this be also back ported to 1.7 ? We are seeing this issue as well and we just upgraded to 1.7. It would be nice to get this fix without upgrading to 1.8 or 1.9 . Also are there ways to avoid it ?

@tnozicka
Copy link
Contributor Author

tnozicka commented Jan 2, 2018

@krmayankk syncing informers should be there from the start so I would say backport to 1.7 should be ok but the likely offending PR with collision count #50490 isn't part of 1.7 I think. Without collision count it should fail on the controller revision already being created. It might be caused by something similar though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note-none Denotes a PR that doesn't merit a release note. sig/apps Categorizes an issue or PR as relevant to SIG Apps. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants