Bug 1782902
| Summary: | openshift vms using G, M units cause storage consumption to be ignored in reports | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Felix Dewaleyne <fdewaley> | |
| Component: | Providers | Assignee: | Adam Grare <agrare> | |
| Status: | CLOSED NOTABUG | QA Contact: | juwatts | |
| Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | |
| Priority: | medium | |||
| Version: | 5.10.13 | CC: | dmetzger, fdewaley, jfrey, jhardy, obarenbo | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.12.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1785358 1785361 (view as bug list) | Environment: | ||
| Last Closed: | 2020-06-10 13:09:59 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1785358, 1785361 | |||
|
Description
Felix Dewaleyne
2019-12-12 15:44:23 UTC
New commit detected on ManageIQ/manageiq-providers-kubernetes/master: https://github.com/ManageIQ/manageiq-providers-kubernetes/commit/89de5b82c12e47bf632017a59d5fd79dd7e18c4e commit 89de5b82c12e47bf632017a59d5fd79dd7e18c4e Author: Adam Grare <agrare> AuthorDate: Thu Dec 12 09:52:46 2019 -0500 Commit: Adam Grare <agrare> CommitDate: Thu Dec 12 09:52:46 2019 -0500 Fix parsing capacity fields of the form 50M or 1G If the storage capacity attribute is of the form 50M or 1G the parse_capacity_field method which only expects IEC 60027-2 style values will fail: ``` MIQ(ManageIQ::Providers::Openshift::ContainerManager::RefreshParser#parse_capacity_field) Capacity attribute - storage was in bad format - 1G ``` Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1782902 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(-) |