From 113893ec6f748d3baefbdbc2a8749382811aff7a Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Sat, 23 Jan 2021 22:33:32 +0530 Subject: [PATCH] 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) --- src/pybind/ceph_volume_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index feeb495de007..13f6fbf66359 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. -- 2.47.3