Exemple #1
0
 def _write_result(self, status, description):
     cond.cluster_health_check_update(
         context.ctx(), self.health_check_id,
         {'status': status, 'description': description})
     self.health_check = cond.cluster_health_check_get(
         context.ctx(), self.health_check_id)
     sender.health_notify(self.cluster, self.health_check)
 def _write_result(self, status, description):
     cond.cluster_health_check_update(
         context.ctx(), self.health_check_id,
         {'status': status, 'description': description})
     self.health_check = cond.cluster_health_check_get(
         context.ctx(), self.health_check_id)
     sender.health_notify(self.cluster, self.health_check)
 def _indicate_start(self):
     vid = self.cluster.verification.id
     self.health_check_id = cond.cluster_health_check_add(
         context.ctx(), vid, {'status': common.HEALTH_STATUS_CHECKING,
                              'name': self.get_health_check_name()}).id
     self.health_check = cond.cluster_health_check_get(
         context.ctx(), self.health_check_id)
     sender.health_notify(self.cluster, self.health_check)
Exemple #4
0
 def _indicate_start(self):
     vid = self.cluster.verification.id
     self.health_check_id = cond.cluster_health_check_add(
         context.ctx(), vid, {'status': common.HEALTH_STATUS_CHECKING,
                              'name': self.get_health_check_name()}).id
     self.health_check = cond.cluster_health_check_get(
         context.ctx(), self.health_check_id)
     sender.health_notify(self.cluster, self.health_check)