Bug 1785358

Summary: openshift vms using G, M units cause storage consumption to be ignored in reports
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: juwatts
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.13CC: dmetzger, fdewaley, jfrey, jhardy, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.14   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.14.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1782902 Environment:
Last Closed: 2020-01-21 16:51:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1782902    
Bug Blocks:    

Comment 2 CFME Bot 2019-12-19 19:01:13 UTC
New commit detected on ManageIQ/manageiq-providers-kubernetes/hammer:

https://github.com/ManageIQ/manageiq-providers-kubernetes/commit/50fd580553647c5f56123905f604b869372a977d
commit 50fd580553647c5f56123905f604b869372a977d
Author:     Beni Cherniavsky-Paskin <cben>
AuthorDate: Sun Dec 15 05:22:11 2019 -0500
Commit:     Beni Cherniavsky-Paskin <cben>
CommitDate: Sun Dec 15 05:22:11 2019 -0500

    Merge pull request #352 from agrare/fix_capacity_field_parsing_of_decimal_values

    Fix parsing capacity fields of the form 50M or 1G

    (cherry picked from commit ecea23d8452803b1fcaeb91e7ced7ce100668442)

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

 app/models/manageiq/providers/kubernetes/container_manager/refresh_parser.rb | 2 +-
 spec/models/manageiq/providers/kubernetes/container_manager/refresh_parser_spec.rb | 48 +
 2 files changed, 49 insertions(+), 1 deletion(-)

Comment 3 juwatts 2020-01-09 18:23:32 UTC
Verified in 5.10.14.0.20200107223945_aa73a61

Verification steps:
1) Created two new PVs in Openshift, one with G and the other with M as the unit
2) Refreshed the Openshift provider in the CloudForms GUI, verified no warning was logged
3) Created a new report based on Persistent Volumes
4) Verified the report was generated with the correct data.

Comment 5 errata-xmlrpc 2020-01-21 16:51:47 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://access.redhat.com/errata/RHBA-2020:0189