ceph/qa/suites/rados/singleton-nomsgr/all/export-after-evict.yaml
2016-12-14 11:29:55 -06:00

30 lines
859 B
YAML

roles:
- - mon.a
- osd.0
- osd.1
- osd.2
- client.0
tasks:
- install:
- ceph:
conf:
global:
osd max object name len: 460
osd max object namespace len: 64
- exec:
client.0:
- ceph osd pool create base-pool 4
- ceph osd pool create cache-pool 4
- ceph osd tier add base-pool cache-pool
- ceph osd tier cache-mode cache-pool writeback
- ceph osd tier set-overlay base-pool cache-pool
- dd if=/dev/urandom of=$TESTDIR/foo bs=1M count=1
- rbd import --image-format 2 $TESTDIR/foo base-pool/bar
- rbd snap create base-pool/bar@snap
- rados -p base-pool cache-flush-evict-all
- rbd export base-pool/bar $TESTDIR/bar
- rbd export base-pool/bar@snap $TESTDIR/snap
- cmp $TESTDIR/foo $TESTDIR/bar
- cmp $TESTDIR/foo $TESTDIR/snap
- rm $TESTDIR/foo $TESTDIR/bar $TESTDIR/snap