]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: remove stderr in has_bluestore_label()
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 5 Feb 2020 01:15:17 +0000 (02:15 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Feb 2020 09:39:44 +0000 (10:39 +0100)
We don't want to generate this log when a call to
`has_bluestore_label()` fails.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 7f8371c32b3f613b0d094f6f26ffbeb19ea0d25b)

src/ceph-volume/ceph_volume/util/device.py

index 3a5f8361da879f4830585667a7cd53bdaf39dcd0..4d776e17c10ddfa67f12e8739177e52c5b946922 100644 (file)
@@ -316,7 +316,7 @@ class Device(object):
     def has_bluestore_label(self):
         out, err, ret = process.call([
             'ceph-bluestore-tool', 'show-label',
-            '--dev', self.abspath])
+            '--dev', self.abspath], verbose_on_failure=False)
         if ret:
             return False
         return True