Bug 1384106 - [GSS] RHSC parsing Terabytes units causes error
Summary: [GSS] RHSC parsing Terabytes units causes error
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: Ceph
Version: 2
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
: 2
Assignee: Shubhendu Tripathi
QA Contact: sds-qe-bugs
URL:
Whiteboard:
: 1458051 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-12 14:43 UTC by Tomas Petr
Modified: 2021-08-30 13:16 UTC (History)
11 users (show)

Fixed In Version: rhscon-ceph-0.0.44-1.el7scon
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-05 12:22:21 UTC
Target Upstream Version:


Attachments (Terms of Use)
RHSC dashboard with parsed TB units (31.41 KB, image/png)
2017-05-30 06:56 UTC, Tomas Petr
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2944421 0 None None None 2017-06-01 08:07:27 UTC

Description Tomas Petr 2016-10-12 14:43:09 UTC
Description of problem:
this could be an issue as we parse ceph command output because there was no proper output from ceph cli json output

regarding size, there is an issue as we are able to parse in k, M and G (kb, mb, gb), but not in T (tb)

2016-10-12T12:15:59.105+02:00 ERROR    monitoring.go:1015 FetchClusterStats] skyring:0b783375-03b6-4793-97bf-0dea590c6f9b - Failed to fetch cluster usage statistics.Error Failed to fetch cluster stats from cluster ceph.Could not unmarshal GLOBAL:
    SIZE     AVAIL     RAW USED     %RAW USED 
    210T      142T       69100G         32.13 
POOLS:
    NAME                ID     USED       %USED     MAX AVAIL     OBJECTS  
    rbd                 0           0         0        45281G            0 
    cephfs_data         1      22975G     33.66        45281G     14741206 
    cephfs_metadata     2      61931k         0        45281G       114516 
.Error . Failed to fetch cluster total size. Error strconv.ParseInt: parsing "210T": invalid syntax. Failed to fetch cluster available size.Error strconv.ParseInt: parsing "142T": invalid syntax

Version-Release number of selected component (if applicable):
rhscon-core-0.0.41-1.el7scon.x86_64

How reproducible:
easily

Steps to Reproduce:
1.
2.
3.

Actual results:
Error when parsing in T units

Expected results:
no error

Additional info:

Comment 6 anmol babu 2017-04-17 18:29:14 UTC
@Tomas Petr The fix you are suggesting is precise

Comment 10 Tomas Petr 2017-05-30 06:56:37 UTC
Created attachment 1283356 [details]
RHSC dashboard with parsed TB units

Comment 11 anmol babu 2017-05-30 07:44:11 UTC
Tomas, Harald,

There's a fix in place https://review.gerrithub.io/#/c/297970/ dated Oct 12, 2016. @Nishanth can we pull it in...

Comment 13 Nishanth Thomas 2017-06-20 04:16:53 UTC
Sure, I going to do it soon

Comment 14 Petr Penicka 2017-07-25 14:14:14 UTC
Exceptionally giving qa_ack as a PgM since QE are on PTO and we need to move this forward.

Comment 16 Petr Penicka 2017-07-26 09:21:50 UTC
Switching all acks back to + after flag reset due to change of component.

Comment 18 Shubhendu Tripathi 2017-07-31 07:21:30 UTC
@Nishanth, can you confirm?

Comment 21 Shubhendu Tripathi 2018-10-01 11:42:34 UTC
wont fix

Comment 22 Martin Bukatovic 2018-11-07 09:07:25 UTC
*** Bug 1458051 has been marked as a duplicate of this bug. ***


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