darxkies / k8s-tew

Kubernetes - The Easier Way
GNU General Public License v3.0
307 stars 38 forks source link

CephFS Stroage Class needs fsName field #27

Closed figassis closed 3 years ago

figassis commented 4 years ago

Otherwise you get a missing field fsName when provisioning. Correct definition is:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  namespace: storage
  name: csi-cephfs
provisioner: cephfs.csi.ceph.com
reclaimPolicy: Delete
parameters:
  clusterID: clusterid
  fsName: cephfs
  pool: cephfs
  mounter: kernel
  provisionVolume: "true"
  csi.storage.k8s.io/provisioner-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/provisioner-secret-namespace: storage
  csi.storage.k8s.io/controller-expand-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/controller-expand-secret-namespace: storage
  csi.storage.k8s.io/node-stage-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/node-stage-secret-namespace: storage
  allowVolumeExpansion: "true"
darxkies commented 4 years ago

Did you upgrade an existing cluster?

figassis commented 4 years ago

Yes I have, but I did regenerate the files, as in deleted old ones when necessary. Ceph was specifically a set of files that I deleted as I wanted to upgrade but the rbd and cephfs plugins are now a single one, so didn't seem upgrade compatible. I cleared the entire storage setup to do that. Gladly I was mostly using external nfs storage.

Is the fsName generated in am empty cluster?

darxkies commented 4 years ago

cephfs get's generated when mds is started by ceph/daemon.

darxkies commented 3 years ago

Fixed in master. Thank you.