Metrics ain't deleted when corresponding resource is deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi |
Fix Released
|
Critical
|
Unassigned | ||
1.3 |
Fix Released
|
Critical
|
Unassigned |
Bug Description
After resource is deleted its metrics still resist in the DB preventing removing of their archive policy.
Steps to reproduce:
1. Create archive-policy:
gnocchi archive-policy create -b 0 -m min -m max -m mean -m count -d points:
2. Create generic resource with custom metrics:
gnocchi resource create -t generic -n 'Metric1:
3. Assert resource and archive-policy exist
gnocchi archive-policy list
gnocchi resource list
4. Delete resource:
gnocchi resource delete f53bb4c4-
5. Try to delete archive-policy
gnocchi archive-policy delete AutoTestResourc
Archive policy AutoTestResourc
In gnocchi DB:
select name,archive_
+------
| name | archive_policy_name |
+------
| image.serve | low |
| image.size | low |
| FakeMeter3 | low |
| image | low |
| image.download | low |
| FakeMeter1 | low |
| Metric2 | AutoTestResourc
| Metric1 | AutoTestResourc
| FakeMeter2 | low |
+------
Packages: 1.3.0-5
Client: 2.0.0-1
Regards,
Yurii
Changed in gnocchi: | |
milestone: | none → 2.0.0 |
status: | Fix Committed → Fix Released |
Fixed by https:/ /review. openstack. org/#/c/ 251549/