Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1223257 - Undercloud ceilometer missing configuration in hardware section
Undercloud ceilometer missing configuration in hardware section
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: instack-undercloud (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
urgent Severity high
: ga
: 8.0 (Liberty)
Assigned To: Ben Nemec
Yurii Prokulevych
: Triaged, ZStream
: 1283647 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-20 04:53 EDT by Marius Cornea
Modified: 2016-04-07 17:37 EDT (History)
12 users (show)

See Also:
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 17:37:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 242652 None None None Never
OpenStack gerrit 282028 None None None 2016-02-18 14:45 EST
Red Hat Product Errata RHEA-2016:0604 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director Enhancement Advisory 2016-04-07 21:03:56 EDT

  None (edit)
Description Marius Cornea 2015-05-20 04:53:39 EDT
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 09:59:26 EDT
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 12:17:03 EST
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 10:06:22 EST
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 12:37:40 EST
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 13:49:58 EST
*** Bug 1283647 has been marked as a duplicate of this bug. ***
Comment 9 James Slagle 2016-02-17 12:39:10 EST
leaving blocker flag on this one as it's been fixed in osp7
Comment 10 James Slagle 2016-02-17 12:40:02 EST
actually the osp7 patch was never merged
Comment 11 Tzu-Mainn Chen 2016-02-18 14:21:54 EST
Looks like the patch was just merged upstream
Comment 12 Ben Nemec 2016-02-18 14:45:30 EST
Note that this needs to be backported for OSP 8.  I've proposed it upstream.
Comment 13 Tzu-Mainn Chen 2016-02-18 15:29:37 EST
whoops, this should remain ON_DEV then.
Comment 14 Tzu-Mainn Chen 2016-02-26 16:53:30 EST
The backport has been merged upstream.
Comment 16 Yurii Prokulevych 2016-03-17 08:39:11 EDT
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 17:37:18 EDT
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.