Comment 2 for bug 977759

Revision history for this message
Mandar Vaze (mandarvaze) wrote : Re: With QuantumManager, nova-network does not start dnsmasq during initialization

Please see above comment for the root-cause.

Here is the proposed solution:

I've tested the following code and confirmed that killed dnsmasq are started with following code changes.

90a91
> super(QuantumManager, self).init_host()
108a110,124
>
> #Similar to FlatDHCPMananger
> def _setup_network_on_host(self, context, network):
> """Sets up network on this host."""
> network['dhcp_server'] = self._get_dhcp_ip(context, network)
> self.l3driver.initialize_gateway(network)
>
> if not FLAGS.fake_network:
> dev = self.driver.get_dev(network)
> self.driver.update_dhcp(context, dev, network)
> if(FLAGS.use_ipv6):
> self.driver.update_ra(context, dev, network)
> gateway = utils.get_my_linklocal(dev)
> self.db.network_update(context, network['id'],
> {'gateway_v6': gateway})

If I hear no comments on the above solution, I'm planning to go ahead with Gerrit review with above changes.