]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add some coarse-grained locking
authorSage Weil <sage@redhat.com>
Wed, 18 Dec 2019 17:05:32 +0000 (11:05 -0600)
committerSage Weil <sage@redhat.com>
Thu, 19 Dec 2019 19:18:05 +0000 (13:18 -0600)
commita88d096c0f464ac86cf60e74d79094c3bcb7fa69
tree84dba854e7ef55d87565f154d00e66b899477824
parent7b8e7371db32258a9dbbd35cf28714e74cf8e397
cephadm: add some coarse-grained locking

Take per-cluster 'deploy' lock for

 bootstrap
 deploy
 adopt
 rm-daemon
 rm-cluster

No locking for

 version
 pull
 run (this is never actually used anyway)
 shell
 enter
 ceph-volume
 unit (this is a clean pass-through to systemctl)
 logs
 ls
 check-host

The only one I'm not sure about is ceph-volume.  I don't want the c-v
list/inventory commands to block, but perhaps the deploy ones should...
but perhaps not, since there's no reason we can't deploy multiple OSDs
on different devices at the same time.

Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm