spcs/synaps — pull request #3 by OldBlackJoe (2012-10-25 05:29:51+00:00)
Title: [refs #1265] fix the problem in action_bolt

[refs #1265] fix the problem in action_bolt

2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] message received: {"body": "Threshold Crossed: 3 datapoints were not greater than the threshold(50.000000). The most recent datapoints: [19.063736883008605, 19.939493217786275, 19.939493217786275]. at 2012-10-18T07:14:17.432259", "state": "OK", "query_date": "2012-10-18T07:14:17.432259", "subject": "Test_Alarm_Period state has been changed from INSUFFICIENT_DATA to OK at 2012-10-18T07:14:17.432259"}
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: Traceback (most recent call last):
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: File "action_bolt.py", line 166, in process
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: self.process_action(tup)
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: File "action_bolt.py", line 122, in process_action
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: actions_enabled = alarm['actions_enabled']
2012-10-18 16:14:17 ShellBolt [INFO] Shell msg: [ActionBolt] TRACE: TypeError: 'NoneType' object has no attribute '__getitem__'
2012-10-18 16:14:17 task [INFO] Emitting: action_bolt __ack_fail [-1482895226000877327]

sometimes worker was dead in stress test.
I can't find this problem's reason, but I modified codes for avoid worker's dead.