ceph-csi/internal
Niels de Vos 565038fdfd cephfs: ignore quota when SubVolumeInfo() returns Infinite
There is a type-check on BytesQuota after calling SubVolumeInfo() to see
if the value is supported. In case no quota is configured, the value
Infinite is returned. This can not be converted to an int64, so the
original code returned an error.

It seems that attaching/mounting sometimes fails with the following
error:

    FailedMount: MountVolume.MountDevice failed for volume "pvc-0e8fdd18-873b-4420-bd27-fa6c02a49496" : rpc error: code = Internal desc = subvolume csi-vol-0d68d71a-1f5f-11eb-96d2-0242ac110012 has unsupported quota: infinite

By ignoring the quota of Infinite, and not setting a quota in the
Subvolume object, this problem should not happen again.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-11-06 14:58:26 +00:00
..
cephfs cephfs: ignore quota when SubVolumeInfo() returns Infinite 2020-11-06 14:58:26 +00:00
csi-common util: change member cap of CSIDriver struct 2020-10-21 12:30:18 +00:00
journal journal: fix reading omaps from objects with large key counts 2020-11-06 06:42:22 +00:00
liveness util: replace klog with util logger in liveness.go 2020-08-19 14:38:12 +00:00
rbd rbd: replace go-ceph GetParentInfo() with GetParent() 2020-11-03 08:00:12 +00:00
util util: NewCredentials() dont have any callers 2020-10-21 21:04:11 +00:00