Bug 1397405

Summary: OSP8 Undercloud metrics not being collected by C&U. Specifically CPU metrics but others are missing as well
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, david.costakos, jcutter, jfrey, jhardy, kmorey, ldomb, lsmola, ncatling, nstephan, obarenbo, rrasouli, simaishi, tzumainn, vestival, wrichter
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: All   
OS: All   
Whiteboard: openstack
Fixed In Version: 5.7.0.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1364584 Environment:
Last Closed: 2017-01-04 13:16:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On: 1364584    
Bug Blocks:    

Comment 2 CFME Bot 2016-11-22 15:06:10 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/57f10cc8788cf52153f7a52923ef3426e09c7108

commit 57f10cc8788cf52153f7a52923ef3426e09c7108
Author:     Greg Blomquist <blomquisg>
AuthorDate: Mon Nov 21 15:54:45 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 22 09:59:59 2016 -0500

    Merge pull request #12735 from tzumainn/openstack-cpu-meter-fix
    
    fix openstack cpu util meter name
    (cherry picked from commit f31cc255674334f0b2766eedcd978f56b1a2b8c7)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1397405

 .../providers/openstack/infra_manager/metrics_capture.rb |  2 +-
 .../openstack/infra_manager/metrics_capture_spec.rb      | 16 ++++++++--------
 .../openstack_data/openstack_perf_data/aggregate.yml     |  2 +-
 .../openstack_perf_data/irregular_interval.yml           |  2 +-
 .../openstack_perf_data/metadata_counters.yml            |  2 +-
 .../openstack_perf_data/multiple_collection_periods.yml  |  2 +-
 .../openstack_data/openstack_perf_data/standard.yml      |  2 +-
 7 files changed, 14 insertions(+), 14 deletions(-)

Comment 3 Ronnie Rasouli 2016-11-30 09:46:05 UTC
CPU metrics does not appear in utilization although they seen on ceilometer 

ceilometer meter-list | awk '{ print $2 }' | sort | uniq

cpu
cpu.delta
cpu_util
disk.allocation
disk.capacity
disk.device.allocation
disk.device.capacity
disk.device.read.bytes
disk.device.read.bytes.rate
disk.device.read.requests
disk.device.read.requests.rate
disk.device.usage
disk.device.write.bytes
disk.device.write.bytes.rate
disk.device.write.requests
disk.device.write.requests.rate
disk.ephemeral.size
disk.read.bytes
disk.read.bytes.rate
disk.read.requests
disk.read.requests.rate
disk.root.size
disk.usage
disk.write.bytes
disk.write.bytes.rate
disk.write.requests
disk.write.requests.rate
instance
memory
memory.resident
Name
network.incoming.bytes
network.incoming.bytes.rate
network.incoming.packets
network.incoming.packets.rate
network.outgoing.bytes
network.outgoing.bytes.rate
network.outgoing.packets
network.outgoing.packets.rate
storage.containers.objects
storage.containers.objects.size
storage.objects
storage.objects.containers
storage.objects.size
vcpus
volume.size

more /var/www/miq/vmdb/app/models/manageiq/providers/openstack/infra_manager/metrics_capture.rb
class ManageIQ::Providers::Openstack::InfraManager::MetricsCapture < ManageIQ::Providers::Open
stack::BaseMetricsCapture
  CPU_METERS     = %w(hardware.cpu.util)
  MEMORY_METERS  = %w(hardware.memory.used
                      hardware.memory.total)
  SWAP_METERS    = %w(hardware.memory.swap.avail
                      hardware.memory.swap.total)
  DISK_METERS    = %w(hardware.system_stats.io.outgoing.blocks
                      hardware.system_stats.io.incoming.blocks)
  NETWORK_METERS = %w(hardware.network.ip.incoming.datagrams

Comment 4 Ladislav Smola 2016-11-30 11:20:36 UTC
Ronnie you Ceilometer is configured badly, it seems to collect cloud data. If this is undercloud, you need to configure it to collect SNMP data, not cloud data.

Comment 6 Ronnie Rasouli 2016-12-01 08:27:37 UTC
Verified on RHOS9 CPU meters been gathered on 5.7.1.13

Comment 8 errata-xmlrpc 2017-01-04 13:16:49 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/RHBA-2017-0012.html