Bug 1223257
| Summary: | Undercloud ceilometer missing configuration in hardware section | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Marius Cornea <mcornea> |
| Component: | instack-undercloud | Assignee: | Ben Nemec <bnemec> |
| Status: | CLOSED ERRATA | QA Contact: | Yurii Prokulevych <yprokule> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.0 (Kilo) | CC: | achernet, bnemec, dmacpher, hbrock, jslagle, kmorey, mburns, ncatling, ohochman, rhel-osp-director-maint, tzumainn, yprokule |
| Target Milestone: | ga | Keywords: | Triaged, ZStream |
| Target Release: | 8.0 (Liberty) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | instack-undercloud-2.2.4-1.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
A misconfiguration of Ceilometer on the Undercloud caused hardware meters to not work correctly. This fix provides a vaild default Ceilometer configuration. Now Ceilometer hardware meters work as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-07 21:37:18 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
Marius Cornea
2015-05-20 08:53:39 UTC
Adding the workaround I've been using to get the overcloud snmp metrics shown in the undercloud ceilometer:
crudini --set /etc/ceilometer/ceilometer.conf hardware url_scheme 'snmp://'
crudini --set /etc/ceilometer/ceilometer.conf hardware readonly_user_name ro_snmp_user
crudini --set /etc/ceilometer/ceilometer.conf hardware readonly_user_password ro_snmp_user_pass
cat > /etc/ceilometer/pipeline.yaml << EOF
sources:
- name: host_source
interval: 600
meters:
- "hardware.*"
sinks:
- "meter_sink"
- "cpu_sink"
- "swap_sink"
discovery:
- "tripleo_overcloud_nodes"
sinks:
- name: meter_sink
transformers:
publishers:
- rpc://
- name: cpu_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.system_stats.cpu.util"
unit: "%"
type: "gauge"
expr: "100 - \$(hardware.system_stats.cpu.idle)"
publishers:
- rpc://
- name: swap_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.memory.swap.util"
unit: "%"
type: "gauge"
expr: "100 - (100 * \$(hardware.memory.swap.avail) / \$(hardware.memory.swap.total))"
publishers:
- rpc://
EOF
systemctl restart openstack-ceilometer-central.service
I pushed a patch upstream that fixes this (attached as an external reference). It won't backport cleanly, but it's fairly simple so it shouldn't be too bad. I'll try to get it proposed downstream today. Moving to 8.0 because we will definitely fix this but we aren't going to block the release of 7.2 for it. Ben, can you sync with Emilien on this to make sure you're on the same page as he's working on Aodh and Gnocchi. *** Bug 1283647 has been marked as a duplicate of this bug. *** leaving blocker flag on this one as it's been fixed in osp7 actually the osp7 patch was never merged Looks like the patch was just merged upstream Note that this needs to be backported for OSP 8. I've proposed it upstream. whoops, this should remain ON_DEV then. The backport has been merged upstream. Verified in instack-undercloud-2.2.5-1.el7ost.noarch. Ceilometer retrieves SNMP meter from overcloud compute/controller nodes. 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://rhn.redhat.com/errata/RHEA-2016-0604.html |