]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: Fix failure of test_idempotency
authorKotresh HR <khiremat@redhat.com>
Sat, 23 Jan 2021 17:03:32 +0000 (22:33 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 5 Feb 2021 18:26:08 +0000 (23:56 +0530)
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 <khiremat@redhat.com>
(cherry picked from commit 1c6c172a9b665d6b769d67e301061dbd7b044472)

src/pybind/ceph_volume_client.py

index feeb495de00773df79d0660da0d957b2bcdad6c6..13f6fbf66359f8d774a40e1078a2947b38fc0d69 100644 (file)
@@ -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.