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 (backport #3164) #3166

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot 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


This is an automatic backport of pull request #3164 done by [Mergify](https://mergify.com).

… node when labels are missing

longhorn/longhorn-9464

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
(cherry picked from commit 3eb0636)
…abels are missing

longhorn/longhorn-9464

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
(cherry picked from commit 86a4416)
@derekbit derekbit merged commit e2c7043 into v1.6.x Sep 16, 2024
7 checks passed
@derekbit derekbit deleted the mergify/bp/v1.6.x/pr-3164 branch September 16, 2024 11:12
@c3y1huang
Copy link
Contributor

ref longhorn/longhorn#9472

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