just to add another recommendation:

you could look into using Cobbler's triggers to run a script (sh, python, perl 
etc..) that does whatever you want done after cobbler completes the action to 
which the trigger is tied.

Cobbler docs:
https://fedorahosted.org/cobbler/wiki/CobblerTriggers

personally, I'd look at using a trigger here:
'/var/lib/cobbler/triggers/install/post/'

or here if done in pure python:
'/usr/lib/python2.4/site-packages/cobbler/modules/'


byron


-----Original Message-----
From: cobbler-boun...@lists.fedorahosted.org 
[mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Matt Wallace
Sent: Tuesday, June 15, 2010 7:10 AM
To: cobbler@lists.fedorahosted.org
Subject: Confirming when a VM has been provisioned?

Hi all,

Is there anyway of querying the cobbler XML-RPC API to find out if a
node has finished building?

At the moment, the best way I can find is to check the last two lines of
the logs, but I can't help thinking that if the server knows when the
build has finished so it can put it in the log, the API must also know
when the build is finished so i can "tell" the server to mark the build
as completed in the log.

I'm running some automated testing at the moment and I need to know that
my VMs are up before I run the config-mgmt system against it! :)

Thanks in advance,

Matt

_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to