integ/ceph/python-cephclient
Daniel Badea 03636c6fcb python-cephclient: populate items list for all nodes except osd
cephclient wrapper is converting a flat list of dictionaries returned
by Ceph Mimic's osd_crush_tree() to nested dictionaries (actual tree)
as expected sysinv. While doing this it looks at the "children"
attribute and if there's none then it skips populating current
node "items".

For storage nodes that don't have any attached OSDs the corresponding
tree entry will not have an "items" attribute. When sysinv tries to
get OSD's by storage it tries to access it and crashes.

Fix by creating empty "items" attribute unless node type is "osd".

Closes-Bug: 1834539
Change-Id: Icc5988407c9773d10d2cd1078e08ae213075f793
Signed-off-by: Daniel Badea <daniel.badea@windriver.com>
2019-07-24 16:41:10 +00:00
..
centos python-cephclient: rewrite to use ceph-mgr restful plugin 2019-04-26 08:51:19 +00:00
python-cephclient python-cephclient: populate items list for all nodes except osd 2019-07-24 16:41:10 +00:00