Linux bridge and devstack does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
(Sumit's analysis: This is probably not a devstack issue. The problem is with the LB gateway driver wherein the IP address is trying to be set on a bridge device which already has an IP address. The check for an existing bridge is being performed, but the IP address is being set outside that check. Ideally, this code should not have been invoked if the gateway was already set. Something seems to have changed in the QuantumManager as result of which this code is being invoked again. At any rate, I will fix the LB gateway driver, and we will not see this)
For example when devstack is up and running prior to deploying an instance we have:
brq744ec2f4-c0 Link encap:Ethernet HWaddr fa:16:3e:03:a6:55
inet addr:10.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gw-744ec2f4-c0 Link encap:Ethernet HWaddr fa:16:3e:03:a6:55
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
When an instance is deployed the following happens:
2012-05-15 01:59:18 DEBUG nova.utils [req-4d50ed10-
2012-05-15 01:59:18 DEBUG nova.utils [req-4d50ed10-
2012-05-15 01:59:18 ERROR nova.rpc.amqp [req-4d50ed10-
2012-05-15 01:59:18 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp rval = node_func(
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp network, vif_rec, network[
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp retval = f(*args, **kwargs)
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp self.l3driver.
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp gateway=
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp return _get_interface_
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp run_as_root=True)
2012-05-15 01:59:18 TRACE nova.rpc.amqp File "/opt/stack/
2012-05-15 01:59:18 TRACE nova.rpc.amqp cmd=' '.join(cmd))
2012-05-15 01:59:18 TRACE nova.rpc.amqp ProcessExecutio
2012-05-15 01:59:18 TRACE nova.rpc.amqp Command: sudo /usr/local/
2012-05-15 01:59:18 TRACE nova.rpc.amqp Exit code: 254
2012-05-15 01:59:18 TRACE nova.rpc.amqp Stdout: ''
2012-05-15 01:59:18 TRACE nova.rpc.amqp Stderr: 'RTNETLINK answers: File exists\n'
2012-05-15 01:59:18 TRACE nova.rpc.amqp
2012-05-15 01:59:18 ERROR nova.rpc.common [req-4d50ed10-
Command: sudo /usr/local/
Exit code: 254
Stdout: ''
Stderr: 'RTNETLINK answers: File exists\n' to caller
2012-05-15 01:59:18 ERROR nova.rpc.common [req-4d50ed10-