<div dir="ltr">This looks like a different issue. The problem you have identified is specific to a DHCP agent port being deleted.<div><br></div><div>Shraddha's question seems to be about all ports. All of the port information is synced on startup via sync_state here: <a href="https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L147">https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L147</a> so there shouldn't be any issues there.<br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 7:09 PM, shihanzhang <span dir="ltr"><<a href="mailto:ayshihanzhang@126.com" target="_blank">ayshihanzhang@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hi <span style="line-height:19.0399990081787px">Shraddha Pandhe,</span></div><div><span style="line-height:19.0399990081787px">  I think your </span>analysis is right, I also encountered the same problem, I have filed a bug[1] and commit a patch [2] for this bug.</div><div><br></div><div>thanks,</div><div>  hanzhang shi</div><br><div>[1] <a href="https://launchpad.net/bugs/1469615" target="_blank">https://launchpad.net/bugs/1469615</a> </div><div>[2] <a href="https://review.openstack.org/#/c/196927/" target="_blank">https://review.openstack.org/#/c/196927/</a></div><div><div class="h5"><br><div style="zoom:1"></div><div></div><br>在 2015-07-01 08:25:48,"Shraddha Pandhe" <<a href="mailto:spandhe.openstack@gmail.com" target="_blank">spandhe.openstack@gmail.com</a>> 写道:<br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr"><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span style="word-wrap:break-word">Hi folks..</span></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span style="word-wrap:break-word"><br></span></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span style="word-wrap:break-word">I have a question about neutron dhcp agent restart scenario. It seems like, when the agent restarts, it recovers the known network IDs in cache, but we don't recover the known ports [1].</span></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span style="word-wrap:break-word"><br></span></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span style="word-wrap:break-word">So if a port that was present before agent restarted, is deleted after agent restart, the agent wont have it in its cache. S</span>o port here [2] will be None. So the port will actually never get deleted. </div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'">Same problem will happen if a port is updated. Has anyone seen these issues? Am I missing something?</div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'">[1] <a href="https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L82-L87" target="_blank">https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L82-L87</a></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'">[2] <a href="https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L349" style="font-family:arial,sans-serif" target="_blank">https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L349</a></div><div style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div></div>
</blockquote></div></div></div><br><br><span title="neteasefooter"><span></span></span><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Kevin Benton</div></div>
</div>