Bug 1563357 - Incorrect storage type size in openstack cloud reports
Summary: Incorrect storage type size in openstack cloud reports
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.9.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.10.0
Assignee: Libor Pichler
QA Contact: Jad Haj Yahya
URL:
Whiteboard:
Depends On:
Blocks: 1578124
TreeView+ depends on / blocked
 
Reported: 2018-04-03 17:16 UTC by Felix Dewaleyne
Modified: 2021-09-09 13:35 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1578124 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:03:50 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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