'Update the state of this service in the datastore.'

def _report_state(self, service):

    try:
        key = ('%(topic)s:%(host)s' % service.service_ref)
        self.mc.set(str(key), timeutils.utcnow())
        if getattr(service, 'model_disconnected', False):
            service.model_disconnected = False
            LOG.info(_LI('Recovered    connection    to    memcache    server    for    reporting    service    status.'))
    except Exception:
        if (not getattr(service, 'model_disconnected', False)):
            service.model_disconnected = True
            LOG.warning(_LW('Lost    connection    to    memcache    server    for    reporting    service    status.'))
