Using oVirt VM pools in oVirt infra

David Caro dcaro at redhat.com
Thu Jan 14 10:45:39 UTC 2016


On 01/14 12:41, Barak Korren wrote:
> On 14 January 2016 at 12:02, Anton Marchukov <amarchuk at redhat.com> wrote:
> >
> >> I was under the impression you are thinking about a wrapper job you
> >> need to wrap around every job. This is a single, out of band, job. So
> >> it may not be that bad.
> >> You seem to imply that slaves managed by the Swarm plugin are not
> >> 'normal' ssh-based slaves, so there might be something there we can
> >> exploit (For example, perhaps the swarm client JAR can be made to exit
> >> once the slave is brought offline, so we can wrap it in a script that
> >> will shut the slave down when it does).
> >> I will look deeper into this in my POC.
> >>
> >
> > Arent there any ability to hook into shutdown process and delay it from the
> > hook itself? There are vdsm hooks for that but I am not sure how pool
> > scheduler interacts with it. Maybe we can ask on user list. As I see the
> > ideal is to catch shutdown, than run some hook that will put skave to
> > maintanance, wait for job to finish and than unblocks shutdown.
> >
> But this is the reverse of what we need, the problem is how to make
> the slave shut down in the first place, you can`t just do it from the
> job that used it because it will make the job fail.
> 
> But maybe we can actually use the good old 'shutdown $TIME_DELAY' to
> make the slave shut down a few seconds after the job is done...
> I can't believe I forgot you can time delay a shut down... I was
> initially thinking of 'at' and then I remebred this...
>

You end up with a race condition anyhow, if there's a post-build job
that take a bit too much, it will break it.

> -- 
> Barak Korren
> bkorren at redhat.com
> RHEV-CI Team

-- 
David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Tel.: +420 532 294 605
Email: dcaro at redhat.com
IRC: dcaro|dcaroest@{freenode|oftc|redhat}
Web: www.redhat.com
RHT Global #: 82-62605
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20160114/947ca131/attachment.sig>


More information about the Infra mailing list