Skip to content

fix: alertmanager user config disappearing when ring is unreachable #7372

Open
kishorekg1999 wants to merge 5 commits intocortexproject:masterfrom
kishorekg1999:am-config-reset-fix
Open

fix: alertmanager user config disappearing when ring is unreachable #7372
kishorekg1999 wants to merge 5 commits intocortexproject:masterfrom
kishorekg1999:am-config-reset-fix

Conversation

@kishorekg1999
Copy link
Contributor

What this PR does:
if the Cortex ring was temporarily unreachable, isUserOwned() incorrectly returned false instead of an error. This caused the loadAlertmanagerConfigs() to assume it no longer owned the user, triggering local config deletion and deleting the user's config from store - code ref.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

…reachable

Signed-off-by: Kishore K G <kishorekg@google.com>
Signed-off-by: Kishore K G <kishorekg@google.com>
Signed-off-by: Kishore K G <kishorekg@google.com>
Signed-off-by: Kishore K G <kishorekg@google.com>
Signed-off-by: kishorekg1999 <kishorekg@google.com>
@kishorekg1999
Copy link
Contributor Author

@SungJin1212 @CharlieTLe can you please review the PR when you get a chance ? Thanks in advance !

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.

1 participant