Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-12-14 Thread Vishvananda Ishaya
I probably won't have time to look at this for a while, but I don't have any magic insights. I would just start adding in a bunch of logging of the values before they are shipped off to iptables to figure out if there are duplicate entries and such. Vish On Dec 13, 2012, at 1:52 AM, Édouard

Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-12-13 Thread Édouard Thuleau
Hi Vish, The code was merge to the master (https://github.com/openstack/nova/commit/d5b91dd39bd89eed98742cd02ea604a842a45447) yesterday. But the bug with rule removal wasn't fix. I'll open a bug. But I try to investigate it and I don't find the problem. Could you help me ? Regards, Édouard. On

Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-12-07 Thread Édouard Thuleau
The code doesn't make lot of change to the nova network manager code. It modifies principally the linux_net driver code. And I don't think we can consider it like a new feature. I think it's more a bug fix. In VLAN manger mode, if we plan to carry 4000 tenants in our cloud, we need to use 4000

Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-12-03 Thread Édouard Thuleau
Hi Vish, I made a patch to implement that with the VLAN manager: https://review.openstack.org/#/c/17352/ I put a lock on methods '_setup_network_on_host' and '_teardown_network_on_host' of class 'VlanManager' and I reused (and renamed) the locks already defined in class

Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-12-03 Thread Vishvananda Ishaya
FYI, this patch is probably something bigger than we can merge. Nova-network is supposed to just be in maintenance mode and not getting big new features. Small features are ok, but this one changes a lot of lines. Not sure what is up with your rule removal. Perhaps there are multiple copies of

[Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-11-20 Thread Édouard Thuleau
Hi all, I use nova-network with VLAN manager. Why nova-network doesn't remove unused network interfaces on a host ? ie, if none VM on a host have a fixed IP attach to network X, the VLAN and bridge of this network still up and unused. And 'dnsmasq' process still listen and running. The number

Re: [Openstack] [OpenStack] Remove unsed network on host with nova-network

2012-11-20 Thread Vishvananda Ishaya
The only reason this is not done is that it makes the setup simpler. We don't have to worry about potential races between setting up and tearing down interfaces. It probably wouldn't be incredibly difficult to make a patch that would remove them, but you will likely have to do some creative