]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: prevent pool with snapshot state from being used as a tier
authorSage Weil <sage@redhat.com>
Wed, 29 Apr 2015 19:34:25 +0000 (12:34 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 15 May 2015 17:39:49 +0000 (10:39 -0700)
commitbbec53edf9e585af4e20bbc9ba9057d6fdfda342
tree24564994f5679205db50c048effe9b32838cff9e
parent435e91624f36f3e790c329e210d726752a43a4c4
mon: prevent pool with snapshot state from being used as a tier

If we add a pool with snap state as a tier the snap state gets clobbered
by OSDMap::Incremental::propogate_snaps_to_tiers(), and may prevent OSDs
from starting.  Disallow this.

Include a test.

Fixes: #11493
Backport: hammer, giant, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc