Revision 76343e61 logic/dispatcher_callbacks.py

b/logic/dispatcher_callbacks.py
9 9
_logger = logging.getLogger("synnefo.dispatcher")
10 10

  
11 11
def update_db(message):
12
    """Process the status of a VM based on a ganeti status message"""
12 13
    _logger.debug("Processing msg: %s" % message.body)
13 14
    try:
14 15
        msg = json.loads(message.body)
......
27 28
        _logger.error("Malformed incoming JSON, missing attributes: " + message.body)
28 29
    except VirtualMachine.InvalidBackendIdError:
29 30
        _logger.debug("Ignoring msg for unknown instance %s." % (msg["instance"],))
30
        message.channel.basic_ack(message.delivery_tag)
31 31
    except VirtualMachine.DoesNotExist:
32 32
        _logger.error("VM for instance %s with id %d not found in DB." % (msg["instance"], vmid))
33 33
    except Exception as e:

Also available in: Unified diff