This change is not cherry-picked from master, because master has dropped
python2 support. And this change is to print the path of "unicode" type in
python2.
Fixes: https://tracker.ceph.com/issues/45997
Signed-off-by: Jose Castro Leon <jose.castro.leon@cern.ch>
self.mount_a.run_shell(["touch", os.path.join(mount_path, "noperms")])
self.mount_a.run_shell(["chmod", "0000", os.path.join(mount_path, "noperms")])
+ # A folder with non-ascii characters
+ self.mount_a.run_shell(["mkdir", os.path.join(mount_path, u"f\u00F6n")])
+
self._volume_client_python(self.mount_b, dedent("""
vp = VolumePath("{group_id}", u"{volume_id}")
vc.delete_volume(vp)
return
def rmtree(root_path):
- log.debug("rmtree {0}".format(root_path))
+ log.debug(u"rmtree {0}".format(root_path))
dir_handle = self.fs.opendir(root_path)
d = self.fs.readdir(dir_handle)
while d: