<div dir="ltr"><div id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span class="" style="word-wrap:break-word">Hi folks..</span></div><div id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span class="" style="word-wrap:break-word"><br></span></div><div id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span class="" 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 id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span class="" style="word-wrap:break-word"><br></span></div><div id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><span class="" 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 id="SPZII8SR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div><div id="SPZII8SR5H5" class="" 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 id="W5DLGPTR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div><div id="W5DLGPTR5H5" class="" 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">https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L82-L87</a></div><div id="W5DLGPTR5H5" class="" 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">https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L349</a></div><div id="W5DLGPTR5H5" class="" style="padding:1px 5px;margin-bottom:3px;color:rgb(0,0,0);font-family:'Lucida Grande'"><br></div></div>