Bug 1223257 - Undercloud ceilometer missing configuration in hardware section
Summary: Undercloud ceilometer missing configuration in hardware section
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: instack-undercloud
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Ben Nemec
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
: 1283647 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-20 08:53 UTC by Marius Cornea
Modified: 2016-04-07 21:37 UTC (History)
12 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-04-07 21:37:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 242652 0 None None None Never
OpenStack gerrit 282028 0 None None None 2016-02-18 19:45:29 UTC
Red Hat Product Errata RHEA-2016:0604 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director Enhancement Advisory 2016-04-08 01:03:56 UTC

Description Marius Cornea 2015-05-20 08:53:39 UTC
Description of problem:
The undercloud Ceilometer is missing the configuration in hardware section of /etc/ceilometer/ceilometer.conf for accessing overcloud nodes meters via snmp. 

Version-Release number of selected component (if applicable):

instack-0.0.6-1.el7ost.noarch
instack-undercloud-2.1.1-dev14.el7.centos.noarch
openstack-tripleo-puppet-elements-0.0.1-dev63.el7.centos.noarch
tripleo-common-0.0.0-post4.el7.centos.noarch
openstack-tripleo-image-elements-0.9.5-post1.el7.centos.noarch
openstack-tripleo-0.0.6-dev1717.el7.centos.noarch
openstack-tripleo-heat-templates-0.8.6-dev5.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install rdo-manager in a virtual environment on RHEL
2. Deploy undercloud
3. Deploy overcloud
4. Run 'ceilometer meter-list' on the undercloud node

Actual results:
It returns images and network related meters. 

Expected results:
It should list hardware related meters pulled from overcloud nodes via SNMP.

Additional info:
The hardware section should contain something like this:

[hardware]
url_scheme=snmp://
# Credentials for readonly SNMPd user of all Overcloud nodes
readonly_user_name=ro_snmp_user
readonly_user_password=cdd1ad5c5bbc4e0a14c13c889a43fefe79186fc0

Comment 4 Marius Cornea 2015-10-19 13:59:26 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

Comment 5 Ben Nemec 2015-11-09 17:17:03 UTC
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.

Comment 6 chris alfonso 2015-11-17 15:06:22 UTC
Moving to 8.0 because we will definitely fix this but we aren't going to block the release of 7.2 for it.

Comment 7 chris alfonso 2015-12-07 17:37:40 UTC
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.

Comment 8 Tzu-Mainn Chen 2016-02-05 18:49:58 UTC
*** Bug 1283647 has been marked as a duplicate of this bug. ***

Comment 9 James Slagle 2016-02-17 17:39:10 UTC
leaving blocker flag on this one as it's been fixed in osp7

Comment 10 James Slagle 2016-02-17 17:40:02 UTC
actually the osp7 patch was never merged

Comment 11 Tzu-Mainn Chen 2016-02-18 19:21:54 UTC
Looks like the patch was just merged upstream

Comment 12 Ben Nemec 2016-02-18 19:45:30 UTC
Note that this needs to be backported for OSP 8.  I've proposed it upstream.

Comment 13 Tzu-Mainn Chen 2016-02-18 20:29:37 UTC
whoops, this should remain ON_DEV then.

Comment 14 Tzu-Mainn Chen 2016-02-26 21:53:30 UTC
The backport has been merged upstream.

Comment 16 Yurii Prokulevych 2016-03-17 12:39:11 UTC
Verified in instack-undercloud-2.2.5-1.el7ost.noarch.
Ceilometer retrieves SNMP meter from overcloud compute/controller nodes.

Comment 18 errata-xmlrpc 2016-04-07 21:37:18 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://rhn.redhat.com/errata/RHEA-2016-0604.html


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