Bug 1041487

Summary: [RFE][cinder]: Send notifications when attaching and detaching volumes
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-cinderAssignee: Jon Bernard <jobernar>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: adahms, ddomingo, dron, eharney, jobernar, markmc, scohen, sgotliv, slong, yeylon
Target Milestone: Upstream M1Keywords: FutureFeature, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/attachment-notifications
Whiteboard: upstream_milestone_icehouse-1 upstream_status_implemented upstream_definition_approved
Fixed In Version: openstack-cinder-2014.1-3.1.el7ost Doc Type: Enhancement
Doc Text:
The Block Storage service now sends notifications for attach and detach events, allowing other OpenStack services (e.g. Telemetry) to listen for and display the results to the user. With these notifications, a volume's status can now be updated automatically in the Telemetry service. This, in turn, allows an administrator to search samples for volume status history.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:30:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 16:36:02 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/attachment-notifications.

Description:

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.


Specification URL (additional information):

None

Comment 2 Stephen Gordon 2014-01-23 20:48:16 UTC
Moving to POST based on upstream status (Implemented).

Comment 3 Ayal Baron 2014-02-04 10:35:11 UTC
Eric, how can this be tested without Ceilometer?

Comment 4 Eric Harney 2014-02-04 17:14:56 UTC
(In reply to Ayal Baron from comment #3)
> Eric, how can this be tested without Ceilometer?

Debug-level logs should show AMQP messages going out for these events.

Alternatively, any tool like qpid-printevents that can attach to the AMQP bus and print messages should show these if they are enabled in Cinder.

Comment 7 Yogev Rabl 2014-06-08 13:50:08 UTC
verified on:
python-cinderclient-1.0.8-1.el7ost.noarch
openstack-cinder-2014.1-4.el7ost.noarch
python-cinder-2014.1-4.el7ost.noarch

Comment 11 errata-xmlrpc 2014-07-08 15:30:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0852.html