duplicated volume samples.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When creating a volume, ceilometer adds to database duplicated samples for notifications: volume, volume.size
By example:
ubuntu@
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
+------
ubuntu@
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
+------
ubuntu@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2013-12-
| display_description | None |
| display_name | None |
| id | 4476c077-
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+------
ubuntu@
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
| 4476c077-
| 4476c077-
+------
ubuntu@
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
| 4476c077-
| 4476c077-
+------
This bug is reproduced because when creating volume in notifications queue appear two notifications: 'volume.
Therefore, when creating the volume are two records in the ceilometer database, first created, when appear 'volume.
TO RESOLVE:
Add validation that the record already exists in the database
or
Change 'volume.create.*' on 'volume.
Definitely not a bug. There's no problem having a lot of samples, it can even be a safety guard.