Comment 1 for bug 1042249

Revision history for this message
Mark McLoughlin (markmc) wrote : Re: nova-network does not start if interfaces are already configured

Thanks for the report!

So, this is with linuxnet_interface_driver=nova.network.linux_net.QuantumLinuxBridgeInterfaceDriver

I'm not sure I understand how your patch fixes the problem. The code is:

        if not _device_exists(bridge):
            utils.execute('brctl', 'addbr', bridge, run_as_root=True)
            ...
            full_ip = '%s/%s' % (network['dhcp_server'],
                                 network['cidr'].rpartition('/')[2])
            utils.execute('ip', 'address', 'add', full_ip, 'dev', bridge,
                          run_as_root=True, check_exit_code=[0, 2, 254])

i.e. we only assign an IP address if the bridge did not already exist. How can the IP be already assigned to a bridge we've just created?

Is the root cause actually that we _device_exists() is returning False for a bridge that does exist?

Could you post some more details of your setup too? e.g.

 * nova and quantum versions
 * nova and quantum config (e.g. grep -v '^#' nova.conf quantum.conf)
 * what commands you used to create networks