• BAIRE Anthony's avatar
    improve robustness in matching docker events · 4bbb6b8d
    BAIRE Anthony authored
    with swarm, we had:
    
    2017-Apr-24 18:09:13 DEBUG    docker event b'{"from":"
    node:worker1","Type":"network","Action":"disconnect","Actor":{"ID":"83192c2a09bee6e50fba8cc506b1870fb6d96438afe0a821541e00b43a7229be","Attributes":{"contain
    er":"d89ab93f01cbde3e78ca2bfcc688656b15a3a664060ea85733f1497ea7531d58","name":"bridge","node.addr":"192.168.21.100:2375","node.id":"V24K:QBXP:VO3N:K2EV:M2MH:IRI4:FV7Z:LOTZ:GTTD:PDBS:SSO2:KHIG","node.ip":"192.168
    .21.100","node.name":"worker1","type":"bridge"}},"time":1493050153,"timeNano":1493050153228713620,"node":{"Name":"worker1","Id":"V24K:QBXP:VO3N:K2EV:M2MH:IRI4:FV7Z:LOTZ:GTTD:PDBS:SSO2:KHIG","Addr":"192.168.21.10
    0:2375","Ip":"192.168.21.100"}}'
    2017-Apr-24 18:09:13 ERROR    docker watcher exception
    Traceback (most recent call last):
      File "/opt/allgo-docker/controller.py", line 950, in _thread_func
          if event["status"] == "die":
          KeyError: 'status'
    4bbb6b8d
controller.py 58.3 KB