From f99cff30386a66db27b16ea66a23bfc1fb4d8698 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 (cherry picked from commit e8828fe76a0c78786e53a1bd63c3fc574e36a6f0) --- 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 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 -- 2.39.5