Hi John,

Could you help check whether there’s something wrong with below code?

   File: cgcs-root/stx/stx-metal/inventory/inventory/inventory/common/ceph.py

   96     def check_osds_down_up(self, hostname, upgrade):

   97         # check if osds from a storage are down/up

   98         response, body = self._ceph_api.osd_tree(body='json')

   99         osd_tree = body['output']['nodes']

  100         size = len(osd_tree)

  101         for i in range(1, size):

Is there something special reason to not range from 0? i.e. range(0, size)

 

B.R.

Changcheng