From 66521a1571f0922f791ae7f405129fb99b870f38 Mon Sep 17 00:00:00 2001 From: TianTian Gao Date: Fri, 12 Oct 2012 17:37:05 +0800 Subject: Used instance uuid rather than id in remove-fixed-ip remove-fixed-ip called db method fixed_ip_get_by_instance. but fixed_ip_get_by_instance use instance uuid not id, so change to uuid in remove-fixed-ip. Fixed bug: #1065899 Change-Id: Ic7526c7e91933424c04be9bb91d4a98cfedd9b01 --- nova/network/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/network/api.py b/nova/network/api.py index f0c4e151d..f98678ab0 100644 --- a/nova/network/api.py +++ b/nova/network/api.py @@ -272,7 +272,7 @@ class API(base.Base): def remove_fixed_ip_from_instance(self, context, instance, address): """Removes a fixed ip from instance from specified network.""" - args = {'instance_id': instance['id'], + args = {'instance_id': instance['uuid'], 'host': instance['host'], 'address': address} rpc.call(context, FLAGS.network_topic, -- cgit