ceph/qa/suites/rados/thrash/d-require-luminous/at-end.yaml
Sage Weil 3118d9a154 osd: replace require_*_osds flags with require_osd_release field
- OSDMap encode and decode translate between the flags and int
representations.
- OSDMap::Incremental only does decode; we do not expect to ever encode
an incremental osdmap for an old osd that sets any of these flags.
- the 'osd set' command still lets you set the jewel and kraken flags,
but not luminous.
- OSDMap::apply_incremental handles the conversion of legacy require flags
to the new field if the jewel or kraken flags have to be set before
starting the osd upgrade.
- clear out the legacy flags when we make the luminous transition only;
until then we keep using the old flag in the encoded and decoded version
(although the require_osd_release field will be accurate in memory in all
cases).

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-29 21:33:17 -04:00

25 lines
709 B
YAML

# do not require luminous osds at mkfs time; only set flag at
# the end of the test run, then do a final scrub (to convert any
# legacy snapsets), and verify we are healthy.
tasks:
- full_sequential_finally:
- exec:
mon.a:
- ceph osd require-osd-release luminous
# make sure osds have latest map
- rados -p rbd bench 5 write -b 4096
- ceph.healthy:
- ceph.osd_scrub_pgs:
cluster: ceph
- exec:
mon.a:
- ceph pg dump -f json-pretty
- "ceph pg dump sum -f json-pretty | grep num_legacy_snapsets | head -1 | grep ': 0'"
overrides:
ceph:
conf:
global:
mon debug no require luminous: true
thrashosds:
chance_thrash_cluster_full: 0