]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: check for string values in uid/gid
authorJos Collin <jcollin@redhat.com>
Tue, 3 Dec 2019 09:12:28 +0000 (14:42 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 9 Dec 2019 13:55:46 +0000 (19:25 +0530)
commit4c1029bc083b44d87f01f4e503d3ad64a568df52
treecad1e427448d898d436de074a822e9bbf9f4bb5a
parent22a9a28e2859718c4168f5b3cf6e20a9186e18bc
mgr/volumes: check for string values in uid/gid

chown allows strings as per bbbfb44453f204286a8ff312349d42afde5fced6,
which caused this error. Eventhough uid/gid are input as CephInt, the
qa tests can pass in only string values to _fs_cmd. So try converting
the incoming uid/gid to int in create_subvolume and create_group.
It might be a valid string.

Fixes: https://tracker.ceph.com/issues/43038
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/pybind/mgr/volumes/fs/subvolume.py