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

Strange value in "capacity.storage" key after pvc creation #741

Closed
l-maciej opened this issue Aug 16, 2024 · 2 comments
Closed

Strange value in "capacity.storage" key after pvc creation #741

l-maciej opened this issue Aug 16, 2024 · 2 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@l-maciej
Copy link

What happened:

When creating a PVC with size 200m created PV have capacity.storage set to 1
It happens only with this particular value (100Mi or 5Gi don't create such result)

What you expected to happen:

Create PV with capacity.storage: 200m

How to reproduce it:
Create a PV using manifest

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: kanboard-pvc-plugins
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: nfs-hdd
  resources:
    requests:
      storage: 200m

Created PV will have spec

Name:            pvc-1d8e37b6-cf6c-4ced-aaf3-94ffd9740cad
Labels:          <none>
Annotations:     pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
                 volume.kubernetes.io/provisioner-deletion-secret-name:
                 volume.kubernetes.io/provisioner-deletion-secret-namespace:
Finalizers:      [kubernetes.io/pv-protection]
StorageClass:    nfs-hdd
Status:          Bound
Claim:           workloads/kanboard-pvc-plugins
Reclaim Policy:  Retain
Access Modes:    RWO
VolumeMode:      Filesystem
Capacity:        1
Node Affinity:   <none>
Message:         
Source:
    Type:              CSI (a Container Storage Interface (CSI) volume source)
    Driver:            nfs.csi.k8s.io
    FSType:            
    VolumeHandle:      pdev-nas-01#k3s-storage-hdd#pvc-1d8e37b6-cf6c-4ced-aaf3-94ffd9740cad##
    ReadOnly:          false
    VolumeAttributes:      csi.storage.k8s.io/pv/name=pvc-1d8e37b6-cf6c-4ced-aaf3-94ffd9740cad
                           csi.storage.k8s.io/pvc/name=kanboard-pvc-plugins
                           csi.storage.k8s.io/pvc/namespace=XXXX
                           server=XXXX
                           share=XXXX
                           storage.kubernetes.io/csiProvisionerIdentity=1723720414355-5689-nfs.csi.k8s.io
                           subdir=pvc-1d8e37b6-cf6c-4ced-aaf3-94ffd9740cad
Events:                <none>

Environment:

  • CSI Driver version: v4.8.0
  • Kubernetes version (use kubectl version): 1.30.3
  • OS (e.g. from /etc/os-release): Rocky 8.6
  • Kernel (e.g. uname -a): 4.18.0-372.13.1.el8_6.x86_64
@andyzhangx
Copy link
Member

I think the minimum size of pvc should be 1Gi

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/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 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants