No error is returned if public interface doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Dean Troyer |
Bug Description
With the eth0 default for public_interface on a Fedora machine whose primary interface is named em0, I get no errors when associating a floating IP with an instance even though it clearly fails:
DEBUG nova.utils [-] Running cmd (subprocess): sudo ip addr add 172.31.0.224 dev eth0 from (pid=1918) execute /usr/lib/
DEBUG nova.utils [-] Result was 255 from (pid=1918) execute /usr/lib/
The problem is here:
# NOTE(vish): The False here is because we ignore the case
# that the ip is already bound.
self.
i.e. we want to ignore one specific error, not all errors
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Dean Troyer (dtroyer) |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → essex-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-3 → 2012.1 |
Fix proposed to branch: master /review. openstack. org/3315
Review: https:/