The desc of volume should be update

Bug #1643133 reported by zhangguoqing on 2016-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Undecided
zhangguoqing

Bug Description

When I create a volume by devstack. Then I find that there are always three items in the database table of ceilometer.resource. The resource_metadata are follow:
The first:
{"status": "creating", "user_id": "f26fe6dff5cb481ca563ad595329fb28", "display_name": "vol-005", "event_type": "volume.create.start", "volume_id": "22e45650-25df-44ed-ae1e-d71faf8dfc3b", "volume_attachment": [], "tenant_id": "2657fbf6d3dd4ae6846c8eb903495599", "created_at": "2016-11-19T05:27:11+00:00", "availability_zone": "nova", "volume_type": "803e33d2-2fa9-4430-a049-e584ccee1a4d", "host": "volume.zhangguoqing-dev@lvmdriver-1#lvmdriver-1", "replication_status": "disabled", "snapshot_id": null, "replication_extended_status": null, "replication_driver_data": null, "size": 1, "launched_at": "2016-11-19T05:27:11.744827", "metadata": []}
The second:
{"status": "available", "user_id": "f26fe6dff5cb481ca563ad595329fb28", "display_name": "vol-005", "event_type": "volume.create.end", "volume_id": "22e45650-25df-44ed-ae1e-d71faf8dfc3b", "volume_attachment": [], "tenant_id": "2657fbf6d3dd4ae6846c8eb903495599", "created_at": "2016-11-19T05:27:11+00:00", "availability_zone": "nova", "volume_type": "803e33d2-2fa9-4430-a049-e584ccee1a4d", "host": "volume.zhangguoqing-dev@lvmdriver-1#lvmdriver-1", "replication_status": "disabled", "snapshot_id": null, "replication_extended_status": null, "replication_driver_data": null, "size": 1, "launched_at": "2016-11-19T05:27:12.574167+00:00", "metadata": []}
The third:
{"status": "available", "migration_status": null, "attachments": [], "os-vol-host-attr:host": "zhangguoqing-dev@lvmdriver-1#lvmdriver-1", "source_volid": null, "volume_type": "lvmdriver-1", "snapshot_id": null, "name": "vol-005"}

In Cloudkitty, we should get the volume resource information form their resource_metadata and always get the third which has few information. Then the desc of the volume becomes {"user_id": "f26fe6dff5cb481ca563ad595329fb28", "name": null, "availability_zone": null, "volume_id": null, "project_id": "2657fbf6d3dd4ae6846c8eb903495599", "size": null}.

So the desc of volume should be updated.

Changed in cloudkitty:
assignee: nobody → zhangguoqing (474751729-o)

Fix proposed to branch: master
Review: https://review.openstack.org/399828

Changed in cloudkitty:
status: New → In Progress

Change abandoned by Luka Peschke (<email address hidden>) on branch: master
Review: https://review.openstack.org/399828
Reason: Abandoning since this has not been updated and ceilometer collector is deprecated

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers