Description of problem: When launching volume, create a metric resource. There are supposed to be instance_id and image)id fields there. The fields are present, but they are empty (None) Version-Release number of selected component (if applicable): gnocchi-common-4.2.6-0.20180619162839.c98ac78.el7ost.noarch gnocchi-api-4.2.6-0.20180619162839.c98ac78.el7ost.noarch gnocchi-metricd-4.2.6-0.20180619162839.c98ac78.el7ost.noarch python-gnocchi-4.2.6-0.20180619162839.c98ac78.el7ost.noarch python2-gnocchiclient-7.0.2-0.20180621114111.a45c275.el7ost.noarch puppet-gnocchi-13.2.0-0.20180725210839.23d4b81.el7ost.noarch gnocchi-statsd-4.2.6-0.20180619162839.c98ac78.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1. Launch an instance 2. Create a volume 3. Add the volume to the instance 4. Observe: openstack metric resource show -t volume <VolumeID> Actual results: The fields image_id and instance_id present and are empty Expected results: The fields image_id and instance_id are supposed to contain image and instance IDs of the connected instance Additional info:
That doesn't work because Cinder audit notification are not enabled by default in OSP. cinder configuration must contains: volume_usage_audit_period = hour And cinder-volume-usage-audit must be run in a crontab.
Gnocchi won't be used going forward, closing - Feel free to re-open if this BZ impacts any other component.