Skip to content

Commit

Permalink
Merge "Exiting alarmgen with errorcode, so it will automatically rest…
Browse files Browse the repository at this point in the history
…art. Closes-Bug:1648338" into R3.0.3.x
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 10, 2017
2 parents d07eec7 + 6f270be commit da49951
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/opserver/alarmgen.py
Expand Up @@ -535,7 +535,7 @@ def update_tab_alarms_timer(tab, uv, nm, curr_index, timeout_val,
[timeout_val]:
self._logger.error("Timer error for (%s,%s,%s)" % \
(tab, uv, nm))
raise SystemExit
raise SystemExit(1)
AlarmStateMachine.tab_alarms_timer[timeout_val].add\
((asm.tab, asm.uv, asm.nm))

Expand Down Expand Up @@ -703,7 +703,7 @@ def libpart_cb(self, part_list):
self._logger.error('Partition Del : %s' % str(oldset-newset))
if not self.partition_change(oldset-newset, False):
self._logger.error('Partition Del : %s failed!' % str(oldset-newset))
raise SystemExit
raise SystemExit(1)

self._logger.error('Partition Del done: %s' % str(oldset-newset))

Expand All @@ -715,7 +715,7 @@ def libpart_cb(self, part_list):
self._logger.error('Partition List failed %s %s' % \
(str(newset),str(oldset)))
except SystemExit:
raise SystemExit
raise SystemExit(1)

self._logger.error('Partition List done : new %s old %s' % \
(str(newset),str(oldset)))
Expand Down Expand Up @@ -866,7 +866,7 @@ def send_agg_uve(self, redish, inst, part, acq_time, rows):
"""
if not redish:
self._logger.error("No redis handle")
raise SystemExit
raise SystemExit(1)
old_acq_time = redish.hget("AGPARTS:%s" % inst, part)
if old_acq_time is None:
self._logger.error("Agg %s part %d new" % (inst, part))
Expand Down Expand Up @@ -931,7 +931,7 @@ def send_agg_uve(self, redish, inst, part, acq_time, rows):

if retry:
self._logger.error("Agg unexpected rows %s" % str(rows))
raise SystemExit
raise SystemExit(1)

def send_alarm_update(self, tab, uk):
ustruct = None
Expand Down Expand Up @@ -1126,7 +1126,7 @@ def run_uve_processing(self):
messag = template.format(type(ex).__name__, ex.args)
self._logger.error("%s : traceback %s" % \
(messag, traceback.format_exc()))
raise SystemExit
raise SystemExit(1)
if (curr - prev) < 1:
gevent.sleep(1 - (curr - prev))
self._logger.info("UVE Done")
Expand Down

0 comments on commit da49951

Please sign in to comment.