Bug 1524402
Summary: | [RFE] extend default volume resource type definition to include instance_id and image_id | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Luca Miccini <lmiccini> |
Component: | openstack-ceilometer | Assignee: | Eoghan Glynn <eglynn> |
Status: | CLOSED ERRATA | QA Contact: | Nataf Sharabi <nsharabi> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 10.0 (Newton) | CC: | augol, dwojewod, lnatapov, slinaber, srevivo, ssmolyak |
Target Milestone: | Upstream M1 | Keywords: | FutureFeature, TechPreview, Triaged |
Target Release: | 15.0 (Stein) | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-ceilometer-10.0.1-0.20180530162349.1c02e4b.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-09-21 11:15:27 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: | 1625912 | ||
Bug Blocks: |
Description
Luca Miccini
2017-12-11 12:39:13 UTC
I've been able to collect volume_type and image_id for volumes like the following: gnocchi resource-type update -a volume_type:string:false volume gnocchi resource-type update -a image_id:string:false volume [stack@undercloud-10 ~]$ gnocchi resource-type show volume +-------------------------+-----------------------------------------------------------+ | Field | Value | +-------------------------+-----------------------------------------------------------+ | attributes/display_name | max_length=255, min_length=0, required=False, type=string | | attributes/image_id | max_length=255, min_length=0, required=False, type=string | | attributes/volume_type | max_length=255, min_length=0, required=False, type=string | | name | volume | | state | active | +-------------------------+-----------------------------------------------------------+ and editing /etc/ceilometer/gnocchi_resources.yaml like: - resource_type: volume metrics: - 'volume' - 'volume.size' - 'volume.create' - 'volume.delete' - 'volume.update' - 'volume.resize' - 'volume.attach' - 'volume.detach' attributes: display_name: resource_metadata.display_name volume_type: resource_metadata.volume_type image_id: resource_metadata.glance_metadata[?key = "image_id"].value Note that we will not support upgrade if the Ceilometer resource-types are not those created by Ceilometer. Tracking new information always need code change, just hacking resource-types and yaml as workaround is rarely enough. So, this solution only partially works, only samples built from notification will have image_id set. For samples built by ceilometer-agent-central, the image_id will be empty. Your change will make the next major OSP upgrade fail for sure. This have been implemented upstream and will be part of OSP14 as planned. testing instructions is basically in the description of the bug. RFE are usually not backported. Also this feature have some database schema upgrade, that will break upgrade scenario if we backport it. Mehdi,please,provide testing instructions for this RFE. Thanks ! 1. create cinder volume from image, or create an instance from image (into new volume) 2. wait 5 minutes to let Ceilometer gather some data 3. check output from gnocchi resource show <VOLUME_UUID> --type volume Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:2811 |