<div dir="ltr">Hi Paul,<div><br></div><div>There is a period between a job is done in Jenkins and the node is deleted by nodepool. </div><div>Before the node is deleted, the node can be seen on Jenkins.How can Jenkins know not</div><div>to use the node which has already run a job? Is there a mechanism to  ensure this case?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 11:12 AM, Paul Belanger <span dir="ltr"><<a href="mailto:pabelanger@redhat.com" target="_blank">pabelanger@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jun 30, 2016 at 10:49:41AM +0800, 王华 wrote:<br>
> Hi all,<br>
><br>
> In OpenStack infra system after a job in Jenkins has finalized, Jenkins<br>
> send a message called onFinalized to  nodepool to delete the node. I have a<br>
> question. Between the time the job is done and<br>
> the node is deleted by nodepool, will the node be reused by other jobs in<br>
> jenkins? All nodes created by nodepool only run a jenkins job and then be<br>
> deleted? Can we let some jenkins jobs like pep8 to reuse the nodes?<br>
><br>
</span>Yes, it is possible. We have a setting in nodepool called<br>
OFFLINE_NODE_WHEN_COMPLETE[1]. When this parameter is not set, jenkins will<br>
be allow to reused the nodes created by nodepool.<br>
<br>
It is possible to reused nodes for pep8 jobs only, it is a configuration change<br>
to zuul.<br>
<br>
But we don't wan to do this in openstack-infra, because we want new nodes for<br>
each job.<br>
<br>
[1] <a href="http://git.openstack.org/cgit/openstack-infra/project-config/tree/zuul/openstack_functions.py#n34" rel="noreferrer" target="_blank">http://git.openstack.org/cgit/openstack-infra/project-config/tree/zuul/openstack_functions.py#n34</a><br>
<br>
> Best Regards,<br>
> Wanghua<br>
<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>
<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>
</blockquote></div><br></div>