Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

nfs provisioner validateOptions fails with 8.0EB available space #1298

Closed
frdeng opened this issue Mar 16, 2020 · 7 comments
Closed

nfs provisioner validateOptions fails with 8.0EB available space #1298

frdeng opened this issue Mar 16, 2020 · 7 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@frdeng
Copy link

frdeng commented Mar 16, 2020

Got this when provisioning a 10MB PVC from nfs-provisioner

E0316 22:21:18.077195 1 controller.go:908] error syncing claim "3fa09205-67d2-11ea-a112-020017027037": failed to provision volume with StorageClass "my-nfs": error validating options for volume: insufficient available space -9223372036854775808 bytes to satisfy claim for 10485760 bytes

The nfs provisioner storage class is created from an nfs share which is 8.0EB

$ kubectl exec -it nfs-provisioner-86b866b5b7-dsbx2 -- /bin/sh
sh-5.0# df -h /export/
Filesystem       Size  Used Avail Use% Mounted on
10.0.10.37:/pv3  8.0E     0  8.0E   0% /export
sh-5.0# df /export/
Filesystem             1K-blocks  Used        Available Use% Mounted on
10.0.10.37:/pv3 9007199254740992     0 9007199254740992   0% /export
@frdeng frdeng changed the title validateOptions fails with 8.0EB available space nfs provisioner validateOptions fails with 8.0EB available space Mar 16, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 14, 2020
@downvoteit
Copy link

Can confirm, have experienced the same problem of incorrect available space check firing on line 348.

It does allow to create 3gb pvc but fails on >4gb.

Seems like available space is misreported.

available := int64(stat.Bavail) * int64(stat.Bsize)

root@node1:~/test# df -h /mnt
Filesystem                         Size  Used Avail Use% Mounted on
192.168.1.200:/srv/nfs/kubernetes   25G  3.3G   21G  15% /mnt
root@node1:~/test# 

Warning ProvisioningFailed 7m4s cluster.local/nfs-server-provisioner_nfs-server-provisioner-0_14314456-9e8c-455f-87eb-6ae0f24802ba failed to provision volume with StorageClass "nfs": error validating options for volume: insufficient available space 3494146048 bytes to satisfy claim for 4294967296 bytes

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: nfs1
spec:
  storageClassName: nfs
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 4Gi

@wongma7
Copy link
Contributor

wongma7 commented Jun 26, 2020

Yes, need a fix like kubernetes/kubernetes#90907 to always compare using resource.Quantities types, never int/int64

@wongma7
Copy link
Contributor

wongma7 commented Jun 26, 2020

Given that there is no enforcement of resource requests anyway, the workaround could be to set resources.requests.storage to whatever nonsense value helps to pass this check.

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 26, 2020
@nikhita
Copy link
Member

nikhita commented Aug 7, 2020

Thanks for reporting the issue!

This repo is no longer being maintained and we are in the process of archiving this repo. Please see kubernetes/org#1563 for more details.

If your issue relates to nfs provisioners, please create a new issue in https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner or https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.

Going to close this issue in order to archive this repo. Apologies for the churn and thanks for your patience! 🙏

@nikhita nikhita closed this as completed Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

6 participants