manila-share not working with ceph mimic 13.2.6

Bug #1838936 reported by Shi Yan on 2019-08-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Manila
Undecided
Unassigned

Bug Description

We are using the rocky release manila, and after we upgrade the ceph version from 12.2.11 to 13.2.6 the breakage happens:

Rolling back to luminous is working again.

 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager [req-961ba3d1-273e-48fb-bed7-8e872ba62683 - - - - -] Caught exception trying ensure share 'e587deff-e01d-4d a4-b44c-7a9533967bb3'.: OperationNotSupported: [Errno 95] error in setxattr
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager Traceback (most recent call last):
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 478, in _ensure_share
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager share_server=share_instance['share_server'])
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager File "/usr/lib/python2.7/dist-packages/manila/share/drivers/cephfs/driver.py", line 277, in ensure_share
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager return self.create_share(context, share, share_server)
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager File "/usr/lib/python2.7/dist-packages/manila/share/drivers/cephfs/driver.py", line 256, in create_share
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager mode=self._cephfs_volume_mode)
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 631, in create_volume
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager self.fs.setxattr(path, 'ceph.quota.max_bytes', to_bytes(size), 0)
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager File "cephfs.pyx", line 990, in cephfs.LibCephFS.setxattr
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager OperationNotSupported: [Errno 95] error in setxattr
 2019-08-05 15:52:54.527 27245 ERROR manila.share.manager

Probably it is not a problem in manila though.

Tom Barron (tpb) on 2019-08-05
tags: added: driver
Tom Barron (tpb) wrote :

It seems odd that size 0 is being passed to setxattr for the valude of ceph.quota.max_bytes. Ceph quotas are used to implement manila share sizes, which are never zero.

Tom Barron (tpb) wrote :

Well as gouthamr pointed out to me, that value is always set to zero [1]. I guess it's not supposed to be the value of the CephFS quota as I understood it (implementation of manila share size).

[1] https://github.com/ceph/ceph/blob/2c8b4eaaa78c7040c5b41fbe71caac7d7adaa7ca/src/pybind/ceph_volume_client.py#L660

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers