]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: protect list with activate lock
authorLoic Dachary <ldachary@redhat.com>
Fri, 26 Feb 2016 11:57:37 +0000 (18:57 +0700)
committerLoic Dachary <ldachary@redhat.com>
Fri, 4 Mar 2016 02:13:35 +0000 (09:13 +0700)
commitb36859ce726f6657c1a451fe91af877bdc1b8e4a
treef003ae65950599cbee6cab7dd54cae244d1f2081
parent4d42a567974167ef8860dce45b9beadf3729fba9
ceph-disk: protect list with activate lock

list may try to mount partitions to figure out the OSD id and other
details. If it does so while the OSD is activated, it will race and lead
to errors, either for activation or for list.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk/ceph_disk/main.py
src/ceph-disk/tests/test_main.py