Bug 1930183

Summary: pybind/ceph_volume_client: evict operation in ceph_volume_client fails with TypeError
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Kotresh HR <khiremat>
Component: CephFSAssignee: Kotresh HR <khiremat>
Status: CLOSED DUPLICATE QA Contact: Yogesh Mane <ymane>
Severity: high Docs Contact:
Priority: high    
Version: 4.2CC: ceph-eng-bugs, pdonnell, sweil, vereddy
Target Milestone: ---   
Target Release: 4.2z2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 03:22:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kotresh HR 2021-02-18 13:34:19 UTC
Description of problem:


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


For more information, please look into upstream trackers attached.