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)
))
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.