Send notifications when attaching and detaching volumes

Registered by Mathieu Gagné

Send a notification when attaching and detaching volumes.

Those notifications would allow the volume status to be updated in Ceilometer
and add the ability for an admin to search samples for volume status history.

Without this notification, if volume_usage_audit_period configuration value for cinder-volume-usage-audit is configured to 'hour', a volume resource could still be considered "available" by Ceilometer although it has been attached 59 minutes and 59 seconds ago.

Blueprint information

Status:
Complete
Approver:
John Griffith
Priority:
Medium
Drafter:
Mathieu Gagné
Direction:
Approved
Assignee:
Mathieu Gagné
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
John Griffith
Completed by
John Griffith

Related branches

Sprints

Whiteboard

Does nova not already do this? What are the advantages to adding it to cinder as well? --DuncanT
"Notifications sent by Nova are instance centric. I need a volume centric point of view as volumes have a life of their own outside Nova. Without those notifications, samples collected by Ceilometer for Cinder do not reflect changes in volume state.

Furthermore, I do not want to have to crosscheck Nova and Cinder samples to track the lifecycle/changes of a volume. (volume creation/resize in Cinder but attach/detach in Nova...)" -- mgagne (in the review)

Gerrit topic: https://review.openstack.org/#q,topic:bp/attachment-notifications,n,z

Addressed by: https://review.openstack.org/54994
    Add attach/detach notifications

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.