Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: make inode metrics optional in FilesystemNodeGetVolumeStats() #3407

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

nixpanic
Copy link
Member

@nixpanic nixpanic commented Oct 3, 2022

CephFS does not have a concept of "free inodes", inodes get allocated on-demand in the filesystem.

This confuses alerting managers that expect a (high) number of free inodes, and warnings get produced if the number of free inodes is not high enough. This causes alerts to always get reported for CephFS.

To prevent the false-positive alerts from happening, the NodeGetVolumeStats procedure for CephFS (and CephNFS) will not contain inodes in the reply anymore.

See-also: https://bugzilla.redhat.com/2128263

Manually Tested

I1006 13:03:58.475803       1 utils.go:195] ID: 43 GRPC call: /csi.v1.Node/NodeGetVolumeStats
I1006 13:03:58.475860       1 utils.go:206] ID: 43 GRPC request: {"volume_id":"0001-0011-openshift-storage-0000000000000001-f2ac6808-4576-11ed-afe6-0a580a830013","volume_path":"/var/lib/kubelet/pods/b7ef5a15-3894-487e-a835-3df7975bb3a2/volumes/kubernetes.io~csi/pvc-8e112fb2-b642-4d81-8d00-97302d9a0880/mount"}
I1006 13:03:58.476407       1 utils.go:212] ID: 43 GRPC response: {"usage":[{"available":1073741824,"total":1073741824,"unit":1}]}

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)
  • /retest all: run this in case the CentOS CI failed to start/report any test
    progress or results

@nixpanic nixpanic added component/cephfs Issues related to CephFS component/util Utility functions shared between CephFS and RBD component/nfs Issues related to NFS labels Oct 3, 2022
@nixpanic nixpanic marked this pull request as ready for review October 4, 2022 11:40
@nixpanic nixpanic requested a review from a team October 4, 2022 11:40
@nixpanic
Copy link
Member Author

nixpanic commented Oct 5, 2022

/test ci/centos/k8s-e2e-external-storage/1.22

1 similar comment
@nixpanic
Copy link
Member Author

nixpanic commented Oct 5, 2022

/test ci/centos/k8s-e2e-external-storage/1.22

@nixpanic
Copy link
Member Author

@Mergifyio rebase

CephFS does not have a concept of "free inodes", inodes get allocated
on-demand in the filesystem.

This confuses alerting managers that expect a (high) number of free
inodes, and warnings get produced if the number of free inodes is not
high enough. This causes alerts to always get reported for CephFS.

To prevent the false-positive alerts from happening, the
NodeGetVolumeStats procedure for CephFS (and CephNFS) will not contain
inodes in the reply anymore.

See-also: https://bugzilla.redhat.com/2128263
Signed-off-by: Niels de Vos <[email protected]>
@mergify
Copy link
Contributor

mergify bot commented Oct 13, 2022

rebase

✅ Branch has been successfully rebased

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e/k8s-1.22

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e/k8s-1.23

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e/k8s-1.24

@nixpanic
Copy link
Member Author

/retest /retest ci/centos/mini-e2e/k8s-1.22

@nixpanic
Copy link
Member Author

/retest /retest ci/centos/mini-e2e/k8s-1.23

@nixpanic
Copy link
Member Author

/retest /retest ci/centos/mini-e2e/k8s-1.24

@nixpanic
Copy link
Member Author

/retest ci/centos/k8s-e2e-external-storage/1.22

@nixpanic
Copy link
Member Author

/retest ci/centos/k8s-e2e-external-storage/1.23

@nixpanic
Copy link
Member Author

/retest ci/centos/k8s-e2e-external-storage/1.24

@nixpanic
Copy link
Member Author

/retest ci/centos/upgrade-tests-rbd

@nixpanic
Copy link
Member Author

/retest ci/centos/upgrade-tests-cephfs

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.22

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.23

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cephfs Issues related to CephFS component/nfs Issues related to NFS component/util Utility functions shared between CephFS and RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants