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 lsp not updating addresses #4011

Merged
merged 1 commit into from
May 13, 2024

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented May 12, 2024

Pull Request

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes

  1. Stop kube-ovn-controller by setting its replicas to 0;
  2. Delete a running pod;
  3. Recreate the pod;
  4. Start kube-ovn-controller by setting its replicas to non-zero;
  5. Waiting for the pod to be running.

In step 5, the recreated pod will never be running, because the LSP's addresses field is not updated.

This patch is a simple fix. Maybe we should record pod uid in the LSP's external-ids.

Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
@zhangzujian zhangzujian added bug Something isn't working need backport labels May 12, 2024
@zhangzujian zhangzujian marked this pull request as ready for review May 12, 2024 03:03
@oilbeater
Copy link
Collaborator

We need to add this to e2e tests later

@zhangzujian zhangzujian merged commit 6445293 into kubeovn:master May 13, 2024
62 checks passed
@zhangzujian zhangzujian deleted the fix-lsp-update branch May 13, 2024 01:53
zhangzujian added a commit that referenced this pull request May 13, 2024
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
bobz965 pushed a commit that referenced this pull request May 13, 2024
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants