ceph-csi: cephfs volume creation error: setfattr: Operation not supported on k8s node
I’m hoping you can help me with that, though it seems not directly a cause of ceph-csi itself.
attr’s in general are supported and enabled by the filesystem (EXT4) on the node (tried with setfattr -n user.foo -v bar foobar
).
I’ve tried the setfattr command on the node and within the container. It does not work on either of those.
The k8s node is running on a Ubuntu 18.04.1 LTS
Container (kubectl exec csi-cephfsplugin-provisioner-0 -i -t -- sh -il
):
# setfattr -n ceph.quota.max_bytes -v 5368709120 /var/lib/kubelet/plugins/csi-cephfsplugin/controller/volumes/root-csi-cephfs-378acacb-e5ed-11e8-9b8b-c60474a907dc
sh: setfattr: not found
Node:
# setfattr -n ceph.quota.max_bytes -v 5368709120 /var/lib/kubelet/plugins/csi-cephfsplugin/controller/volumes/root-csi-cephfs-378acacb-e5ed-11e8-9b8b-c60474a907dc
setfattr: root-csi-cephfs-378acacb-e5ed-11e8-9b8b-c60474a907dc: Operation not supported
Here are the logs: logs-from-csi-cephfsplugin-attacher-in-csi-cephfsplugin-attacher-0.txt logs-from-csi-provisioner-in-csi-cephfsplugin-provisioner-0.txt logs-from-driver-registrar-in-csi-cephfsplugin-t94m4.txt logs-from-csi-cephfsplugin-in-csi-cephfsplugin-t94m4.txt
Greetings and sorry for bothering you again 😞
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 35 (18 by maintainers)
Commits related to this issue
- Merge pull request #99 from openshift-cherrypick-robot/cherry-pick-98-to-release-4.10 [release-4.10] Bug 2098562: rbd: create token and use it for vault SA — committed to Rakshith-R/ceph-csi by openshift-ci[bot] 2 years ago
- [DOWNSTEAM-ONLY] Bug 2098562: fix build failure related to VaultTenantSA.createToken Pull-Request #99 backported a commit that applies cleanly, but causes a build failure: internal/kms/vault_sa.... — committed to nixpanic/ceph-csi by nixpanic 2 years ago
Hi all, I exec the command that my k8s minion or ceph minion that both failed,it means that my ceph cluster donot support the para? thanks very much
1/use kernel : mount -t ceph 178.178.178.189:1091,178.178.178.19:1091,178.178.178.188:1091:/ /home/jlx -o name=admin,secret=AQA0whldex5NJhAAnLkp5U9Iwh+69lz9zbMhMg==,mds_namespace=cephfs
mount error 22 = Invalid argument i found add mds_namespace para will fail
2/ use ceph-fuse [root@node-7:/home]$ ceph-fuse /home/jlx -m 178.178.178.189:1091,178.178.178.19:1091,178.178.178.188:1091 -c /etc/ceph/ceph.conf -n client.admin --key=AQA0w> 2019-07-05 16:33:12.116323 7f002195e040 -1 asok(0x562c5a7961c0) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to ‘/var/run/ceph/ceph-client.admin.asok’: (17) File exists 2019-07-05 16:33:12.117721 7f002195e040 -1 init, newargv = 0x562c5a7932d0 newargc=11 ceph-fuse[107904]: starting ceph client ceph-fuse[107904]: starting fuse [root@node-7:/home]$ setfattr -n ceph.quota.max_bytes -v 5368709120 /home/jlx setfattr: /home/jlx: Invalid parameters