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

mgr: fix UpdateActiveMgrLabel to retry label update on failure #14160

Merged
merged 1 commit into from
May 6, 2024

Conversation

rkachach
Copy link
Contributor

@rkachach rkachach commented May 6, 2024

Fix UpdateActiveMgrLabel to retry label update on failure. Previously, the function always returned the current manager, even if update failed, leading to inconsistent labels. This fix ensures retries on failures.

Fixes: #13601

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@rkachach rkachach requested review from travisn and a team May 6, 2024 10:59
@rkachach rkachach changed the title mgr: Fix UpdateActiveMgrLabel to retry label update on failure mgr: fix UpdateActiveMgrLabel to retry label update on failure May 6, 2024
@rkachach rkachach marked this pull request as ready for review May 6, 2024 13:21
pkg/operator/ceph/cluster/mgr/mgr.go Outdated Show resolved Hide resolved
pkg/operator/ceph/cluster/mgr/mgr.go Show resolved Hide resolved
fix UpdateActiveMgrLabel to retry label update on failure. Previously,
the function always returned the current manager, even if update
failed, leading to inconsistent labels. This fix ensures retries on
failures.

Fixes: rook#13601

Signed-off-by: Redouane Kachach <[email protected]>
@travisn travisn merged commit 905c824 into rook:master May 6, 2024
52 of 53 checks passed
travisn added a commit that referenced this pull request May 6, 2024
mgr: fix UpdateActiveMgrLabel to retry label update on failure (backport #14160)
travisn added a commit that referenced this pull request May 6, 2024
mgr: fix UpdateActiveMgrLabel to retry label update on failure (backport #14160)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Service rook-ceph-mgr-dashboard does not route properly to the active mgr.
2 participants