From e8828fe76a0c78786e53a1bd63c3fc574e36a6f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 19 Feb 2020 16:03:02 +0100 Subject: [PATCH] ceph-volume: silence 'ceph-bluestore-tool' failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/ceph-volume/ceph_volume/devices/raw/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/devices/raw/list.py b/src/ceph-volume/ceph_volume/devices/raw/list.py index f72c135ed8933..b04f55cd8da0a 100644 --- a/src/ceph-volume/ceph_volume/devices/raw/list.py +++ b/src/ceph-volume/ceph_volume/devices/raw/list.py @@ -41,7 +41,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 -- 2.39.5