Bug 1535942
| Summary: | [RFE] Support volume metrics for GlusterFS PVs | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Humble Chirammal <hchiramm> |
| Component: | kubernetes | Assignee: | Humble Chirammal <hchiramm> |
| Status: | CLOSED ERRATA | QA Contact: | krishnaram Karthick <kramdoss> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.3 | CC: | asriram, hchiramm, kramdoss, madam, pprakash, rcyriac, rhs-bugs |
| Target Milestone: | --- | ||
| Target Release: | CNS 3.9 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-05 05:12:31 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1526413 | ||
|
Description
Humble Chirammal
2018-01-18 09:59:04 UTC
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 |