<div dir="ltr">Appreciate your response, it was very clear explanation, will try this and let you know the result.<div><br></div><div>Thanks much</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 4:16 PM, Mathieu Gagné <span dir="ltr"><<a href="mailto:mgagne@iweb.com" target="_blank">mgagne@iweb.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2014-10-09 3:08 PM, raju wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tried changing in DB but doesn't work, I see that Havana Neutron<br>
doesn't   have option to expand subnet allocation pools<br>
<br>
</blockquote>
<br></span>
Neutron does not allow you to shrink or expand an existing allocation pool, nor add allocation pools to an existing subnet.<br>
<br>
<br>
>From memory, there is more than one entry to update in Neutron database:<br>
<br>
1) neutron.subnets.cidr<br>
   This is the subnet definition.<br>
<br>
2) neutron.ipallocationpools<br>
   This is the allocation pool definition.<br>
<br>
3) neutron.ipavailabilityranges<br>
   This is the ranges of IPs FREE in the allocation pool.<br>
<br>
<br>
A. Update the subnet definition (if needed)<br>
<br>
If the subnet netmask changes, you need to update the 'cidr' field in the 'neutron.subnets' table with the new subnet definition.<br>
<br>
This change won't:<br>
- expand the existing subnet's allocation pool<br>
- give you new IPs to use in instances<br>
- change netmask already configured in existing instances.<br>
<br>
This will only update the subnet definition.<br>
<br>
<br>
B. Extending an allocation pool<br>
<br>
You need to update the 'neutron.ipallocationpools' table to expand the definition of the existing allocation pool.<br>
<br>
Find the entry associated to the subnet and update the 'last_ip' field with the new allocation range.<br>
<br>
This won't give you new IPs but only update the allocation pool definition. Makes sure the 'last_ip' does not go beyond the subnet definition range.<br>
<br>
Now, to add new free IPs, you need to insert new entries in the 'neutron.ipavailabilityranges' table. This table contains *ranges* of FREE IPs. Therefore you have to add a new range entry corresponding to the existing subnet allocation pool (allocation_pool_id).<br>
<br>
The 'first_ip' field corresponds to the first free ip of the new range and 'last_ip' to the last free ip. This will give you new IPs available.<br>
<br>
<br>
C. Add an allocation pool<br>
<br>
Add a new entry in the 'neutron.ipallocationpools' table corresponding to your new allocation pool definition. The 'id' field should be a NEW *unique* uuid and 'subnet_id' the subnet to which you wish to add an allocation pool. Make sure allocation pools don't overlap.<br>
<br>
Then add a new entry in the 'neutron.ipavailabilityranges' table. Use the previous uuid for the 'allocation_pool_id' field and the same values in 'first_ip' and 'last_ip' fields as the ones put in 'neutron.ipallocationpools'.<br>
<br>
You will then have new IPs available.<br>
<br>
<br>
Always *backup* your data and *test* in a development environment first.<br>
<br>
<br>
--<br>
Mathieu<br>
<br>
<br>
<br>
<br>
</blockquote></div><br></div>