]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: type convert uid and gid to int 33877/head
authorRamana Raja <rraja@redhat.com>
Fri, 13 Mar 2020 14:00:05 +0000 (19:30 +0530)
committerRamana Raja <rraja@redhat.com>
Mon, 16 Mar 2020 09:48:58 +0000 (15:18 +0530)
commit4b26a704c527cfa26f35781c9e259753449f0f3e
tree4e586814ab85651b5b943d1c1d02873f4a052eff
parente229a679937493b7b8edd2a6bd431e091b5537ad
mgr/volumes: type convert uid and gid to int

This fix is only needed in nautilus. The issue
was observed during upstream teuthology testing in CentOS 7.5
machines.

  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 153, in do_clone
    bulk_copy(fs_handle, src_path, dst_path, should_cancel)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 144, in bulk_copy
    cptree(source_path, dst_path)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 134, in cptree
    sync_attrs(fs_handle, d_full_dst, stx)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 77, in sync_attrs
    fs_handle.lchown(target_path, source_statx["uid"], source_statx["gid"])

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