]> 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)
committerSage Weil <sage@redhat.com>
Mon, 15 Jun 2015 19:25:43 +0000 (12:25 -0700)
commit13c8d58da1303cc68d99da19f79d625f91f99d43
treea3887f13b47fe9d65f9bdff57bffde42cdbce2f8
parent58e62662f6ef04ac76470090d1d958467e34194a
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>
(cherry picked from commit bbec53edf9e585af4e20bbc9ba9057d6fdfda342)
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc