<div dir="ltr">Hi Pattabi,<div><br></div><div>I'll try to answer:</div><div><font face="arial, helvetica, sans-serif">1) How does neutron/quantum checks if IP address is already used or not?</font></div><div><font face="arial, helvetica, sans-serif">Neutron server know which IPs it has given to ports, so if you try to specify the existing IP, the operation will fail.</font></div>
<div><font face="arial, helvetica, sans-serif">Although i'm not sure i understand 'data with NULL ID' statement.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Could you give exact sequence of operations you're trying to perform?</font></div>
<div><font face="arial, helvetica, sans-serif">BTW, currently loadbalancer_db_plugin already creates a port for VIP and it alread contains IP address. That is something that should change soon with </font><a href="https://review.openstack.org/#/c/41396/">https://review.openstack.org/#/c/41396/</a></div>
<div>So if you try to create another port in your driver with the same IP, then it will fail.</div><div><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">3. AFAIK, </font><span style="font-family:Arial,sans-serif"> </span><span style="font-family:Arial,sans-serif">ipavailabilityranges represent ranges of available ips; since allocation could be automatic and manual, those ranges change in size or split or merged when ips get allocated or recycled. I don't think first_ip is ever 'reset'.</span></div>
<div><span style="font-family:Arial,sans-serif"><br></span></div><div><span style="font-family:Arial,sans-serif">Thanks,</span></div><div><span style="font-family:Arial,sans-serif">Eugene.</span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Oct 25, 2013 at 2:40 AM, Pattabi Ayyasami <span dir="ltr"><<a href="mailto:pattabi@brocade.com" target="_blank">pattabi@brocade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">Hi,<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">We encounter the following error in our lab when we auto allocate the VIP IP Address for create_vip API.<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">==============================================================================================<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">ERROR: quantumclient.shell Unable to complete operation for network f51735cc-c62e-438d-bc9f-26792c2486b9. <u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">The IP address 172.21.72.8 is in use.<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">==============================================================================================<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">We basically have the following questions.<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">1. How does neutron/quantum checks if IP address is already used or not?<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> (Engineer data with NULL ID on ipallocation table, so he wonders if data with NULL ID has something to do with IP address allocation)<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">2. Will Data with NULL ID on ipallocations be removed sometime after? If so what would be the timing ?<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">3. Value of first_ip in ipavailabilityranges seems to be increasing rapidly, but when this value will be reset ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">Pattabi<u></u><u></u></span></p>
</div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>