]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: fix incorrect snapshot path creation 31076/head
authorRamana Raja <rraja@redhat.com>
Mon, 30 Sep 2019 13:51:29 +0000 (19:21 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 23 Oct 2019 11:48:39 +0000 (17:18 +0530)
commitf25371e1aedc87510bd0e6305bd802c047775398
tree441a63878c414fa182ef1315fc535fc782853a0b
parentada78d0e37a6911645eb24fa9e4317897f43ed7b
mgr/volumes: fix incorrect snapshot path creation

When constructing the snapshot path, the components are a mix of
byte and string type objects. The 'os.path.join()' method needs
the components to be of the same type. Hence convert all components
to byte type objects.

Introduced-by: 3d63cd947f55a8508f972ee249ea6a04836429ae
Fixes: https://tracker.ceph.com/issues/42096
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 8f24f42d46d6b32838e8f6ac5c92eb5a32a99824)
src/pybind/mgr/volumes/fs/subvolspec.py