<div dir="auto">Yep, also note that you have to wait 2x whatever the agent down time is set to before the rescheduling occurs. </div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 6, 2017 20:46, "Curtis" <<a href="mailto:serverascode@gmail.com">serverascode@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Aug 6, 2017 at 8:38 PM, Kevin Benton <kevin@benton.pub> wrote:<br>
> If you have 'allow_automatic_dhcp_<wbr>failover' set to True then it will<br>
> automatically remove networks from DHCP agents that are offline.<br>
><br>
> However, this only applies to networks that are in the admin_state_up=True<br>
> condition. If you explicitly set them to admin_state_up=False then automatic<br>
> rescheduling won't occur. This was intentionally done so operators could<br>
> avoid having networks rescheduled from DHCP agents they were performing<br>
> short term maintenance on.<br>
><br>
> So next time just start by shutting the agent down and ensuring that<br>
> 'allow_automatic_dhcp_<wbr>failover' is set to True in your server config and it<br>
> should work.<br>
<br>
Ok great, that makes sense to me. So if I had that<br>
allow_automatic_dhcp_failover set, and I was doing maintenance, then I<br>
could set admin_state_up to false. Or if I was migrating, leave it as<br>
true. Seems like a good setup.<br>
<br>
Thanks,<br>
Curtis.<br>
<br>
><br>
> On Sun, Aug 6, 2017 at 3:16 PM, Xav Paice <<a href="mailto:xavpaice@gmail.com">xavpaice@gmail.com</a>> wrote:<br>
>><br>
>> Yeah, it's an odd one for sure, in my experience at least they do need to<br>
>> be manually re-scheduled.<br>
>><br>
>> On Sun, 6 Aug 2017 at 11:27 Curtis <<a href="mailto:serverascode@gmail.com">serverascode@gmail.com</a>> wrote:<br>
>>><br>
>>> I'm in the process of testing out moving around some neutron services.<br>
>>> I'm starting with dhcp-agent. I've got neutron set to have 3 dhcp<br>
>>> instances per network.<br>
>>><br>
>>> I set the admin state of a single dhcp agent to down, then all the<br>
>>> dhcp namespaces were automatically removed from the node running dhcp<br>
>>> agent. Then I deleted the agent thinking the dhcp services would get<br>
>>> rescheduled to another node, but they were not. So now I've just got<br>
>>> two dhcp servers for most networks.<br>
>>><br>
>>> Am I, as admin, expected to now do something like add all the networks<br>
>>> with only 2 dhcp servers to a new dhcp-agent (using neutron<br>
>>> dhcp-agent-network-add) or should neutron reschedule them<br>
>>> automagically?<br>
>>><br>
>>> I'm hoping I just missed a step here. :)<br>
>>><br>
>>> Thanks,<br>
>>> Curtis.<br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> OpenStack-operators mailing list<br>
>>> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> OpenStack-operators mailing list<br>
>> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Blog: <a href="http://serverascode.com" rel="noreferrer" target="_blank">serverascode.com</a><br>
</blockquote></div></div>