Bug 1930183 - pybind/ceph_volume_client: evict operation in ceph_volume_client fails with TypeError
Summary: pybind/ceph_volume_client: evict operation in ceph_volume_client fails with T...
Keywords:
Status: CLOSED DUPLICATE of bug 1930180
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 4.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.2z2
Assignee: Kotresh HR
QA Contact: Yogesh Mane
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-18 13:34 UTC by Kotresh HR
Modified: 2021-05-19 03:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-19 03:22:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 49160 0 None None None 2021-02-18 14:48:49 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.