Bug 1041487 - [RFE][cinder]: Send notifications when attaching and detaching volumes
Summary: [RFE][cinder]: Send notifications when attaching and detaching volumes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Upstream M1
: 5.0 (RHEL 7)
Assignee: Jon Bernard
QA Contact: Yogev Rabl
URL: https://blueprints.launchpad.net/cind...
Whiteboard: upstream_milestone_icehouse-1 upstrea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 16:36 UTC by RHOS Integration
Modified: 2016-04-26 17:52 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2014-07-08 15:30:31 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0852 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement - Block Storage 2014-07-08 19:22:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.