Bug 1862607

Summary: [LSO] auto discovery should display disk size in a user friendly format.
Product: OpenShift Container Platform Reporter: Santosh Pillai <sapillai>
Component: StorageAssignee: Santosh Pillai <sapillai>
Storage sub component: Local Storage Operator QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: aos-bugs, hekumar, jsafrane, sabose, sapillai
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:21:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Santosh Pillai 2020-07-31 19:47:03 UTC
Description of problem:

Currently, LocalVolumeDiscovery result in LSO display disk size in integer bytes as resource.Quantity. We need to change the type from resource.Quanity to int64

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


How reproducible:


Steps to Reproduce:
1. Start LSO operator
2. Apply local volume discovery CR
3. Observe the disk size in the discovery result status. 

Actual results:
Currently the auto discovery in LSO display disk size in integer bytes as resource.Quantity

Expected results:
This should be updated from resource.Quanity to int64


Additional info:

Comment 1 Sahina Bose 2020-08-24 08:20:51 UTC
Hemant, can you review and merge PR? We have some UI work blocked on this.

Comment 4 Chao Yang 2020-09-02 08:38:58 UTC
Verify is passed with local-storage-operator.4.6.0-202008311758.p0
nvme2n1                      259:6    0     3G  0 disk 
`-nvme2n1p1                  259:9    0     2G  0 part 

oc get pv
NAME                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM   STORAGECLASS   REASON   AGE
local-pv-7f35646    2Gi        RWO            Delete           Available           lvs-part                2s

Comment 5 Chao Yang 2020-09-02 11:27:49 UTC
  - deviceID: /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0b71cc5533914c3b3-part1
    fstype: ext4
    model: ""
    path: /dev/nvme2n1p1
    property: NonRotational
    serial: ""
    size: 2147483648
    status:
      state: NotAvailable
    type: part
    vendor: ""

Comment 8 errata-xmlrpc 2020-10-27 16:21:54 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 (OpenShift Container Platform 4.6 GA Images), 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:4196

Comment 9 Red Hat Bugzilla 2023-09-14 06:04:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days