Create a pool that generates hit sets before the upgrade, and ensure that
they (continue to) trim after the upgrade.
Signed-off-by: Sage Weil <sage@redhat.com>
- print: "**** done install nautilus"
- ceph:
- print: "**** done ceph"
+
+# create a hit set test pool that will generate hit sets prior to octopus
+- exec:
+ mon.a:
+ - sudo ceph osd pool create test-hit-set-base 32
+ - sudo ceph osd pool create test-hit-set-cache 32
+ - sudo ceph osd tier add test-hit-set-base test-hit-set-cache
+ - sudo ceph osd pool set test-hit-set-cache hit_set_type bloom
+ - sudo ceph osd pool set test-hit-set-cache hit_set_count 32
+ - sudo ceph osd pool set test-hit-set-cache hit_set_period 15
+ - rados -p test-hit-set-cache bench 30 write -b 1
- ceph mon enable-msgr2
- install.upgrade:
client.0:
+
+# reduce canary pool hit set count from 32 -> 4 and do some io so that
+# we are sure they will be trimmed post-upgrade.
+- exec:
+ mon.a:
+ - sudo ceph osd pool set test-hit-set-cache hit_set_count 4
+ - rados -p test-hit-set-cache bench 5 write -b 1