Looking at the code some problem areas are:
dcorch/drivers/openstack/sysinv_v1.py:
- get_ptp() -- ptp.enabled no longer exists LOG.debug("get_ptp uuid=%s enabled=%s mode=%s " "transport=%s mechanism=%s" % (ptp.uuid, ptp.enabled, ptp.mode, ptp.transport, ptp.mechanism))
- get_ntp() -- intp.enabled no longer exists LOG.debug("get_ntp uuid=%s enabled=%s ntpservers=%s" % (intp.uuid, intp.enabled, intp.ntpservers))
It appears the above exceptions are handled and the "error enabled" logs are generated but ptp/ntp is now set to None and that then triggers other problems.
dcorch/engine/sync_services/sysinv.py:
- get_resource_id() - NO uuid log expects 2 parms but is only give one and throws exception LOG.info("get_resource_id {} NO uuid resource_type={}".format( resource_type))
- get_resource_info() - resource=None is not handled, resource._info will throw exception
if resource_type in payload_resources:
if 'payload' not in resource._info: dumps = jsonutils.dumps({"payload": resource._info})
else: dumps = jsonutils.dumps(resource._info) LOG.info("get_resource_info resource_type={} dumps={}".format( resource_type, dumps), extra=self.log_extra)
return dumps
Looking at the code some problem areas are: drivers/ openstack/ sysinv_ v1.py:
LOG.debug( "get_ptp uuid=%s enabled=%s mode=%s "
"transport= %s mechanism=%s" %
(ptp. uuid, ptp.enabled, ptp.mode,
ptp. transport, ptp.mechanism))
LOG.debug( "get_ntp uuid=%s enabled=%s ntpservers=%s" %
(intp. uuid, intp.enabled, intp.ntpservers))
dcorch/
- get_ptp() -- ptp.enabled no longer exists
- get_ntp() -- intp.enabled no longer exists
It appears the above exceptions are handled and the "error enabled" logs are generated but ptp/ntp is now set to None and that then triggers other problems.
dcorch/ engine/ sync_services/ sysinv. py:
LOG.info( "get_resource_ id {} NO uuid resource_ type={} ".format(
resource_ type))
- get_resource_id() - NO uuid log expects 2 parms but is only give one and throws exception
- get_resource_info() - resource=None is not handled, resource._info will throw exception
dumps = jsonutils. dumps({ "payload" : resource._info})
dumps = jsonutils. dumps(resource. _info)
LOG. info("get_ resource_ info resource_type={} dumps={}".format(
resource_ type, dumps),
extra= self.log_ extra)
if resource_type in payload_resources:
if 'payload' not in resource._info:
else:
return dumps