← Back to team overview

openstack team mailing list archive

Re: Nova doesn't release ips when terminating instances

 

On 06/26/2012 05:55 PM, Lars Kellogg-Stedman wrote:
>> force_dhcp_release=true should cause the ip to be released immediately,
>> assuming the relevant optional binary from dnsmasq is installed (it is in
>> the package dnsmasq-utils in ubuntu).
> 
> The dhcp_release command does not appear to be packaged with Fedora.

It's in the dnsmasq-utils package on Fedora 16 and 17
The Fedora openstack packages auto install this package
and enable the option to use it.

Oh I see you're using CentOS 6.2.
A rebuild of this would probably work:
http://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/dnsmasq-2.48-6.el6.src.rpm

>> If it is set to false then the ips
>> should be reclaimed after a set timeout period (ten minutes by default) via
>> a periodic task in the network worker. If they are not being reclaimed
>> properly then there is definitely a bug somewhere...
> 
> It does not appear that ips are ever properly reclaimed.  They will
> hang around with allocated=0 and instance_id != NULL forever, until I
> manually correct the database.
> 



Follow ups

References