[openstack-dev] [openstack-infra][nodepool] Can the nodes created by nodepool be reused by jenkins jobs?

王华 wanghua.humble at gmail.com
Thu Jun 30 04:13:01 UTC 2016


Hi Paul,

There is a period between a job is done in Jenkins and the node is deleted
by nodepool.
Before the node is deleted, the node can be seen on Jenkins.How can Jenkins
know not
to use the node which has already run a job? Is there a mechanism to
 ensure this case?

On Thu, Jun 30, 2016 at 11:12 AM, Paul Belanger <pabelanger at redhat.com>
wrote:

> On Thu, Jun 30, 2016 at 10:49:41AM +0800, 王华 wrote:
> > Hi all,
> >
> > In OpenStack infra system after a job in Jenkins has finalized, Jenkins
> > send a message called onFinalized to  nodepool to delete the node. I
> have a
> > question. Between the time the job is done and
> > the node is deleted by nodepool, will the node be reused by other jobs in
> > jenkins? All nodes created by nodepool only run a jenkins job and then be
> > deleted? Can we let some jenkins jobs like pep8 to reuse the nodes?
> >
> Yes, it is possible. We have a setting in nodepool called
> OFFLINE_NODE_WHEN_COMPLETE[1]. When this parameter is not set, jenkins will
> be allow to reused the nodes created by nodepool.
>
> It is possible to reused nodes for pep8 jobs only, it is a configuration
> change
> to zuul.
>
> But we don't wan to do this in openstack-infra, because we want new nodes
> for
> each job.
>
> [1]
> http://git.openstack.org/cgit/openstack-infra/project-config/tree/zuul/openstack_functions.py#n34
>
> > Best Regards,
> > Wanghua
>
> >
> __________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160630/359dc58e/attachment.html>


More information about the OpenStack-dev mailing list