From c689891226baa8877f6fb7b3c468b06972068847 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Tue, 26 Jun 2012 17:56:21 -0700 Subject: Avoid casts in network manager to prevent races * Part of fix for bug 1017418 Change-Id: I3251f02fc5fcb8305f12b6b8a9644232b9146db2 --- nova/network/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/network/manager.py b/nova/network/manager.py index fb37499e4..2fc75eec1 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -230,7 +230,7 @@ class RPCAllocateFixedIP(object): def deallocate_fixed_ip(self, context, address, host, **kwargs): """Call the superclass deallocate_fixed_ip if i'm the correct host - otherwise cast to the correct host""" + otherwise call to the correct host""" fixed_ip = self.db.fixed_ip_get_by_address(context, address) network = self._get_network_by_id(context, fixed_ip['network_id']) @@ -243,7 +243,7 @@ class RPCAllocateFixedIP(object): topic = rpc.queue_get_for(context, FLAGS.network_topic, host) args = {'address': address, 'host': host} - rpc.cast(context, topic, + rpc.call(context, topic, {'method': 'deallocate_fixed_ip', 'args': args}) else: -- cgit