Add new notifications types for volumes/snapshots¶
Now we have only two types of notifications about volumes/snapshots: volume/snapshot existence and their size. This change allows to collect and view notifications of different types. We can get information about which events have occurred: volume/snapshot has been created or deleted or updated(renamed or modified description), volume has been resized or attached/detached. This will allow to process additional events and will improve the overall Ceilometer functionality.
Now we have only two types of notifications about volumes/snapshots: volume/snapshot existence and their size. But there is no information about events like volume/snapshot was created or deleted or updated or volume was resized or attached/detached.
This change allows to collect and view notifications of different types - volume/snapshot.create.start, volume/snapshot.create.end, volume/snapshot.delete.start, volume/snapshot.delete.end, volume/snapshot.update.start, volume/snapshot.update.end, volume.resize.start, volume.resize.end, volume.attach.start, volume.attach.end, volume.detach.start, volume.detach.end.
Data model impact¶
REST API impact¶
Other end user impact¶
Other deployer impact¶
- Primary assignee:
Implement appropriate handler classes.
This change needs to be tested by unit tests.
We need to add new meter types to http://docs.openstack.org/developer/ceilometer/measurements.html.
https://github.com/openstack/cinder/blob/master/bin/cinder-volume-usage-audit https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py https://github.com/openstack/cinder/blob/master/cinder/api/v2/volumes.py https://github.com/openstack/cinder/blob/master/cinder/api/v1/volumes.py https://github.com/openstack/cinder/blob/master/cinder/api/v1/snapshots.py https://github.com/openstack/cinder/blob/master/cinder/api/v2/snapshots.py https://github.com/openstack/cinder/blob/master/cinder/volume/flows/manager/create_volume.py