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
2019-07-05 01:22:19 +00:00
2019-04-03 22:30:59 -04:00
2019-07-03 09:17:48 -04:00
2019-06-14 15:09:09 -07:00
2019-05-03 14:48:56 -04:00
2019-01-30 16:40:20 -08:00
2019-07-05 13:42:52 -04:00
2019-06-27 10:36:24 -07:00
2019-04-23 15:37:42 -04:00
2019-01-08 11:42:04 -05:00
2019-04-19 19:52:31 +00:00
2019-05-16 17:22:59 -05:00
2018-05-31 07:36:35 -07:00

integ

StarlingX Integration

Description
StarlingX Integration and packaging
Readme 52 MiB
Languages
Shell 33.1%
JavaScript 24.1%
Perl 14.3%
Python 10.3%
Makefile 6.6%
Other 11.5%