Comment 3 for bug 1653231

Revision history for this message
Edward Hope-Morley (hopem) wrote :

I just ried a test. The cinder charm is already configured to provide notifications ("[oslo_messaging_notifications] driver = messagingv2") but I am not seeing all the expected meters as per http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-block-storage:

ubuntu@xenial$ cinder list
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| d154a1e8-c903-45d1-867c-8c82dc5f9c2d | available | - | 1 | - | false | |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
ubuntu@xenial$ ceilometer meter-list| grep volume
| volume.size | gauge | GB | d154a1e8-c903-45d1-867c-8c82dc5f9c2d | 0a91d38c85c9437caa92b8ac10e1eebe | 71aaf5f27079464fa6f82e23b0360a4a |
ubuntu@xenial$ ceilometer sample-list| grep volume
| 09458900-e3d9-11e6-991e-fa163e150a2a | d154a1e8-c903-45d1-867c-8c82dc5f9c2d | volume.size | gauge | 1.0 | GB | 2017-01-26T15:06:39.201000 |
| 08656f00-e3d9-11e6-991e-fa163e150a2a | d154a1e8-c903-45d1-867c-8c82dc5f9c2d | volume.size | gauge | 1.0 | GB | 2017-01-26T15:06:37.723000 |
ubuntu@xenial$ nova volume-attach bb5a6774-8620-4a7d-aa85-e590c6dfa6b0 d154a1e8-c903-45d1-867c-8c82dc5f9c2d
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | d154a1e8-c903-45d1-867c-8c82dc5f9c2d |
| serverId | bb5a6774-8620-4a7d-aa85-e590c6dfa6b0 |
| volumeId | d154a1e8-c903-45d1-867c-8c82dc5f9c2d |
+----------+--------------------------------------+
ubuntu@xenial$ ceilometer meter-list| grep volume
| volume.size | gauge | GB | d154a1e8-c903-45d1-867c-8c82dc5f9c2d | 0a91d38c85c9437caa92b8ac10e1eebe |
juju ssh cinder/0 sudo cinder-volume-usage-audit
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2017-01-26 15:25:24.008 13018 WARNING oslo_config.cfg [req-21c4fbd0-ee80-4b19-8ea1-a978c354cb6e - - - - -] Option "notification_driver" from group "DEFAULT" is deprecated. Use option "driver" from group "oslo_messaging_notifications".
/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
Connection to 2001:db8:0:1:f816:3eff:fef0:165c closed.
ubuntu@xenial$ ceilometer meter-list| grep volume
| volume.size | gauge | GB | d154a1e8-c903-45d1-867c-8c82dc5f9c2d | 0a91d38c85c9437caa92b8ac10e1eebe |