Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1625912

Summary: [RFE][Cinder] Volume resource metric: no image_id and instance_id in the properties
Product: Red Hat OpenStack Reporter: Sasha Smolyak <ssmolyak>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED WONTFIX QA Contact: Gurenko Alex <agurenko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: apevec, cschwede, eharney, gcharot, jschluet, lhh, mburns
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-20 15:12:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1524393, 1524402    

Description Sasha Smolyak 2018-09-06 08:33:57 UTC
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:

Comment 1 Mehdi ABAAKOUK 2018-09-17 14:43:29 UTC
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.

Comment 2 Gregory Charot 2019-05-20 15:12:25 UTC
Gnocchi won't be used going forward, closing - Feel free to re-open if this BZ impacts any other component.