From: Kotresh HR Date: Sat, 23 Jan 2021 17:03:32 +0000 (+0530) Subject: ceph_volume_client: Fix failure of test_idempotency X-Git-Tag: v15.2.10~20^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a20b7790fea4a42b6abae34cc81ef27d32e7b0aa;p=ceph.git ceph_volume_client: Fix failure of test_idempotency With the test environment, 'args must be encodeable as a bytearray' error is seen for 'ceph_mds_command'. Hence removed tuple and passed the JSON formatted string. Fixes: https://tracker.ceph.com/issues/48830 Signed-off-by: Kotresh HR (cherry picked from commit 1c6c172a9b665d6b769d67e301061dbd7b044472) --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index b748f5d85f784..3d898556dbf43 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -167,10 +167,10 @@ class RankEvicter(threading.Thread): )) ret, outb, outs = self._volume_client.fs.mds_command( "%s" % self.gid, - [json.dumps({ + json.dumps({ "prefix": "session evict", "filters": self._client_spec - })], "") + }), "") log.debug("mds_command: complete {0} {1}".format(ret, outs)) # If we get a clean response, great, it's gone from that rank.