]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/osd/osd-scrub-repair.sh: Adjust for FreeBSD 15445/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 3 Jun 2017 11:52:58 +0000 (13:52 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 23 Jun 2017 08:33:43 +0000 (10:33 +0200)
commit19892df1d8f3c5f773889fee784fd53c6fde6c13
treedda774bc3ec18d9de0bcece95434c23b32ed6e32
parent6ffb6eb0e8db352a3742071d1554a9e1d02e9f2d
test/osd/osd-scrub-repair.sh: Adjust for FreeBSD

Fixes 2 problems:
 -  Do not test Bluestore on FreeBSD, since that does not work (yet)
    And all erasure code overwrite tests are executed on BlueStore OSDs
    Erasure code overwrites are unsafe on Filestore, see:
    http://docs.ceph.com/docs/master/rados/operations/erasure-code/#erasure-coding-with-overwrites

 -  the JQ expression errors out with:
    (version 1.5-1-g940132e-dirty)
    ====
    jq: error (at :232): Cannot iterate over null (null)
    Traceback (most recent call last):
    File "", line 1, in
    File "/usr/lib64/python2.7/json/init.py", line 338, in loads
    return _default_decoder.decode(s)
    File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded
    ====
    Adding a ? to the jq expression allows to proceed on null blocks.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/osd/osd-scrub-repair.sh