From: Sébastien Han Date: Wed, 19 Feb 2020 15:03:02 +0000 (+0100) Subject: ceph-volume: silence 'ceph-bluestore-tool' failures X-Git-Tag: v13.2.9~41^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f99cff30386a66db27b16ea66a23bfc1fb4d8698;p=ceph.git ceph-volume: silence 'ceph-bluestore-tool' failures If 'ceph-bluestore-tool' fails on a device, the json output of the list command will be messed up. Ignoring stderr of that command fixes this. Signed-off-by: Sébastien Han (cherry picked from commit e8828fe76a0c78786e53a1bd63c3fc574e36a6f0) --- diff --git a/src/ceph-volume/ceph_volume/devices/raw/list.py b/src/ceph-volume/ceph_volume/devices/raw/list.py index 5d610c7a02425..5e8202a7897dc 100644 --- a/src/ceph-volume/ceph_volume/devices/raw/list.py +++ b/src/ceph-volume/ceph_volume/devices/raw/list.py @@ -43,7 +43,7 @@ class List(object): # bluestore? out, err, ret = process.call([ 'ceph-bluestore-tool', 'show-label', - '--dev', dev]) + '--dev', dev], verbose_on_failure=False) if ret: logger.debug('No label on %s' % dev) continue