Jake Xu | 13 Jun 2012 22:35

Getting Installation Status from XMLRPC

Hi all,


I've been wondering if there is any way for me to query a Cobbler server and to find out if a system installation is completed.
I know that I can use the command "cobbler status" to get some ideas, but not sure if there is any equivalent API call.

If there is, is it possible to get the percentage/stage of installation progress? 

Thanks,
Jake
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Nishanth Aravamudan | 19 Jun 2012 01:17
Picon

Re: Getting Installation Status from XMLRPC

On 13.06.2012 [13:35:01 -0700], Jake Xu wrote:
> Hi all,
> 
> I've been wondering if there is any way for me to query a Cobbler server
> and to find out if a system installation is completed.
> I know that I can use the command "cobbler status" to get some ideas, but
> not sure if there is any equivalent API call.
> 
> If there is, is it possible to get the percentage/stage of installation
> progress?

Roughly speaking -- no. Keep in mind that Cobbler, per se, doesn't track
installation status, it just is able to initiate the booting via
DHCP and control how the installation proceeds via kickstarts. But there
is no guarantee that you as the end-user use a particular
kickstart/snippet.

If you set pxe_just_once in settings, then you can poll on
netboot-enabled is true to indicate installation is ongoing. But it
doesn't strictly indicate success or failure.

Percentages would be even harder and is arguably more vague and depends
on what you're installing, etc.

That all being said, you could probably setup some kickstart snippets to
write to a log file on the installer server that indicates the progress
stage-wise of the installation?

Thanks,
Nish

--

-- 
Nishanth Aravamudan <nacc <at> us.ibm.com>
IBM Linux Technology Center

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
James Cammarata | 19 Jun 2012 01:49
Favicon
Gravatar

Re: Getting Installation Status from XMLRPC

On Mon, Jun 18, 2012 at 6:17 PM, Nishanth Aravamudan
<nacc <at> linux.vnet.ibm.com> wrote:
> On 13.06.2012 [13:35:01 -0700], Jake Xu wrote:
>> Hi all,
>>
>> I've been wondering if there is any way for me to query a Cobbler server
>> and to find out if a system installation is completed.
>> I know that I can use the command "cobbler status" to get some ideas, but
>> not sure if there is any equivalent API call.
>>
>> If there is, is it possible to get the percentage/stage of installation
>> progress?
>
> Roughly speaking -- no. Keep in mind that Cobbler, per se, doesn't track
> installation status, it just is able to initiate the booting via
> DHCP and control how the installation proceeds via kickstarts. But there
> is no guarantee that you as the end-user use a particular
> kickstart/snippet.
>
> If you set pxe_just_once in settings, then you can poll on
> netboot-enabled is true to indicate installation is ongoing. But it
> doesn't strictly indicate success or failure.
>
> Percentages would be even harder and is arguably more vague and depends
> on what you're installing, etc.
>
> That all being said, you could probably setup some kickstart snippets to
> write to a log file on the installer server that indicates the progress
> stage-wise of the installation?

If you're using a RHEL-based system, there is anamon for this:

http://cobbler.github.com/manuals/2.2.3/5/Anaconda-monitoring.html
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Ramon van Alteren | 19 Jun 2012 08:50
Gravatar

Re: Getting Installation Status from XMLRPC

Hej,

On Tue, Jun 19, 2012 at 1:49 AM, James Cammarata <jimi <at> sngx.net> wrote:
>> That all being said, you could probably setup some kickstart snippets to
>> write to a log file on the installer server that indicates the progress
>> stage-wise of the installation?
>
> If you're using a RHEL-based system, there is anamon for this:
>
> http://cobbler.github.com/manuals/2.2.3/5/Anaconda-monitoring.html

Is there an equivalent for this on ubuntu/debian ?
I'd be interested in getting a full log of an installation for
inspection somewhere remotely but have not been able to find something
for debian/ubuntu. This is probably due to my lack of experience with
debian as a distro.

Any pointers would be appreciated.

/Ramon
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Gmane