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/dashboard: prevent alert redirect #47011

Merged
merged 1 commit into from
Jul 16, 2022

Conversation

s0nea
Copy link
Member

@s0nea s0nea commented Jul 7, 2022

Prevent Alertmanager alerts from being redirected to the active mgr dashboard instance. There are two reasons for it:

  1. It doesn't bring any additional benefit. The Alertmanager config includes all available mgr instances - active and passive ones. In case of an alert, it will be sent to all of them. It ensures that the active mgr dashboard will receive the alert in any case.
  2. The redirect URL includes the mgr IP and NOT the FQDN. This leads to issues in environments where an SSL certificate is configured and matches the FQDNs, only.

Fixes: https://tracker.ceph.com/issues/56401
Signed-off-by: Tatjana Dehler tdehler@suse.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@s0nea s0nea requested a review from a team as a code owner July 7, 2022 15:34
@s0nea s0nea added this to In progress in Dashboard via automation Jul 7, 2022
@s0nea s0nea requested review from nSedrickm and melissa-kun-li and removed request for a team July 7, 2022 15:34
@github-actions github-actions bot added the pybind label Jul 7, 2022
@s0nea
Copy link
Member Author

s0nea commented Jul 8, 2022

jenkins test make check

@s0nea
Copy link
Member Author

s0nea commented Jul 8, 2022

jenkins test dashboard

1 similar comment
@s0nea
Copy link
Member Author

s0nea commented Jul 8, 2022

jenkins test dashboard

@s0nea
Copy link
Member Author

s0nea commented Jul 12, 2022

jenkins test dashboard cephadm

src/pybind/mgr/dashboard/module.py Outdated Show resolved Hide resolved
src/pybind/mgr/dashboard/module.py Outdated Show resolved Hide resolved
src/pybind/mgr/dashboard/module.py Show resolved Hide resolved
Prevent Alertmanager alerts from being redirected to the active mgr
dashboard instance. There are two reasons for it:

1. It doesn't bring any additional benefit. The Alertmanager config
   includes all available mgr instances - active and passive ones. In
   case of an alert, it will be sent to all of them. It ensures that
   the active mgr dashboard will receive the alert in any case.
2. The redirect URL includes the mgr IP and NOT the FQDN. This leads
   to issues in environments where an SSL certificate is configured and
   matches the FQDNs, only.

Fixes: https://tracker.ceph.com/issues/56401
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
@s0nea s0nea force-pushed the wip-prevent-alert-redirects branch from 0711c72 to 965005e Compare July 13, 2022 15:12
@s0nea s0nea requested a review from epuertat July 13, 2022 15:13
@s0nea
Copy link
Member Author

s0nea commented Jul 14, 2022

jenkins test dashboard

1 similar comment
@s0nea
Copy link
Member Author

s0nea commented Jul 14, 2022

jenkins test dashboard

Dashboard automation moved this from In progress to Reviewer approved Jul 14, 2022
@nizamial09
Copy link
Member

jenkins test dashboard

@nizamial09
Copy link
Member

jenkins test windows

@nizamial09 nizamial09 merged commit 23eace1 into ceph:main Jul 16, 2022
Dashboard automation moved this from Reviewer approved to Done Jul 16, 2022
@nizamial09
Copy link
Member

@s0nea don't we need to backport it to quincy (and pacific)?

@s0nea
Copy link
Member Author

s0nea commented Jul 18, 2022

@s0nea don't we need to backport it to quincy (and pacific)?

Yes! I'll take care of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
3 participants