Bug 1564698

Summary: RFE: Clean up aodh alarms after deleting an instance or project
Product: Red Hat OpenStack Reporter: Stan Toporek <stoporek>
Component: openstack-aodhAssignee: Julien Danjou <jdanjou>
Status: CLOSED WONTFIX QA Contact: Sasha Smolyak <ssmolyak>
Severity: low Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: apevec, jdanjou, jschluet, lhh
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-17 14:08:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stan Toporek 2018-04-06 23:39:30 UTC
Description of problem:
The aodh alarms still exist after deleting an instance or project.

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


How reproducible:

Every time
Steps to Reproduce:
1. openstack server delete <instance-UUID>
2. openstack alarm list 
3. openstack server list
   

Actual results:
openstack alarm list
+--------------------------------------+-----------------------------+---------------------------+-------------------+----------+---------+
| alarm_id                             | type                        | name                      | state             | severity | enabled |
+--------------------------------------+-----------------------------+---------------------------+-------------------+----------+---------+
| 35990f01-9385-4ca0-bc73-73729c5d08cc | gnocchi_resources_threshold | vManage-1-NetworkOut.rate | insufficient data | low      | True    |
| 76377b04-ec6c-4b70-9525-da8eb728fb7c | gnocchi_resources_threshold | vManage-1-NetworkOut.rate | insufficient data | low      | True    |
| 63896684-2aaa-4111-84b0-bf83697a8e80 | gnocchi_resources_threshold | vManage-1-NetworkOut.rate | insufficient data | low      | True    |
| 30f5a62b-bf51-4273-aad9-72f725e4d303 | gnocchi_resources_threshold | vManage-1-NetworkOut.rate | insufficient data | low      | True    |
| 5ab2863f-4ade-4d2d-93a8-944cc28c1ec4 | gnocchi_resources_threshold | vManage-1-NetworkOut.rate | insufficient data | low      | True    |
| 54c68e60-80e3-4773-9db6-50bf4b1bb543 | gnocchi_resources_threshold | vManage-1-NetworkIn.rate  | insufficient data | low      | True    |
| 62cbbb60-11a9-47fe-b710-928a652b67e2 | gnocchi_resources_threshold | vManage-1-NetworkIn.rate  | insufficient data | low      | True    |
| 297068c7-62e3-439d-9295-eb6cb63ab09e | gnocchi_resources_threshold | vManage-1-NetworkIn.rate  | insufficient data | low      | True    |
| 6e4183f8-345a-42a1-ab15-e2eb2eed2cc6 | gnocchi_resources_threshold | vManage-1-NetworkIn.rate  | insufficient data | low      | True    |
| ab14b206-38f1-4aa6-9c4e-abd4de41d686 | gnocchi_resources_threshold | vManage-1-NetworkIn.rate  | insufficient data | low      | True    |
| 0550134f-b16e-4cf0-a55b-00bced8a2100 | gnocchi_resources_threshold | vManage-1-CpuUtil         | insufficient data | low      | True    |
+--------------------------------------+-----------------------------+---------------------------+-------------------+----------+---------+

Expected results:
No alarms for the deleted instance

Additional info:

Comment 1 Julien Danjou 2018-04-17 14:08:07 UTC
That's how OpenStack works in general. If you delete any project in Keystone, you won't have anything deleting e.g. the Swift container.

That's up to the application using those services to clean up.