Bug 1625912 - [RFE][Cinder] Volume resource metric: no image_id and instance_id in the properties
Summary: [RFE][Cinder] Volume resource metric: no image_id and instance_id in the prop...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Emilien Macchi
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks: 1524393 1524402
TreeView+ depends on / blocked
 
Reported: 2018-09-06 08:33 UTC by Sasha Smolyak
Modified: 2019-05-20 15:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-20 15:12:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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