projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7bdbe5
)
ceph-volume: silence 'ceph-bluestore-tool' failures
33371/head
author
Sébastien Han
<seb@redhat.com>
Wed, 19 Feb 2020 15:03:02 +0000
(16:03 +0100)
committer
Sébastien Han
<seb@redhat.com>
Wed, 19 Feb 2020 15:06:47 +0000
(16:06 +0100)
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 <seb@redhat.com>
src/ceph-volume/ceph_volume/devices/raw/list.py
patch
|
blob
|
history
diff --git
a/src/ceph-volume/ceph_volume/devices/raw/list.py
b/src/ceph-volume/ceph_volume/devices/raw/list.py
index f72c135ed89336874a1a0653ad3dda6b7e5fc66c..b04f55cd8da0abbe7c006e556feab1055a32b23b 100644
(file)
--- 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