Bug 1295809 - Require API to retrieve the osd utilization
Require API to retrieve the osd utilization
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: rc
: 2.0
Assigned To: Gregory Meno
: 1295810 (view as bug list)
Depends On:
Blocks: 1291304
  Show dependency treegraph
Reported: 2016-01-05 09:15 EST by Nishanth Thomas
Modified: 2016-08-23 15:29 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-08-23 15:29:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nishanth Thomas 2016-01-05 09:15:11 EST
Need an API to retrieve the total,used,free space of osds of a cluster
Comment 2 Federico Lucifredi 2016-01-06 12:00:17 EST
Shouldn't this be rather implemented in 2.0? switching to that version.
Comment 4 Federico Lucifredi 2016-01-06 12:02:29 EST
*** Bug 1295810 has been marked as a duplicate of this bug. ***
Comment 5 Nishanth Thomas 2016-01-27 14:07:18 EST
Yes this should be implemented in 2.0 so that USM can consume
Comment 6 Gregory Meno 2016-01-29 13:43:52 EST
We don't have this in the data from ceph which looks like this:
"osd_metadata": [
            "backend_filestore_partition_path": "unknown", 
            "backend_filestore_dev_node": "unknown", 
            "kernel_description": "#114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015", 
            "distro_version": "14.04", 
            "back_addr": "", 
            "osd": 0, 
            "distro_codename": "trusty", 
            "hostname": "vagrant-ubuntu-trusty-64", 
            "mem_swap_kb": "0", 
            "id": 0, 
            "ceph_version": "ceph version 9.2.0 (bb2ecea240f3a1d525bcb35670cb07bd1f0ca299)", 
            "distro": "Ubuntu", 
            "hb_back_addr": "", 
            "osd_objectstore": "filestore", 
            "osd_data": "/var/lib/ceph/osd/ceph-0", 
            "arch": "x86_64", 
            "hb_front_addr": "", 
            "distro_description": "Ubuntu 14.04.3 LTS", 
            "filestore_backend": "generic", 
            "front_addr": "", 
            "kernel_version": "3.13.0-71-generic", 
            "osd_journal": "/var/lib/ceph/osd/ceph-0/journal", 
            "filestore_f_type": "0xef53", 
            "mem_total_kb": "2049944", 
            "os": "Linux", 
            "cpu": "Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz"

Either rhs-controller can schedule a utilization check with salt or Ceph needs to grown the capability first.
Comment 7 Dusmant 2016-02-02 03:51:56 EST
Which one would be a better choice in your opinion?
Comment 8 Nishanth Thomas 2016-02-02 04:04:03 EST
Can calamari use 'ceph osd df' command to get utilization from ceph and expose it through an API?. We expect per OSD based utilization data here
Comment 9 Gregory Meno 2016-02-03 17:22:37 EST
That is a possibility. It should take 2 days
Comment 10 Gregory Meno 2016-02-23 16:55:12 EST
line 7: Require API to retrieve the osd utilization
    "command": ["ceph", "osd", "df", "--format=json-pretty"]
Comment 11 Mike McCune 2016-03-28 18:39:30 EDT
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune@redhat.com with any questions
Comment 13 Harish NV Rao 2016-05-30 04:30:27 EDT
verified in ceph version 10.2.1-3.el7cp (f6e1bde2840e1da621601bad87e15fd3f654c01e)
Comment 15 errata-xmlrpc 2016-08-23 15:29:16 EDT
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.


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