ceph-csi/internal/cephfs
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_util.go cephfs: implement getMetadataPool() with go-ceph 2020-10-20 15:38:44 +00:00
clone.go cephfs: drop unused Credentials from resizeVolume() 2020-10-28 08:02:12 +00:00
controllerserver.go cephfs: drop unused Credentials from resizeVolume() 2020-10-28 08:02:12 +00:00
driver.go cephfs: replace warning with WarningLogMsg in Run 2020-08-13 09:44:12 +00:00
errors.go cephfs: check ENOTEMPTY when removing subvolume 2020-09-23 13:51:23 +00:00
fsjournal.go cephfs: replace Errorf with ErrorLog in checkSnapExists 2020-08-13 09:44:12 +00:00
identityserver.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
nodeserver.go cephfs: connect to the Ceph Cluster with go-ceph 2020-10-14 15:16:56 +00:00
snapshot.go cephfs: No-Op Unprotect call if "snapshot-autoprotect" feature present 2020-09-16 16:05:28 +00:00
util.go util: drop nolint comment for execCommandJSON() 2020-10-20 15:38:44 +00:00
volume.go cephfs: ignore quota when SubVolumeInfo() returns Infinite 2020-11-06 14:58:26 +00:00
volumemounter.go cephfs: trim spaces around fuseMountOptions 2020-09-23 12:12:51 +00:00
volumeoptions.go cephfs: implement getSubVolumeInfo() with go-ceph 2020-10-23 10:58:35 +00:00