Bug 1535942 - [RFE] Support volume metrics for GlusterFS PVs
Summary: [RFE] Support volume metrics for GlusterFS PVs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: kubernetes
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: CNS 3.9
Assignee: Humble Chirammal
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1526413
TreeView+ depends on / blocked
 
Reported: 2018-01-18 09:59 UTC by Humble Chirammal
Modified: 2023-09-14 04:15 UTC (History)
7 users (show)

Fixed In Version: 3.9.0-0.36.0.git.0.8f8b69d
Doc Type: Enhancement
Doc Text:
With this release, glusterfs PVs show the volume metrics about the PV such as available/used space, capacity, inodes in use/free. It is possible to query this metrics and do capacity planning based on the same.
Clone Of:
Environment:
Last Closed: 2018-04-05 05:12:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0645 0 None None None 2018-04-05 05:12:58 UTC

Description Humble Chirammal 2018-01-18 09:59:04 UTC
Description of problem:


(CNS/CRS)
From OCP PV details and metrics shows the PV consumption in addition to allocated PV size.  This is a feature request to enable volume metrics for glusterfs plugin so that metrics can collect the stats of GlusterFS PVs.




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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Humble Chirammal 2018-02-01 11:45:42 UTC
OCP 3.9 PR (https://github.com/openshift/origin/pull/18091) got merged last week, moving this to MODIFIED.

Comment 7 Humble Chirammal 2018-02-12 07:33:14 UTC
Karthick, a quick update here. The volume metrics are exposed for gluster PVs with latest OCP builds. There are different mechanisms to get the stats. If you configure prometheous and check the status you will be able to see it in exported data. How to configure prometheous, I would say co-ordinate with OCP QE as they have a written procedure for configuring and testing volume metircs. 

There is also another way of checking the status by 'curl'. That said, Once I deployed the cluster and after creating a PVC and attaching to a pod if I curl `http://localhost:10255/metrics` I can see below stats about GlusterFS PV which is used in a pod with claim name as "claim1".

-----snip--


# HELP kubelet_volume_stats_available_bytes Number of available bytes in the volume
# TYPE kubelet_volume_stats_available_bytes gauge
kubelet_volume_stats_available_bytes{namespace="default",persistentvolumeclaim="claim1"} 8.543010816e+09
# HELP kubelet_volume_stats_capacity_bytes Capacity in bytes of the volume
# TYPE kubelet_volume_stats_capacity_bytes gauge
kubelet_volume_stats_capacity_bytes{namespace="default",persistentvolumeclaim="claim1"} 8.57735168e+09
# HELP kubelet_volume_stats_inodes Maximum number of inodes in the volume
# TYPE kubelet_volume_stats_inodes gauge
kubelet_volume_stats_inodes{namespace="default",persistentvolumeclaim="claim1"} 4.19328e+06
# HELP kubelet_volume_stats_inodes_free Number of free inodes in the volume
# TYPE kubelet_volume_stats_inodes_free gauge
kubelet_volume_stats_inodes_free{namespace="default",persistentvolumeclaim="claim1"} 4.193257e+06
# HELP kubelet_volume_stats_inodes_used Number of used inodes in the volume
# TYPE kubelet_volume_stats_inodes_used gauge
kubelet_volume_stats_inodes_used{namespace="default",persistentvolumeclaim="claim1"} 23
# HELP kubelet_volume_stats_used_bytes Number of used bytes in the volume
# TYPE kubelet_volume_stats_used_bytes gauge
kubelet_volume_stats_used_bytes{namespace="default",persistentvolumeclaim="claim1"} 3.4340864e+07


-----/snip---------

This stats is exported by the Plugin for consumption and have data about the fuse mounted  volume .

Comment 10 krishnaram Karthick 2018-03-14 09:48:04 UTC
All approved test cases for this feature has passed and there are no open bug for this feature in the following build.

oc version
oc v3.9.7
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://dhcp46-24.lab.eng.blr.redhat.com:8443
openshift v3.9.7
kubernetes v1.9.1+a0ce1bc657

Moving the RFE bug to verified.

Comment 15 errata-xmlrpc 2018-04-05 05:12:31 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/RHEA-2018:0645

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


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