Bug 1514928 - Old alerts do not remove after removing a containers provider
Summary: Old alerts do not remove after removing a containers provider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.10.0
Assignee: Ari Zellner
QA Contact: Shalom Naim
URL:
Whiteboard: containers
Depends On: 1461872
Blocks: 1525522
TreeView+ depends on / blocked
 
Reported: 2017-11-19 14:14 UTC by Shalom Naim
Modified: 2018-06-21 20:31 UTC (History)
9 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1525522 (view as bug list)
Environment:
Last Closed: 2018-06-21 20:31:41 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
CFME Monitor Alerts Lists (144.66 KB, image/png)
2017-11-19 14:15 UTC, Shalom Naim
no flags Details
Active alerts from prometheus (82.60 KB, image/png)
2017-11-19 14:17 UTC, Shalom Naim
no flags Details
provider dashboard (148.19 KB, image/png)
2017-11-19 14:23 UTC, Shalom Naim
no flags Details

Description Shalom Naim 2017-11-19 14:14:55 UTC
Description of problem:

After removing a container provider which had configured with Prometheus alerts, 
if other provider set with the same name
the old alerts will show in the alerts screen


Version-Release number of selected component (if applicable):


How reproducible:

1. define an alert on OCP for "too many pods on node"
2. define alert and alert policy on CFME, assign a policy to the enterprise
3. add the provider to CFME
4. verify that the alerts appear in alerts dashboard
5. remove the specific provider
6. remove the old alert definition from OCP
6. define an alert on OCP for "node up"
7. remove Prometheus pod (to load the new alert configuration)
8. define alert and alert police on CFME, assign a policy to the enterprise
8. add the provider to CFME with the same name
9. old alerts will show up in the alerts' dashboard

Actual results:
Unrelevant (old) alerts display in the dashboard screen

Expected results:
Only new alerts have to be shown in the alert dashboard

Additional info:

Comment 2 Shalom Naim 2017-11-19 14:15:25 UTC
Created attachment 1355173 [details]
CFME  Monitor Alerts Lists

Comment 3 Shalom Naim 2017-11-19 14:17:53 UTC
Created attachment 1355174 [details]
Active alerts from prometheus

Comment 4 Shalom Naim 2017-11-19 14:21:55 UTC
The alerts show in both Monitor --> Alerts --> All Alerts and Compute --> Containers --> Providers and then click on the relevant alert

Comment 5 Shalom Naim 2017-11-19 14:23:22 UTC
Created attachment 1355175 [details]
provider dashboard

Comment 9 Ari Zellner 2017-12-04 14:52:11 UTC
Upstream PR: https://github.com/ManageIQ/manageiq/pull/16592

Comment 10 Ari Zellner 2017-12-04 14:52:25 UTC
Upstream PR: https://github.com/ManageIQ/manageiq/pull/16592


Note You need to log in before you can comment on or make changes to this bug.