]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: type convert uid and gid to int
authorRamana Raja <rraja@redhat.com>
Mon, 10 Feb 2020 17:05:59 +0000 (12:05 -0500)
committerRamana Raja <rraja@redhat.com>
Wed, 12 Feb 2020 10:12:00 +0000 (05:12 -0500)
commit96bcad5e4183d9206013e20ced7692056bc2ef5b
tree7ca96fc4eccd3eb37df8b3d300ad1bf2cd2e357a
parent6265db4e9cc4dac5779e038aba99b47ab1295742
mgr/volumes: type convert uid and gid to int

This fix is only needed in nautilus, and the issue
was observed during upstream teuthology testing.

   File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 114, in cptree
     copy_file(fs_handle, d_full_src, d_full_dst, mo, st.st_uid, st.st_gid)
   File "/usr/share/ceph/mgr/volumes/fs/fs_util.py", line 97, in copy_file
     fs.chown(dst, uid, gid)
   File "cephfs.pyx", line 855, in cephfs.LibCephFS.chown
      TypeError: uid must be an int

The issue wasn't observed in master/octopus teuthology
testing.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/mgr/volumes/fs/async_cloner.py