Bug #49035
pybind/cephfs: evict operation in ceph_volume_client fails with TypeError
0%
Description
A recently introduced change in cephfs.pyx affected the ceph_volume_client evict command. The mds_command() operation expects an argument args to be a string, not a list. Lists are not an encodeable type in Python.
The following trace is observed:
Jan 25 11:14:14.460368 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR ceph_volume_client [None req-ea4264ca-2185-4ac9-b77e-fa5037ea6da4 None None] Failed to evict client with auth_name=manila from mds 0/4145: args must be encodeable as a bytearray
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager [None req-ea4264ca-2185-4ac9-b77e-fa5037ea6da4 None None] Error encountered during initialization of driver CephFSDriver@ubuntu-focal-rax-ord-0022703721@cephfsnative: ceph_volume_client.EvictionError: Failed to evict client with auth_name=manila from mds 0/4145: args must be encodeable as a bytearray
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager Traceback (most recent call last):
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/opt/stack/manila/manila/share/manager.py", line 318, in _driver_setup
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager self.driver.do_setup(ctxt)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/opt/stack/manila/manila/share/drivers/cephfs/driver.py", line 159, in do_setup
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager ceph_vol_client=self.volume_client)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/opt/stack/manila/manila/share/drivers/cephfs/driver.py", line 237, in volume_client
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager self._volume_client.connect(premount_evict=premount_evict)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 520, in connect
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager self._connect(premount_evict)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 490, in _connect
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager self.evict(premount_evict)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 462, in evict
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager raise EvictionError(msg)
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager ceph_volume_client.EvictionError: Failed to evict client with auth_name=manila from mds 0/4145: args must be encodeable as a bytearray
Jan 25 11:14:14.460962 ubuntu-focal-rax-ord-0022703721 manila-share100849: ERROR manila.share.manager
History
#1 Updated by Victoria Martinez de la Cruz about 2 years ago
Pull request: https://github.com/ceph/ceph/pull/39111
#2 Updated by Douglas Fuller about 2 years ago
- Assignee set to Kotresh Hiremath Ravishankar
#3 Updated by Kotresh Hiremath Ravishankar about 2 years ago
There is already PR pushed for this [1] to the pacific branch.
Both the fixes are exactly same. I am fine taking anyone.
#4 Updated by Victoria Martinez de la Cruz about 2 years ago
Closed my pull request, let's get https://github.com/ceph/ceph/pull/39038 in. Thanks!
#5 Updated by Kotresh Hiremath Ravishankar about 2 years ago
- Status changed from New to Duplicate
Duplicate of https://tracker.ceph.com/issues/48830