summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Hall <brad@nicira.com>2011-08-31 18:54:15 -0700
committerBrad Hall <brad@nicira.com>2011-08-31 18:54:15 -0700
commitf4dc231069c530f8f6055b1b7fa006750795b6e4 (patch)
treea597fa40e1ecd3c11fec6ce97572bffbd1abb670
parent551b4b1b16c894551e5337663374a40aa46663d7 (diff)
Add comment for an uncommon failure case that we need to fix
-rw-r--r--nova/network/quantum/manager.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/network/quantum/manager.py b/nova/network/quantum/manager.py
index c03622218..2fd9175ae 100644
--- a/nova/network/quantum/manager.py
+++ b/nova/network/quantum/manager.py
@@ -213,6 +213,12 @@ class QuantumManager(manager.FlatManager):
net_id, port_id = self.q_conn.get_port_by_attachment(
q_tenant_id, vif['uuid'])
if not net_id:
+ # TODO(bgh): We need to figure out a way to tell if we
+ # should actually be raising this exception or not.
+ # In the case that a VM spawn failed it may not have
+ # attached the vif and raising the exception here
+ # prevents deltion of the VM. In that case we should
+ # probably just log, continue, and move on.
raise Exception(_("No network for for virtual interface %s") %
vif['uuid'])
(v4_subnet, v6_subnet) = self.ipam.get_subnets_by_net_id(context,