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

manual deletion of kdcluster-backing statefulset causes sset spam #470

Closed
joel-bluedata opened this issue May 6, 2021 · 0 comments
Closed
Assignees
Labels
Priority: Blocker Project: Cluster Reconcile beyond simple xlate of model to K8s spec Type: Bug

Comments

@joel-bluedata
Copy link
Member

Regression in some of the reconcile code. I think the issue is in handleRoleReCreate in roles.go; we need to make sure that if we are creating another statefulset when the roleStatus already exists, we must update roleStatus.StatefulSet to point to the newly created set. This might be as simple as setting role.roleStatus to nil before calling handleRoleCreate.

@joel-bluedata joel-bluedata self-assigned this May 6, 2021
joel-bluedata added a commit to joel-bluedata/kubedirector that referenced this issue May 6, 2021
closes issue bluek8s#470

Two changes here:

- In handleRoleCreate, if the role status already exists, we need to update the statefulset name in the role status. This properly handles the case where a statefulset is "deleted out from under us" and we need to re-create it. If we don't record the name of the new replacement statefulset we get caught in Groundhog Day always trying to handle the missing original set.

- In handleRoleReCreate, don't set anyMembersChanged to true if we didn't actually change any member statuses. This prevents the reconciler from being rapidly called over and over again between the initial detection of the missing statefulset and the creation of the replacement one... basically a cosmetic issue but the KD logspam should be avoided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Blocker Project: Cluster Reconcile beyond simple xlate of model to K8s spec Type: Bug
Projects
None yet
Development

No branches or pull requests

1 participant