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

fix(instance-manager): missing required labels after manager crashed #3164

Conversation

c3y1huang
Copy link
Contributor

@c3y1huang c3y1huang commented Sep 16, 2024

Which issue(s) this PR fixes:

Issue longhorn/longhorn#9464

What this PR does / why we need it:

When the Longhorn manager starts, it will attempt to retrieve existing instance managers using the label selector or create new ones if they do not exist. If the creation of an instance manager fails, it may be because the instance manager was created but the webhook server missed patching the required selector labels due to the pod crash. In such cases, actively deletes the instance manager and requeues the node. This process allows the node controller to recreate the instance manager, triggering the webhook to reapply the necessary labels.

Special notes for your reviewer:

None

Additional documentation or context

None

… node when labels are missing

longhorn/longhorn-9464

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
…abels are missing

longhorn/longhorn-9464

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
@c3y1huang c3y1huang requested review from derekbit and a team September 16, 2024 09:12
Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekbit derekbit merged commit 86a4416 into longhorn:master Sep 16, 2024
9 checks passed
@derekbit
Copy link
Member

@mergify backport v1.6.x v1.7.x

Copy link

mergify bot commented Sep 16, 2024

backport v1.6.x v1.7.x

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants