[Bug 1101187] Re: in case ow two networks on the same bridge nova overwrites dnsmasq config

2013-02-25 Thread TangYi
I modified update_dhcp funciton in nova/network/linux_net.py ,

so it would be something like :
def update_dhcp(context, dev, network_ref):
(Re)starts a dnsmasq server for a given network.

If a dnsmasq instance is already running then send a HUP
signal causing it to reload, otherwise spawn a new instance.


network = network-%s % str(network_ref['id'])
conffile = _dhcp_file(network, 'conf')
   

So it can bring up a dnsmasq instance for each network, hoever, it doesn't work 
either, maybe cause it had listen on the same bridge of two dnsmasq.
So there has one cannot receive dhcp request.

Anyone can help?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1101187

Title:
  in case ow two networks on the same bridge nova overwrites dnsmasq
  config

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1101187/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1101187] Re: in case ow two networks on the same bridge nova overwrites dnsmasq config

2013-02-25 Thread TangYi
I modified update_dhcp funciton in nova/network/linux_net.py ,

so it would be something like :
def update_dhcp(context, dev, network_ref):
(Re)starts a dnsmasq server for a given network.

If a dnsmasq instance is already running then send a HUP
signal causing it to reload, otherwise spawn a new instance.


network = network-%s % str(network_ref['id'])
conffile = _dhcp_file(network, 'conf')
   

So it can bring up a dnsmasq instance for each network, hoever, it doesn't work 
either, maybe cause it had listen on the same bridge of two dnsmasq.
So there has one cannot receive dhcp request.

Anyone can help?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1101187

Title:
  in case ow two networks on the same bridge nova overwrites dnsmasq
  config

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1101187/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs