Bug 1514928

Summary: Old alerts do not remove after removing a containers provider
Product: Red Hat CloudForms Management Engine Reporter: Shalom Naim <snaim>
Component: ProvidersAssignee: Ari Zellner <azellner>
Status: CLOSED CURRENTRELEASE QA Contact: Shalom Naim <snaim>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: azellner, cpelland, epacific, gblomqui, jfrey, jhardy, obarenbo, simaishi, snaim
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: containers
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1525522 (view as bug list) Environment:
Last Closed: 2018-06-21 20:31:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On: 1461872    
Bug Blocks: 1525522    
Attachments:
Description Flags
CFME Monitor Alerts Lists
none
Active alerts from prometheus
none
provider dashboard none

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