nova-network doesn't set promisc mode on bridge interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When br100 is not manually configured and nova.conf (network related part) is configured as:
--flat_
--network_
--flat_
--public_
--flat_
--network_
--fixed_
--flat-injected
nova-network fails to set promisc mode for br100:
2012-02-10 07:41:34,398 DEBUG nova.utils [req-749b0e68-
2012-02-10 07:41:34,431 DEBUG nova.utils [req-749b0e68-
2012-02-10 07:41:34,464 DEBUG nova.utils [req-749b0e68-
2012-02-10 07:41:34,574 DEBUG nova.utils [req-749b0e68-
Looking at the code (nova/network/
if(
it looks like this will never be true, since public_interface is eth0, and 'dev' is br100. On the other hand, this works fine:
if(
I don't think the settings above are correct.
--flat_ network_ bridge= br100 interface= eth0 interface= eth0
--flat_
--public_
The problem is that it does not work to add ips to a bridged interface, so floating ips will not work properly. I think nova will move the ips onto the bridge at certain points, so it will probably work most of the time, but lead to strange issues. The floating ips should be added to the bridge, so you actually want:
--flat_ network_ bridge= br100 interface= eth0 interface= br100
--flat_
--public_
It looks like devstack defaults to the first, so we have proposed a change to default to the second set here:
https:/ /review. openstack. org/#change, 2428
I think we can go ahead and mark this invalid. Feel free to reopen if you disagree.