<div dir="ltr">Hi all,<div>I think we just power the scheduler API to be able to add and remove candidates is enough.</div><div><br></div><div>As mentioned this thread, the agent just doesn't receive new request but still keep old service alive.</div><div>So, just stop schedule new request to it. Direct and simple.</div><div><br></div><div>Hope my expression is clear enough.</div><div>Germy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 9, 2015 at 10:15 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Adding [api] topic.<span class=""><br>
<br>
On 01/08/2015 07:47 PM, Kevin Benton wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there another openstack service that allows this so we can make the<br>
API consistent between the two when this change is made?<br>
</blockquote>
<br></span>
Kevin, thank you VERY much for asking the above question and caring about consistency in the APIs!<br>
<br>
There was a discussion on the ML about this very area of the APIs, and how there is current inconsistency to resolve:<br>
<br>
<a href="http://openstack-dev.openstack.narkive.com/UbM1J7dH/horizon-all-status-vs-state" target="_blank">http://openstack-dev.<u></u>openstack.narkive.com/<u></u>UbM1J7dH/horizon-all-status-<u></u>vs-state</a><br>
<br>
You were involved in that thread, so I know you're very familiar with the problem domain :)<br>
<br>
In the above thread, I mentioned that this really was something that the API WG should tackle, and this here ML thread should be a catalyst for getting that done.<br>
<br>
What we need is a patch proposed to the openstack/api-wg that proposes some guidelines around the REST API structure for "disabling some resource for administrative purposes", with some content that discusses the semantic differences between "state" and "status", and makes recommendations on the naming of resource attributes that indicate an admnistrative state.<br>
<br>
Of course, this doesn't really address Jack M's question about whether there should be a separate "mode" (in Jack's terms) to indicate that some resource can be only manually assigned and not automatically assigned. Personally, I don't feel there is a need for another mode. I think if something has been administratively disabled, that an administrator should still be able to manually alter that thing.<br>
<br>
All the best,<br>
-jay<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Thu, Jan 8, 2015 at 3:09 PM, Carl Baldwin <<a href="mailto:carl@ecbaldwin.net" target="_blank">carl@ecbaldwin.net</a><br></span><span class="">
<mailto:<a href="mailto:carl@ecbaldwin.net" target="_blank">carl@ecbaldwin.net</a>>> wrote:<br>
<br>
    I added a link to @Jack's post to the ML to the bug report [1].  I am<br>
    willing to support @Itsuro with reviews of the implementation and am<br>
    willing to consult if you need and would like to ping me.<br>
<br>
    Carl<br>
<br>
    [1] <a href="https://bugs.launchpad.net/neutron/+bug/1408488" target="_blank">https://bugs.launchpad.net/<u></u>neutron/+bug/1408488</a><br>
<br>
    On Thu, Jan 8, 2015 at 7:49 AM, McCann, Jack <<a href="mailto:jack.mccann@hp.com" target="_blank">jack.mccann@hp.com</a><br></span><div><div class="h5">
    <mailto:<a href="mailto:jack.mccann@hp.com" target="_blank">jack.mccann@hp.com</a>>> wrote:<br>
     > +1 on need for this feature<br>
     ><br>
     > The way I've thought about this is we need a mode that stops the<br>
    *automatic*<br>
     > scheduling of routers/dhcp-servers to specific hosts/agents,<br>
    while allowing<br>
     > manual assignment of routers/dhcp-servers to those hosts/agents,<br>
    and where<br>
     > any existing routers/dhcp-servers on those hosts continue to<br>
    operate as normal.<br>
     ><br>
     > The maintenance use case was mentioned: I want to evacuate<br>
    routers/dhcp-servers<br>
     > from a host before taking it down, and having the scheduler add<br>
    new routers/dhcp<br>
     > while I'm evacuating the node is a) an annoyance, and b) causes a<br>
    service blip<br>
     > when I have to right away move that new router/dhcp to another host.<br>
     ><br>
     > The other use case is adding a new host/agent into an existing<br>
    environment.<br>
     > I want to be able to bring the new host/agent up and into the<br>
    neutron config, but<br>
     > I don't want any of my customers' routers/dhcp-servers scheduled<br>
    there until I've<br>
     > had a chance to assign some test routers/dhcp-servers and make<br>
    sure the new server<br>
     > is properly configured and fully operational.<br>
     ><br>
     > - Jack<br>
     ><br>
     > ______________________________<u></u>_________________<br>
     > OpenStack-dev mailing list<br>
     > <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br></div></div>
    <mailto:<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.<u></u>openstack.org</a>><span class=""><br>
     > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
<br>
    ______________________________<u></u>_________________<br>
    OpenStack-dev mailing list<br>
    <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br></span>
    <mailto:<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.<u></u>openstack.org</a>><span class=""><br>
    <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
<br>
<br>
<br>
<br>
--<br>
Kevin Benton<br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br></div>