Bug 1345832 - memory metric not being rolled up to OSP Availability zones
Summary: memory metric not being rolled up to OSP Availability zones
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.7.0
Assignee: Scott Seago
QA Contact: Nandini Chandra
URL:
Whiteboard: openstack:c&u
Depends On:
Blocks: 1345837 1349421
TreeView+ depends on / blocked
 
Reported: 2016-06-13 09:38 UTC by Nandini Chandra
Modified: 2017-01-12 05:14 UTC (History)
12 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1349421 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:05:48 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nandini Chandra 2016-06-13 09:38:13 UTC
Description of problem:
----------------------
With the fix in https://bugzilla.redhat.com/show_bug.cgi?id=1193205, CFME can now collect memory metrics for OSP instances.

However, this memory metric(derived_memory_used) is not being rolled up to OSP Availability zones.

vmdb_production=# select derived_memory_used from metric_rollups where resource_type = 'AvailabilityZone'\x\g\x
[ RECORD 11 ]-------------+--
derived_memory_used        | 
 
-[ RECORD 12 ]-------------+--
derived_memory_used        | 
 | 
-[ RECORD 13 ]-------------+--



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


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Enable C&U collection for OSP provider
2.Check the metric_rollups DB table.


Actual results:
--------------
Memory metric is not being rolled up to OSP Availability zones.This data is not available in the DB and hence the C&U graph for memory usage is also missing.


Expected results:
----------------
Memory metric should be rolled up to OSP Availability zones.


Additional info:
----------------

Comment 3 Scott Seago 2016-06-30 02:19:25 UTC
Are the other metrics showing up fine, or are others missing too?

Comment 4 Scott Seago 2016-07-06 14:57:30 UTC
Clearing needinfo since I've reproduced and resolved this locally (PR forthcoming)

Comment 5 Scott Seago 2016-07-06 20:27:50 UTC
So this bug as written only covers getting Maemory usage into the metric_rollups db table. It looks like the lack of Memory in the C&U graphs is a separate issue. Should that be fixed as part of this BZ, or is that a separate fix?

Comment 6 Nandini Chandra 2016-07-07 17:45:48 UTC
Scott,

The C&U graphs would be a separate issue.I'll open a bug to address that issue.

Comment 8 CFME Bot 2016-07-19 21:15:47 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/64cdd254eebed3a23f28ab28c220d1c06d64d6bd

commit 64cdd254eebed3a23f28ab28c220d1c06d64d6bd
Author:     Scott Seago <sseago>
AuthorDate: Thu Jul 7 18:47:21 2016 -0400
Commit:     Scott Seago <sseago>
CommitDate: Mon Jul 11 12:12:26 2016 -0400

    memory metric not being rolled up to OSP Availability zones
    
    This PR adds derived_memory_used to metric rollups for Availability Zones
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1345832

 app/models/metric/rollup.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 9 Nandini Chandra 2016-10-06 16:47:55 UTC
Verified in 5.7.0.3.


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