Bug 1563357

Summary: Incorrect storage type size in openstack cloud reports
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Jad Haj Yahya <jhajyahy>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, fdewaley, lavenel, lpichler, obarenbo, yrudman
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1578124 (view as bug list) Environment:
Last Closed: 2019-02-11 14:03:50 UTC Type: Bug
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:    
Bug Blocks: 1578124    

Description Felix Dewaleyne 2018-04-03 17:16:09 UTC
Description of problem:
Incorrect storage type size in openstack cloud reports

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

How reproducible:

Steps to reproduce:
  1. Add OpenStack cloud provider with a different type of storage in CloudForms. E.g. Type of storage "A" and "B"
  2. Navigate to "Cloud Intel -> Chargeback -> Rates -> Storage". 
  3. Add new chargeback rate, you see the same type of storage as OpenStack.
  4. Assing to "Tenants" this chargeback rate in "Assignments -> Storage"
  5. Create a Chargeback Report showing storage in the final report.
  6. Queue the report and analyze the results.

Actual results:
The Storage size is showed correctly, but all type of storage showed the same size.
If you have 3 GB of the type of storage "A" and 2 GB of the type of storage "B". The report shows it 5 GB of storage "A" and 5 GB of storage "B" 



Expected results:
the storage size is showed correctly with all types of storage showed the proper size

Additional info:
possibly a tied to bz#1559807

Comment 5 CFME Bot 2018-04-24 13:31:30 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/b8c7fd411de0b7c8c68db47445c8da1c6338f430
commit b8c7fd411de0b7c8c68db47445c8da1c6338f430
Author:     lpichler <lpichler>
AuthorDate: Tue Apr 10 14:24:54 2018 -0400
Commit:     lpichler <lpichler>
CommitDate: Tue Apr 10 14:24:54 2018 -0400

    get allocated sub_metric values from cloud volumes

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1563357

 app/models/chargeback/consumption_without_rollups.rb | 6 +-
 spec/models/chargeback_vm_spec.rb | 43 +
 2 files changed, 48 insertions(+), 1 deletion(-)

Comment 7 Jad Haj Yahya 2018-11-14 08:47:45 UTC
Hi,

Please supply more details on how to create the report:

What need tbe selected on "Base the report on" field and then on  "Available Fields:	"

Thanks

Comment 8 Jad Haj Yahya 2018-12-02 13:42:51 UTC
Hi,

Could you supply more details on how to create the report:

What need to be selected on "Base the report on" field and then on  "Available Fields:	"

Thanks

Comment 10 Jad Haj Yahya 2018-12-19 10:03:56 UTC
Verified on 5.10.0.28