network not always cleaned up when spawning VMs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Ocata |
Confirmed
|
Medium
|
Unassigned | ||
Pike |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Queens |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
Here are the scenario:
1). Nova scheduler/conductor selects a nova-compute A to spin a VM
2). Nova compute A tries to spin the VM, but the process failed, and generates a RE-SCHEDULE exception.
3). in re-schedule exception, only when retry is none, network resource is properly cleaned up. when retry is not none, the network is not cleaned up, the port information still stays with the VM.
4). Nova condutor was notified about the failure. It selects nova-compute-B to spin VM.
5). nova compute B spins up VM successfully. However, from the instance_
To simulate the case, raise a fake exception in _do_build_
diff --git a/nova/
index ac6d92c..8ce8409 100644
--- a/nova/
+++ b/nova/
@@ -1746,6 +1746,7 @@ class ComputeManager(
+ raise exception.
return build_results.
except exception.
retry = filter_
environments:
*) nova master branch
*) ubuntu 12.04
*) kvm
*) bridged network.
summary: |
- network not alwasy cleaned up when spawning VMs + network not always cleaned up when spawning VMs |
Changed in nova: | |
assignee: | nobody → Aihua Edward Li (aihuaedwardli) |
Changed in nova: | |
status: | New → In Progress |
status: | In Progress → Fix Committed |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Aihua Edward Li (aihuaedwardli) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
tags: | added: network |
Changed in nova: | |
assignee: | nobody → srividyaketharaju (srividya) |
Changed in nova: | |
assignee: | srividyaketharaju (srividya) → nobody |
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
Fix proposed to branch: master /review. openstack. org/335788
Review: https:/