Bug 1505753
| Summary: | [GSS]We can't get disk usage for instance if the storage back is Ceph rbd. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | liuwei <wliu> |
| Component: | openstack-ceilometer | Assignee: | Julien Danjou <jdanjou> |
| Status: | CLOSED ERRATA | QA Contact: | Sasha Smolyak <ssmolyak> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 10.0 (Newton) | CC: | cchen, dvd, jdanjou, jruzicka, lruzicka, mabaakou, marjones, srevivo, ssmolyak, wliu |
| Target Milestone: | z7 | Keywords: | Reopened, Triaged, ZStream |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-ceilometer-7.1.1-4 | Doc Type: | Bug Fix |
| Doc Text: |
Originally, when a Nova instance was running with a disk backed by Ceph, Ceilometer ignored the disk meters. The problem has been fixed. As a result, Ceilometer properly polls these meters.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-18 17:00:28 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: | |||
|
Description
liuwei
2017-10-24 08:41:04 UTC
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/RHBA-2017:3228 The backported patch should work in this case AFAICS. Did you check ceilometer-compute log file on the host running this VM? Also this VM has 3 disks attached to it. Are you sure you are checking the metrics of the *DISK* and the metrics of the *INSTANCE*? Hi jd,
I checked the newest ceilometer/compute.log and I didn't find any logs related to disk.usage polling.
$ grep 'disk.usage' compute.log | wc -l
0
Then I looked at the compute.log to find out the config file when the ceilometer-compute starts. I didn't find disk.usage in the config as well.
2017-11-30 09:13:27.724 972547 INFO ceilometer.pipeline [-] Config file: {'sources': [{'interval': 600, 'meters': ['cpu', 'memory.usage', 'network.incoming.bytes', 'network.incoming.packets', 'network.outgoing.bytes', 'network.outgoing.packets', 'disk.read.bytes', 'disk.read.requests', 'disk.write.bytes', 'disk.write.requests', 'hardware.cpu.util', 'hardware.memory.used', 'hardware.memory.total', 'hardware.memory.buffer', 'hardware.memory.cached', 'hardware.memory.swap.avail', 'hardware.memory.swap.total', 'hardware.system_stats.io.outgoing.blocks', 'hardware.system_stats.io.incoming.blocks', 'hardware.network.ip.incoming.datagrams', 'hardware.network.ip.outgoing.datagrams'], 'name': 'some_pollsters', 'sinks': ['meter_sink']}, {'interval': 600, 'meters': ['cpu'], 'name': 'cpu_source', 'sinks': ['cpu_sink', 'cpu_delta_sink']}, {'interval': 600, 'meters': ['disk.read.bytes', 'disk.read.requests', 'disk.write.bytes', 'disk.write.requests', 'disk.device.read.bytes', 'disk.device.read.requests', 'disk.device.write.bytes', 'disk.device.write.requests'], 'name': 'disk_source', 'sinks': ['disk_sink']}, {'interval': 600, 'meters': ['network.incoming.bytes', 'network.incoming.packets', 'network.outgoing.bytes', 'network.outgoing.packets'], 'name': 'network_source', 'sinks': ['network_sink']}], 'sinks': [{'publishers': ['notifier://'], 'transformers': None, 'name': 'meter_sink'}, {'publishers': ['notifier://'], 'transformers': [{'name': 'rate_of_change', 'parameters': {'target': {'max': 100, 'scale': '100.0 / (10**9 * (resource_metadata.cpu_number or 1))', 'type': 'gauge', 'name': 'cpu_util', 'unit': '%'}}}], 'name': 'cpu_sink'}, {'publishers': ['notifier://'], 'transformers': [{'name': 'delta', 'parameters': {'target': {'name': 'cpu.delta'}, 'growth_only': True}}], 'name': 'cpu_delta_sink'}, {'publishers': ['notifier://'], 'transformers': [{'name': 'rate_of_change', 'parameters': {'source': {'map_from': {'name': '(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)', 'unit': '(B|request)'}}, 'target': {'map_to': {'name': '\\1.\\2.\\3.rate', 'unit': '\\1/s'}, 'type': 'gauge'}}}], 'name': 'disk_sink'}, {'publishers': ['notifier://'], 'transformers': [{'name': 'rate_of_change', 'parameters': {'source': {'map_from': {'name': 'network\\.(incoming|outgoing)\\.(bytes|packets)', 'unit': '(B|packet)'}}, 'target': {'map_to': {'name': 'network.\\1.\\2.rate', 'unit': '\\1/s'}, 'type': 'gauge'}}}], 'name': 'network_sink'}]}
My understanding is that the python-ceilometer-compute will read /etc/ceilometer/polling.yaml to decide which metrics are going to be collected in OSP10. But from the above it seems that ceilometer-compute was using /etc/ceilometer/pipeline.yaml. So I am confused about the real configuration which will be used by ceilometer-compute. Would you please help me to identify this ?
Best Regards,
Chen
|