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:
OCP 3.9 PR (https://github.com/openshift/origin/pull/18091) got merged last week, moving this to MODIFIED.
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 .
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.
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
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days