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
Cant mount pvc to pod not multiple to 1Gi #213
Comments
lelvisl
changed the title
Cant mount pvc to pod created by etc-operator
Cant mount pvc to pod not multiple to 1Gi
Feb 19, 2019
I changed storage to 1Gi and it works. As i see here ceph-csi/pkg/rbd/controllerserver.go Line 131 in 07d26e6
you calculate in Gb and always get rounded result (zero in case volSizeBytes lower than 1Gb) - https://play.golang.org/p/jKVGCud8Jsi |
the min size is very fs type dependent |
yes, but we are talking about rbd, fs goes after. |
@lelvisl this is fixed now, can you verify and close this one? |
one or two days for tests on our cluster |
Yes, it works. Thanks! apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: myapp
containers:
- name: myapp-container
image: busybox
command: ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600']
volumeMounts:
- name: data
mountPath: /data/
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: myapp
labels:
app: myapp
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 300Mi
storageClassName: csi-rbd $ k exec -it myapp-pod sh (autobp/ceph)
/ # df -h
Filesystem Size Used Available Use% Mounted on
overlay 30.9G 16.9G 12.7G 57% /
tmpfs 64.0M 0 64.0M 0% /dev
tmpfs 31.3G 0 31.3G 0% /sys/fs/cgroup
/dev/rbd3 282.5M 2.0M 276.5M 1% /data
/dev/mapper/INTVG-var
30.9G 16.9G 12.7G 57% /dev/termination-log
/dev/mapper/INTVG-var
30.9G 16.9G 12.7G 57% /etc/resolv.conf
/dev/mapper/INTVG-var
30.9G 16.9G 12.7G 57% /etc/hostname
/dev/mapper/INTVG-var
30.9G 16.9G 12.7G 57% /etc/hosts
shm 64.0M 0 64.0M 0% /dev/shm
tmpfs 31.3G 12.0K 31.3G 0% /var/run/secrets/kubernetes.io/serviceaccount
tmpfs 31.3G 0 31.3G 0% /proc/acpi
tmpfs 64.0M 0 64.0M 0% /proc/kcore
tmpfs 64.0M 0 64.0M 0% /proc/keys
tmpfs 64.0M 0 64.0M 0% /proc/timer_list
tmpfs 64.0M 0 64.0M 0% /proc/timer_stats
tmpfs 64.0M 0 64.0M 0% /proc/sched_debug
tmpfs 31.3G 0 31.3G 0% /proc/scsi
tmpfs 31.3G 0 31.3G 0% /sys/firmware
/ # |
nixpanic
pushed a commit
that referenced
this issue
Mar 23, 2023
As part of #213 support was added to have one VR per PVC, once the VR is deleted we need to remove the annotation so new VR can be created for the same PVC. This PR adds the missing piece. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
nixpanic
pushed a commit
to nixpanic/ceph-csi
that referenced
this issue
Nov 22, 2023
Syncing latest changes from devel for ceph-csi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Kubernetes and Ceph CSI Versions
Kubernetes: 1.13
Ceph CSI: 1.0.0
Ceph CSI Driver logs
$ k logs csi-rbdplugin-fxd79 -n ceph csi-rbdplugin | grep pvc-a54a3182-3485-11e9-907f-0050562c0156
To Reproduce
add etcd-operator and apply this yaml
The text was updated successfully, but these errors were encountered: