def _get_smart_data(osd_id):
# type: (str) -> dict
"""Returns S.M.A.R.T data for the given OSD ID."""
+ logger.debug('[SMART] retrieving data from OSD with ID %s', osd_id)
return CephService.get_smart_data_by_daemon('osd', osd_id)
@RESTController.Resource('GET')
from ..exceptions import DashboardException
try:
- from typing import Any, Dict, Union, Optional
+ from typing import Any, Dict, Optional, Union
except ImportError:
pass # For typing only
if device['devid'] not in smart_data:
smart_data.update(
CephService._get_smart_data_by_device(device))
+ else:
+ logger.debug('[SMART] could not retrieve device list from host %s', hostname)
return smart_data
@staticmethod
if device['devid'] not in smart_data:
smart_data.update(
CephService._get_smart_data_by_device(device))
+ else:
+ msg = '[SMART] could not retrieve device list from daemon with type %s and ' +\
+ 'with ID %d'
+ logger.debug(msg, daemon_type, daemon_id)
return smart_data
@classmethod