Project

General

Profile

Bug #49035

pybind/cephfs: evict operation in ceph_volume_client fails with TypeError

Added by Victoria Martinez de la Cruz about 3 years ago. Updated about 3 years ago.

Status:
Duplicate
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Manila
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

#2 Updated by Douglas Fuller about 3 years ago

  • Assignee set to Kotresh Hiremath Ravishankar

#3 Updated by Kotresh Hiremath Ravishankar about 3 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.

[1] https://github.com/ceph/ceph/pull/39038

#4 Updated by Victoria Martinez de la Cruz about 3 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 3 years ago

  • Status changed from New to Duplicate

Also available in: Atom PDF